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.
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
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
Link copied. Please paste this link to share this article on your social media post.
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?
Link copied. Please paste this link to share this article on your social media post.
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
Link copied. Please paste this link to share this article on your social media post.
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?
Link copied. Please paste this link to share this article on your social media post.
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.
Link copied. Please paste this link to share this article on your social media post.
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.
Link copied. Please paste this link to share this article on your social media post.
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.
Link copied. Please paste this link to share this article on your social media post.
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.
Link copied. Please paste this link to share this article on your social media post.
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.
Link copied. Please paste this link to share this article on your social media post.
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?
Link copied. Please paste this link to share this article on your social media post.
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.