{"id":139719,"date":"2022-02-04T09:46:52","date_gmt":"2022-02-04T14:46:52","guid":{"rendered":"https:\/\/pureinfotech.com\/?p=139719"},"modified":"2022-02-04T09:46:52","modified_gmt":"2022-02-04T14:46:52","slug":"always-run-powershell-as-administrator","status":"publish","type":"post","link":"https:\/\/pureinfotech.com\/always-run-powershell-as-administrator\/","title":{"rendered":"How to always run PowerShell as administrator"},"content":{"rendered":"<p>On <a href=\"https:\/\/pureinfotech.com\/tag\/windows-11\">Windows 11<\/a> or Windows 10, if you usually find yourself running PowerShell commands as an administrator, you can now save a few steps by enabling an option to always run the command-line utility as an administrator using the <a href=\"https:\/\/pureinfotech.com\/tag\/windows-terminal\/\">Windows Terminal<\/a>.<\/p>\n<p>The auto-elevate option is available on <a href=\"https:\/\/pureinfotech.com\/windows-terminal-1-13-redesigned-settings-ui-auto-elevate\/\">Windows Terminal version 1.13<\/a> and higher. To check the terminal version, use the <code>wt -v<\/code> command. If you have to update the app, use the <code>winget upgrade --id Microsoft.WindowsTerminal.Preview<\/code> command. If you don&#8217;t have the app, use the <code>winget install --id Microsoft.WindowsTerminal.Preview<\/code> command to install it.<\/p>\n<p>This <a href=\"https:\/\/pureinfotech.com\/tag\/how-to\">guide<\/a> will teach you the steps to always run PowerShell elevated when launching Windows Terminal.<\/p>\n<ul class=\"toc\">\n<li><a href=\"#always_open_powershell_admin_wt\">Always open PowerShell as administrator<\/a><\/li>\n<li><a href=\"#always_open_wt_admin\">Always open Windows Terminal as administrator<\/a><\/li>\n<\/ul>\n<h2 id=\"always_open_powershell_admin_wt\">Always open PowerShell as administrator<\/h2>\n<p>To run PowerShell always as an administrator on Windows 11 or Windows 10, use these steps:<\/p>\n<ol>\n<li>\n<p>Open <strong>Windows Terminal<\/strong>.<\/p>\n<\/li>\n<li>\n<p>Click the menu button next to the new tab option and select the <strong>Settings<\/strong> option.<\/p>\n<\/li>\n<li>\n<p>Under the &#8220;Profiles&#8221; section, click on <strong>PowerShell<\/strong>.<\/p>\n<\/li>\n<li>\n<p>Turn on the <strong>&#8220;Run this profile as Administrator&#8221;<\/strong> toggle switch to run PowerShell elevated automatically.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-139721\" src=\"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2022\/02\/powershell-alwasy-run-administrator-wt.webp?resize=827%2C453&#038;quality=78&#038;strip=all&#038;ssl=1\" alt=\"Enable always run PowerShell as administrator\" width=\"827\" height=\"453\" srcset=\"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2022\/02\/powershell-alwasy-run-administrator-wt.webp?w=1016&amp;quality=78&amp;strip=all&amp;ssl=1 1016w, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2022\/02\/powershell-alwasy-run-administrator-wt.webp?resize=300%2C164&amp;quality=78&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2022\/02\/powershell-alwasy-run-administrator-wt.webp?resize=150%2C82&amp;quality=78&amp;strip=all&amp;ssl=1 150w\" sizes=\"auto, (max-width: 827px) 100vw, 827px\" \/><\/li>\n<li>\n<p>Click the <strong>Save<\/strong> button.<\/p>\n<\/li>\n<\/ol>\n<p>Once you complete the steps, close the terminal, and when you reopen PowerShell, the console will open as admin. However, you will still need to confirm the elevation like any other app.<\/p>\n<h3>Enable always run as administrator option through JSON settings<\/h3>\n<p>To enable the elevation option in the JSON settings file, use these steps:<\/p>\n<ol>\n<li>\n<p>Open <strong>Windows Terminal<\/strong>.<\/p>\n<\/li>\n<li>\n<p>Click the menu button next to the new tab option and select the <strong>Settings<\/strong> option.<\/p>\n<\/li>\n<li>\n<p>Click on\u00a0<strong>Open JSON file<\/strong>.<\/p>\n<\/li>\n<li>\n<p>In the <strong>PowerShell<\/strong> bracket, add the <code>\"elevate\": true,<\/code> option.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-139722\" src=\"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2022\/02\/json-settings-elevate-true-powershell.webp?resize=827%2C343&#038;quality=78&#038;strip=all&#038;ssl=1\" alt=\"PowerShell elevate true option\" width=\"827\" height=\"343\" srcset=\"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2022\/02\/json-settings-elevate-true-powershell.webp?w=839&amp;quality=78&amp;strip=all&amp;ssl=1 839w, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2022\/02\/json-settings-elevate-true-powershell.webp?resize=300%2C124&amp;quality=78&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2022\/02\/json-settings-elevate-true-powershell.webp?resize=150%2C62&amp;quality=78&amp;strip=all&amp;ssl=1 150w\" sizes=\"auto, (max-width: 827px) 100vw, 827px\" \/><\/li>\n<li>\n<p>Use the <strong>Ctrl + S<\/strong> keyboard shortcut to save the file.<\/p>\n<\/li>\n<\/ol>\n<h2 id=\"always_open_wt_admin\">Always open Windows Terminal as administrator<\/h2>\n<p>To run all command consoles elevated through Windows Terminal, use these steps:<\/p>\n<ol>\n<li>\n<p>Open <strong>Windows Terminal<\/strong>.<\/p>\n<\/li>\n<li>\n<p>Click the menu button next to the new tab option and select the <strong>Settings<\/strong> option.<\/p>\n<\/li>\n<li>\n<p>Under the &#8220;Profiles&#8221; section, click on <strong>Defaults<\/strong>.<\/p>\n<\/li>\n<li>\n<p>Turn on the <strong>&#8220;Run this profile as Administrator&#8221;<\/strong> toggle switch all profiles elevated automatically.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-139713\" src=\"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2022\/02\/run-windows-terminal-as-admin-always.webp?resize=827%2C453&#038;quality=78&#038;strip=all&#038;ssl=1\" alt=\"Enable always run Windows Terminal as administrator\" width=\"827\" height=\"453\" srcset=\"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2022\/02\/run-windows-terminal-as-admin-always.webp?w=1016&amp;quality=78&amp;strip=all&amp;ssl=1 1016w, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2022\/02\/run-windows-terminal-as-admin-always.webp?resize=300%2C164&amp;quality=78&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2022\/02\/run-windows-terminal-as-admin-always.webp?resize=150%2C82&amp;quality=78&amp;strip=all&amp;ssl=1 150w\" sizes=\"auto, (max-width: 827px) 100vw, 827px\" \/><\/li>\n<li>\n<p>Click the <strong>Save<\/strong> button.<\/p>\n<\/li>\n<\/ol>\n<p>After you complete the steps, the next time you open Command Prompt, PowerShell, or any other command terminal, it will open elevated.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Windows Terminal has an option to always run PowerShell elevated, and here&#8217;s how to enable it.<\/p>\n","protected":false},"author":2,"featured_media":139720,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"jetpack_post_was_ever_published":false,"footnotes":""},"categories":[1758,2426,23],"tags":[19,2540,2715,2576,2666],"class_list":["post-139719","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-apps","category-features","category-windows","tag-how-to","tag-windows-10","tag-windows-11","tag-windows-help","tag-windows-terminal"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to always run PowerShell as administrator - Pureinfotech<\/title>\n<meta name=\"description\" content=\"To always launch PowerShell as administrator (elevated), open Windows Terminal settings and enable &quot;Run this profile as Administrator&quot; option.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/pureinfotech.com\/always-run-powershell-as-administrator\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to always run PowerShell as administrator - Pureinfotech\" \/>\n<meta property=\"og:description\" content=\"To always launch PowerShell as administrator (elevated), open Windows Terminal settings and enable &quot;Run this profile as Administrator&quot; option.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/pureinfotech.com\/always-run-powershell-as-administrator\/\" \/>\n<meta property=\"og:site_name\" content=\"Pureinfotech \u2022 Windows 10 &amp; Windows 11 help for humans\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/facebook.com\/pureinfotech\" \/>\n<meta property=\"article:published_time\" content=\"2022-02-04T14:46:52+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2022\/02\/powershell-always-run-admin_hero.webp?fit=1680%2C1050&quality=78&strip=all&ssl=1\" \/>\n\t<meta property=\"og:image:width\" content=\"1680\" \/>\n\t<meta property=\"og:image:height\" content=\"1050\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"Mauro Huculak\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@Pureinfotech\" \/>\n<meta name=\"twitter:site\" content=\"@Pureinfotech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Mauro Huculak\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/pureinfotech.com\/always-run-powershell-as-administrator\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/pureinfotech.com\/always-run-powershell-as-administrator\/\"},\"author\":{\"name\":\"Mauro Huculak\",\"@id\":\"https:\/\/pureinfotech.com\/#\/schema\/person\/bf4921a81eb4380865af70691a93af43\"},\"headline\":\"How to always run PowerShell as administrator\",\"datePublished\":\"2022-02-04T14:46:52+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/pureinfotech.com\/always-run-powershell-as-administrator\/\"},\"wordCount\":355,\"publisher\":{\"@id\":\"https:\/\/pureinfotech.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/pureinfotech.com\/always-run-powershell-as-administrator\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2022\/02\/powershell-always-run-admin_hero.webp?fit=1680%2C1050&quality=78&strip=all&ssl=1\",\"keywords\":[\"How-To\",\"Windows 10\",\"Windows 11\",\"Windows Help\",\"Windows Terminal\"],\"articleSection\":[\"Apps\",\"Features\",\"Windows\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/pureinfotech.com\/always-run-powershell-as-administrator\/\",\"url\":\"https:\/\/pureinfotech.com\/always-run-powershell-as-administrator\/\",\"name\":\"How to always run PowerShell as administrator - Pureinfotech\",\"isPartOf\":{\"@id\":\"https:\/\/pureinfotech.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/pureinfotech.com\/always-run-powershell-as-administrator\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/pureinfotech.com\/always-run-powershell-as-administrator\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2022\/02\/powershell-always-run-admin_hero.webp?fit=1680%2C1050&quality=78&strip=all&ssl=1\",\"datePublished\":\"2022-02-04T14:46:52+00:00\",\"description\":\"To always launch PowerShell as administrator (elevated), open Windows Terminal settings and enable \\\"Run this profile as Administrator\\\" option.\",\"breadcrumb\":{\"@id\":\"https:\/\/pureinfotech.com\/always-run-powershell-as-administrator\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/pureinfotech.com\/always-run-powershell-as-administrator\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/pureinfotech.com\/always-run-powershell-as-administrator\/#primaryimage\",\"url\":\"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2022\/02\/powershell-always-run-admin_hero.webp?fit=1680%2C1050&quality=78&strip=all&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2022\/02\/powershell-always-run-admin_hero.webp?fit=1680%2C1050&quality=78&strip=all&ssl=1\",\"width\":1680,\"height\":1050,\"caption\":\"PowerShell run always as administrator\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/pureinfotech.com\/always-run-powershell-as-administrator\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/pureinfotech.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to always run PowerShell as administrator\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/pureinfotech.com\/#website\",\"url\":\"https:\/\/pureinfotech.com\/\",\"name\":\"Pureinfotech \u2022 Windows 10 &amp; Windows 11 help for humans\",\"description\":\"Pureinfotech is the best site to get Windows help \u2013 featuring friendly how-to guides on Windows 10, Windows 11, Xbox, and other things tech, news, deals, reviews, and more.\",\"publisher\":{\"@id\":\"https:\/\/pureinfotech.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/pureinfotech.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/pureinfotech.com\/#organization\",\"name\":\"Pureinfotech\",\"url\":\"https:\/\/pureinfotech.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/pureinfotech.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2019\/05\/pure-logo-v45.png?fit=192%2C192&quality=78&strip=all&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2019\/05\/pure-logo-v45.png?fit=192%2C192&quality=78&strip=all&ssl=1\",\"width\":192,\"height\":192,\"caption\":\"Pureinfotech\"},\"image\":{\"@id\":\"https:\/\/pureinfotech.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/facebook.com\/pureinfotech\",\"https:\/\/x.com\/Pureinfotech\",\"https:\/\/www.youtube.com\/user\/Pureinfotech\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/pureinfotech.com\/#\/schema\/person\/bf4921a81eb4380865af70691a93af43\",\"name\":\"Mauro Huculak\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/1cbac450402490f703560c52c3114f3e5ab02a741684eb73917885ae4a117a16?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/1cbac450402490f703560c52c3114f3e5ab02a741684eb73917885ae4a117a16?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/1cbac450402490f703560c52c3114f3e5ab02a741684eb73917885ae4a117a16?s=96&d=mm&r=g\",\"caption\":\"Mauro Huculak\"},\"description\":\"Mauro Huculak is a Windows How-To Expert and founder of Pureinfotech (est. 2010). With over 21 years as a technology writer and IT Specialist, Mauro specializes in Windows, software, and cross-platform systems such as Linux, Android, and macOS. Certifications he holds include Microsoft Certified Solutions Associate (MCSA), Cisco Certified Network Professional (CCNP), VMware Certified Professional (VCP), and CompTIA A+ and Network+. Mauro is a recognized Microsoft MVP and has also been a long-time contributor to Windows Central. You can follow him on YouTube, Threads, BlueSky, X (Twitter), LinkedIn and About.me. Email him at Contact@Pureinfotech.com.\",\"sameAs\":[\"https:\/\/pureinfotech.com\",\"https:\/\/x.com\/@Pureinfotech\"],\"url\":\"https:\/\/pureinfotech.com\/mauro-huculak\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to always run PowerShell as administrator - Pureinfotech","description":"To always launch PowerShell as administrator (elevated), open Windows Terminal settings and enable \"Run this profile as Administrator\" option.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/pureinfotech.com\/always-run-powershell-as-administrator\/","og_locale":"en_US","og_type":"article","og_title":"How to always run PowerShell as administrator - Pureinfotech","og_description":"To always launch PowerShell as administrator (elevated), open Windows Terminal settings and enable \"Run this profile as Administrator\" option.","og_url":"https:\/\/pureinfotech.com\/always-run-powershell-as-administrator\/","og_site_name":"Pureinfotech \u2022 Windows 10 &amp; Windows 11 help for humans","article_publisher":"https:\/\/facebook.com\/pureinfotech","article_published_time":"2022-02-04T14:46:52+00:00","og_image":[{"width":1680,"height":1050,"url":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2022\/02\/powershell-always-run-admin_hero.webp?fit=1680%2C1050&quality=78&strip=all&ssl=1","type":"image\/webp"}],"author":"Mauro Huculak","twitter_card":"summary_large_image","twitter_creator":"@Pureinfotech","twitter_site":"@Pureinfotech","twitter_misc":{"Written by":"Mauro Huculak","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/pureinfotech.com\/always-run-powershell-as-administrator\/#article","isPartOf":{"@id":"https:\/\/pureinfotech.com\/always-run-powershell-as-administrator\/"},"author":{"name":"Mauro Huculak","@id":"https:\/\/pureinfotech.com\/#\/schema\/person\/bf4921a81eb4380865af70691a93af43"},"headline":"How to always run PowerShell as administrator","datePublished":"2022-02-04T14:46:52+00:00","mainEntityOfPage":{"@id":"https:\/\/pureinfotech.com\/always-run-powershell-as-administrator\/"},"wordCount":355,"publisher":{"@id":"https:\/\/pureinfotech.com\/#organization"},"image":{"@id":"https:\/\/pureinfotech.com\/always-run-powershell-as-administrator\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2022\/02\/powershell-always-run-admin_hero.webp?fit=1680%2C1050&quality=78&strip=all&ssl=1","keywords":["How-To","Windows 10","Windows 11","Windows Help","Windows Terminal"],"articleSection":["Apps","Features","Windows"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/pureinfotech.com\/always-run-powershell-as-administrator\/","url":"https:\/\/pureinfotech.com\/always-run-powershell-as-administrator\/","name":"How to always run PowerShell as administrator - Pureinfotech","isPartOf":{"@id":"https:\/\/pureinfotech.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/pureinfotech.com\/always-run-powershell-as-administrator\/#primaryimage"},"image":{"@id":"https:\/\/pureinfotech.com\/always-run-powershell-as-administrator\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2022\/02\/powershell-always-run-admin_hero.webp?fit=1680%2C1050&quality=78&strip=all&ssl=1","datePublished":"2022-02-04T14:46:52+00:00","description":"To always launch PowerShell as administrator (elevated), open Windows Terminal settings and enable \"Run this profile as Administrator\" option.","breadcrumb":{"@id":"https:\/\/pureinfotech.com\/always-run-powershell-as-administrator\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/pureinfotech.com\/always-run-powershell-as-administrator\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/pureinfotech.com\/always-run-powershell-as-administrator\/#primaryimage","url":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2022\/02\/powershell-always-run-admin_hero.webp?fit=1680%2C1050&quality=78&strip=all&ssl=1","contentUrl":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2022\/02\/powershell-always-run-admin_hero.webp?fit=1680%2C1050&quality=78&strip=all&ssl=1","width":1680,"height":1050,"caption":"PowerShell run always as administrator"},{"@type":"BreadcrumbList","@id":"https:\/\/pureinfotech.com\/always-run-powershell-as-administrator\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/pureinfotech.com\/"},{"@type":"ListItem","position":2,"name":"How to always run PowerShell as administrator"}]},{"@type":"WebSite","@id":"https:\/\/pureinfotech.com\/#website","url":"https:\/\/pureinfotech.com\/","name":"Pureinfotech \u2022 Windows 10 &amp; Windows 11 help for humans","description":"Pureinfotech is the best site to get Windows help \u2013 featuring friendly how-to guides on Windows 10, Windows 11, Xbox, and other things tech, news, deals, reviews, and more.","publisher":{"@id":"https:\/\/pureinfotech.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/pureinfotech.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/pureinfotech.com\/#organization","name":"Pureinfotech","url":"https:\/\/pureinfotech.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/pureinfotech.com\/#\/schema\/logo\/image\/","url":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2019\/05\/pure-logo-v45.png?fit=192%2C192&quality=78&strip=all&ssl=1","contentUrl":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2019\/05\/pure-logo-v45.png?fit=192%2C192&quality=78&strip=all&ssl=1","width":192,"height":192,"caption":"Pureinfotech"},"image":{"@id":"https:\/\/pureinfotech.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/facebook.com\/pureinfotech","https:\/\/x.com\/Pureinfotech","https:\/\/www.youtube.com\/user\/Pureinfotech"]},{"@type":"Person","@id":"https:\/\/pureinfotech.com\/#\/schema\/person\/bf4921a81eb4380865af70691a93af43","name":"Mauro Huculak","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/1cbac450402490f703560c52c3114f3e5ab02a741684eb73917885ae4a117a16?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/1cbac450402490f703560c52c3114f3e5ab02a741684eb73917885ae4a117a16?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1cbac450402490f703560c52c3114f3e5ab02a741684eb73917885ae4a117a16?s=96&d=mm&r=g","caption":"Mauro Huculak"},"description":"Mauro Huculak is a Windows How-To Expert and founder of Pureinfotech (est. 2010). With over 21 years as a technology writer and IT Specialist, Mauro specializes in Windows, software, and cross-platform systems such as Linux, Android, and macOS. Certifications he holds include Microsoft Certified Solutions Associate (MCSA), Cisco Certified Network Professional (CCNP), VMware Certified Professional (VCP), and CompTIA A+ and Network+. Mauro is a recognized Microsoft MVP and has also been a long-time contributor to Windows Central. You can follow him on YouTube, Threads, BlueSky, X (Twitter), LinkedIn and About.me. Email him at Contact@Pureinfotech.com.","sameAs":["https:\/\/pureinfotech.com","https:\/\/x.com\/@Pureinfotech"],"url":"https:\/\/pureinfotech.com\/mauro-huculak"}]}},"jetpack_featured_media_url":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2022\/02\/powershell-always-run-admin_hero.webp?fit=1680%2C1050&quality=78&strip=all&ssl=1","jetpack-related-posts":[{"id":186393,"url":"https:\/\/pureinfotech.com\/install-copilot-cli-windows-11\/","url_meta":{"origin":139719,"position":0},"title":"How to install Copilot CLI on Windows 11","author":"Mauro Huculak","date":"March 19, 2026","format":false,"excerpt":"Run AI from your terminal. GitHub Copilot CLI brings coding help directly to Command Prompt and PowerShell on Windows 11.","rel":"","context":"","block_context":{"text":"Windows","link":"https:\/\/pureinfotech.com\/category\/windows\/"},"img":{"alt_text":"Install Copilot CLI","src":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2026\/03\/windows-11-install-copilotcli-hero.webp?fit=1200%2C750&quality=78&strip=all&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2026\/03\/windows-11-install-copilotcli-hero.webp?fit=1200%2C750&quality=78&strip=all&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2026\/03\/windows-11-install-copilotcli-hero.webp?fit=1200%2C750&quality=78&strip=all&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2026\/03\/windows-11-install-copilotcli-hero.webp?fit=1200%2C750&quality=78&strip=all&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2026\/03\/windows-11-install-copilotcli-hero.webp?fit=1200%2C750&quality=78&strip=all&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":132026,"url":"https:\/\/pureinfotech.com\/always-run-windows-terminal-administrator-windows-10\/","url_meta":{"origin":139719,"position":1},"title":"How to always run Windows Terminal as administrator on Windows 10","author":"Mauro Huculak","date":"May 20, 2022","format":false,"excerpt":"Yes, you can always configure the Windows Terminal app to open elevated, and here's how on Windows 10.","rel":"","context":"","block_context":{"text":"Apps","link":"https:\/\/pureinfotech.com\/category\/apps\/"},"img":{"alt_text":"Windows Terminal as admin","src":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2021\/05\/windows-terminal-admin-elevated_hero.jpg?fit=1200%2C750&quality=78&strip=all&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2021\/05\/windows-terminal-admin-elevated_hero.jpg?fit=1200%2C750&quality=78&strip=all&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2021\/05\/windows-terminal-admin-elevated_hero.jpg?fit=1200%2C750&quality=78&strip=all&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2021\/05\/windows-terminal-admin-elevated_hero.jpg?fit=1200%2C750&quality=78&strip=all&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2021\/05\/windows-terminal-admin-elevated_hero.jpg?fit=1200%2C750&quality=78&strip=all&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":139708,"url":"https:\/\/pureinfotech.com\/always-run-command-prompt-as-administrator\/","url_meta":{"origin":139719,"position":2},"title":"How to always open Command Prompt as administrator","author":"Mauro Huculak","date":"July 29, 2022","format":false,"excerpt":"You can now launch Command Prompt always elevated, and here's how.","rel":"","context":"","block_context":{"text":"Apps","link":"https:\/\/pureinfotech.com\/category\/apps\/"},"img":{"alt_text":"Command Prompt always as administrator","src":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2022\/02\/always-run-cmd-admin-hero.webp?fit=1200%2C747&quality=78&strip=all&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2022\/02\/always-run-cmd-admin-hero.webp?fit=1200%2C747&quality=78&strip=all&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2022\/02\/always-run-cmd-admin-hero.webp?fit=1200%2C747&quality=78&strip=all&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2022\/02\/always-run-cmd-admin-hero.webp?fit=1200%2C747&quality=78&strip=all&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2022\/02\/always-run-cmd-admin-hero.webp?fit=1200%2C747&quality=78&strip=all&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":132852,"url":"https:\/\/pureinfotech.com\/install-winget-windows-11\/","url_meta":{"origin":139719,"position":3},"title":"How to install winget on Windows 11, 10","author":"Mauro Huculak","date":"November 21, 2025","format":false,"excerpt":"You can install the Windows Package Manager manually, and here's how on Windows 11.","rel":"","context":"","block_context":{"text":"Apps","link":"https:\/\/pureinfotech.com\/category\/apps\/"},"img":{"alt_text":"Windows 11 install winget","src":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2023\/07\/windows-11-install-winget-hero.webp?fit=1200%2C750&quality=78&strip=all&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2023\/07\/windows-11-install-winget-hero.webp?fit=1200%2C750&quality=78&strip=all&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2023\/07\/windows-11-install-winget-hero.webp?fit=1200%2C750&quality=78&strip=all&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2023\/07\/windows-11-install-winget-hero.webp?fit=1200%2C750&quality=78&strip=all&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2023\/07\/windows-11-install-winget-hero.webp?fit=1200%2C750&quality=78&strip=all&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":164484,"url":"https:\/\/pureinfotech.com\/enable-sudo-windows-11\/","url_meta":{"origin":139719,"position":4},"title":"How to enable Sudo on Windows 11","author":"Mauro Huculak","date":"October 27, 2025","format":false,"excerpt":"You can now run elevated commands on Windows 11 like on Linux or macOS with \"sudo,\" and here's how to enable the feature.","rel":"","context":"","block_context":{"text":"Windows","link":"https:\/\/pureinfotech.com\/category\/windows\/"},"img":{"alt_text":"Windows 11 sudo command \/ Image: Mauro Huculak","src":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/01\/windows-11-enable-sudo-hero.webp?fit=1200%2C750&quality=78&strip=all&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/01\/windows-11-enable-sudo-hero.webp?fit=1200%2C750&quality=78&strip=all&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/01\/windows-11-enable-sudo-hero.webp?fit=1200%2C750&quality=78&strip=all&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/01\/windows-11-enable-sudo-hero.webp?fit=1200%2C750&quality=78&strip=all&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/01\/windows-11-enable-sudo-hero.webp?fit=1200%2C750&quality=78&strip=all&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":74069,"url":"https:\/\/pureinfotech.com\/disable-cortana-windows-10\/","url_meta":{"origin":139719,"position":5},"title":"How to remove Cortana on Windows 10","author":"Mauro Huculak","date":"December 14, 2023","format":false,"excerpt":"Yes, you can get rid of Cortana on Windows 10, and here are three ways to complete the task.","rel":"","context":"","block_context":{"text":"Windows","link":"https:\/\/pureinfotech.com\/category\/windows\/"},"img":{"alt_text":"Cortana in the Windows 10 taskbar","src":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2016\/08\/cortana-taskbar-windows-10.jpg?fit=1200%2C824&quality=78&strip=all&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2016\/08\/cortana-taskbar-windows-10.jpg?fit=1200%2C824&quality=78&strip=all&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2016\/08\/cortana-taskbar-windows-10.jpg?fit=1200%2C824&quality=78&strip=all&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2016\/08\/cortana-taskbar-windows-10.jpg?fit=1200%2C824&quality=78&strip=all&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2016\/08\/cortana-taskbar-windows-10.jpg?fit=1200%2C824&quality=78&strip=all&ssl=1&resize=1050%2C600 3x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/pureinfotech.com\/wp-json\/wp\/v2\/posts\/139719","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pureinfotech.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pureinfotech.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pureinfotech.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/pureinfotech.com\/wp-json\/wp\/v2\/comments?post=139719"}],"version-history":[{"count":0,"href":"https:\/\/pureinfotech.com\/wp-json\/wp\/v2\/posts\/139719\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/pureinfotech.com\/wp-json\/wp\/v2\/media\/139720"}],"wp:attachment":[{"href":"https:\/\/pureinfotech.com\/wp-json\/wp\/v2\/media?parent=139719"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pureinfotech.com\/wp-json\/wp\/v2\/categories?post=139719"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pureinfotech.com\/wp-json\/wp\/v2\/tags?post=139719"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}