To sync the workstation time with the PDC, the admin will need to copy or download the small batch file FixTime.bat from below. Also, he or she will need the utility PsExec.exe from Sysinternals.com (direct download link for PSExec.exe). The admin will also require a temp Domain Admin account which can be disabled when not in use.
<< Back to SMS Scripts list.
The contents of the batch file are as follows:
===FixTime.bat=== @echo off If .%1==. goto syntax :syntax echo. echo. echo % Invaild Argument % echo. echo. echo Syntax : echo Fixtime \\MachineName echo. echo. goto end rem rem Please replace with username of a Domain Admin Account. rem rem Please replace with password of the same account rem psexec %1 - u -p -d c:\winnt\system32\net time /domain: /set /y goto end :end ==========================
Disclaimer: We hope that the information in these pages is valuable to you. Your use of the information contained in these pages, however, is at your sole risk. All information on these pages is provided "as -is", without any warranty, whether express or implied, of its accuracy, completeness, fitness for a particular purpose, title or non-infringement, and none of the third-party products or information mentioned in the work are authored, recommended, supported or guaranteed by me. We shall not be liable for any damages you may sustain by using this information, whether direct, indirect, special, incidental or consequential, even if it has been advised of the possibility of such damages.