Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Notifications
Login / Register
Community
Community
Notifications
close
  • Forums
  • Knowledge Center
  • Events & Webinars
  • Ideas
  • Blogs
Help
Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Login / Register
Sustainability
Sustainability

Join our "Ask Me About" community webinar on May 20th at 9 AM CET and 5 PM CET to explore cybersecurity and monitoring for Data Center and edge IT. Learn about market trends, cutting-edge technologies, and best practices from industry experts.
Register and secure your Critical IT infrastructure

Cant get command file to run psshutdown to shutdown remote computer

APC UPS Data Center & Enterprise Solutions Forum

Schneider, APC support forum to share knowledge about installation and configuration for Data Center and Business Power UPSs, Accessories, Software, Services.

cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Home
  • Schneider Electric Community
  • APC UPS, Critical Power, Cooling and Racks
  • APC UPS Data Center & Enterprise Solutions Forum
  • Cant get command file to run psshutdown to shutdown remote computer
Options
  • Subscribe to RSS Feed
  • Mark Topic as New
  • Mark Topic as Read
  • Float this Topic for Current User
  • Bookmark
  • Subscribe
  • Mute
  • Printer Friendly Page
Invite a Co-worker
Send a co-worker an invite to the portal.Just enter their email address and we'll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send Invite Cancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Send New Invite Close
Top Experts
User Count
BillP
Administrator BillP Administrator
5060
voidstar_apc
Janeway voidstar_apc
196
Erasmus_apc
Sisko Erasmus_apc
112
TheNotoriousKMP_apc
Sisko TheNotoriousKMP_apc
108
View All

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Solved Go to Solution
Back to APC UPS Data Center & Enterprise Solutions Forum
Solved
BillP
Administrator BillP Administrator
Administrator

Posted: ‎2021-06-28 07:26 AM . Last Modified: ‎2024-03-18 12:27 AM

0 Likes
7
2822
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2021-06-28 07:26 AM . Last Modified: ‎2024-03-18 12:27 AM

Cant get command file to run psshutdown to shutdown remote computer

I know this question has been asked a bunch but I have a different scenario and it's not working...

Ok so I have a Smart-UPS SRT 2200.  I have a computer(windows 7 enterprise) that has the APC Powerchute Business Agent, Server, and console on it.  The computer is connected to the UPS via USB and is not on a domain.

I have the agent and server services set to interact with the desktop.

Now, I am trying to have the UPS execute a command file to shut down the target machine("system1") that is running Windows 7 and is not on a domain.  In the command file I have the following command:

@START "" "c:\blah blah\cmdfile\psshutdown.exe" -t 1 -k -f -u username -p password \\192.168.1.5

If I run the command file myself, it works, but if I hit test through the web interface of the UPS it doesn't work and since there is no user feedback I don't know why.

Other things to note... I can't install anything on the target machine because it boots from an image everytime that I cannot change.  The username and password I am using is a local account on the target machine.

Any thoughts would be greatly appreciated

Labels
  • Labels:
  • Smart-UPS & Symmetra LX | RM
Reply

Link copied. Please paste this link to share this article on your social media post.

  • All forum topics
  • Previous Topic
  • Next Topic

Accepted Solutions
BillP
Administrator BillP Administrator
Administrator

Posted: ‎2021-06-28 07:26 AM . Last Modified: ‎2024-03-18 12:27 AM

0 Likes
0
2821
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2021-06-28 07:26 AM . Last Modified: ‎2024-03-18 12:27 AM

On 2/12/2018 5:27 PM, voidstar said:

My guess is your copy of PowerChute is running as a user that does not have permission to shut down the remote system. This is described in FA159586 (link) -- see the red note -- and shows how to change the user PowerChute runs as.

Yep, I am aware of that, however, still a no go.  Since the target machine is not on the domain, and the controlling computer is, I created on the controlling computer a local account with the same user name and password as the account on the target machine.  It still did not work.

See Answer In Context

Reply

Link copied. Please paste this link to share this article on your social media post.

Replies 7
Anonymous user
Not applicable

Posted: ‎2021-06-28 07:26 AM . Last Modified: ‎2024-03-18 12:27 AM

0 Likes
0
2821
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2021-06-28 07:26 AM . Last Modified: ‎2024-03-18 12:27 AM

I have a similar problem: 2 PCs supplied by Smart-UPS X 3000, on one Power Chute software is installed. Testing a batch file like e.g.

"shutdown /m \\PC2_Name /r" on the web interface of the UPS has no affect. Running the same batch file by starting it from the Admin-Account directly works fine. I also tried to configure the pbeagent.exe service in order to give it full permissions and checked "run as Administrator". What I found on one of the threads was a setting to allow desktop interference, but I didn't find that setting. I am using a Windows 10 Pro OS.

I hope someone can help.

Regards,

Brummi 

Reply

Link copied. Please paste this link to share this article on your social media post.

BillP
Administrator BillP Administrator
Administrator

Posted: ‎2021-06-28 07:26 AM . Last Modified: ‎2024-03-18 12:27 AM

0 Likes
0
2821
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2021-06-28 07:26 AM . Last Modified: ‎2024-03-18 12:27 AM

Hi,

In earlier versions of Windows all services run in Session 0 along with applications. This situation poses a security risk. In Windows Vista, and later versions of Windows, the operating system isolates services in Session 0 and runs applications in other sessions. PowerChute Business Edition Agent is run in Session 0 so if a command file launches a .exe that .exe will be launched in Session 0 and not visible to the logged in users. To verify that the .exe has launched open Task Manager and review the list of Processes running. More information on Windows Session can be found at http://blogs.technet.com/b/askperf/archive/2007/04/27/application-compatibility-session-0-isolation...

Other users have found that creating a task that Windows will run when powering down allows for remote system shutdown. 

See forum post http://forums.apc.com/spaces/7/ups-management-devices-powerchute-software/forums/general/3033/pcb-sh...

Reply

Link copied. Please paste this link to share this article on your social media post.

BillP
Administrator BillP Administrator
Administrator

Posted: ‎2021-06-28 07:26 AM . Last Modified: ‎2024-03-18 12:27 AM

0 Likes
0
2821
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2021-06-28 07:26 AM . Last Modified: ‎2024-03-18 12:27 AM

Further information...

My command file now runs the following:

@start "" /B "C:\blah blah\cmdfiles\psshutdown.exe" -t 1 -k -f -u username -p password \\192.168.1.5 1>c:\mylogs\stderr.txt 2>c:\mylogs\stdout.txt

In the stdout.txt log it says:

-----------------

Access is denied.

Connecting to 192.168.1.5...       Couldn't access 192.168.1.5:

If 192.168.1.5 is already performing a shutdown operation you must abort it before issuing a different command.

-----------------

That doesn't really answer anything to me but at least I know that the APC service seems to be running the command correctly.

Reply

Link copied. Please paste this link to share this article on your social media post.

BillP
Administrator BillP Administrator
Administrator

Posted: ‎2021-06-28 07:26 AM . Last Modified: ‎2024-03-18 12:27 AM

0 Likes
0
2821
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2021-06-28 07:26 AM . Last Modified: ‎2024-03-18 12:27 AM

Your first link which I had already read doesn't really help me figure out what to do to fix the issue.

I had to get my mind outside the box on the task scheduler idea which at this time looks like it might be a work around.  It still doesn't address how to get the APC agent to be able to do it itself which makes it a bit less involved to get set up.

So I set up a task that runs a batch file that does:

"C:\blah blah\cmdfiles\psshutdown.exe" -t 1 -k -f -u username -p password \\192.168.1.5

Then I have APC running a .cmd file that does:

@start "" c:\windows\system32\schtasks.exe /RUN /I /TN "ShutdownTest"

Note: It didn't work for an unknown reason unless I had the /I flag.

So this all seems to work but I shouldn't have to do it this way in the first place and would still like to know how to get it to work with the APC agent alone.

Reply

Link copied. Please paste this link to share this article on your social media post.

voidstar_apc
Janeway voidstar_apc
Janeway

Posted: ‎2021-06-28 07:26 AM . Last Modified: ‎2024-03-18 12:27 AM

0 Likes
0
2821
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2021-06-28 07:26 AM . Last Modified: ‎2024-03-18 12:27 AM

My guess is your copy of PowerChute is running as a user that does not have permission to shut down the remote system. This is described in FA159586 (link) -- see the red note -- and shows how to change the user PowerChute runs as.

Reply

Link copied. Please paste this link to share this article on your social media post.

Anonymous user
Not applicable

Posted: ‎2021-06-28 07:26 AM . Last Modified: ‎2024-03-18 12:27 AM

0 Likes
0
2821
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2021-06-28 07:26 AM . Last Modified: ‎2024-03-18 12:27 AM

Voidstar you made my day! That was the solution! Thanks a lot.

Reply

Link copied. Please paste this link to share this article on your social media post.

BillP
Administrator BillP Administrator
Administrator

Posted: ‎2021-06-28 07:26 AM . Last Modified: ‎2024-03-18 12:27 AM

0 Likes
0
2822
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2021-06-28 07:26 AM . Last Modified: ‎2024-03-18 12:27 AM

On 2/12/2018 5:27 PM, voidstar said:

My guess is your copy of PowerChute is running as a user that does not have permission to shut down the remote system. This is described in FA159586 (link) -- see the red note -- and shows how to change the user PowerChute runs as.

Yep, I am aware of that, however, still a no go.  Since the target machine is not on the domain, and the controlling computer is, I created on the controlling computer a local account with the same user name and password as the account on the target machine.  It still did not work.

Reply

Link copied. Please paste this link to share this article on your social media post.

Preview Exit Preview

never-displayed

You must be signed in to add attachments

never-displayed

 
To The Top!

Forums

  • APC UPS Data Center Backup Solutions
  • EcoStruxure IT
  • EcoStruxure Geo SCADA Expert
  • Metering & Power Quality
  • Schneider Electric Wiser

Knowledge Center

Events & webinars

Ideas

Blogs

Get Started

  • Ask the Community
  • Community Guidelines
  • Community User Guide
  • How-To & Best Practice
  • Experts Leaderboard
  • Contact Support
Brand-Logo
Subscribing is a smart move!
You can subscribe to this board after you log in or create your free account.
Forum-Icon

Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.

Register today for FREE

Register Now

Already have an account? Login

Terms & Conditions Privacy Notice Change your Cookie Settings © 2025 Schneider Electric

This is a heading

With achievable small steps, users progress and continually feel satisfaction in task accomplishment.

Usetiful Onboarding Checklist remembers the progress of every user, allowing them to take bite-sized journeys and continue where they left.

of