19
2012
Powershell Connection Error: A security package specific error occurred. (Exception from HRESULT: 0x80070721)
Condition:
When you are trying to execute any WMI command against a computer, it is resulting in following error,
————-
PS C:\Users\testuser\desktop> Get-WmiObject -computer xxxxxxx win32_volume
Get-WmiObject : A security package specific error occurred. (Exception from HRESULT: 0x80070721)
At line:1 char:14
+ Get-WmiObject <<<< -computer 162.53.32.223 win32_volume | Where-object {$_.DriveType -eq 3 -and $_.Label -ne “System
Reserved”}
+ CategoryInfo : InvalidOperation: (:) [Get-WmiObject], COMException
+ FullyQualifiedErrorId : GetWMICOMException,Microsoft.PowerShell.Commands.GetWmiObjectCommand
————-
Error:
Get-WmiObject: A security package specific error occurred. (Exception from HRESULT: 0x80070721)
Solution:
In my case the issue is with DCOM configuration access settings, here is how to fix it,
- From the Start menu, click Run and type Dcomcnfg.exe.
- In Component Services, click Console root, expand Component Services, expand Computers, and then click My Computer. On the Action menu, click Properties.
- In the My Computer Properties dialog box, on the COM Security tab, in the Access Permissions section, click Edit Default.
- In the Group or user names dialog box, check if Local Administrator is present or not, or the group you need access to, if not present then click Add.
- In the Select User, Computers, or Groups dialog box, in the Enter the object names to select (examples): box, type Administrator and click OK (Note: In From This Location: click Locations and select the local computer instead of domain)
- In the Permissions for Administrators section, select the check box to allow Local Access.
- Click OK twice, and then close Computer Management.
Try to run WMI again, it should work fine, if not, then try to give remote access to administrators. In case everything looks perfect then troubleshoot further.
References and help:
http://technet.microsoft.com/en-us/library/bb633148.aspx
http://social.msdn.microsoft.com/Forums/en-US/netfxbcl/thread/64e272b6-597d-4a71-9435-88b4c6744e71/

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