The RPC server is unavailable. (Exception from HRESULT: 0x800706BA) GetWMICOMException,Microsoft.PowerShell.Commands.GetWmiObjectCommand

If you get this kind of error then the basic reason can be as follows:

INTERVIEW PREPARATION IN 30 MINs – Read Following wires for a quick interview preparation.

  1. SQL Server DBA “Interview Questions And Answers”
  2. SQL Azure Interview Questions and Answers Part – 1
  3. SQL Azure Interview Questions and Answers Part – 2
  4. Powershell Interview Questions and Answers

1. You need to run this command as an admin.

2. The server is really unavailable.

3. This command needs to be addressed through AD module of PS.

You get following kind of error:

PS C:\Windows\system32> gwmi -computer TK2MPBISQLBIP1 -cl win32_share
Get-WmiObject : The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)
At line:1 char:5
+ gwmi <<<<  -computer TK2MPBISQLBIP1 -cl win32_share
    + CategoryInfo          : InvalidOperation: (:) [Get-WmiObject], COMException
    + FullyQualifiedErrorId : GetWMICOMException,Microsoft.PowerShell.Commands.GetWmiObjectCommand

Please consider to correct above three scenarios.

Regards,
Online POWERSHELL Classes @ http://tuitionaffordable.webstarts.com

Advertisements

One comment

  1. what does it mean “addressed through AD module of PS.” That I should do import-module activedirectory prior executing get-wmiobject command?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s