1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Add extra PS Drives so you can access other parts of the registry

This commit is contained in:
jhawkesworth@users.noreply.github.com 2016-02-09 06:42:02 +00:00 committed by Matt Clay
parent 55c671a18b
commit d5ad463a5a

View file

@ -21,6 +21,10 @@ $ErrorActionPreference = "Stop"
# WANT_JSON
# POWERSHELL_COMMON
New-PSDrive -PSProvider registry -Root HKEY_CLASSES_ROOT -Name HKCR -ErrorAction SilentlyContinue
New-PSDrive -PSProvider registry -Root HKEY_USERS -Name HKU -ErrorAction SilentlyContinue
New-PSDrive -PSProvider registry -Root HKEY_CURRENT_CONFIG -Name HCCC -ErrorAction SilentlyContinue
$params = Parse-Args $args;
$result = New-Object PSObject;
Set-Attr $result "changed" $false;