Error "System error 5 has occurred" trying to set the system time using NET TIME on XP
Gurus,
I am NOT an administrator of my Windows XP SP3 workstation. BUT I do have
rights to change the system time. I am able to set the time on the machine
causing the Control Panel Date/Time applet. But if I try to set it using
the command line, I get an error. Any ideas why?
C:\>net time \\dim8300 /set /y
System error 5 has occurred.
Access is denied.
Re: Error "System error 5 has occurred" trying to set the system time using NET TIME on XP
My case is similar but:
when I put on Windows XP computer commmad:
net time \\another_comp /set /yes
it works.
But, if I put the same command over 'at' command:
at 10:45 /INTERACTIVE cmd /k "net time \\another_comp /set /yes"
when the execution starts, it says:
System error 5 has occured
Access id Denied
I both cases I put command as a user with administrator privileges.
Any suggestions?
Re: Error "System error 5 has occurred" trying to set the system time using NET TIME on XP
«at» runs commands under «NT AUTHORITY\SYSTEM» account (until you change this behavior). You have to use
at 10:45 /INTERACTIVE cmd /k "net time \\another_comp /set /yes /user:<username> <password>"