24
2012
Get-WmiObject: The RPC server is unavailable (Exception from HRESULT: 0x80070721)
While I tried to use PowerShell to find disk space of a remote server using WMI query,
Get-WmiObject -computer <myservername> win32_volume
…faced following error/s,
——-
Error 1:
Get-WmiObject : The RPC server is unavailable
Error 2:
Get-WmiObject : A security package specific error occurred. (Exception from HRESULT: 0x80070721)
——
After some Googling and search found some useful tips to troubleshoot the issue, please find below the consolidated troubleshooting steps,
1) Check that DCOM is enabled on both the host and the target PC. Check the following registry value on both computers:
Key: HKLM\Software\Microsoft\OLE, value: EnableDCOM, should be set to ‘Y’
2) On a Windows XP Pro computer, make sure that remote logons are not being coerced to the GUEST account (aka “ForceGuest”, which is enabled by default computers that are not attached to a domain). To do this, open the Local Security Policy editor (e.g. by typing ‘secpol.msc’ into the Run box, without quotes). Expand the “Local Policies” node and select “Security Options”. Now scroll down to the setting titled “Network access: Sharing and security model for local accounts”. If this is set to “Guest only”, change it to “Classic” and restart your computer.
3) Make sure that no remote access or WMI-related services have been disabled. On an machine, the following services should be running (or at least allowed to start on demand):
COM+ Event System
Remote Access Auto Connection Manager
Remote Access Connection Manager
Remote Procedure Call (RPC)
Remote Procedure Call (RPC) Locator
Remote Registry
Server
Windows Management Instrumentation
Windows Management Instrumentation Driver Extensions
WMI Performance Adapter
Workstation
4) Also check to make sure that your antivirus software isn’t running any type of firewall protocol that would be preventing access. Sometimes, softwares like ZoneAlarm anti-ransomware block suspicious programs from running.
There is also some good info on troubleshooting winrm and wsman here: http://www.computerperformance.co.uk/powershell/powershell_wsman.htm
5)
Under the Local Computer Policy heading, double-click Computer Configuration.
Double-click Administrative Templates, Network, Network Connections, and
then Windows Firewall.
If the computer is in the domain, then double-click Domain Profile;
otherwise, double-click Standard Profile.
Click Windows Firewall: Allow remote administration exception.
On the Action menu, select Properties.
Click Enable, and then click OK.
6) Might be a bug in system as per MSKB article: http://support.microsoft.com/kb/960007
Bug is: FIX: Error message when you run an application that makes “burst load” style activation requests and calls a server component through DCOM: “0x800706ba” or “0x800706bf”
In my case I suspect the bug, trying to get the hotfix installed to fix the issue.
Useful References:
http://www.techtalkz.com/microsoft-windows-powershell/426873-rpc-server-unavaliable.html

Leave a comment
Subscribe to this blog via Email
Old Posts
- November 2017 (3)
- October 2017 (4)
- September 2017 (2)
- May 2017 (1)
- April 2017 (1)
- July 2016 (3)
- May 2016 (1)
- April 2016 (1)
- February 2016 (2)
- January 2016 (1)
- October 2015 (1)
- September 2015 (1)
- August 2015 (1)
- July 2015 (2)
- June 2015 (3)
- April 2015 (1)
- March 2015 (1)
- December 2014 (1)
- September 2014 (2)
- April 2014 (1)
- January 2014 (3)
- October 2013 (2)
- September 2013 (2)
- August 2013 (4)
- July 2013 (1)
- June 2013 (2)
- May 2013 (5)
- April 2013 (3)
- March 2013 (1)
- February 2013 (9)
- January 2013 (11)
- December 2012 (14)
- November 2012 (3)
- October 2012 (4)
- July 2012 (2)
- June 2012 (3)
- May 2012 (2)
- April 2012 (8)
- March 2012 (6)
- February 2012 (3)
- January 2012 (1)
- December 2011 (5)
- November 2011 (8)
- October 2011 (5)
- September 2011 (3)
- August 2011 (3)
- July 2011 (3)
- May 2011 (1)
- November 2010 (1)
Tags
Calender
M | T | W | T | F | S | S |
---|---|---|---|---|---|---|
« Nov | ||||||
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 |
View Post by Categories
Recent Articles
- Setting up Always ON Availability Group in Multi Subnet Cluster – Recommendations
- Configuring Replication with Always ON Availability Group
- Login failed for user ‘DOMAIN\COMPUTER$’. Reason: Could not find a login matching the name provided. [CLIENT: ]
- Modern Servicing Model (Service Pack and Cumulative Updates) for SQL Server 2017 and onwards
- Fix: SSMS 2012 opening Debug window when pressing F5