Lately I have found myself adding allot of pauses into Task Sequences for some buggy applications. It seems to be allot more prevalent in SCCM 2012 SP1 and Windows 7 Task Sequences.
Anyhow for whatever reason you need to create a pause in a Task Sequence (Sophos is an application that comes to mind) here is the steps:
1. Create a 'Run Command Line' step in the task sequence.
2. Add the following PowerShell command to the command line field in the new step:
powershell.exe -executionpolicy bypass -command "Start-Sleep -s 120"
Note: -s is used to specify the number of seconds to pause for. -m switch can be used however this is milliseconds NOT minutes :)
Happy Task Sequencing!
All things System Center, Private Cloud & Hybrid Cloud etc.
Showing posts with label PowerShell. Show all posts
Showing posts with label PowerShell. Show all posts
Wednesday, September 25, 2013
Thursday, August 29, 2013
SCCM 2012 SP1 Prerequisites - PowerShell Script
For those
of you who have done a SCCM 2012 SP1 install would know it can be quite
frustrating making sure all the prerequisites are in place before kicking off
an install.
I
particularly struggle with the Application Catalogue pre-requisites.
I came
across this great script that will install the required prerequisites for any
role and site server combo:
Here are
the different combinations, as you can see almost every prerequisite scenario
is covered off:
.\Install-SCCMPrereqs.ps1
-SiteType CAS
.\Install-SCCMPrereqs.ps1
-SiteType Primary
.\Install-SCCMPrereqs.ps1
-SiteType Secondary
.\Install-SCCMPrereqs.ps1
-SystemRole ApplicationCatalog
.\Install-SCCMPrereqs.ps1
-ExtendSchema
.\Install-SCCMPrereqs.ps1
-InstallWADK
.\Install-SCCMPrereqs.ps1
-InstallWSUS
Subscribe to:
Posts (Atom)
