Get-WmiObject : The RPC server is unavailable. (Exception from HRESULT: 0x800706BA) “getwmicomexception,microsoft.powershell” and “getwmicomexception”

How to Start Service Using Powershell Commands

Let’s repro the error:

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

Let’s Understand:

0x8007xxx – This is an OS error which tells that WMI returned a failure in interacting with COM objects. The reason can be DCOM security failure.

“getwmicomexception” – The WMI interface throws an error when the object is either already exists or any exception occurred in creating/dealing with the com object.
“getwmiobjectcommand” – A powershell command to deal with wmi objects.

“GetWMIManagementException,Microsoft.PowerShell.Commands.GetWmiObjectCommand” – This simply tells that WMI returned error while executing the poweshell command. There can be many reasons eg “Microsoft.PowerShell.Commands.WriteEventLogCommand” shows that command failed while writing event log. The reason can be that correct parameters are not passed. Go through following one

YOu are getting this error message because the servername is not correct. I would recommend you to ping the server and confirm whether you can ping the server.

Very Important Technical Wires:

  1. SQL Server DBA “Interview Questions And Answers”
  2. MS SQL Corruption: “Msg 2627 – Violation of PRIMARY KEY constraint”
  3. SQL Server 2008 R2 – Foreign Key – DELETE CASCADE and DELETE UDPATE
  4. MSSQL Server – DBCC LOGINFO – Status 2. Log File FULL. Verify log_reuse_wait_desc
  5. SSRS Report – Adding Header and Footer

Along with technical learning I would like to share some great articles for anyone interested in the betterment of his/her family life

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

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

Advertisements

One comment

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