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

Thursday, June 9, 2016

Windows 7 : enable wireless connection before domain logon

Problem being laptops needing to logon before connecting to the wireless network, making it impossible for a domain user to logon.


Setup one laptop how you need, then check its WLAN profile name,


netsh wlan show profile


With that information, either create a registry entry on the laptop or add it to your Group Policy.


Registry Entry


HKLM\Software\Microsoft\Windows\CurrentVersion\Run


Create a String Value under the above key, name can be anything, value should be,
%comspec% /c netsh wlan connect name="WLAN PROFILE NAME"


Group Policy


Add to Computer Config > Preferences > Windows Settings > Registry