|
|
|
|
|
by 13of40
1793 days ago
|
|
Cmdlets can have provider-specific parameters, so in this case I would add a registry-provider-specific data type parameter with sensible default behavior to New-Item and Set-Content. For example... Set-Content hklm:\software\xyz\abc -value 1 ...could create a DWORD value by default based on the type of the value argument, while adding '-DataType String' would enable creating a string value. |
|