﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Programming / Powershell  / powershell WMI error: "Could not obtain SQL Server Service information. An attempt to connect to WMI ... failed with the following error: access is denied." / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Thu, 23 May 2013 19:13:15 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: powershell WMI error: "Could not obtain SQL Server Service information. An attempt to connect to WMI ... failed with the following error: access is denied."</title><link>http://www.sqlservercentral.com/Forums/Topic1128582-1351-1.aspx</link><description>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.</description><pubDate>Wed, 07 Nov 2012 15:26:36 GMT</pubDate><dc:creator>Patrick Ge</dc:creator></item><item><title>RE: powershell WMI error: "Could not obtain SQL Server Service information. An attempt to connect to WMI ... failed with the following error: access is denied."</title><link>http://www.sqlservercentral.com/Forums/Topic1128582-1351-1.aspx</link><description>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]</description><pubDate>Thu, 08 Sep 2011 12:22:24 GMT</pubDate><dc:creator>SQLALX</dc:creator></item><item><title>RE: powershell WMI error: "Could not obtain SQL Server Service information. An attempt to connect to WMI ... failed with the following error: access is denied."</title><link>http://www.sqlservercentral.com/Forums/Topic1128582-1351-1.aspx</link><description>Has anyone found a solid fix for this issue? The fix referenced in my MSDN post did not fully resolve the issue for me.</description><pubDate>Fri, 22 Jul 2011 15:27:21 GMT</pubDate><dc:creator>Sam Lachterman</dc:creator></item><item><title>RE: powershell WMI error: "Could not obtain SQL Server Service information. An attempt to connect to WMI ... failed with the following error: access is denied."</title><link>http://www.sqlservercentral.com/Forums/Topic1128582-1351-1.aspx</link><description>For sure.</description><pubDate>Tue, 21 Jun 2011 09:31:38 GMT</pubDate><dc:creator>Marios Philippopoulos</dc:creator></item><item><title>RE: powershell WMI error: "Could not obtain SQL Server Service information. An attempt to connect to WMI ... failed with the following error: access is denied."</title><link>http://www.sqlservercentral.com/Forums/Topic1128582-1351-1.aspx</link><description>You're welcome. If you happen to resolve it and have a moment to post the solution for others that would be great.</description><pubDate>Tue, 21 Jun 2011 09:30:48 GMT</pubDate><dc:creator>opc.three</dc:creator></item><item><title>RE: powershell WMI error: "Could not obtain SQL Server Service information. An attempt to connect to WMI ... failed with the following error: access is denied."</title><link>http://www.sqlservercentral.com/Forums/Topic1128582-1351-1.aspx</link><description>[quote][b]opc.three (6/21/2011)[/b][hr]Please have a look at this MSDN forum post. It references an MSDN article related to SSIS but see the section [i]"Eliminating the "Access Is Denied" Error[/i]. 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:[url=http://social.msdn.microsoft.com/Forums/en-NZ/sqltools/thread/7431a5a3-ef26-4e61-8a53-64cd616dcf84]http://social.msdn.microsoft.com/Forums/en-NZ/sqltools/thread/7431a5a3-ef26-4e61-8a53-64cd616dcf84[/url][/quote]Thank you, I'll check it.</description><pubDate>Tue, 21 Jun 2011 09:27:54 GMT</pubDate><dc:creator>Marios Philippopoulos</dc:creator></item><item><title>RE: powershell WMI error: "Could not obtain SQL Server Service information. An attempt to connect to WMI ... failed with the following error: access is denied."</title><link>http://www.sqlservercentral.com/Forums/Topic1128582-1351-1.aspx</link><description>Please have a look at this MSDN forum post. It references an MSDN article related to SSIS but see the section [i]"Eliminating the "Access Is Denied" Error[/i]. 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:[url=http://social.msdn.microsoft.com/Forums/en-NZ/sqltools/thread/7431a5a3-ef26-4e61-8a53-64cd616dcf84]http://social.msdn.microsoft.com/Forums/en-NZ/sqltools/thread/7431a5a3-ef26-4e61-8a53-64cd616dcf84[/url]</description><pubDate>Tue, 21 Jun 2011 09:26:04 GMT</pubDate><dc:creator>opc.three</dc:creator></item><item><title>RE: powershell WMI error: "Could not obtain SQL Server Service information. An attempt to connect to WMI ... failed with the following error: access is denied."</title><link>http://www.sqlservercentral.com/Forums/Topic1128582-1351-1.aspx</link><description>[quote][b]opc.three (6/20/2011)[/b][hr]What version is the OS is running on the remote server? What version is the database instance?[/quote]Thank you for responding.OS is on Windows 2003 R2, SP2sql is on SQL 2008 SP2.</description><pubDate>Tue, 21 Jun 2011 09:09:58 GMT</pubDate><dc:creator>Marios Philippopoulos</dc:creator></item><item><title>RE: powershell WMI error: "Could not obtain SQL Server Service information. An attempt to connect to WMI ... failed with the following error: access is denied."</title><link>http://www.sqlservercentral.com/Forums/Topic1128582-1351-1.aspx</link><description>What version is the OS is running on the remote server? What version is the database instance?</description><pubDate>Mon, 20 Jun 2011 16:42:20 GMT</pubDate><dc:creator>opc.three</dc:creator></item><item><title>powershell WMI error: "Could not obtain SQL Server Service information. An attempt to connect to WMI ... failed with the following error: access is denied."</title><link>http://www.sqlservercentral.com/Forums/Topic1128582-1351-1.aspx</link><description>I get the following error when I launch powershell from SSMS, after right-clicking on a remote SQL instance and choosing "Start powershell":[quote]Warning: Could not obtain SQL Server Service information. An attempt to connect to WMI on server1 failed with the following error: access is denied.[/quote]How can I fix this?</description><pubDate>Mon, 20 Jun 2011 15:11:36 GMT</pubDate><dc:creator>Marios Philippopoulos</dc:creator></item></channel></rss>