tazdev Posted February 23, 2005 Posted February 23, 2005 I have about 100 PC's that have user's being stubborn. They won't logoff or reboot the PC at night. Any way I can get AutoIt to do it from my desk? Assume I have admin rights on the PC's. ???
Helge Posted February 23, 2005 Posted February 23, 2005 You could make it so that the computers would automatically reboot at a specified time.OR, you could use Au3xtra.dll to..as you say...do a forced remote logoff or reboot.If you don't have to use a AutoIt-script you could check out NetOp School which works pretty well.Good luck anyway.Well, now I'm off to bed ! Cya ! -Helge-
tazdev Posted February 23, 2005 Author Posted February 23, 2005 I will check into the Au3xtra.dll. I need to search for the info on it too I remeber seeing it in passing. Larry made it I think. I know I could run an app like Wizmo and reboot it but I need a utility that will let me run an application from my PC on a remote PC. 100 machines is just too many to go walking around to. grrr JUST REBOOT PEOPLE gosh!
this-is-me Posted February 23, 2005 Posted February 23, 2005 It's easy with pstool's psshutdown... sysinternals.com Who else would I be?
Flashz Posted February 23, 2005 Posted February 23, 2005 It's easy with pstool's psshutdown...sysinternals.com<{POST_SNAPBACK}>Or you can simply type shutdown -i from the cmd window. This will bring up a gui which is very easy to use. Or you could execute it directly from the command line. Type shutdown/? for more help.
this-is-me Posted February 23, 2005 Posted February 23, 2005 That works too, but psshutdown is a completely command-line operated program. Easy to call without needing a gui. Who else would I be?
tazdev Posted February 23, 2005 Author Posted February 23, 2005 I am looking for something I can run from My PC to shutdown another PC. If I can get that then I can set up Autoit to run the command for every PC in a text file that I can generate from a profile backup script I wrote.
RocTx Posted February 23, 2005 Posted February 23, 2005 This command will restart a computer remotely. From your command prompt type: Shutdown -r -m \\ComputerName -t 05 -r = Reboot, -m = Computer name, -t 05 = warns of a reboot in 5 seconds. Environment: Domain, Active Directory, Domain Admin rights, Windows 2000, XP Works every time. RocTx
tazdev Posted February 23, 2005 Author Posted February 23, 2005 This command will restart a computer remotely. From your command prompt type: Shutdown -r -m \\ComputerName -t 05-r = Reboot, -m = Computer name, -t 05 = warns of a reboot in 5 seconds.Environment: Domain, Active Directory, Domain Admin rights, Windows 2000, XPWorks every time.RocTxIs this something in the Windows 2000 Resource Kit? Or another application?
SlimShady Posted February 23, 2005 Posted February 23, 2005 You could copy shutdown.exe from a Windows XP workstation and try it on Windows 2000. A colleague suggested me that once but never tried it.
tazdev Posted February 23, 2005 Author Posted February 23, 2005 You could copy shutdown.exe from a Windows XP workstation and try it on Windows 2000.A colleague suggested me that once but never tried it.<{POST_SNAPBACK}>I am gonna try that.
this-is-me Posted February 23, 2005 Posted February 23, 2005 Just to let everyone know, one of the main reasons I suggested psshutdown is that it can run with alternate credentials. That is useful for the times when you need to shutdown a remote computer from a system that has a non-domain-admin currently logged in. Who else would I be?
afsar Posted August 19, 2005 Posted August 19, 2005 Or you can simply type shutdown -i from the cmd window. This will bring up a gui which is very easy to use. Or you could execute it directly from the command line. Type shutdown/? for more help.<{POST_SNAPBACK}>this is something personal for documentation to operate with remote pc's which tool is better in PsExec.exe and BeyondExec.exe from www.sysinternals.com and www.beyondlogic.comthanx for help
afsar Posted August 19, 2005 Posted August 19, 2005 It's easy with pstool's psshutdown...sysinternals.com<{POST_SNAPBACK}>this is something personal for documentation to operate with remote pc's which tool is better in PsExec.exe and BeyondExec.exe from www.sysinternals.com and www.beyondlogic.comthanx for help
fhanna Posted February 10, 2007 Posted February 10, 2007 We have a scheduled task running at 3am to powerdown our pcs. This is accomplished via a net view command to create a text file of powered on pcs then utilizing an Autoit3 script loading the text file into an array thus issuing a shutdown command to each pc. The script will power down the pc if the screensaver is not active. We reboot all servers at 3:15am with no problem. It appears to be an issue with the screensaver active as I can go to several pcs, press a key to get off the screensaver, then execute the procedure. These pcs will powerdown. Does anyone have any ideas? This issue imvoles WIndows XP SP2. The task has administrative rights. We would like to keep this method and not utilize another method. This was working fully at 1 time. Thanking you in advance.
sshrum Posted February 10, 2007 Posted February 10, 2007 Another way is just give everyone the Blaster virus.... Your PC is being shutdown by NT_AUTHORITY!!!! Awww those were the days. (I'm j/k'ing, don't) Sean Shrum :: http://www.shrum.net All my published AU3-based apps and utilities 'Make it idiot-proof, and someone will make a better idiot'
fhanna Posted February 17, 2007 Posted February 17, 2007 Found my solution. Had to place the -f (force) paramter at the end of the shutdown. The pcs would power off without this parameter if in the locked stage as long as the screensaver was not on; has to have the -f if the screensaver is on and account is locked; so if both situations pcs were locked then why the screensaver issue.
MPHillier Posted April 5, 2007 Posted April 5, 2007 (edited) I manage about 800 desktops and 140 latops for a High School. I know your pain. I use a combination of tools. Pstools, Advanced Ip scanner, land spy, task manager, VBS scripts, Bat files, and Remote Desktop to do most my remote work. I just found out about Autoit and in two days of playing with it I've already started to implement package installs and desktop monitoring. Thanks for the site. Edited April 5, 2007 by michaelhillier I Break and Fix things... If the surf is up I'm outta here.....
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now