This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bool RunPowerShellScript(string script, out IEnumerable<PSObject> output, out string errors) | |
{ | |
return RunPowerShellScriptInternal(script, out output, out errors, null); | |
} | |
bool RunPowerShellScriptRemote(string script, string computer, string username, string password, out IEnumerable<PSObject> output, out string errors) | |
{ | |
output = Enumerable.Empty<PSObject>(); | |
var credentials = new PSCredential(username, ConvertToSecureString(password)); |