diff --git a/lib/ansible/modules/windows/win_regedit.ps1 b/lib/ansible/modules/windows/win_regedit.ps1 index a1b1928487b..c56b48335dd 100644 --- a/lib/ansible/modules/windows/win_regedit.ps1 +++ b/lib/ansible/modules/windows/win_regedit.ps1 @@ -442,7 +442,7 @@ $registry_hive = switch(Split-Path -Path $path -Qualifier) { "HKCC:" { [Microsoft.Win32.Registry]::CurrentConfig } "HKCU:" { [Microsoft.Win32.Registry]::CurrentUser } "HKLM:" { [Microsoft.Win32.Registry]::LocalMachine } - "HKU" { [Microsoft.Win32.Registry]::Users } + "HKU:" { [Microsoft.Win32.Registry]::Users } } $loaded_hive = $null try {