Jump to content
Sign in to follow this  
tazdev

Remote shutdown logoff or reboot

Recommended Posts

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.

???

Share this post


Link to post
Share on other sites

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 ! :lmao:

-Helge-

Share this post


Link to post
Share on other sites

I will check into the Au3xtra.dll. I need to search for the info on it too :lmao: 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!

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

That works too, but psshutdown is a completely command-line operated program. Easy to call without needing a gui.


Who else would I be?

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Is this something in the Windows 2000 Resource Kit? Or another application?

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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.com

thanx for help

Share this post


Link to post
Share on other sites

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.com

thanx for help

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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 by michaelhillier

I Break and Fix things... If the surf is up I'm outta here.....

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...