Forum Discussion

Deleted's avatar
Deleted
Mar 27, 2025

DSC Error for 2022 Security Baseline

Hello Everyone,

I am trying to find out more about this error but no luck.......

I have converted the GPOs to DSC for Windows Server 2022 - Member Server using Windows Server-2022-Security-Baseline-FINAL and have applied it to a test VM which is currently domain joined, initially I was getting too many dsc errors so I tried to narrow down and do a small batch of configurations and I still get the same error with the following message

DSC Error : Could not infer CimType from the provided .NET object.
The PowerShell DSC resource '[SecurityOption]SecuritySetting(INF): LSAAnonymousNameLookup' with SourceInfo 'C:\onedsc\PasswordComplexityConfig.ps1::33::9::SecurityOption' threw one or more non-terminating errors while running the Test-TargetResource functionality. These errors are logged to the ETW channel called Microsoft-Windows-DSC/Operational. Refer to this channel for more details.
Could not infer CimType from the provided .NET object.

Does anyone have any insight what could be wrong here?and how do I go about correcting it

Thanks

No Replies

Resources