Andrew Barnes (aka Scriptimus Prime)
-
Recent Posts
April 2026 M T W T F S S 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 Archives
Categories
- 70-680 videos
- 70-681
- Andrew Barnes
- Answer Files
- Automation
- BDE
- bootstrap.ini
- Conditions
- ConfigMgr
- customsettings.ini
- Deployment
- Desired State Configuration
- Desktop Virtualization
- DomainJoin
- Drivers
- Free MCTS Videos
- HP N40L MicroServer
- Hydration Kit
- Internet Explorer
- IP Address
- KMS
- Lite Touch
- MAK
- MCTS
- MDT
- MDT 2010
- MDT 2012
- MDT Media
- MDT Scripting
- MDT Video Links
- microsoft certification program
- Microsoft Certified
- microsoft certified solutions
- Microsoft Deployment Toolkit
- microsoft kb
- microsoft update
- Migration
- new certifications
- Office 2010
- P2V
- Packages
- PowerShell
- Regional Settings
- SCCM
- SCCM Scripting
- script
- Scripting
- Scripting Techniques
- Scripting ZTIUtility
- software
- task sequence
- technology
- Testlab
- Tips
- Training
- Troubleshooting
- UFD
- USMT
- Variables
- VBScript
- Video Links
- Vista
- VMware
- Volume Activation
- Windows 7
- Windows 7 Deployment
- Windows 8
- Windows 10
- Windows Server 2012
- Windows SIM
- Windows Updates
- WinPE
- XP
- Zero Touch
- ZTIUtility
Meta
Category Archives: PowerShell
PowerShell: Test-IsAdmin
Sometimes I only want a PowerShell function to run only if the user has local admin rights. This can be tested for by looking for the admin token. Here’s a function I use. I then call the function in my code using … Continue reading
Managing DSC Resources in PowerShell Desired State Configuration (DSC)
PowerShell Desired State Configuration (DSC) Resources are an evolved type of function usually created by experienced PowerShell coders. Resources are at the very core of DSC and contain the code required to perform the actual configuration tasks in your deployments. My first post was … Continue reading
Posted in Deployment, Desired State Configuration, DSC, PowerShell
Tagged Deployment, Desired State Configuration, Devops, DSC, PowerShell
3 Comments
PowerShell: Inside Desired State Configuration (DSC) – Get,Set and Test
Today, I’m going inside DSC to demonstrate DSC’s indempotance nature and also the Get, Set and Test functions. Continue reading
Posted in Deployment, Desired State Configuration, DSC, PowerShell, Scripting
Tagged Desired State Configuration, PowerShell
Leave a comment
PowerShell: Desired State Configuration – Getting started.
PowerShell DSC is really cool and the next big thing. This post will describe the feature in its most basic form and assume you’re new to the topic. Continue reading
Posted in Desired State Configuration, PowerShell
Tagged Desired State Configuration, PowerShell
2 Comments
PowerShell: New-Password Function
OK, so I’ve been off the grid for a while now. But that doesn’t mean I’ve not been busy. Quite the opposite in fact. I’ve taken a year out from work on paternity with my baby Son. During this time, … Continue reading
SCCM PowerShell: Connect to SCCM Function
Today’s post is another time-saver function I wrote to connect to SCCM. Again, it is designed to eliminate the need to hard code the module path and/or the SCCM primary site. It allows me to just type Connect-SCCM to import the module … Continue reading
Posted in MDT 2010, MDT 2012, MDT 2013, PowerShell
Tagged MDT, Microsoft Deployment Toolkit, PowerShell
3 Comments
MDT PowerShell: Connect to MDT Function
Todays post is a time-saver function I wrote to connect to MDT shares. It allows me to just type Connect-MDT to import the module then enter to the MDT PSdrive. It discovers the location of the MDT module(from the registry) and uses the Restore-MDTPersistentDrive … Continue reading
Posted in MDT 2010, MDT 2012, MDT 2013, PowerShell
Tagged MDT, Microsoft Deployment Toolkit, PowerShell
5 Comments
MDT: Running a single PowerShell Cmdlet from a Task Sequence Step
Sometimes I want to perform small tasks that don’t really require a script creation. In those cases I use a Run Command Line task sequence step. It was always easy for cmd.exe and it’s just as easy for PowerShell.exe(once you … Continue reading
Posted in Deployment, MDT 2010, MDT 2012, PowerShell
Tagged ConfigMgr, Microsoft Deployment Toolkit, PowerShell
10 Comments
LTI/ZTI PowerShell: Outputting Transcript from PowerShell Console
While testing a Lite-Touch deployment, I had an issue with a PowerShell script running in an application package. The error flashed by on the console screen so fast that I could not read it. To top that off, the log file … Continue reading
Posted in MDT 2010, MDT 2012, PowerShell, SCCM, Scripting
Tagged ConfigMgr, Microsoft Deployment Toolkit, PowerShell, Scripting
6 Comments
LTI/ZTI PowerShell: Using Modules in deployment scripts
A great feature of PowerShell is the use of Modules. You use modules to store reusable code such as functions as an alternate to storing hefty code at the start of your scripts. MDT supports the use of modules in … Continue reading
Posted in MDT 2010, MDT 2012, PowerShell, Scripting
Tagged ConfigMgr, Microsoft Deployment Toolkit, PowerShell, Scripting
Leave a comment