SlmgrCommand.Builder
public class SlmgrCommand.Builder :
CliWrapCommandBase<CommandResult>.BuilderBase<SlmgrCommand, SlmgrCommand.Builder>
1. Constructors
1.1. Builder()
public Builder()
2. Properties
2.1. LongArgumentPrefix
protected override string LongArgumentPrefix { get; }
2.2. SingleCharacterArgumentPrefix
protected override string SingleCharacterArgumentPrefix { get; }
3. Methods
3.1. Activate()
Triggers online activation. Equivalent to `slmgr.vbs /ato\`.
public SlmgrCommand.Builder Activate()
Returns: SlmgrCommand.Builder
3.2. Build()
public override SlmgrCommand Build()
Returns: SlmgrCommand
3.3. BuildInternal(CliWrap.Command)
protected override SlmgrCommand BuildInternal(CliWrap.Command cliCommand)
| Name | Type | Description |
|---|---|---|
cliCommand |
CliWrap.Command |
Returns: SlmgrCommand
3.4. DisplayExpirationStatus()
Displays license expiration / activation status. Equivalent to `slmgr.vbs /xpr\`. Stdout contains "permanently activated" when licensed via digital entitlement / retail key.
public SlmgrCommand.Builder DisplayExpirationStatus()
Returns: SlmgrCommand.Builder
3.5. DisplayLicenseInfo()
Displays license info. Equivalent to `slmgr.vbs /dli\`.
public SlmgrCommand.Builder DisplayLicenseInfo()
Returns: SlmgrCommand.Builder
3.6. InstallProductKey(string)
Installs a product key. Equivalent to `slmgr.vbs /ipk <key>\`.
public SlmgrCommand.Builder InstallProductKey(string productKey)
| Name | Type | Description |
|---|---|---|
productKey |
string |
Returns: SlmgrCommand.Builder