PowershellCommandExtensions
public static class PowershellCommandExtensions
1. Methods
1.1. CreateForWinPE()
Creates a PowershellCommand.Builder for WinPE environment (X: drive).
public static PowershellCommand.Builder CreateForWinPE()
Returns: PowershellCommand.Builder
1.2. InstallInfDrivers(PowershellCommand.Builder, bool)
Installs all .inf drivers from the current directory using PNPUtil. Recursive when recursive is true.
public static PowershellCommand.Builder InstallInfDrivers(this PowershellCommand.Builder builder, bool recursive)
| Name | Type | Description |
|---|---|---|
builder |
PowershellCommand.Builder |
|
recursive |
bool |
Returns: PowershellCommand.Builder
1.3. InstallInfDriversRecursively(PowershellCommand.Builder)
Installs all .inf drivers recursively from the current directory using PNPUtil.
public static PowershellCommand.Builder InstallInfDriversRecursively(this PowershellCommand.Builder builder)
| Name | Type | Description |
|---|---|---|
builder |
PowershellCommand.Builder |
Returns: PowershellCommand.Builder
1.4. InstallRedHatCertificate(PowershellCommand.Builder, string)
Installs RedHat Virtio certificate to Root and TrustedPublisher stores for Proxmox VMs.
public static PowershellCommand.Builder InstallRedHatCertificate(this PowershellCommand.Builder builder, string certPath = "C:\\NETSetup\\Drivers\\Proxmox\\cert\\Virtio_Win_Red_Hat_CA.cer")
| Name | Type | Description |
|---|---|---|
builder |
PowershellCommand.Builder |
|
certPath |
string |
Returns: PowershellCommand.Builder
1.5. SuppressProgress(PowershellCommand.Builder)
Adds progress preference to suppress progress bars in PowerShell output.
public static PowershellCommand.Builder SuppressProgress(this PowershellCommand.Builder builder)
| Name | Type | Description |
|---|---|---|
builder |
PowershellCommand.Builder |
Returns: PowershellCommand.Builder