PowerShell Script
This class defines the settings to run a Powerscript script from Saf.
| Reference Information |
| Release Status : |
Stable |
| Alias Name : |
Entity.PowershellScript |
| Full Reference Name : |
Collaboris.Saf.Actions.Entities.PowershellScript |
| Assembly Name : |
Collaboris.Saf |
| Properties |
| Name |
Description |
Example Value |
Output |
Required |
| VerbosePreference |
String. Specifies Verbos Preference
Note : Supply : SilentlyContinue, Stop, Continue and Inquire
|
SilentlyContinue
|
false
|
false
|
| DebugPreference |
String. Specifies Debug Preference
Note : Supply : SilentlyContinue, Stop, Continue and Inquire
|
SilentlyContinue
|
false
|
false
|
| ErrorActionPreference |
String. Specfies Error Action Preference
Note : Supply : SilentlyContinue, Stop, Continue and Inquire
|
SilentlyContinue
|
false
|
false
|
| ShouldProcessPreference |
String. Should Process Preference
Note : Supply : SilentlyContinue, Stop, Continue and Inquire
|
SilentlyContinue
|
false
|
false
|
| ScriptFile |
String. Script File
Note : The full path to a Powershell Script file. e.g. C:\Temp\SomePower.ps
|
No example supplied.
|
false
|
false
|
| ScriptText |
String. Script Text
Note : Dont't forget Saf can resolve placeholder's in this script text. If a 'ScriptFile' is supplied, this Script is ignored.
|
stop-process -name notepad
|
false
|
false
|
| Commands |
List`1. Specifies a list of Powerhsell commands to run.
Note : To use this action Powershell needs to be resident on the target machine.
|
stop-process -name notepad stop-process -id 6464 -confirm -passthru
|
false
|
true
|