I want to write a script that I can send out to 50 pc's in my domain. None of the users have any rights on the PC's I have tried the shutdown command but it does not run when the users are logged on. Any help will be appreciated.
if all you are trying to do is write a script to reboot or shutdown those fifty machines, i dont understand what users have to do with it. If you have an account that has the right on each remote machines to reboot the wks, then you should be able to reboot them with the 'shutdown.exe' file. I use 'shutdown.exe' from the NT Resource kit, (I just like the syntax better than the newer versions, and I issue the command like such:
shutdown \\machine /Y /R /C
where /Y = Yes
where /R = Reboot
where /C = means automatical close any running applications
Well this is the issue. I have to send this script out to all the PC's and they are not in the same geographic area. They have to be able to reboot once a month with no user interaction whatsoever. The only account on these machines is the local administrator. I have used the AT command to schedule this but it does not run when the users are logged on. I am now trying the schtasks command to see if this works. Sorry that I did not make it more clear.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.