locked
How to remotely check if update is installed if I got "The RPC server is unavailable" ? RRS feed

  • Question

  • Hi there,

    I wanted to use PowerShell to remotely check if update is installed.

    I tried by using get-hotfix but for most computers (which are online and pingable) I got "The RPC server is unavailable."

    How can I check for this computers for which I got "The RPC server is unavailable." ?

    Is there another method to do so ?



    • Edited by LL159159 Friday, September 21, 2018 8:09 AM
    Friday, September 21, 2018 8:07 AM

All replies

  • Hi,

    Thanks for your question.

    1. You can try to enable the RPC rule on the inbound firewall. It will then allow you to query what hotfixes have been applied.

     

    2. Try to use try/catch for error handling.

    Try {
    	Get-Hotfix -id KB3065987 -ErrorAction Stop
    }
    Catch [System.Management.Automation.RuntimeException]
    {	Write-Output "KB3065987 Not Installed" 
    	Continue
    }
    
    

    Just try to solve it.

    Best Regards,

    Lee


    Just do it.

    Tuesday, September 25, 2018 6:50 AM
  • Hi,

    Was your issue resolved?

    If you resolved it using our solution, please "mark it as answer" to help other community members find the helpful reply quickly.

    Best Regards,

    Lee


    Just do it.

    Monday, October 8, 2018 3:19 AM