{"id":657,"date":"2020-02-07T23:44:44","date_gmt":"2020-02-08T04:44:44","guid":{"rendered":"http:\/\/itblog.ldlnet.net\/?p=657"},"modified":"2020-02-07T23:50:37","modified_gmt":"2020-02-08T04:50:37","slug":"adding-windows-capability-to-server-core-to-add-features-needed-for-application-compatibility","status":"publish","type":"post","link":"https:\/\/itblog.ldlnet.net\/index.php\/2020\/02\/07\/adding-windows-capability-to-server-core-to-add-features-needed-for-application-compatibility\/","title":{"rendered":"Adding Windows Capability to Server Core to add features needed for Application Compatibility"},"content":{"rendered":"\n<p>I&#8217;ve been working on installing Windows Server 2019 Core into my network to be able to look at new features for Windows Administration and learning how Server Core works. I was able to install a virtual machine with Server Core and get it activated. I then wanted to place my custom PowerShell script for loading PowerShell into the Server Core Environment.<\/p>\n\n\n\n<p>So, I added the Server Core Server to the Windows Admin Center and copied my custom scripts for PowerShell into the proper directory:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/02\/image-1024x292.png\" alt=\"Windows Admin Center\" class=\"wp-image-658\" width=\"911\" height=\"259\" srcset=\"https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/02\/image-1024x292.png 1024w, https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/02\/image-300x85.png 300w, https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/02\/image-768x219.png 768w, https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/02\/image.png 1446w\" sizes=\"auto, (max-width: 911px) 100vw, 911px\" \/><figcaption>Windows Admin Center<\/figcaption><\/figure>\n\n\n\n<p>I then logged on remotely to the server and started PowerShell. When I did that, I got this error with the script load:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/02\/Initial-IE-Error-1024x102.png\" alt=\"Error that IE First Run has not been completed\" class=\"wp-image-659\" width=\"923\" height=\"91\" srcset=\"https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/02\/Initial-IE-Error-1024x102.png 1024w, https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/02\/Initial-IE-Error-300x30.png 300w, https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/02\/Initial-IE-Error-768x76.png 768w, https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/02\/Initial-IE-Error-1536x153.png 1536w, https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/02\/Initial-IE-Error.png 1570w\" sizes=\"auto, (max-width: 923px) 100vw, 923px\" \/><figcaption>Error that IE First Run has not been completed<\/figcaption><\/figure>\n\n\n\n<p>At first, I tried using the -UseBasicParsing as a switch to see if that would repair the issue in the script. It did not because, IE is not installed by default on the default installation of Server Core. That is so there is less of a footprint that can be attacked by a hacker. I needed this installed though so that the Invoke-WebRequest cmdlet would load my script parameters properly.<\/p>\n\n\n\n<p>I started looking for answers to how to install IE onto the Server Core box and found the following <strong><em><a rel=\"noreferrer noopener\" aria-label=\"article (opens in a new tab)\" href=\"https:\/\/docs.microsoft.com\/en-us\/windows-server\/get-started-19\/install-fod-19\" target=\"_blank\">article<\/a><\/em><\/strong>. I had to run the Add-WindowsCapability cmdlet on the server to install the optional components. When I did, I received an error:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/02\/Add-Windows-Capability-Error.png\" alt=\"Error when adding the Windows Capability\" class=\"wp-image-661\" width=\"908\" height=\"115\" srcset=\"https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/02\/Add-Windows-Capability-Error.png 992w, https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/02\/Add-Windows-Capability-Error-300x38.png 300w, https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/02\/Add-Windows-Capability-Error-768x98.png 768w\" sizes=\"auto, (max-width: 908px) 100vw, 908px\" \/><figcaption>Error when adding the Windows Capability<\/figcaption><\/figure>\n\n\n\n<p>So I found out that there is a block that WSUS does keeping the cmdlet from going to the online source to download the software package and producing this error. After researching, I found this <strong><em><a rel=\"noreferrer noopener\" aria-label=\"article (opens in a new tab)\" href=\"https:\/\/www.prajwaldesai.com\/rsat-tools-installation-error-0x800f0954\/\" target=\"_blank\">article<\/a><\/em><\/strong>. I setup a Group Policy to make sure this setting is propagated to my Server Core machine. I also setup in the same policy the ability to turn off the First-Run for IE so that you do not get that message and have to open IE to &#8220;set it up&#8221;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/02\/image-1-1024x407.png\" alt=\"Group Policy Setting with Path to Templates Specified\" class=\"wp-image-662\" width=\"941\" height=\"374\" srcset=\"https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/02\/image-1-1024x407.png 1024w, https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/02\/image-1-300x119.png 300w, https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/02\/image-1-768x305.png 768w, https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/02\/image-1.png 1346w\" sizes=\"auto, (max-width: 941px) 100vw, 941px\" \/><figcaption>Group Policy Setting with Path to Templates Specified<\/figcaption><\/figure>\n\n\n\n<p>I then ran a gpupdate \/force on the Server and was able to download the components for IE and App Compatibility.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/02\/Apply-GP-Success-with-Add-WIndows-Capability.png\" alt=\"Successful Installation of Windows Capability\" class=\"wp-image-663\" width=\"944\" height=\"213\" srcset=\"https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/02\/Apply-GP-Success-with-Add-WIndows-Capability.png 906w, https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/02\/Apply-GP-Success-with-Add-WIndows-Capability-300x68.png 300w, https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/02\/Apply-GP-Success-with-Add-WIndows-Capability-768x174.png 768w\" sizes=\"auto, (max-width: 944px) 100vw, 944px\" \/><figcaption>Successful Installation of Windows Capability<\/figcaption><\/figure>\n\n\n\n<p>I then rebooted the server and now my PowerShell loads successfully:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/02\/image-3-1024x391.png\" alt=\"Successful PowerShell Load\" class=\"wp-image-666\" width=\"939\" height=\"359\" srcset=\"https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/02\/image-3-1024x391.png 1024w, https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/02\/image-3-300x114.png 300w, https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/02\/image-3-768x293.png 768w, https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/02\/image-3.png 1316w\" sizes=\"auto, (max-width: 939px) 100vw, 939px\" \/><figcaption>Successful PowerShell Load<\/figcaption><\/figure>\n\n\n\n<p>I learned a few different new things here and was able to get Server Core working more the way that I like it. I will keep posting updates when I run into issues with this type of installation. I would definitely give the Windows Admin Center a try as it has more robust features than Server Manager has, especially for Server 2019 and Server Core.<\/p>\n\n\n\n<h2 class=\"has-text-align-center wp-block-heading\">CONQUER THE UNCOMFORTABLE TO GROW!<br>POSITIVE ATTITUDE ABIDES!<\/h2>\n\n\n\n<p class=\"has-small-font-size\"><strong><em>REFERENCES:<\/em><\/strong><br><strong><a rel=\"noreferrer noopener\" aria-label=\"RSAT Tools Installation Error 0x800f0954 \u2013 Windows 10 1809 (opens in a new tab)\" href=\"https:\/\/www.prajwaldesai.com\/rsat-tools-installation-error-0x800f0954\/\" target=\"_blank\">RSAT Tools Installation Error 0x800f0954 \u2013 Windows 10 1809<\/a><\/strong><br><strong><a rel=\"noreferrer noopener\" aria-label=\"Server Core App Compatibility Feature on Demand (FOD) (opens in a new tab)\" href=\"https:\/\/docs.microsoft.com\/en-us\/windows-server\/get-started-19\/install-fod-19\" target=\"_blank\">Server Core App Compatibility Feature on Demand (FOD)<\/a><\/strong><br><strong><a href=\"https:\/\/www.weavweb.net\/2015\/07\/07\/set-up-internet-explorer-11-bypass-with-gpo-or-registry\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"\u201cSet Up Internet Explorer 11\u201d Bypass with GPO or Registry (opens in a new tab)\">\u201cSet Up Internet Explorer 11\u201d Bypass with GPO or Registry<\/a><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve been working on installing Windows Server 2019 Core into my network to be able to look at new features for Windows<\/p>\n<p class=\"link-more\"><a class=\"myButt \" href=\"https:\/\/itblog.ldlnet.net\/index.php\/2020\/02\/07\/adding-windows-capability-to-server-core-to-add-features-needed-for-application-compatibility\/\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":159,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[195,2,3,16],"tags":[227,15,8,20,228,226,120,224],"class_list":["post-657","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-azure","category-general","category-powershell","category-windows","tag-add-windowscapability","tag-cmdlet","tag-powershell","tag-windows","tag-windows-server-admin","tag-windows-server-core","tag-windows-updates","tag-wsus","odd"],"_links":{"self":[{"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/posts\/657","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/comments?post=657"}],"version-history":[{"count":7,"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/posts\/657\/revisions"}],"predecessor-version":[{"id":671,"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/posts\/657\/revisions\/671"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/media\/159"}],"wp:attachment":[{"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/media?parent=657"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/categories?post=657"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/tags?post=657"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}