Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
Programming
»
Powershell
»
powershell WMI error: "Could not obtain SQL...
powershell WMI error: "Could not obtain SQL Server Service information. An attempt to connect to WMI ... failed with the following error: access is denied."
Rate Topic
Display Mode
Topic Options
Author
Message
Marios Philippopoulos
Marios Philippopoulos
Posted Monday, June 20, 2011 3:11 PM
SSCommitted
Group: General Forum Members
Last Login: Tuesday, May 14, 2013 7:10 AM
Points: 1,824,
Visits: 3,477
I get the following error when I launch powershell from SSMS, after right-clicking on a remote SQL instance and choosing "Start powershell":
Warning: Could not obtain SQL Server Service information. An attempt to connect to WMI on server1 failed with the following error: access is denied.
How can I fix this?
__________________________________________________________________________________
Turbocharge Your Database Maintenance With Service Broker: Part 1
Real-Time Tracking of Tempdb Utilization Through Reporting Services
Monitoring Database Blocking Through SCOM 2007 Custom Rules and Alerts
Preparing for the Unthinkable - a Disaster/Recovery Implementation
Post #1128582
opc.three
opc.three
Posted Monday, June 20, 2011 4:42 PM
SSCertifiable
Group: General Forum Members
Last Login: Today @ 7:31 AM
Points: 6,703,
Visits: 11,731
What version is the OS is running on the remote server? What version is the database instance?
__________________________________________________________________________________________________
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
Believe you can and you're halfway there.
--Theodore Roosevelt
Everything Should Be Made as Simple as Possible, But Not Simpler
--Albert Einstein
The significant problems we face cannot be solved at the same level of thinking we were at when we created them.
--Albert Einstein
1 apple is not exactly 1/8 of 8 apples. Because there are no absolutely identical apples.
--Giordy
Post #1128628
Marios Philippopoulos
Marios Philippopoulos
Posted Tuesday, June 21, 2011 9:09 AM
SSCommitted
Group: General Forum Members
Last Login: Tuesday, May 14, 2013 7:10 AM
Points: 1,824,
Visits: 3,477
opc.three (6/20/2011)
What version is the OS is running on the remote server? What version is the database instance?
Thank you for responding.
OS is on Windows 2003 R2, SP2
sql is on SQL 2008 SP2.
__________________________________________________________________________________
Turbocharge Your Database Maintenance With Service Broker: Part 1
Real-Time Tracking of Tempdb Utilization Through Reporting Services
Monitoring Database Blocking Through SCOM 2007 Custom Rules and Alerts
Preparing for the Unthinkable - a Disaster/Recovery Implementation
Post #1129074
opc.three
opc.three
Posted Tuesday, June 21, 2011 9:26 AM
SSCertifiable
Group: General Forum Members
Last Login: Today @ 7:31 AM
Points: 6,703,
Visits: 11,731
Please have a look at this MSDN forum post. It references an MSDN article related to SSIS but see the section
"Eliminating the "Access Is Denied" Error
. The original poster resolved his own issue referencing that article so DCOM settings may be a common root cause to both your issue and the SSIS issue referenced in the article:
http://social.msdn.microsoft.com/Forums/en-NZ/sqltools/thread/7431a5a3-ef26-4e61-8a53-64cd616dcf84
__________________________________________________________________________________________________
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
Believe you can and you're halfway there.
--Theodore Roosevelt
Everything Should Be Made as Simple as Possible, But Not Simpler
--Albert Einstein
The significant problems we face cannot be solved at the same level of thinking we were at when we created them.
--Albert Einstein
1 apple is not exactly 1/8 of 8 apples. Because there are no absolutely identical apples.
--Giordy
Post #1129082
Marios Philippopoulos
Marios Philippopoulos
Posted Tuesday, June 21, 2011 9:27 AM
SSCommitted
Group: General Forum Members
Last Login: Tuesday, May 14, 2013 7:10 AM
Points: 1,824,
Visits: 3,477
opc.three (6/21/2011)
Please have a look at this MSDN forum post. It references an MSDN article related to SSIS but see the section
"Eliminating the "Access Is Denied" Error
. The original poster resolved his own issue referencing that article so DCOM settings may be a common root cause to both your issue and the SSIS issue referenced in the article:
http://social.msdn.microsoft.com/Forums/en-NZ/sqltools/thread/7431a5a3-ef26-4e61-8a53-64cd616dcf84
Thank you, I'll check it.
__________________________________________________________________________________
Turbocharge Your Database Maintenance With Service Broker: Part 1
Real-Time Tracking of Tempdb Utilization Through Reporting Services
Monitoring Database Blocking Through SCOM 2007 Custom Rules and Alerts
Preparing for the Unthinkable - a Disaster/Recovery Implementation
Post #1129084
opc.three
opc.three
Posted Tuesday, June 21, 2011 9:30 AM
SSCertifiable
Group: General Forum Members
Last Login: Today @ 7:31 AM
Points: 6,703,
Visits: 11,731
You're welcome. If you happen to resolve it and have a moment to post the solution for others that would be great.
__________________________________________________________________________________________________
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
Believe you can and you're halfway there.
--Theodore Roosevelt
Everything Should Be Made as Simple as Possible, But Not Simpler
--Albert Einstein
The significant problems we face cannot be solved at the same level of thinking we were at when we created them.
--Albert Einstein
1 apple is not exactly 1/8 of 8 apples. Because there are no absolutely identical apples.
--Giordy
Post #1129085
Marios Philippopoulos
Marios Philippopoulos
Posted Tuesday, June 21, 2011 9:31 AM
SSCommitted
Group: General Forum Members
Last Login: Tuesday, May 14, 2013 7:10 AM
Points: 1,824,
Visits: 3,477
For sure.
__________________________________________________________________________________
Turbocharge Your Database Maintenance With Service Broker: Part 1
Real-Time Tracking of Tempdb Utilization Through Reporting Services
Monitoring Database Blocking Through SCOM 2007 Custom Rules and Alerts
Preparing for the Unthinkable - a Disaster/Recovery Implementation
Post #1129087
Sam Lachterman
Sam Lachterman
Posted Friday, July 22, 2011 3:27 PM
Forum Newbie
Group: General Forum Members
Last Login: Wednesday, April 24, 2013 1:40 PM
Points: 7,
Visits: 17
Has anyone found a solid fix for this issue? The fix referenced in my MSDN post did not fully resolve the issue for me.
Post #1146946
SQLALX
SQLALX
Posted Thursday, September 08, 2011 12:22 PM
Grasshopper
Group: General Forum Members
Last Login: Yesterday @ 5:50 PM
Points: 21,
Visits: 79
Firewall, RPC/DCOM setting/WMI securtiy might be involved.
The following article might provide some info:
[url=http://sqlbeyond.blogspot.com/2010/05/sql-wmi-permission-issue.html
]http://sqlbeyond.blogspot.com/2010/05/sql-wmi-permission-issue.html[/url]
Post #1172064
Patrick Ge
Patrick Ge
Posted Wednesday, November 07, 2012 3:26 PM
Forum Newbie
Group: General Forum Members
Last Login: Friday, April 05, 2013 5:20 AM
Points: 2,
Visits: 126
I had the same issue and fixed it.
My problem was when launching Configuration Manager I got an error message in relation to WMI which actually caused the problem you saw in powershell. After I ran:
mofcomp "C:\Program Files (x86)\Microsoft SQL Server\100\Shared\sqlmgmproviderxpsp2up.mof"
Both issues were fixed. I am running sql2008 r2 on win 2008 r2. You might need to change the path above.
By the way, why I found out this was because I tried to connect to a different instance on a different server, I didn't get the error. And that reminded me checking Configuration Manager because I had this issue before.
Let me know if this is also the case for you.
Post #1382197
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.