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.
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