Function Set-WmiNamespaceSecurity stops with error on only one computer ?? RRS feed

  • Question

  • 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?


    Monday, December 23, 2019 5:37 PM

All replies

  • The issue is clearly not with the script. It is a network or systems issue. This forum is not an MS support forum. You can ask in the server deployment and setup forum, contact a consultant or open a ticket with MS support for help with system issues.

    If you have a trained systems tech in your company they will know how to troubleshoot this issue.  If your company does not have internal trained techs and uses an outside vendor then contact the vendor that supports your network.  They will have trained people that know how to troubleshoot this error.


    Monday, December 23, 2019 5:48 PM