Zum Inhalt

RunPowerShellScript (Opus Funktion)

Beschreibung

Führt ein Powershellscript aus Executes a PowerShell script in-process and returns its output as a string.

Argumente

Name

Typ

Beschreibung

Script

string

Powershell Script

Rückgabewert string

combined standard-output and standard-error text from the script

Beispiel

RunPowerShellScript("Set-ADUser -Identity \""+Ls_UserName+"\" -ChangePasswordAtNextLogon $true");

Siehe auch