I have a script that uses"
Function Set-Wmi-NamespaceSecurity
I'm running it "as administrator" from a network share. It has always worked.
Recently, on ONE workstation, it fails with:
Invoke-WmiMethod : Unexpected error
At C:\TEMP\Set-WmiNamespaceSecurity.ps1:58 char:15
+ ... $output = Invoke-WmiMethod @invokeparams -Name GetSecurityDescripto ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Invoke-WmiMethod], ManagementException
+ FullyQualifiedErrorId : InvokeWMIManagementException,Microsoft.PowerShell.Commands.InvokeWmiMethod
Why would this happen and what might be done to fix?
Thanks!