Wednesday, June 22, 2016

Adding a delay to MDT 2013 task sequence

To add a delay to a task sequence, in cases where you need to wait for the network to start before continuing.


In the deployment share , scripts folder edit the Litetouch.wsf script.  Add the Bolded part, value is in ms ( 5000ms = 5 seconds )


Function ValidateDeployRootWithRecovery
  Dim sARF
  Dim sNetworkErrorHint
  DIm iRetVal
  Dim sLTISuspend
  'Delay wait for DHCP  
  wscript.sleep 5000
  If oUtility.ValidateConnectionEx(oEnvironment.Item("DeployRoot"), True) = Success then
   ValidateDeployRootWithRecovery = SUCCESS
   exit function
  End if

No comments:

Post a Comment