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
LTI/ZTI PowerShell: Exit codes
When you run a script in your deployments, it’s good practice to let MDT/SCCM know how the script has ended. This will determine how your task sequence proceeds. You do this by exiting the script with a return code. I’ve … Continue reading
Posted in MDT 2010, MDT 2012, PowerShell, SCCM, Scripting
Tagged Microsoft Deployment Toolkit, PowerShell, SCCM, Scripting
Leave a comment
LTI/ZTI PowerShell: Debugging Scripts (Part 3 of 3)
Testings results with a test matrix My Rename-Computer script is in production and I’ve made some major changes to it so it’s time for some major testing. It’s important when testing your scripts to understand and document what your expected … Continue reading
Posted in MDT 2010, MDT 2012, PowerShell, SCCM, Scripting
Tagged ConfigMgr, MDT, Microsoft Deployment Toolkit, PowerShell, SCCM, Scripting
Leave a comment
LTI/ZTI PowerShell: Debugging Scripts (Part 2 of 3)
Testing variables with the ZTIUtility module My Rename-Computer script worked great on a computer in a workgroup environment. But now, I have a new server that I want to rename before I join it to a domain. I’ve worked out … Continue reading
Posted in MDT 2010, MDT 2012, PowerShell, SCCM, Scripting
Tagged ConfigMgr, MDT, Microsoft Deployment Toolkit, PowerShell, SCCM, Scripting
Leave a comment
LTI/ZTI PowerShell: Debugging Scripts (Part 1 of 3)
Adding new functions and features to a perfectly good script is common practice. One example is my evolving Rename-Computer script. I want to modify the way it works (again) but I don’t want to rename my computer and join a … Continue reading
Posted in MDT 2010, MDT 2012, PowerShell, SCCM, Scripting
Tagged ConfigMgr, MDT, Microsoft Deployment Toolkit, PowerShell, SCCM, Scripting
2 Comments
LTI/ZTI PowerShell: Testing Script Parameters
Before running a parameterised script in your deployments, it’s important to test that the tab completion is working. To do this, open a PowerShell console and type the script name and a hyphen then press the {tab} key. Your script … Continue reading
Posted in MDT 2010, MDT 2012, PowerShell, SCCM, Scripting
Tagged ConfigMgr, Microsoft Deployment Toolkit, PowerShell, SCCM, Scripting
Leave a comment
LTI/ZTI PowerShell: Deployment Script logging
The task sequence step “Run PowerShell Script” has some cool features. One of which is the way it handles information returned from the Write-Host, Write-Warning and Write-Error cmdlets. MDT collects Information(Write-Host), Warnings(Write-Warning) and Errors(Write-Error) returned from a cmdlet in a … Continue reading
Posted in MDT 2010, MDT 2012, PowerShell, SCCM, Scripting
Tagged Microsoft Deployment Toolkit, PowerShell, SCCM, Scripting
2 Comments
LTI/ZTI PowerShell: Comment Based Help
I recommend using PowerShell comment based help to document your deployment scripts as described on Technet in about_Comment_Based_Help. This makes your scripts self documenting so colleagues can see who wrote it, what it does and examples and parameter usage. Below, … Continue reading
Posted in Deployment, MDT 2010, MDT 2012, PowerShell, SCCM, Scripting
Tagged MDT Scripting, Microsoft Deployment Toolkit, PowerShell, SCCM, Scripting
Leave a comment
LTI/ZTI PowerShell: Using PowerShell in Task Sequences
Now that we’re in the golden age of PowerShell many administrators will want to take advantage of its features in their deployments. With Lite/Zero-Touch you can do this by using the Run PowerShell Script task sequence step. The great thing … Continue reading
Posted in Deployment, MDT 2010, MDT 2012, PowerShell, SCCM, Scripting
Tagged Deployment, Lite Touch, Microsoft Deployment Toolkit, Zero Touch
5 Comments
Powershell: Windows Management Framework 3.0 is now available
Microsoft Windows Management Framework 3.0 is now available for download from the Microsoft Download Centre. This is the download that includes the finished version of PowerShell 3.0. The OS versions supported and packages are: Windows 7 Service Pack 1 64-bit … Continue reading
MDT 2012: Adding PowerShell capability to Lite-Touch boot images
With the new Windows Preinstallation Environment (Windows PE) 4.0 it is now possible to add PowerShell support to your sessions. It is even easier to add it to your LiteTouchPE.wim images using MDT. Here’s the steps: First, download and install … Continue reading
Posted in MDT 2012, PowerShell
Tagged Deployment, Lite Touch, Windows 8, Windows Server 2012, WinPE
1 Comment