RUNAS Command syntax in login script.
Posted on 2006-07-17
(NT4 Domain & DCs, Clients - NT4, W2K, XP (server used for time syncronisation > W2K))
I am trying to configure time syncronisation through login scripts. I have the following command in the login scripts at the moment;
net time \\servername /set /yes
This works fine, but only as administrator, and despite having changed Group Policy, the local settings still stops syncronisation with user permissions, (that's everyone but me).
Is it possible to use the RUNAS command to overcome this, such as;
runas /profile /user:domainname\administrator net time \\[server] /set /yes
Questions - Is the syntax correct? Would it work? When the login script ran, would it ask for admin's password?
I know I could answer such questions through testing, but the underline problem of incorrect time on clients machines are effecting other services, and needs to be resolved ASAP. I would appreciate your advice, Regards, David.