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-26 12:57 AM . Last Modified: 2024-03-19 02:40 AM
Hi *
I have a SRT5KXLI and Powerchute Network Shutdown : v. 4.3.0.
1) Issue with the command line:
It works with a *.bat or *.exe, but not with parameters in the line.
I tried also to add @start in the line, it does not work at all.
2) FYI: Solution for another issue : Windows isolates services in Session 0
I found a way around the issue : "Win 10 isolates services in Session 0 ... PowerChute 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. "
But I did cost me 2 days of work, was it documented elsewhere?
My Method :
a - I run a command line *.bat file to create a window event
eventcreate /l application /t information /so "UpsPowerchute" /id 100 /d "UPS On Battery"
and
b - I Create a Windows Task based on this event
Windows task scheduler will be triggered by this newly created event, and start an action.
You can import a predefined XML task file. Manual method : (GUI may varie a bit depending on Windows flavor (Win 7 / 10 / 10 pro / etc … )
Open “Task Scheduler” (taskschd.msc)
Menu: Action > Create basic task :
Name: UPS_On_Battery
Trigger : When a specified event is logged
Log: Application
Source : UpsPowerchute
Event ID : 100
Action : Start a Program / script:
To be able to create a Windows Event via DOS command eventcreate, you shall first create a RegEdit entry for the source UpsPowerchute you create :
Regedit
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-26 12:57 AM . Last Modified: 2024-03-19 02:40 AM
Hi,
On 5/2/2020 5:37 AM, eric said:1) Issue with the command line:
It works with a *.bat or *.exe, but not with parameters in the line.
I tried also to add @start in the line, it does not work at all.
Tested PCNS 4.3 with a .bat to shutdown a remote Windows server and it works fine. shutdown /s /f /m \\192.168.10.12 /c "PowerChute has initiated a system shutdown" /t 10
NOTE: you have to change the PowerChute user from local system account to an account that can access the remote 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-26 12:57 AM . Last Modified: 2024-03-19 02:40 AM
Hi,
On 5/2/2020 5:37 AM, eric said:1) Issue with the command line:
It works with a *.bat or *.exe, but not with parameters in the line.
I tried also to add @start in the line, it does not work at all.
Tested PCNS 4.3 with a .bat to shutdown a remote Windows server and it works fine. shutdown /s /f /m \\192.168.10.12 /c "PowerChute has initiated a system shutdown" /t 10
NOTE: you have to change the PowerChute user from local system account to an account that can access the remote server.
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.