Re: Strange Error...

Tech-Archive recommends: Speed Up your PC by fixing your registry



Yeah, show 'em.

What are we, mushroom pluggers ?





"NY Steve" <j@xxx> wrote in message news:OxReB2WHHHA.4068@xxxxxxxxxxxxxxxxxxxxxxx
more importantly, what kind of "network" are you talking about? AD clients automatically sync time with the PDC emulator DC





"Kim Bracknell" <kbracknell@xxxxxxxxxxxxx> wrote in message news:eG43c4DGHHA.1264@xxxxxxxxxxxxxxxxxxxxxxx
Hi there,
All workstations run a logon script at login. - no problem. I am adding a few lines to use 'net time' commands to sync the time with a local server. The 'net time' commands work fine when run from cmd.exe by standard users. I can run the script as Administrator both via the cmd.exe line and login script. When any standard user runs it bombs at the line indicated below (error:0xFFFFFFFF, code:FFFFFFFF):

-----------------------------------------------------
Dim WshNetwork, oDrives, i, fso, folder, oSH, nRetCode, cmd, cmdall, pm1, pm2, BackupFolder, nReturnCode
....
'-- Setting objects --
Set WshNetwork = WScript.CreateObject("WScript.Network")
Set oSH = WScript.CreateObject("WScript.Shell")
...
nReturnCode = oSH.Run("net time /domain:" & wshNetwork.UserDomain & " /set /yes", 0, TRUE) <<<--- Bombs here!!
..
-----------------------------------------------------
What do I need to do to get this running bar giving everyone Admin credentials?

Your assistance is very much appreciated.
Kim.




.