NVISOsecurity / posh-dsc-windows-hardening

Windows OS Hardening with PowerShell DSC
GNU General Public License v3.0
271 stars 118 forks source link

Fix incorrect registry path #8

Closed jwmullally closed 1 year ago

jwmullally commented 3 years ago

Fixes error:

PowerShell DSC resource MSFT_RegistryResource  failed to execute Test-TargetResource functionality with error message:
(ERROR) Invalid registry hive was specified in registry key
'KEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\CurrentVersion\PushNotifications'
    + CategoryInfo          : InvalidOperation: (:) [], CimException
    + FullyQualifiedErrorId : ProviderOperationExecutionFailure
    + PSComputerName        : localhost