cjwallace
-
Total Posts
:
549
- Scores: 0
-
Reward points
:
0
- Joined: 3/5/2005
- Location: United Kingdom
-
Status: offline
|
net time
Saturday, March 05, 2005 8:51 AM
( permalink)
Hi Guys, does anyone know how i could use the net time command in a vbscript? net time \\homer /set /yes Many thanks
|
|
|
|
token
-
Total Posts
:
1917
- Scores: 0
-
Reward points
:
0
- Joined: 1/14/2005
- Location:
-
Status: offline
|
Re: net time
Saturday, March 05, 2005 9:13 AM
( permalink)
Try this: set shell = createobject("wscript.shell") shell.run("net time \\homer /set /yes")
|
|
|
|
tnoonan
-
Total Posts
:
364
- Scores: 0
-
Reward points
:
0
- Joined: 12/14/2004
- Location:
-
Status: offline
|
Re: net time
Saturday, March 05, 2005 9:18 AM
( permalink)
Set oShell = CreateObject("Wscript.shell") Set objWshScriptExec = oShell.Exec("net time \\homer /set /yes")
|
|
|
|
cjwallace
-
Total Posts
:
549
- Scores: 0
-
Reward points
:
0
- Joined: 3/5/2005
- Location: United Kingdom
-
Status: offline
|
Re: net time
Sunday, March 06, 2005 2:10 AM
( permalink)
Thanks guys for you help. When i get into work monday i will add it to my script and try it out Really trying to learn this stuff and so far this site has been great
|
|
|
|
token
-
Total Posts
:
1917
- Scores: 0
-
Reward points
:
0
- Joined: 1/14/2005
- Location:
-
Status: offline
|
Re: net time
Sunday, March 06, 2005 7:36 AM
( permalink)
We are all here to learn
|
|
|
|
Snipah
-
Total Posts
:
1339
- Scores: 8
-
Reward points
:
0
- Joined: 11/1/2004
- Location: Scotland
-
Status: offline
|
Re: net time
Monday, March 07, 2005 4:41 AM
( permalink)
We synch up with the DC, way easier, hehe
|
|
|
|
token
-
Total Posts
:
1917
- Scores: 0
-
Reward points
:
0
- Joined: 1/14/2005
- Location:
-
Status: offline
|
Re: net time
Monday, March 07, 2005 6:38 AM
( permalink)
Isn't that the default behavior since 2000 ? hm...maybe I miss something :\
|
|
|
|