NVISOsecurity / posh-dsc-windows-hardening

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

MSFT_AccountPolicy in Modul SecurityPolicyDsc #9

Open KSJakobsen opened 3 years ago

KSJakobsen commented 3 years ago

Hi,

First of all.. Awesome Script :)

But i ran into a little issue using the Script in our Environment. I compiled the .ps1 an everything worked fine but when i wanted to implement the MOF-File i got the following Error.

InvalidOperation: The Powershell DSC-Ressource "MSFT_AccountPolicy" of the Module <SecurityPolicyDsc,2.10.0.0> is not in the Powershell-Modulpath nor registered as a WMI DSC-Ressource.

I just translated this from german so i hope it tranlates correct.

The original error is as follows:

InvalidOperation: Die PowerShell DSC-Ressource "MSFT_AccountPolicy" des Moduls <SecurityPolicyDsc,2.10.0.0> ist weder im Powershell-Modulpfad vorhanden noch als WMI DSC-Ressource registriert.

Thanks Kai - Stephan Jakobsen

ramnikd commented 2 years ago

Hi, i am getting the same error. Can i please ask how you resolved it? thanks in advance!