Re: Strange Error...
- From: "asdf" <asdf@xxxxxxxx>
- Date: Sun, 11 Mar 2007 06:37:59 -0400
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@xxxxxxxxxxxxxxxxxxxxxxxHi 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.
.
- Prev by Date: Re: Day light savings time
- Next by Date: Re: Converting a date From US format (MM-DD-YY) to UK format (DD-MM-YY) or Vice-versa
- Previous by thread: Day light savings time
- Next by thread: Re: DOS Batch: MOVE command return 0 when file not moved
- Index(es):