{"id":16661,"date":"2010-10-30T00:01:00","date_gmt":"2010-10-30T00:01:00","guid":{"rendered":"https:\/\/blogs.technet.microsoft.com\/heyscriptingguy\/2010\/10\/30\/weekend-scripter-troubleshooting-the-wmi-reliability-provider-for-windows-powershell\/"},"modified":"2010-10-30T00:01:00","modified_gmt":"2010-10-30T00:01:00","slug":"weekend-scripter-troubleshooting-the-wmi-reliability-provider-for-windows-powershell","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/scripting\/weekend-scripter-troubleshooting-the-wmi-reliability-provider-for-windows-powershell\/","title":{"rendered":"Weekend Scripter: Troubleshooting the WMI Reliability Provider for Windows PowerShell"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p><b>Summary:<\/b> Learn how to troubleshoot issues with the WMI Reliability provider when querying with Windows PowerShell.<\/p>\n<p>&nbsp;<\/p>\n<p>Microsoft Scripting Guy Ed Wilson here. I very frequently use Saturday mornings for catching up on things such as email. I received an email from JE who was having problems querying the <b>Win32_Reliablity<\/b> classes on his Windows Server 2008 R2 machine. He states that his Server is Windows Server 2008 R2 (full install) with all the latest updates.&nbsp; Here is his email: <\/p>\n<p>&nbsp;<\/p>\n<p>&#8220;<a href=\"http:\/\/blogs.technet.com\/b\/heyscriptingguy\/archive\/2010\/10\/05\/use-powershell-to-graph-the-reliability-of-windows-2008-r2.aspx\">After yesterday&#8217;s post<\/a>, I of course had to try your GWMI -Class Win32_Reliability stuff on my server.<\/p>\n<p>I did enable the &#8216;<a href=\"http:\/\/blogs.technet.com\/b\/heyscriptingguy\/archive\/2010\/10\/06\/use-powershell-to-check-for-wmi-dependencies-on-windows-7.aspx\">Configure Reliability WMI Providers<\/a>&#8216; via the local <strong>Group Policy<\/strong>. &nbsp;&nbsp;I kept receiving the &#8216;<em>Get-WmiObject : Provider load failure<\/em>&#8216; error on the server (running it locally on that server and also&nbsp; remotely from my Win7 machine).&nbsp; I noticed in today&#8217;s article that it would take several hours to actually enable, so I figured today it should work (it has been almost 24 hours since enabling on the server).&nbsp; Could it actually take longer than 24 hours?&nbsp; I still receive that Provider load failure message.&nbsp; I can pull up any other WMI class with GWMI. Do you have any idea as to what the problem is?&#8221;<\/p>\n<p>&nbsp;<\/p>\n<p>Here is my reply to JE:<\/p>\n<p>Depending on your configuration, it could possibly take more than 24 hours for the policy to update. However, if you are receiving a &#8220;<em>provider load failure<\/em>&#8221; error message, then that means the provider actually exists but that it is not working correctly. You&nbsp;can check whether the provider was enabled by looking at the registry. On my network at home, I enabled the provider through WMI as&nbsp;shown in the post.<\/p>\n<p>It worked on my physical Hyper-V W2k8 R2 machine. It is a member of the domain, and has the Hyper-V feature enabled. The update took less than an hour. <\/p>\n<p>On my Exchange 2010 server (non-SP1) I receive the &#8216;provider load failure&#8217; error. It has Windows Server 2008 R2 with all updates. Also on my SQL 2008 R2 server also running on Windows Server 2008 R2 I receive provider load failure. Both machines are running in a Hyper-V image &#8230; but I am beginning to wonder if there is something squirrely happening with these heavy apps. I have not had an opportunity to search the knowledge base for any known issues. <\/p>\n<p>Wait a minute! I just figured it out. <\/p>\n<p>For some reason, on my Exchange server and on my SQL server, the RAC scheduled task was not enabled. You have to enable the <b>RacTask<\/b> under the Rac folder in Microsoft \\ Windows under the scheduled tasks. It is seen here:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/5611.WES-10-30-10-01.jpg\" border=\"0\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>The <b>RacTask<\/b> should resemble this. Make sure that you <b>Enable<\/b> the task. <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/0572.WES-10-30-10-02.jpg\" border=\"0\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>After I did this on my Exchange and SQL servers, I was immediately able to query the <b>Win32_Reliability<\/b> classes. <\/p>\n<p>&nbsp;<\/p>\n<p>I invite you to follow me on <a target=\"_blank\" href=\"http:\/\/bit.ly\/scriptingguystwitter\">Twitter<\/a> or <a href=\"http:\/\/bit.ly\/scriptingguysfacebook\">Facebook<\/a>. If you have any questions, send email to me at <a target=\"_blank\" href=\"mailto:scripter@microsoft.com\">scripter@microsoft.com<\/a> or post them on the <a target=\"_blank\" href=\"http:\/\/bit.ly\/scriptingforum\">Official Scripting Guys Forum<\/a>. See you tomorrow. Until then, peace.<\/p>\n<p>&nbsp;<\/p>\n<p><b>Ed Wilson, Microsoft Scripting Guy<\/b><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; Summary: Learn how to troubleshoot issues with the WMI Reliability provider when querying with Windows PowerShell. &nbsp; Microsoft Scripting Guy Ed Wilson here. I very frequently use Saturday mornings for catching up on things such as email. I received an email from JE who was having problems querying the Win32_Reliablity classes on his Windows [&hellip;]<\/p>\n","protected":false},"author":595,"featured_media":87096,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[31,60,3,61,45],"class_list":["post-16661","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-scripting","tag-operating-system","tag-performance","tag-scripting-guy","tag-weekend-scripter","tag-windows-powershell"],"acf":[],"blog_post_summary":"<p>&nbsp; Summary: Learn how to troubleshoot issues with the WMI Reliability provider when querying with Windows PowerShell. &nbsp; Microsoft Scripting Guy Ed Wilson here. I very frequently use Saturday mornings for catching up on things such as email. I received an email from JE who was having problems querying the Win32_Reliablity classes on his Windows [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts\/16661","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/users\/595"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/comments?post=16661"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts\/16661\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/media\/87096"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/media?parent=16661"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/categories?post=16661"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/tags?post=16661"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}