From d5ad463a5ab8a9adfe80dffbb806fc894094fbe0 Mon Sep 17 00:00:00 2001 From: "jhawkesworth@users.noreply.github.com" Date: Tue, 9 Feb 2016 06:42:02 +0000 Subject: [PATCH] Add extra PS Drives so you can access other parts of the registry --- lib/ansible/modules/extras/windows/win_regedit.ps1 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/ansible/modules/extras/windows/win_regedit.ps1 b/lib/ansible/modules/extras/windows/win_regedit.ps1 index e3b8c9d3b10..fe060e101c6 100644 --- a/lib/ansible/modules/extras/windows/win_regedit.ps1 +++ b/lib/ansible/modules/extras/windows/win_regedit.ps1 @@ -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;