Re: restart end user workstations from remote



You're not bugging me. Don't worry about it.

Try replacing this line:

objWshShell.run "shutdown \\" & strHost & " -r -f -t 180"


With

objWshShell.run "c:\shutdown\shutdown \\" & strHost & " -r -f -t 180"


(assuming that your shutdown folder is at the root of C)

For testing, you could change it to this (to see what is going on):

objWshShell.run "c:\shutdown\shutdown \\" & strHost & " -r -f -t 180 >
c:\shutdown\debug.txt"


The above is, again, one line.

--
Paul Williams
Microsoft MVP - Windows Server - Directory Services
http://www.msresource.net | http://forums.msresource.net


.



Relevant Pages

  • Re: Those pesky Apache permissions (was Re: (kein Betreff))
    ... index2.html),but replacing it with a new version of the file works ... A WinSCP weirdness? ... ,only the root was the owner of that folder and root was the group owner.... ... Maybe the Apache website ...
    (RedHat)
  • Re: Newbie problems with X11, Xf86
    ... try this (as root): ... this line in if you installed iceWM: ... or this one if you installed KDE (again replacing any other lines): ...
    (freebsd-questions)
  • Re: Can someone explain this proof, please?
    ... then we get the same solution on replacing x by 1/x ... An easy way to see that f and g are reciprocal polynomials ... is to note that each zero z of f is a root of unity ... could have been proved first, ...
    (sci.math)
  • Re: 7b5, or 7#11?
    ... above the root! ... I think the philosphy is that: ... would have been replacing. ... So sus 2 and "add 2" would of course mean the same thing. ...
    (rec.music.theory)
  • Re: Malfunction indicator?
    ... Dunno if I should worry about this or just let ... Replacing an O2 Sensor is similar to replacing a spark plug, all you need a socket wrench. ...
    (alt.autos.toyota)