Answered by:
WMI query faied: Access Denied on a Windows 7 target

Question
-
Hi,
I have a target Windows 7 machine from which I want to extract information using WMI. Following are the settings at the target:
- Port 135 and a port greater than 1024 is open
- Remote Procedure Call service is running
- Remote Admin is enabled
- Dcom services are running
- WMI service is running
- User has administrative rights
- For testing Firewall is off (all of them, private, domain and public) (I turned it off when the query was failing..still no luck)
In Dcomcnfg..."Edit Limits" for both Access Permissions and Launch and Activation Permissions. Add Performance Monitor Users and allow remote access, remote launch, and remote activation) is done.,.(found on some forum)
And then when I run
wmic -U username%password //xx.xx.xx.xxx "select * from Win32_LogicalDisk"
it giver following error:
[wmi/wmic.c:196:main()] ERROR: Login to remote object.
NTSTATUS: NT_STATUS_ACCESS_DENIED - Access denied
When I try to use WMI Tools on a Windows Xp machine to connect to Windows 7...it fails to connect with error:Login Failed to Machine "XYZ"Cannot access WMI on the target machine- Moved by Bruce AdamczakMicrosoft employee Friday, July 8, 2011 1:22 PM to find the correct forum (From:Windows Perfmon and Diagnostic Tools)
- Edited by computerandu Friday, July 8, 2011 1:31 PM More Information
Friday, July 8, 2011 12:57 PM
Answers
-
If it is, the OP should post on the Windows Management forum.
(Or this could be moved)
Karl
When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer
My Blog: http://unlockpowershell.wordpress.com
My Book: Windows PowerShell 2.0 Bible
My E-mail: -join ("6B61726C6D69747363686B65406D742E6E6574"-split"(?<=\G.{2})",19|%{[char][int]"0x$_"})- Proposed as answer by Ed Price - MSFTMicrosoft employee Friday, September 28, 2012 10:10 PM
- Marked as answer by Ed Price - MSFTMicrosoft employee Monday, October 8, 2012 9:04 PM
Friday, September 28, 2012 5:44 PM -
Other places to ask...
General WMI... http://social.technet.microsoft.com/Forums/en-US/ITCG/threads
If C++... http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/threads
If PowerShell... http://social.technet.microsoft.com/Forums/en-US/winserverpowershell/threads
Thanks!
Ed Price (a.k.a User Ed), SQL Server Customer Program Manager (Blog, Small Basic, Wiki Ninjas, Wiki)
Answer an interesting question? Create a wiki article about it!- Marked as answer by Ed Price - MSFTMicrosoft employee Sunday, April 14, 2013 4:03 AM
Sunday, April 14, 2013 4:03 AM
All replies
-
Hi,
Thank you for visiting the Microsoft forum. This forum focuses on Perfmon and diagnostic tools. I am moving your question to the moderator forum ("Where is the forum for..?"). The owner of the forum will direct you to a right forum.
Thanks.
Bruce Adamczak
Bruce Adamczak Please click "Propose As Answer" if a post solves your problem or "Vote As Helpful" if a post has been useful to youFriday, July 8, 2011 1:22 PM -
I was not sure which category I should put it in..so I placed it in diagnostic tools...Friday, July 8, 2011 1:23 PM
-
-
If it is, the OP should post on the Windows Management forum.
(Or this could be moved)
Karl
When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer
My Blog: http://unlockpowershell.wordpress.com
My Book: Windows PowerShell 2.0 Bible
My E-mail: -join ("6B61726C6D69747363686B65406D742E6E6574"-split"(?<=\G.{2})",19|%{[char][int]"0x$_"})- Proposed as answer by Ed Price - MSFTMicrosoft employee Friday, September 28, 2012 10:10 PM
- Marked as answer by Ed Price - MSFTMicrosoft employee Monday, October 8, 2012 9:04 PM
Friday, September 28, 2012 5:44 PM -
If it is, the OP should post on the Windows Management forum.
(Or this could be moved)
Karl
When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer
My Blog: http://unlockpowershell.wordpress.com
My Book: Windows PowerShell 2.0 Bible
My E-mail: -join ("6B61726C6D69747363686B65406D742E6E6574"-split"(?<=\G.{2})",19|%{[char][int]"0x$_"})Good suggestion on the forum!
Moving is out of scope for this forum. We can do it by request by the OP, but it's not guaranteed. More info: http://social.microsoft.com/Forums/en-US/whatforum/thread/b970e780-0de0-4642-8ed6-576cbb3a5dd4
Thanks!
Ed Price (a.k.a User Ed), SQL Server Customer Program Manager (Blog, Twitter, Wiki)
Friday, September 28, 2012 10:11 PM -
Other places to ask...
General WMI... http://social.technet.microsoft.com/Forums/en-US/ITCG/threads
If C++... http://social.msdn.microsoft.com/Forums/en-US/vcgeneral/threads
If PowerShell... http://social.technet.microsoft.com/Forums/en-US/winserverpowershell/threads
Thanks!
Ed Price (a.k.a User Ed), SQL Server Customer Program Manager (Blog, Small Basic, Wiki Ninjas, Wiki)
Answer an interesting question? Create a wiki article about it!- Marked as answer by Ed Price - MSFTMicrosoft employee Sunday, April 14, 2013 4:03 AM
Sunday, April 14, 2013 4:03 AM