Issue:
A command file is not running within PowerChute.
Product Line:
PowerChute Network Shutdown
PowerChute Business Edition
PowerChute Serial Shutdown
Environment:
All supported Windows Operating Systems.
NOTE: For assistance with Linux/Unix scripts see Schneider Electric FAQ PowerChute Network Shutdown for UNIX/Linux is not running shell scripts/command
Cause:
Syntax
Solution:
The command file runs using the local system account. PowerChute cannot execute programs that require interaction with the desktop; only command line-enabled programs are supported, e.g., if you try to launch Notepad, it will fail. In earlier versions of Windows, all services run in Session 0 along with applications. This situation poses a security risk. In Windows Vista and later versions of Windows, the operating system isolates services in Session 0 and runs applications in other sessions. 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. To verify that the .exe has launched open Task Manager, review the list of Processes running. More information on Windows Session can be found at http://blogs.technet.com/b/askperf/archive/2007/04/27/application-compatibility-session-0-isolation.aspx.
NOTE: With the release of PowerChute Network, Shutdown 4.4, all command files and SSH files must reside in C:/Program Files/APC/PowerChute/user_files. When adding the file, the full path must be entered. Folder name alias (e.g., c:\progra~1\apc\…) is not acceptable.
To execute command files from PowerChute, you must use the correct syntax.
If the command file contains statements to run executable files (.exe), you must use the command called @START in the statements.
The @START command uses the following syntax rules:
The following examples illustrate the correct use of syntax for use with APC shutdown utilities as executables:
Example: An executable program with no spaces in the full pathname.
No quotes are required:
@START C:\APC\Oracle\PWRFAIL.BAT
quotes required:
@START C:"\Program Files\APC\PWRFAIL.BAT"
* Quotes are not needed when entering the PowerChute Network Shutdown 4
A command file is not running within PowerChute.
Product Line:
PowerChute Network Shutdown
PowerChute Business Edition
PowerChute Serial Shutdown
Environment:
All supported Windows Operating Systems.
NOTE: For assistance with Linux/Unix scripts see Schneider Electric FAQ PowerChute Network Shutdown for UNIX/Linux is not running shell scripts/command
Cause:
Syntax
Solution:
The command file runs using the local system account. PowerChute cannot execute programs that require interaction with the desktop; only command line-enabled programs are supported, e.g., if you try to launch Notepad, it will fail. In earlier versions of Windows, all services run in Session 0 along with applications. This situation poses a security risk. In Windows Vista and later versions of Windows, the operating system isolates services in Session 0 and runs applications in other sessions. 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. To verify that the .exe has launched open Task Manager, review the list of Processes running. More information on Windows Session can be found at http://blogs.technet.com/b/askperf/archive/2007/04/27/application-compatibility-session-0-isolation.aspx.
NOTE: With the release of PowerChute Network, Shutdown 4.4, all command files and SSH files must reside in C:/Program Files/APC/PowerChute/user_files. When adding the file, the full path must be entered. Folder name alias (e.g., c:\progra~1\apc\…) is not acceptable.
To execute command files from PowerChute, you must use the correct syntax.
If the command file contains statements to run executable files (.exe), you must use the command called @START in the statements.
The @START command uses the following syntax rules:
The following examples illustrate the correct use of syntax for use with APC shutdown utilities as executables:
Example: An executable program with no spaces in the full pathname.
No quotes are required:
@START C:\APC\Oracle\PWRFAIL.BAT
quotes required:
@START C:"\Program Files\APC\PWRFAIL.BAT"
* Quotes are not needed when entering the PowerChute Network Shutdown 4