New
#1
synchronizing time with w32tm.exe
I run the following script, %windir%\system32\mysync.bat, in my startup menu.
What I want to do is resync the clock everytime I start up my desktop computer.
REM mysync.bat
REM synchronizes the clock
%windir%\system32\sc.exe start w32time
%windir%\system32\w32tm.exe /resync
It doesn't work. Why?
If I make a shortcut to mysync.bat and click on it
it works if I run it as administrator, but not otherwise.
How can I make the above script run with administrative privileges?