troubleshooting Question

Remote shutdown using runas and shutdown.exe

Avatar of dnack
dnack asked on
Windows Server 2003
7 Comments1 Solution4294 ViewsLast Modified:
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?

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 7 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 7 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros