SecurityPolicyDsc icon indicating copy to clipboard operation
SecurityPolicyDsc copied to clipboard

SecurityPolicy Not being recognized in my powershell

Open Ephraim67 opened this issue 2 years ago • 4 comments

I installed SecurityPolicyDsc so I can use SecurityPolicy Module and it's installed but not working

Ephraim67 avatar Jan 06 '24 15:01 Ephraim67

Not sure SecurityPolicyDsc can help with SecurityPolicy module. What error do you get when using the DSC resources in the module SecurityPolicyDsc?

johlju avatar Jan 07 '24 13:01 johlju

Undefined DSC resource 'SecurityPolicy'. Use Import-DSCResource to import the resource That was the error I was getting.

Ephraim67 avatar Jan 10 '24 12:01 Ephraim67

Ah, you said SecurityPolicy module in the issue description, but you meant the SecurityPolicy resource.

Are you using Windows PowerShell 5.1?

How does the configuration look like that you're trying to compile?

johlju avatar Jan 10 '24 12:01 johlju

Actually, there are no SecurityPolicy resource in the SecurityPolicyDsc module? 🤔 Not sure what you are trying to do honestly 😊

johlju avatar Jan 10 '24 12:01 johlju