Category Archives: Scripting

PowerShell: Temporary Folders

I was looking through some old code and came across an alternate way to create a temporary folder using PowerShell(or .NET if you want to be picky). So, I needed to create a temporary folder and constructed this line of code. … Continue reading

Posted in Scripting, Uncategorized | Tagged , , | 2 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 , | Leave a comment

LTI/ZTI Scripting: Add computer to an AD Group

I’m currently doing some intense SCCM 2012 training so I’ve not been posting or in the forums recently. I’ve still been responding to emails though. I received an email from a reader earlier this week. He wanted to add the … Continue reading

Posted in MDT 2010, MDT 2012, SCCM, Scripting | Tagged , , , , | 24 Comments

LTI/ZTI Scripting: MDT Scripting Template

It’s back to VBScript today. I received an email from a reader last week. He had an issue with a deployment script. We thought it would be a good idea to share the solution. For me, a chance to review … Continue reading

Posted in MDT 2010, MDT 2012, SCCM, Scripting | Tagged , , , , | 3 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 , , , | 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 , , , | Leave a comment

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 , , , | Leave a comment