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 eventeventcreate /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
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.
Choose a location
discussion :