{"id":284,"date":"2020-09-01T15:52:34","date_gmt":"2020-09-01T20:52:34","guid":{"rendered":"https:\/\/www.paulreed.ca\/?p=284"},"modified":"2020-09-01T15:54:27","modified_gmt":"2020-09-01T20:54:27","slug":"puppet-quick-fix-provider-powershell-is-not-functional-on-this-host","status":"publish","type":"post","link":"https:\/\/paulreed.ca\/?p=284","title":{"rendered":"Puppet Quick Fix: &#8220;Provider powershell is not functional on this host&#8221;"},"content":{"rendered":"\n<p>Today I came across a very simple issue that didn&#8217;t come up with a fix in my usual quick google search. <\/p>\n\n\n\n<p>I updated my &#8216;puppetlabs-powershell&#8217; module and all of the sudden, my Windows catalogs stopped being able to compile. The error (below) didn&#8217;t come up with any quick fix in google, so I was scratching my head for a couple mins. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>The Error:<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-image size-full is-resized is-style-default\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.paulreed.ca\/wp-content\/uploads\/2020\/09\/pwsh_error1.png\" alt=\"Image of Puppet Error\" class=\"wp-image-285\" width=\"853\" height=\"134\" srcset=\"https:\/\/paulreed.ca\/wp-content\/uploads\/2020\/09\/pwsh_error1.png 1137w, https:\/\/paulreed.ca\/wp-content\/uploads\/2020\/09\/pwsh_error1-1024x160.png 1024w, https:\/\/paulreed.ca\/wp-content\/uploads\/2020\/09\/pwsh_error1-768x120.png 768w\" sizes=\"(max-width: 853px) 100vw, 853px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted\"><span class=\"has-inline-color has-vivid-red-color\"><strong>Error: \/Stage[main]\/Chocolatey::Install\/Exec[install_chocolatey_official]: Provider powershell is not functional on this host<\/strong><\/span><\/pre>\n\n\n\n<p>This error left me a little confused for a minute. This was working beforehand and I know that Powershell is installed and working correctly on my endpoint. I simply updated the module to a newer version.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The Fix:<\/h2>\n\n\n\n<p>It seems that at some point in the recent past, there was an additional dependency added for the &#8216;puppetlabs-powershell&#8217; module, which is clearly marked in the Puppet Forge, but of course I didn&#8217;t see it right away. <\/p>\n\n\n\n<p>Admittedly, I didn&#8217;t even think to check for new dependencies when updating a module. Lesson learned!<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.paulreed.ca\/wp-content\/uploads\/2020\/09\/pwsh_error2.png\" alt=\"\" class=\"wp-image-287\" width=\"719\" height=\"548\" srcset=\"https:\/\/paulreed.ca\/wp-content\/uploads\/2020\/09\/pwsh_error2.png 958w, https:\/\/paulreed.ca\/wp-content\/uploads\/2020\/09\/pwsh_error2-768x585.png 768w\" sizes=\"(max-width: 719px) 100vw, 719px\" \/><\/figure>\n\n\n\n<p>After adding that dependency to my Puppetfile, I was back once again working as intended.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.paulreed.ca\/wp-content\/uploads\/2020\/09\/pwsh_error3.png\" alt=\"\" class=\"wp-image-288\" width=\"1305\" height=\"347\" srcset=\"https:\/\/paulreed.ca\/wp-content\/uploads\/2020\/09\/pwsh_error3.png 1740w, https:\/\/paulreed.ca\/wp-content\/uploads\/2020\/09\/pwsh_error3-1024x272.png 1024w, https:\/\/paulreed.ca\/wp-content\/uploads\/2020\/09\/pwsh_error3-768x204.png 768w, https:\/\/paulreed.ca\/wp-content\/uploads\/2020\/09\/pwsh_error3-1536x409.png 1536w\" sizes=\"(max-width: 1305px) 100vw, 1305px\" \/><\/figure>\n\n\n\n<p>Hopefully google will pick up this article and save others the time it took me to realize what was going on here!<\/p>\n\n\n\n<p>Happy Puppetizing!<br \/>-Paul<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today I came across a very simple issue that didn&#8217;t come up with a fix in my usual quick google search. I updated my &#8216;puppetlabs-powershell&#8217; module and all of the sudden, my Windows catalogs stopped being able to compile. The error (below) didn&#8217;t come up with any quick fix in google, so I was scratching [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[64,22,62,54,63,21],"tags":[59,56,60,61,58,55],"_links":{"self":[{"href":"https:\/\/paulreed.ca\/index.php?rest_route=\/wp\/v2\/posts\/284"}],"collection":[{"href":"https:\/\/paulreed.ca\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/paulreed.ca\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/paulreed.ca\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/paulreed.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=284"}],"version-history":[{"count":2,"href":"https:\/\/paulreed.ca\/index.php?rest_route=\/wp\/v2\/posts\/284\/revisions"}],"predecessor-version":[{"id":289,"href":"https:\/\/paulreed.ca\/index.php?rest_route=\/wp\/v2\/posts\/284\/revisions\/289"}],"wp:attachment":[{"href":"https:\/\/paulreed.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=284"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/paulreed.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=284"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/paulreed.ca\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=284"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}