Hi all,
i have found a solution without need domain credentials. If you have SCCM2012 with WinPE 5.0 or above, windows time service is integreted in WinPE. Follow the steps to configure time service:
1. Mount your WinPE
2. Copy w32tm.exe from a running operating system to Windows\system32 in your WinPE
3. Copy w32t.exe.mui from a running operating system to Windows\system32\en-US in your WinPE
4. Modify time service registry settings in WinPE. Load
[HKEY_LOCAL_MACHINE\WinPE\ControlSet001\Services\W32Time\Config] "MaxPosPhaseCorrection"=dword:ffffffff "MaxNegPhaseCorrection"=dword:ffffffff
5. if you want to have correct time, modiffy timezone settings in WinPE:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\WinPE\ControlSet001\Control\TimeZoneInformation] "DaylightBias"=dword:ffffffc4 "DaylightName"="@tzres.dll,-321" "StandardStart"=hex:00,00,0a,00,05,00,03,00,00,00,00,00,00,00,00,00 "StandardBias"=dword:00000000 "StandardName"="@tzres.dll,-322" "Bias"=dword:ffffffc4 "DaylightStart"=hex:00,00,03,00,05,00,02,00,00,00,00,00,00,00,00,00 "TimeZoneKeyName"="W. Europe Standard Time" "DynamicDaylightTimeDisabled"=dword:00000000
6. Unmount your WinPE
7. Create a script (Batch, Powershell, VBScript) with following commands:
net.exe start w32time
w32tm.exe /config /manualpeerlist:yourntpserver /syncfromflags:MANUAL /update
net.exe stop w32time
net.exe start w32time
Wait for 20 seconds
8. configure your script as prestaged command
Thats it !