The BMC Atrium Orchestrator base adapter for Microsoft Windows PowerShell product is used to execute PowerShell commands on remote host computers running Microsoft Windows PowerShell. The Microsoft Windows PowerShell base adapter consists of an actor adapter only.
The BMC Atrium Orchestrator base adapter for Microsoft Windows PowerShell does not utilize the xCmd utility, if the target computer is the local host computer. The adapter does not use the xCmd utility in the following cases:
If you specify 127.0.0.1 or the host name of the local computer, the adapter still uses the xCmd utility for executing PowerShell commands.
Note
A monitor adapter is not available for Microsoft Windows PowerShell.
The actor adapter for Microsoft Windows PowerShell provides operations that use the PowerShell command-line interface to execute commands. The actor adapter for Microsoft Windows PowerShell supports the following command attributes:
timeout-secs
continue-on-failure
ignore-response
working- dir
os-id
os-version
The actor adapter for Microsoft Windows PowerShell does not support the following command attributes:
command-dir
is-special-character
Before executing a script file or a console file for working-dir, prepend ./ before the script file name. Example:samplescript.ps1 must be executed as ./samplescript.ps1. The value for working-dir must not end with a backslash, however two backslashes are permitted. Example:work-dir="c:\tempdir " or work-dir="c:\tempdir\\"
The following figure shows an XML template for the PowerShell adapter configuration.
XML template of the PowerShell adapter configuration
<config> <target></target> <user-name></user-name> <password encryption-type=""></password> <powershell-version></powershell-version> <powershell-consolefile></powershell-consolefile> <use-userprofile></use-userprofile> <script-file-path></script-file-path> </config> <config> <target></target> <user-name></user-name> <password encryption-type=""></password> <powershell-version></powershell-version> <powershell-consolefile></powershell-consolefile> <use-userprofile></use-userprofile> <script-file-path></script-file-path> </config>
1 Comment
James Annis
How does one specify for the target system to use the 64-bit version of powershell?