Get-WmiObject : The RPC Server is Unavailable. (Exception from HRESULT: 0x800706BA)

This week while working with some PowerShell scripts that retrieve WMI information from remote servers, I ran into an issue where I was able to return results from Windows 2008 R2 servers without issue but was unable to return results from Windows 2008 (non-R2) servers even though they had PowerShell 2.0 installed and as far as I could tell they were configured exactly the same as the Windows 2008 R2 servers.

Here’s the error I received:

Get-WmiObject : The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)
At D:Get-MachineInfo.ps1:18 char:14
+ Get-WmiObject <<<< -class Win32_OperatingSystem `
+ CategoryInfo : InvalidOperation: (:) [Get-WmiObject], COMException
+ FullyQualifiedErrorId : GetWMICOMException,Microsoft.PowerShell.Commands.GetWmiObjectCommand

Enabling “Remote Administration” in the firewall on the Windows Server 2008 (non-R2) servers resolved this issue.

I verified this firewall exception was not allowed on the Windows 2008 R2 servers since those worked without issue, but it does appear that it’s required on the non-R2 servers.



  1. Mark Goodwin

    I ran into this error when I ran a script against a set of Windows XP machines within our environment. I was looking for the existence of a couple of particular servers in the mapped drives of around 800 machines. The script works against Win 7 machines but I get the same error as you did here working against XP machines. Our Windows firewall is OFF for all workstations. I’m leaning towards a possible impersonation issue with WMI.

  2. albertwt

    Thanks for sharing this Mike.

    I got this problem as well when executing WMI query against Windows Server 2012 R2.

  3. Raja

    Hi albert, can you tell us how did you resolved the issue with WIndows server 2012 R2 ?


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: