GetPowerShellResult (Opus Funktion)
Beschreibung¶
Führt ein Powershellscript aus und gibt ein Objekt mit resultierenden Daten zurück. Executes a PowerShell script and parses its JSON output into an Opus object. Returns an empty object if the script produces no output.
Diese Funktion benötigt mindestens PowerShell 3.0.
Argumente¶
Name | Typ | Beschreibung |
|---|---|---|
PowerShellScript | Powershell Script. Das Resultat der letzten Anweisung wird als Objekt zurückgegeben. Die letzte Anweisung kann zum Beispiel eine "Get-***" Funktion sein. Get-Variable **Name** |
Rückgabewert Object¶
an Opus object built from the JSON output of the PowerShell script
Beispiel¶
|
|---|