PowershellHelper
public static class PowershellHelper
1. Methods
1.1. ExtractErrorMessage(string, string)
public static string ExtractErrorMessage(string xmlContent, string command)
| Name | Type | Description |
|---|---|---|
xmlContent |
string |
|
command |
string |
Returns: string
1.2. ModifyPowerShellScript(string)
public static string ModifyPowerShellScript(string originalCommand)
| 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)
| 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)
| Name | Type | Description |
|---|---|---|
command |
string |
|
output |
string |
Returns: bool