I´m running pcb 9.x on a windows server. The UPS is Samrt UPS 750. It´s connected via serial Cable an works fine. What I ant to do is the following:
I want to shut down plink.exe (ssh) an synology disk station in case of power failure. When I start the executable from the command line: C:\plink.exe -ssh -pw passwortdiskstation firstname.lastname@example.org poweroff The Synology Disk Station powers off. The Problem is: I can´t do this in PCB. When testing the Command line, nothing happens. I´ve also tried this:
3. If the test fails, go to Services and right click on the Agent service and choose Properties.
4. Click on the "Log On" tab.
5. Check the box for "Interact with Desktop".
When I do this, communication between server and upc is lost.
The issue may be resolved by adding @start to the command line as listed in FAQ FA168226. If that does not resolve the issue the cause most likely is due to PCBE is a service and ever since Windows Vista was release anytime a service attempts to run an executable it must be started in session zero. More information on session zero is noted in FAQ FA168226.
there are a few post here that discuss work arounds. I suggest reviewing Kenneth's post dated 26 April 2015
There is another work around listed in this post
I´ll check this out. May take some time. Will be back as soon I´ve tried out.
I´ve taken a closer look to Kenneth´s post dated 26 April 2015.
I'm late to this party, but I encountered the exact same problem and figured out a work-around: use the Windows Task Scheduler!
I´ve tried to Create an new Scheduled Task with the GUI Scheduled Task planer. I wasn´t able to find the option "start manually". As far as I´ve understood I have to add this line "@start schtasks /run /tn ShutdownTest" to my existing cmd file for getting scheduled task planer into interaction with the cmd file.
Question: How do I do this in conrete?;)
I think I got it going like Kenneth...;)
Thanks a lot!
Choose a location
There are no forums in this space.