One UPS shutdown 3 PC's

Caporegime
Joined
24 Dec 2005
Posts
40,150
Location
Autonomy
I have my backup server connected to a APC UPS which is running Powerchute Personnel addition.

Its set to gracefully shut down when that battery has hit 90 %

Is there a way of creating a batch file that can be run on this Backup server to shutdown the other two remote PC's on the lan on a UPS but but with broken USB connectivity when the backup server battery reaches 90% ?

I found out today that the other APC UPS the USB has broken since installing a new OS on one of the said PC.

I know the easiest option is just to get another two UPS's for these two machines..But I've not long changed the batteries in it.:(
 
I've created a batch file but its not working

shutdown –m \\computer1 –s -f -t 0
shutdown –m \\computer2 –s -f -t 0

I have this saved on the desktop of the backup server and when I run it the two other machines dont shutdwon.

Even tough Im looged in as the same user with local admin rights and the same password on all 3 PC's

If I can get this working I can then use shutter to open this batch file when the battery on the backup server reaches 90%

It cant be this hard can it? :o
 
Try the suggestion in this link

I don't think just having the same username and password on each of the machines is enough for what you're trying to do, you have to specify the credentials when you connect.
 
I think Iv'e done it...It invloves adding a registry value along with having the right permissions.

http://www.online-tech-tips.com/computer-tips/remote-shutdown-command/

Step 3: Lastly, if you are trying to target a Windows Vista, Windows 7 or Windows 8 computer remotely, you will need to modify the registry. Unless you do this, it simply won’t work. You will only get the Access is Denied message no matter what.

Open the registry editor by going to Start and typing in regedit. Now navigate to the following key:

HKEY_LOCAL_MACHINE – SOFTWARE – Microsoft – Windows – CurrentVersion – Policies – System

Right-click on System on the left hand side and choose New – DWORD (32-bit) Value.

new registry key

A new value will pop up at the bottom in the right window and the text will be highlighted. Change the name to LocalAccountTokenFilterPolicy and press Enter. Now double-click on it and change the value from 0 to 1.

local account token filter policy

Click OK and close out of the registry. You don’t need to restart the computer as the changes should take effect immediately. This registry key is needed because in Windows Vista and higher, an administrator account is stripped of its credentials when connecting remotely. This will allow the account to remain with administrative privileges.

You’ll also read on other sites to start the Remote Registry service if that’s not running and to edit the local security policy by adding the Everyone group to Force shutdown from a remote system policy setting. In my testing on Windows 7 and 8, there was no need to complete these tasks and you really shouldn’t because it opens up your system to potential hackers.

Obviously, you’ll also need to know all the names of the other computers on the network. You can do that by going to Control Panel and then clicking on System.
 
Back
Top Bottom