Get-WMIObject says access is denied

Did you ever encountered a situation where Get-WMIObject tells you that the access is denied?
The last week I’ve been doing a lot with PowerShell and IIS, where this is not such an uncommon issue 😉
For example:

The solution is on the Authentication parameter to the Get-WMIObject cmdlet:

Now this gives us a bunch of options, but when you use option 6 (PacketPrivacy) it the command will work like a charm:

Leave a Reply

Your email address will not be published. Required fields are marked *