Hi currently i have a UPS that only support 1 computer. However the UPS software on this computer can perform to run script before shutting down when power failure. The first computer is a domain controller and the remote computer is a member server of the same domain.
I try to automate this script to shut down another computer when power failure.
the script run like this
shutdown.exe /s /f /m \\remotecomputer
When i double click this cmd file, it works. However when the real power failure occurs, the UPS software execute this cmd file and has a "acess denied" reply. It seem that the UPS software has no access right to shutdown another computer.
I try to use runas but i need to enter a password.
I also try using echo password | runas /user:domain\administrator script.cmd
I do not want to use a thrird party software. Any way out?