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

We Value Your Feedback!
Could you please spare a few minutes to share your thoughts on Cloud Connected vs On-Premise Services. Your feedback can help us shape the future of services.
Learn more about the survey or Click here to Launch the survey
Schneider Electric Services Innovation Team!

Unable to run script from PowerChute

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
  • Unable to run script from PowerChute
Options
  • 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
Teken
Spock Teken
111
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-30 07:43 AM . Last Modified: ‎2024-03-07 10:47 PM

0 Likes
8
1370
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • 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-30 07:43 AM . Last Modified: ‎2024-03-07 10:47 PM

Unable to run script from PowerChute

I have created a very simple command file and are trying to execute this in PowerChute.

@START C:\windows\system32
otepad.exe

In task manager I can see that notepad is started but runs in silent mode. No notpad window in showing up.

I have the same problem when trying to execute a .bat file through a command file. cmd.exe shows up in task manager, but nothing happens.

Anyone that can help?

Are running win xp 2003 server

Labels
  • Labels:
  • UPS Management Devices & PowerChute Software
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-30 07:43 AM . Last Modified: ‎2024-03-07 10:46 PM

0 Likes
0
1370
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • 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-30 07:43 AM . Last Modified: ‎2024-03-07 10:46 PM

interesting..

we have [this article here|http://nam-en.apc.com/cgi-bin/nam_en.cfg/php/enduser/std_adp.php?p_faqid=7712] not sure if you've looked at it but it does say:

Check the box for "Interact with Desktop". If the command file is executing commands to another computer, the local system account that the service runs as does not have the proper rights. In this case, the service should be set to log in as a user that does have rights on the secondary system. Please keep in mind also that passwords for the logged in account will not automatically change when the user's password changes for his account. The log in as account should be a user with a password that does not expire.

not sure if that helps but can you tell the service to log on with an administrator account?

See Answer In Context

Reply

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

Replies 8
BillP
Administrator BillP Administrator
Administrator

Posted: ‎2021-06-30 07:43 AM . Last Modified: ‎2024-03-07 10:47 PM

0 Likes
0
1370
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • 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-30 07:43 AM . Last Modified: ‎2024-03-07 10:47 PM

Hi ovezaq

Could you check properties of the agent - Interact with Desktop too. and restart it

Reply

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

TheNotoriousKMP_apc
Sisko TheNotoriousKMP_apc
Sisko

Posted: ‎2021-06-30 07:43 AM . Last Modified: ‎2024-03-07 10:47 PM

0 Likes
0
1370
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • 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-30 07:43 AM . Last Modified: ‎2024-03-07 10:47 PM

Have you tried executing a command file to call this command file and see if the results differ?

Reply

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

BillP
Administrator BillP Administrator
Administrator

Posted: ‎2021-06-30 07:43 AM . Last Modified: ‎2024-03-07 10:46 PM

0 Likes
0
1370
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • 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-30 07:43 AM . Last Modified: ‎2024-03-07 10:46 PM

Yes, i have tried that, and the .cmd file works.
But when the same .cmd file is executed by PoweChute mothings happen exept that cmd.exe shows up in the task manager.

Reply

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

TheNotoriousKMP_apc
Sisko TheNotoriousKMP_apc
Sisko

Posted: ‎2021-06-30 07:43 AM . Last Modified: ‎2024-03-07 10:46 PM

0 Likes
0
1370
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • 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-30 07:43 AM . Last Modified: ‎2024-03-07 10:46 PM

I believe I've tested this before and verified that the cmd prompt is in fact, supposed to run in the background. The service starts meaning the command file execution takes place. I would now try a script that says to delete a file that you end up creating as a test, and then verifying that it is in fact deleted.

Reply

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

BillP
Administrator BillP Administrator
Administrator

Posted: ‎2021-06-30 07:43 AM . Last Modified: ‎2024-03-07 10:46 PM

0 Likes
0
1370
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • 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-30 07:43 AM . Last Modified: ‎2024-03-07 10:46 PM

Please elaborate on what you mean by "check properties" and "interact with desktop".

I have tried to restart the agent several times without any changes.
The agent is running as SYSTEM in task manager.

What I'm trying to do is to get the .cmd file to run a .bat file where i then can use psshutdown to take down all my PC

shutdown.cmd
@START c:\shutdown.bat

shutdown.bat
psshutdown \\model01 -t 10 -f
psshutdown \\model02 -t 10 -f
psshutdown \\model03 -t 10 -f
psshutdown \\model04 -t 10 -f

when executing shutdown.cmd file directly from a terminal (cmd) window everything works nicely and all my 4 PC's are shut down, but when executing the same shutdown.cmd through the agent nothing happens except that cmd.exe shows up in the task manager list.

Reply

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

BillP
Administrator BillP Administrator
Administrator

Posted: ‎2021-06-30 07:43 AM . Last Modified: ‎2024-03-07 10:46 PM

0 Likes
0
1370
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • 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-30 07:43 AM . Last Modified: ‎2024-03-07 10:46 PM

the poster above meant to go to your registered services window, presumably from administrative tools or by going to start menu, choosing run then going to services.msc.

when that comes up, find the apc service - so if its powerchute network shutdown or powerchute business edition agent and then right click on that and choose properties. upon doing that, there is a check box on the "log on" tab that says something like "allow service to interact with the desktop." make sure that check box is selected.

Reply

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

BillP
Administrator BillP Administrator
Administrator

Posted: ‎2021-06-30 07:43 AM . Last Modified: ‎2024-03-07 10:46 PM

0 Likes
0
1370
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • 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-30 07:43 AM . Last Modified: ‎2024-03-07 10:46 PM

Thanks a lot, this helped somewhat, but...

I have now found that the shell (console) PowerChute is starting does not have the same privileges as the normal cmd command shell in windows.
The result of this is that PowerCute are not able to execute all commands with the same privileges as an user or administrator.

Reply

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

BillP
Administrator BillP Administrator
Administrator

Posted: ‎2021-06-30 07:43 AM . Last Modified: ‎2024-03-07 10:46 PM

0 Likes
0
1371
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • 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-30 07:43 AM . Last Modified: ‎2024-03-07 10:46 PM

interesting..

we have [this article here|http://nam-en.apc.com/cgi-bin/nam_en.cfg/php/enduser/std_adp.php?p_faqid=7712] not sure if you've looked at it but it does say:

Check the box for "Interact with Desktop". If the command file is executing commands to another computer, the local system account that the service runs as does not have the proper rights. In this case, the service should be set to log in as a user that does have rights on the secondary system. Please keep in mind also that passwords for the logged in account will not automatically change when the user's password changes for his account. The log in as account should be a user with a password that does not expire.

not sure if that helps but can you tell the service to log on with an administrator account?

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