I'm trying to set a value with the PowerShell cmdled Invoke-CimMethod, but I'm getting an error "Invalid method" and i'm at a bit of a loss at the moment. This is my code
Invoke-CimMethod -Query 'SELECT * FROM Win32_NetworkAdapterConfiguration WHERE IPEnabled=1' -MethodName EnableWINS -Arguments @{WINSEnableLMHostsLookup=[Boolean]$false}
According to the documentation, the argument "WINSEnableLMHostsLookup" should be a bool, but for some reason it just doesn't work this way.
Can anyone share some insights?