PowershellHelper

public static class PowershellHelper

1. Methods

1.1. ExtractErrorMessage(string, string)

public static string ExtractErrorMessage(string xmlContent, string command)
Table 1. Parameters
Name Type Description

xmlContent

string

command

string

Returns: string

1.2. ModifyPowerShellScript(string)

public static string ModifyPowerShellScript(string originalCommand)
Table 2. Parameters
Name Type Description

originalCommand

string

Returns: string

1.3. Powershell(string, string, char, string)

public static bool Powershell(string command, out string output, char driveLetter = 'C', string workingDirectory = null)
Table 3. Parameters
Name Type Description

command

string

output

string

driveLetter

char

workingDirectory

string

Returns: bool

1.4. WinPEPowershell(string, string)

public static bool WinPEPowershell(string command, out string output)
Table 4. Parameters
Name Type Description

command

string

output

string

Returns: bool