neil Posted May 18, 2005 Posted May 18, 2005 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.
Bilou_Gateux Posted May 18, 2005 Posted May 18, 2005 Use this fine freeware:Poweroff 3.0: A free shutdown utilityAll 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"
Martin Zugec Posted May 18, 2005 Posted May 18, 2005 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...
neil Posted May 18, 2005 Author Posted May 18, 2005 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.
Martin Zugec Posted May 18, 2005 Posted May 18, 2005 BTW if you want to shut down remote machine, you MUST have permission to do so! Try simple commandwmic /node:name_of_remote_pc os where cdname="name_of_remote_pc" call shutdownIf 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
oioldman Posted May 18, 2005 Posted May 18, 2005 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)
neil Posted May 19, 2005 Author Posted May 19, 2005 BTW if you want to shut down remote machine, you MUST have permission to do so! Try simple commandwmic /node:name_of_remote_pc os where cdname="name_of_remote_pc" call shutdownIf 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<{POST_SNAPBACK}>OK tested this with machine name of M11010 (for example)Looks like i don't have permission - running the command I get:ERROR:Code = 0x8004100eDescription = Invalid namespaceFacility = WMIam i missing something? do i need the domain too, or do i not have the permissions to do this?
neil Posted May 19, 2005 Author Posted May 19, 2005 further info - using oioldman's advice i tried the XP shutdown and was told 'Access is denied', so i guess i don't have the right privileges.
neil Posted May 19, 2005 Author Posted May 19, 2005 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.
oioldman Posted May 19, 2005 Posted May 19, 2005 There is another free product out there that does te same and mor as shutdown.Called PsShutdown and it's freeware available from http://www.sysinternal.comas part of the PSTools setFor info =>http://www.windowsitpro.com/Windows/Articl...4973/44973.html
neil Posted May 19, 2005 Author Posted May 19, 2005 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.
kyuuzo Posted May 19, 2005 Posted May 19, 2005 nightly-reboot.batpsshutdown.exe -r -f -c @nightly-reboot.txtnightly-reboot.txtmachine1machine2machine3...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.
Martin Zugec Posted May 20, 2005 Posted May 20, 2005 2Neil: In case you dont have permission, you cant shutdown pcs - ask your administrator a.) to give you permission to shutdown computers through GPb.) to run script for you using secondary logon, e.g. using scheduled tasks
timwater Posted May 31, 2005 Posted May 31, 2005 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
Ken Vogt Posted May 31, 2005 Posted May 31, 2005 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 triedshutdown.exepsshutdownpoweroff.exeand 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
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now