{"id":18889,"date":"2015-09-22T10:29:40","date_gmt":"2015-09-22T09:29:40","guid":{"rendered":"https:\/\/aidanfinn.com\/?p=18889"},"modified":"2015-09-22T12:52:16","modified_gmt":"2015-09-22T11:52:16","slug":"install-windowsfeature-an-unexpected-error-has-occurred-error-when-you-run-install-windowsfeature-in-a-windows-server-container","status":"publish","type":"post","link":"https:\/\/aidanfinn.com\/?p=18889","title":{"rendered":"&ldquo;Install-WindowsFeature : An unexpected error has occurred&rdquo; Error When You Run Install-WindowsFeature In A Windows Server Container"},"content":{"rendered":"<p>This is one of those issues that makes me question a lot of step-by-step blog posts on Windows Server Containers that are out there &#8211; plenty of people were quick to publish guides on containers and didn&#8217;t mention encountering this issue which I always encounter; I suspect that there\u2019s a lot of copy\/pasting from Microsoft sites with little actual testing in a rush to be first to publish. It\u2019s clear that many bloggers didn\u2019t try to install things in a container that required administrator rights, because UAC was blocking those actions. In my case, it was installing IIS in a Windows Server 2016 (WS2016) Technical Preview 3 (TPv3) container.<\/p>\n<p>In my lab, I created a new container and then logged in using the following (I had already populated $Container by\u00a0 returning the container object into the variable):<\/p>\n<pre class=\"lang:default decode:true \">Enter-PSSession -ContainerId $Container.ContainerId -RunAsAdministrator<\/pre>\n<p>And then I tried to install some role\/feature, such as IIS using Install-WindowsFeature:<\/p>\n<pre class=\"lang:default decode:true\">Install-WindowsFeature -Name Web-Server\r\n<\/pre>\n<p>I logged in using -RunAsAdministrator so I should have no issues with UAC, right? Wrong! Because the installation fails as follows:<\/p>\n<blockquote><p>Install-WindowsFeature : An unexpected error has occurred. The system cannot find the file specified.\u00a0 Error: 0x80070002<br \/>\n+ CategoryInfo\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 : InvalidResult: (@{Vhd=; Credent&#8230;Name=localhost}:PSObject) [Install-WindowsFeature], Exception<br \/>\n+ FullyQualifiedErrorId : RegistryKey_OpenSubKey_Failed,Microsoft.Windows.ServerManager.Commands.AddWindowsFeatureCommand<\/p><\/blockquote>\n<p><a href=\"https:\/\/aidanfinn.com\/wp-content\/uploads\/2015\/09\/image8.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; float: none; padding-top: 0px; padding-left: 0px; margin-left: auto; display: block; padding-right: 0px; margin-right: auto; border: 0px;\" title=\"image\" src=\"https:\/\/aidanfinn.com\/wp-content\/uploads\/2015\/09\/image_thumb7.png\" alt=\"image\" width=\"600\" height=\"100\" border=\"0\" \/><\/a><\/p>\n<p>What\u2019s the solution? When you are remoted into the container you need to raise your administrator privileges to counter UAC. You can do this as follows, after you log into the container:<\/p>\n<p>Start-Process Powershell.exe -Verb runAs<\/p>\n<p>Run Install-WindowsFeature now and it will complete.<\/p>\n<p><a href=\"https:\/\/aidanfinn.com\/wp-content\/uploads\/2015\/09\/image9.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; float: none; padding-top: 0px; padding-left: 0px; margin-left: auto; display: block; padding-right: 0px; margin-right: auto; border: 0px;\" title=\"image\" src=\"https:\/\/aidanfinn.com\/wp-content\/uploads\/2015\/09\/image_thumb8.png\" alt=\"image\" width=\"550\" height=\"89\" border=\"0\" \/><\/a><\/p>\n<p>Sorted!<\/p>\n<p><em>Note: I have found in my testing that IIS behaves poorly in TPv3. This might be why Microsoft&#8217;s getting started guides on MSDN use nginx web server instead of IIS! I&#8217;ve confirmed that nginx works perfectly well.<\/em><\/p>\n<div id=\"scid:0767317B-992E-4b12-91E0-4F059A8CECA8:285d6adf-2974-4b30-8493-a8f368bb0fcc\" class=\"wlWriterEditableSmartContent\" style=\"float: none; margin: 0px; display: inline; padding: 0px;\">Technorati Tags: <a href=\"http:\/\/technorati.com\/tags\/Windows+Server+2016\" rel=\"tag\">Windows Server 2016<\/a>,<a href=\"http:\/\/technorati.com\/tags\/Containers\" rel=\"tag\">Containers<\/a>,<a href=\"http:\/\/technorati.com\/tags\/Hyper-V\" rel=\"tag\">Hyper-V<\/a>,<a href=\"http:\/\/technorati.com\/tags\/Virtualisation\" rel=\"tag\">Virtualisation<\/a>,<a href=\"http:\/\/technorati.com\/tags\/Deployment\" rel=\"tag\">Deployment<\/a>,<a href=\"http:\/\/technorati.com\/tags\/PowerShell\" rel=\"tag\">PowerShell<\/a>,<a href=\"http:\/\/technorati.com\/tags\/IIS\" rel=\"tag\">IIS<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>This is one of those issues that makes me question a lot of step-by-step blog posts on Windows Server Containers that are out there &#8211; plenty of people were quick to publish guides on containers and didn&#8217;t mention encountering this issue which I always encounter; I suspect that there\u2019s a lot of copy\/pasting from Microsoft &hellip; <a href=\"https:\/\/aidanfinn.com\/?p=18889\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;&ldquo;Install-WindowsFeature : An unexpected error has occurred&rdquo; Error When You Run Install-WindowsFeature In A Windows Server Container&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":18900,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"_wpcom_ai_launchpad_first_post":false,"footnotes":""},"categories":[20],"tags":[143,174,181,182,87,195,137],"class_list":["post-18889","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-hyper-v","tag-containers","tag-deployment","tag-hyper-v","tag-iis","tag-powershell","tag-virtualisation","tag-windows-server-2016"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.1.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"You get &quot;Install-WindowsFeature : An unexpected error has occurred&quot; or admin rights errors when installing stuff in a Windows Server container.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"AFinn\"\/>\n\t<meta name=\"google-site-verification\" content=\"TDKjbi2McB2eLIfL6KwPB3aQqv5E-mbcb2QYIcovGaI\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/aidanfinn.com\/?p=18889\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.1.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_GB\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Aidan Finn, IT Pro - A blog covering Azure, Hyper-V, Windows Server, desktop, systems management, deployment, and so on ...\" \/>\n\t\t<meta property=\"og:type\" content=\"activity\" \/>\n\t\t<meta property=\"og:title\" content=\"\u201cInstall-WindowsFeature : An unexpected error has occurred\u201d Error When You Run Install-WindowsFeature In A Windows Server Container | Aidan Finn, IT Pro\" \/>\n\t\t<meta property=\"og:description\" content=\"You get &quot;Install-WindowsFeature : An unexpected error has occurred&quot; or admin rights errors when installing stuff in a Windows Server container.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/aidanfinn.com\/?p=18889\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@joe_elway\" \/>\n\t\t<meta name=\"twitter:title\" content=\"\u201cInstall-WindowsFeature : An unexpected error has occurred\u201d Error When You Run Install-WindowsFeature In A Windows Server Container | Aidan Finn, IT Pro\" \/>\n\t\t<meta name=\"twitter:description\" content=\"You get &quot;Install-WindowsFeature : An unexpected error has occurred&quot; or admin rights errors when installing stuff in a Windows Server container.\" \/>\n\t\t<meta name=\"twitter:creator\" content=\"@joe_elway\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?p=18889#article\",\"name\":\"\\u201cInstall-WindowsFeature : An unexpected error has occurred\\u201d Error When You Run Install-WindowsFeature In A Windows Server Container | Aidan Finn, IT Pro\",\"headline\":\"&ldquo;Install-WindowsFeature : An unexpected error has occurred&rdquo; Error When You Run Install-WindowsFeature In A Windows Server Container\",\"author\":{\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?author=1#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/aidanfinn.com\\\/wp-content\\\/uploads\\\/2015\\\/09\\\/5315.powershell_2D00_logo.gif_2D00_550x01.png\",\"width\":550,\"height\":372},\"datePublished\":\"2015-09-22T10:29:40+01:00\",\"dateModified\":\"2015-09-22T12:52:16+01:00\",\"inLanguage\":\"en-GB\",\"commentCount\":1,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?p=18889#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?p=18889#webpage\"},\"articleSection\":\"Hyper-V, Containers, Deployment, Hyper-V, IIS, PowerShell, Virtualisation, Windows Server 2016\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?p=18889#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/aidanfinn.com#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/aidanfinn.com\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?cat=20#listItem\",\"name\":\"Hyper-V\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?cat=20#listItem\",\"position\":2,\"name\":\"Hyper-V\",\"item\":\"https:\\\/\\\/aidanfinn.com\\\/?cat=20\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?p=18889#listItem\",\"name\":\"&ldquo;Install-WindowsFeature : An unexpected error has occurred&rdquo; Error When You Run Install-WindowsFeature In A Windows Server Container\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/aidanfinn.com#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?p=18889#listItem\",\"position\":3,\"name\":\"&ldquo;Install-WindowsFeature : An unexpected error has occurred&rdquo; Error When You Run Install-WindowsFeature In A Windows Server Container\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?cat=20#listItem\",\"name\":\"Hyper-V\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/#person\",\"name\":\"AFinn\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?p=18889#personImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/65fde4aa9f2ab1cf1514ae320a37ec682d9398ce5791d3c2dd1e8670a71ceea0?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"AFinn\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?author=1#author\",\"url\":\"https:\\\/\\\/aidanfinn.com\\\/?author=1\",\"name\":\"AFinn\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?p=18889#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/65fde4aa9f2ab1cf1514ae320a37ec682d9398ce5791d3c2dd1e8670a71ceea0?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"AFinn\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?p=18889#webpage\",\"url\":\"https:\\\/\\\/aidanfinn.com\\\/?p=18889\",\"name\":\"\\u201cInstall-WindowsFeature : An unexpected error has occurred\\u201d Error When You Run Install-WindowsFeature In A Windows Server Container | Aidan Finn, IT Pro\",\"description\":\"You get \\\"Install-WindowsFeature : An unexpected error has occurred\\\" or admin rights errors when installing stuff in a Windows Server container.\",\"inLanguage\":\"en-GB\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?p=18889#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?author=1#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?author=1#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/aidanfinn.com\\\/wp-content\\\/uploads\\\/2015\\\/09\\\/5315.powershell_2D00_logo.gif_2D00_550x01.png\",\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?p=18889\\\/#mainImage\",\"width\":550,\"height\":372},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?p=18889#mainImage\"},\"datePublished\":\"2015-09-22T10:29:40+01:00\",\"dateModified\":\"2015-09-22T12:52:16+01:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/#website\",\"url\":\"https:\\\/\\\/aidanfinn.com\\\/\",\"name\":\"Aidan Finn, IT Pro\",\"description\":\"A blog covering Azure, Hyper-V, Windows Server, desktop, systems management, deployment, and so on ...\",\"inLanguage\":\"en-GB\",\"publisher\":{\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\u201cInstall-WindowsFeature : An unexpected error has occurred\u201d Error When You Run Install-WindowsFeature In A Windows Server Container | Aidan Finn, IT Pro","description":"You get \"Install-WindowsFeature : An unexpected error has occurred\" or admin rights errors when installing stuff in a Windows Server container.","canonical_url":"https:\/\/aidanfinn.com\/?p=18889","robots":"max-image-preview:large","keywords":"","webmasterTools":{"google-site-verification":"TDKjbi2McB2eLIfL6KwPB3aQqv5E-mbcb2QYIcovGaI","miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/aidanfinn.com\/?p=18889#article","name":"\u201cInstall-WindowsFeature : An unexpected error has occurred\u201d Error When You Run Install-WindowsFeature In A Windows Server Container | Aidan Finn, IT Pro","headline":"&ldquo;Install-WindowsFeature : An unexpected error has occurred&rdquo; Error When You Run Install-WindowsFeature In A Windows Server Container","author":{"@id":"https:\/\/aidanfinn.com\/?author=1#author"},"publisher":{"@id":"https:\/\/aidanfinn.com\/#person"},"image":{"@type":"ImageObject","url":"https:\/\/aidanfinn.com\/wp-content\/uploads\/2015\/09\/5315.powershell_2D00_logo.gif_2D00_550x01.png","width":550,"height":372},"datePublished":"2015-09-22T10:29:40+01:00","dateModified":"2015-09-22T12:52:16+01:00","inLanguage":"en-GB","commentCount":1,"mainEntityOfPage":{"@id":"https:\/\/aidanfinn.com\/?p=18889#webpage"},"isPartOf":{"@id":"https:\/\/aidanfinn.com\/?p=18889#webpage"},"articleSection":"Hyper-V, Containers, Deployment, Hyper-V, IIS, PowerShell, Virtualisation, Windows Server 2016"},{"@type":"BreadcrumbList","@id":"https:\/\/aidanfinn.com\/?p=18889#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/aidanfinn.com#listItem","position":1,"name":"Home","item":"https:\/\/aidanfinn.com","nextItem":{"@type":"ListItem","@id":"https:\/\/aidanfinn.com\/?cat=20#listItem","name":"Hyper-V"}},{"@type":"ListItem","@id":"https:\/\/aidanfinn.com\/?cat=20#listItem","position":2,"name":"Hyper-V","item":"https:\/\/aidanfinn.com\/?cat=20","nextItem":{"@type":"ListItem","@id":"https:\/\/aidanfinn.com\/?p=18889#listItem","name":"&ldquo;Install-WindowsFeature : An unexpected error has occurred&rdquo; Error When You Run Install-WindowsFeature In A Windows Server Container"},"previousItem":{"@type":"ListItem","@id":"https:\/\/aidanfinn.com#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/aidanfinn.com\/?p=18889#listItem","position":3,"name":"&ldquo;Install-WindowsFeature : An unexpected error has occurred&rdquo; Error When You Run Install-WindowsFeature In A Windows Server Container","previousItem":{"@type":"ListItem","@id":"https:\/\/aidanfinn.com\/?cat=20#listItem","name":"Hyper-V"}}]},{"@type":"Person","@id":"https:\/\/aidanfinn.com\/#person","name":"AFinn","image":{"@type":"ImageObject","@id":"https:\/\/aidanfinn.com\/?p=18889#personImage","url":"https:\/\/secure.gravatar.com\/avatar\/65fde4aa9f2ab1cf1514ae320a37ec682d9398ce5791d3c2dd1e8670a71ceea0?s=96&d=mm&r=g","width":96,"height":96,"caption":"AFinn"}},{"@type":"Person","@id":"https:\/\/aidanfinn.com\/?author=1#author","url":"https:\/\/aidanfinn.com\/?author=1","name":"AFinn","image":{"@type":"ImageObject","@id":"https:\/\/aidanfinn.com\/?p=18889#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/65fde4aa9f2ab1cf1514ae320a37ec682d9398ce5791d3c2dd1e8670a71ceea0?s=96&d=mm&r=g","width":96,"height":96,"caption":"AFinn"}},{"@type":"WebPage","@id":"https:\/\/aidanfinn.com\/?p=18889#webpage","url":"https:\/\/aidanfinn.com\/?p=18889","name":"\u201cInstall-WindowsFeature : An unexpected error has occurred\u201d Error When You Run Install-WindowsFeature In A Windows Server Container | Aidan Finn, IT Pro","description":"You get \"Install-WindowsFeature : An unexpected error has occurred\" or admin rights errors when installing stuff in a Windows Server container.","inLanguage":"en-GB","isPartOf":{"@id":"https:\/\/aidanfinn.com\/#website"},"breadcrumb":{"@id":"https:\/\/aidanfinn.com\/?p=18889#breadcrumblist"},"author":{"@id":"https:\/\/aidanfinn.com\/?author=1#author"},"creator":{"@id":"https:\/\/aidanfinn.com\/?author=1#author"},"image":{"@type":"ImageObject","url":"https:\/\/aidanfinn.com\/wp-content\/uploads\/2015\/09\/5315.powershell_2D00_logo.gif_2D00_550x01.png","@id":"https:\/\/aidanfinn.com\/?p=18889\/#mainImage","width":550,"height":372},"primaryImageOfPage":{"@id":"https:\/\/aidanfinn.com\/?p=18889#mainImage"},"datePublished":"2015-09-22T10:29:40+01:00","dateModified":"2015-09-22T12:52:16+01:00"},{"@type":"WebSite","@id":"https:\/\/aidanfinn.com\/#website","url":"https:\/\/aidanfinn.com\/","name":"Aidan Finn, IT Pro","description":"A blog covering Azure, Hyper-V, Windows Server, desktop, systems management, deployment, and so on ...","inLanguage":"en-GB","publisher":{"@id":"https:\/\/aidanfinn.com\/#person"}}]},"og:locale":"en_GB","og:site_name":"Aidan Finn, IT Pro - A blog covering Azure, Hyper-V, Windows Server, desktop, systems management, deployment, and so on ...","og:type":"activity","og:title":"\u201cInstall-WindowsFeature : An unexpected error has occurred\u201d Error When You Run Install-WindowsFeature In A Windows Server Container | Aidan Finn, IT Pro","og:description":"You get &quot;Install-WindowsFeature : An unexpected error has occurred&quot; or admin rights errors when installing stuff in a Windows Server container.","og:url":"https:\/\/aidanfinn.com\/?p=18889","twitter:card":"summary","twitter:site":"@joe_elway","twitter:title":"\u201cInstall-WindowsFeature : An unexpected error has occurred\u201d Error When You Run Install-WindowsFeature In A Windows Server Container | Aidan Finn, IT Pro","twitter:description":"You get &quot;Install-WindowsFeature : An unexpected error has occurred&quot; or admin rights errors when installing stuff in a Windows Server container.","twitter:creator":"@joe_elway"},"aioseo_meta_data":{"post_id":"18889","title":null,"description":"You get &quot;Install-WindowsFeature : An unexpected error has occurred&quot; or admin rights errors when installing stuff in a Windows Server container.","keywords":[{"label":"Containers","value":"Containers"},{"label":"Windows Server Containers","value":"Windows Server Containers"},{"label":"Virtualization","value":"Virtualization"},{"label":"Virtualisation","value":"Virtualisation"},{"label":"WS2016","value":"WS2016"},{"label":"Windows Server 2016","value":"Windows Server 2016"},{"label":"Technical Preview 3","value":"Technical Preview 3"},{"label":"TP3","value":"TP3"},{"label":"TPv3","value":"TPv3"},{"label":"Techincal Preview","value":"Techincal Preview"},{"label":"&quot;Install-WindowsFeature : An unexpected error has occurred&quot;","value":"&quot;Install-WindowsFeature : An unexpected error has occurred&quot;"},{"label":"Install-Windows Feature","value":"Install-Windows Feature"},{"label":"UAC","value":"UAC"},{"label":"PowerShell","value":"PowerShell"},{"label":"Enter-PSSession","value":"Enter-PSSession"},{"label":"Administrator Rights","value":"Administrator Rights"},{"label":"Privileges","value":"Privileges"}],"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":"","og_description":"","og_object_type":"activity","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":"","og_article_tags":"","twitter_use_og":false,"twitter_card":"summary","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2020-12-21 03:53:22","updated":"2025-06-04 17:00:51","seo_analyzer_scan_date":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/aidanfinn.com\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/aidanfinn.com\/?cat=20\" title=\"Hyper-V\">Hyper-V<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t\u201cInstall-WindowsFeature : An unexpected error has occurred\u201d Error When You Run Install-WindowsFeature In A Windows Server Container\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/aidanfinn.com"},{"label":"Hyper-V","link":"https:\/\/aidanfinn.com\/?cat=20"},{"label":"&ldquo;Install-WindowsFeature : An unexpected error has occurred&rdquo; Error When You Run Install-WindowsFeature In A Windows Server Container","link":"https:\/\/aidanfinn.com\/?p=18889"}],"amp_enabled":true,"jetpack_featured_media_url":"https:\/\/aidanfinn.com\/wp-content\/uploads\/2015\/09\/5315.powershell_2D00_logo.gif_2D00_550x01.png","_links":{"self":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts\/18889","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=18889"}],"version-history":[{"count":11,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts\/18889\/revisions"}],"predecessor-version":[{"id":18908,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts\/18889\/revisions\/18908"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/media\/18900"}],"wp:attachment":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=18889"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=18889"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=18889"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}