Jump to content

how do i shutdown certain machines on the network?


neil

Recommended Posts

heres the problem - currently at the end of each day, I get the grand job of running round the IT areas of where i work and manually shutting the machines off.

Then in the morning I do the same again only switching them on instead.

Our IT guru who runs the network has enabled Wake-on-LAN on all the machines but hasn't perfected it yet (read: it doesn't work).

I cannot install software (like PsShutdown) to the individual machines, but i can install it to my own machine.

Question - can PsShutdown (or similar) access networked PCs without it being installed on them, or anyone logged in on them?

My only thought is a command line or script i can use to access certain machines from my own, and remotely shut them down at the same time.

any ideas? my minds gone blank.

Link to comment
Share on other sites


Use this fine freeware:

Poweroff 3.0: A free shutdown utility

All actions can be done locally or on a remote pc (if they are running poweroff).

I hope your administrator will not blame you to install a less than 200 Kb exe on each box.

Install the program (in fact, you just have to copy the exe in %SystemRoot%\System32), create the service, save settings on each computer and uncheck "Visible in tray"

Link to comment
Share on other sites

Neil, you dont need to install psshutdown, you can run it remotely. Easiest way to accomplish your task is to create small batch for Win32_OperatingSystem, I can help you if you need... It will solve your problem with autoshutdown...

About WOL - it is not job for network specialist :) Only if you are talking about ip helper. Go and have a look at my blog, I posted about WOL pevious month...

Link to comment
Share on other sites

hmm. good app, but it still has to be installed to every remote pc as as service, and as i said, i don't have the permissions to install software or services on these machines - only my own.

Link to comment
Share on other sites

BTW if you want to shut down remote machine, you MUST have permission to do so! Try simple command

wmic /node:name_of_remote_pc os where cdname="name_of_remote_pc" call shutdown

If this command wont work for you, you dont have rights and there is no application that will help you (so you must speak with your administrator). If it will work for you, I will create small script, that will shutdown all your pcs

Link to comment
Share on other sites

Using the shutdown.exe program within XP does what you want, though only if your running XP on your machines, and then you can do from yours a batch command that will shutdown all PC's you call from it:

Usage: shutdown.exe [-i | -l | -s | -r | -a] [-f] [-m \\computername] [-t xx] [-c "comment"] [-d up:xx:yy]

       No args                 Display this message (same as -?)
       -i                      Display GUI interface, must be the first option
       -l                      Log off (cannot be used with -m option)
       -s                      Shutdown the computer
       -r                      Shutdown and restart the computer
       -a                      Abort a system shutdown
       -m \\computername       Remote computer to shutdown/restart/abort
       -t xx                   Set timeout for shutdown to xx seconds
       -c "comment"            Shutdown comment (maximum of 127 characters)
       -f                      Forces running applications to close without warning
       -d [u][p]:xx:yy         The reason code for the shutdown
                               u is the user code
                               p is a planned shutdown code
                               xx is the major reason code (positive integer less than 256)
                               yy is the minor reason code (positive integer less than 65536)

Link to comment
Share on other sites

BTW if you want to shut down remote machine, you MUST have permission to do so! Try simple command

wmic /node:name_of_remote_pc os where cdname="name_of_remote_pc" call shutdown

If this command wont work for you, you dont have rights and there is no application that will help you (so you must speak with your administrator). If it will work for you, I will create small script, that will shutdown all your pcs

OK tested this with machine name of M11010 (for example)

Looks like i don't have permission - running the command I get:

ERROR:
Code = 0x8004100e
Description = Invalid namespace
Facility = WMI

am i missing something? do i need the domain too, or do i not have the permissions to do this?

Link to comment
Share on other sites

soulin: any chance you could have a pop at that script anyway? If i can't use it, maybe i can sweet talk our network guy to run it for me every night.

Link to comment
Share on other sites

as i said at the beginning, oioldman, i cannot use tools that need installing on remote pc's , and i've discovered i don't have access rights anyway, so its a moot point.

If i can get the rights from the admin, or talk him into running the script for me, that'll do fine - i'm just lazy and don't like running around at 5 oclock switching 100 machines off.

Link to comment
Share on other sites

nightly-reboot.bat

psshutdown.exe -r -f -c @nightly-reboot.txt

nightly-reboot.txt

machine1
machine2
machine3
...

Add this batch file to Scheduled Tasks (and use an account that has permissions to reboot/shutdown other computers on the domain.) Also make sure that psshutdown.exe is in the same directory or accessible in the system path.

Link to comment
Share on other sites

  • 2 weeks later...

Hi all, newbie here. Just joined to post a reply to this message. This seems to be a great forum. Anyway, I am a LAN admin and I use this piece of free software called Lanshutdown from Lantricks. It works really great. I use it a lot when pushing out new patches or for whatever reason. I can remotely shutdown, reboot... one pc, number of pcs at once. But of course you have to have Admin rights to do this. You can maybe "sweet talk" to those IT guys to save you from running around. I can't imagine to do it manually for 100 pcs everyday.

Here is the link. http://www.lantricks.com/lanshutdown/index_e.php

Link to comment
Share on other sites

Hi,

Apologies if this is a thread hijack:

I have a similar, simpler situation:

Just a 2 computer network; I am admin and only user of each.

I have guest account enabled on remote computer, passwords on both; can access files on each box from each, but I get a variation of "Access is Denied" when I try to remotely shutdown the guest.

I have tried

shutdown.exe

psshutdown

poweroff.exe

and perhaps one or two more; all with similarly worded access failures.

When I try to modify the guest's "User Rights Assignment | Shut down the system" setting, I can get it to list the other computer's name temporarily, but then get a message that it can't save the local policy database, and the entry doesn't survive reboot.

When I try to get User Rights Assignment to recognize "computername\Ken Vogt" as a user, it says that object can't be found. (Which I'm beginning to believe! :) )

Remote Desktop works to control the guest PC; but I need a simple batch file to remotely shut down in case of overheating, power failure, etc.

Any advice would be greatly appreciated.

Ken

Link to comment
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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...