{"id":1194,"date":"2021-10-04T11:50:16","date_gmt":"2021-10-04T09:50:16","guid":{"rendered":"https:\/\/ndk.sytes.net\/wordpress\/?p=1194"},"modified":"2021-10-04T11:52:19","modified_gmt":"2021-10-04T09:52:19","slug":"psgallery-windows-server-2016","status":"publish","type":"post","link":"https:\/\/ndk.sytes.net\/wordpress\/?p=1194","title":{"rendered":"PSGallery Windows Server 2016"},"content":{"rendered":"\n<p>If you should have problems installing packages from PSGallery on your Windows Server installation try the following:<\/p>\n\n\n\n<p>Open a PowerShell session as administrator:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12\n\nUnregister-PSRepository -Name \"PSGallery\"\n\nRegister-PSRepository -Default -Verbose\n\nSet-PSRepository -Name \"PSGallery\" -InstallationPolicy Trusted<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>If you should have problems installing packages from PSGallery on your Windows Server installation try the following: Open a PowerShell session as administrator: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 Unregister-PSRepository -Name &#8220;PSGallery&#8221; Register-PSRepository -Default -Verbose Set-PSRepository -Name &#8220;PSGallery&#8221; -InstallationPolicy Trusted<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,9],"tags":[],"class_list":["post-1194","post","type-post","status-publish","format-standard","hentry","category-servers","category-windows"],"_links":{"self":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1194","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1194"}],"version-history":[{"count":3,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1194\/revisions"}],"predecessor-version":[{"id":1197,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1194\/revisions\/1197"}],"wp:attachment":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1194"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1194"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1194"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}