HEX
Server: Apache/2.4.46 (Win64) OpenSSL/1.1.1j PHP/8.4.25
System: Windows NT DESKTOP-4TAV2RJ 10.0 build 19045 (Windows 10) AMD64
User: fred (0)
PHP: 8.4.25
Disabled: NONE
Upload Files
File: C:/Users/fred/AppData/Local/Microsoft/Edge/User Data/Default/Cache/Cache_Data/f_00030b
 <!DOCTYPE html>
		<html
			class="layout layout-holy-grail   show-table-of-contents conceptual show-breadcrumb default-focus"
			lang="en-us"
			dir="ltr"
			data-authenticated="false"
			data-auth-status-determined="false"
			data-target="docs"
			x-ms-format-detection="none"
		>
			
		<head>
			<title>Install PowerShell 7 on Windows - PowerShell | Microsoft Learn</title>
			<meta charset="utf-8" />
			<meta name="viewport" content="width=device-width, initial-scale=1.0" />
			<meta name="color-scheme" content="light dark" />

			<meta name="description" content="How to install PowerShell on Windows" />
			<link rel="canonical" href="https://learn.microsoft.com/en-us/powershell/scripting/install/install-powershell-on-windows?view=powershell-7.6" /> 

			<!-- Non-customizable open graph and sharing-related metadata -->
			<meta name="twitter:card" content="summary" />
			<meta name="twitter:site" content="@MicrosoftLearn" />
			<meta property="og:type" content="website" />
			<meta property="og:image:alt" content="Install PowerShell 7 on Windows - PowerShell | Microsoft Learn" />
			<meta property="og:image" content="https://learn.microsoft.com/media/logos/logo-powershell-social.png" />
			<!-- Page specific open graph and sharing-related metadata -->
			<meta property="og:title" content="Install PowerShell 7 on Windows - PowerShell" />
			<meta property="og:url" content="https://learn.microsoft.com/en-us/powershell/scripting/install/install-powershell-on-windows?view=powershell-7.6" />
			<meta property="og:description" content="How to install PowerShell on Windows" />
			<meta name="platform_id" content="ffaf2dad-107c-76c1-95c4-b35470855ae6" /> <meta name="scope" content="PowerShell" />
			<meta name="locale" content="en-us" />
			 
			<meta name="uhfHeaderId" content="MSDocsHeader-Powershell" />

			<meta name="page_type" content="conceptual" />

			<!--page specific meta tags-->
			

			<!-- custom meta tags -->
			
		<meta name="ROBOTS" content="INDEX, FOLLOW" />
	
		<meta name="apiPlatform" content="powershell" />
	
		<meta name="archive_url" content="https://learn.microsoft.com/previous-versions/powershell/scripting/overview" />
	
		<meta name="breadcrumb_path" content="/powershell/scripting/bread/toc.json" />
	
		<meta name="feedback_product_url" content="https://github.com/powershell/powershell/issues/new" />
	
		<meta name="feedback_help_link_url" content="https://learn.microsoft.com/powershell/scripting/community/community-support" />
	
		<meta name="feedback_help_link_type" content="ask-the-community" />
	
		<meta name="feedback_system" content="OpenSource" />
	
		<meta name="hideScope" content="false" />
	
		<meta name="author" content="sdwheeler" />
	
		<meta name="ms.author" content="sewhee" />
	
		<meta name="manager" content="jasongroce" />
	
		<meta name="ms.devlang" content="powershell" />
	
		<meta name="ms.service" content="powershell" />
	
		<meta name="ms.tgt_pltfr" content="windows, macos, linux" />
	
		<meta name="ms.update-cycle" content="365-days" />
	
		<meta name="toc_preview" content="true" />
	
		<meta name="ms.subservice" content="conceptual" />
	
		<meta name="ms.topic" content="concept-article" />
	
		<meta name="products" content="https://authoring-docs-microsoft.poolparty.biz/devrel/2bdae855-045f-4535-b365-7b2e23824328" />
	
		<meta name="products" content="https://authoring-docs-microsoft.poolparty.biz/devrel/8bce367e-2e90-4b56-9ed5-5e4e9f3a2dc3" />
	
		<meta name="ms.date" content="2026-05-20T00:00:00Z" />
	
		<meta name="document_id" content="ee399d90-dec1-a28c-196e-714cfaccf8a1" />
	
		<meta name="document_version_independent_id" content="f2bf4b21-9cd5-03e1-6672-bc7877d6506e" />
	
		<meta name="updated_at" content="2026-05-21T22:13:00Z" />
	
		<meta name="original_content_git_url" content="https://github.com/MicrosoftDocs/PowerShell-Docs/blob/live/reference/docs-conceptual/install/install-powershell-on-windows.md" />
	
		<meta name="gitcommit" content="https://github.com/MicrosoftDocs/PowerShell-Docs/blob/258b1caf8f88fa3b71bd99dacd5d4f8d457bac0b/reference/docs-conceptual/install/install-powershell-on-windows.md" />
	
		<meta name="git_commit_id" content="258b1caf8f88fa3b71bd99dacd5d4f8d457bac0b" />
	
		<meta name="monikers" content="powershell-5.1" />
	
		<meta name="monikers" content="powershell-7.4" />
	
		<meta name="monikers" content="powershell-7.5" />
	
		<meta name="monikers" content="powershell-7.6" />
	
		<meta name="monikers" content="powershell-7.7" />
	
		<meta name="monikers" content="powershell-7.x" />
	
		<meta name="default_moniker" content="powershell-7.6" />
	
		<meta name="site_name" content="Docs" />
	
		<meta name="depot_name" content="PowerShell.PowerShell_PowerShell-docs_reference" />
	
		<meta name="schema" content="Conceptual" />
	
		<meta name="toc_rel" content="../toc.json" />
	
		<meta name="word_count" content="2209" />
	
		<meta name="config_moniker_range" content="&gt;=powershell-5.1" />
	
		<meta name="asset_id" content="scripting/install/install-powershell-on-windows" />
	
		<meta name="moniker_range_name" content="4cc87456e38946420f1ee0a6e43b623d" />
	
		<meta name="item_type" content="Content" />
	
		<meta name="source_path" content="reference/docs-conceptual/install/install-powershell-on-windows.md" />
	
		<meta name="previous_tlsh_hash" content="13C83462851D9602EDD12F143967A509F1F4040E5AE02BC625B1E14287FE7FAA1F6ECD92D63A963993322D87039E940F63D9D32DA5B8A2794FD2B67A440C1253D24C2BF2DE" />
	
		<meta name="github_feedback_content_git_url" content="https://github.com/MicrosoftDocs/PowerShell-Docs/blob/main/reference/docs-conceptual/install/install-powershell-on-windows.md" />
	
		<meta name="markdown_url" content="https://learn.microsoft.com/en-us/powershell/scripting/install/install-powershell-on-windows?view=powershell-7.6&amp;accept=text/markdown" />
	 

			<!-- assets and js globals -->
			
			<link rel="stylesheet" href="/static/assets/0.4.03433.7881-f368a308/styles/site.css" />
			
			<script src="https://wcpstatic.microsoft.com/mscc/lib/v2/wcp-consent.js"></script>
			<script src="https://js.monitor.azure.com/scripts/c/ms.jsll-4.min.js"></script>
			<script src="/_themes/docs.theme/master/en-us/_themes/global/deprecation.js"></script>

			<!-- msdocs global object -->
			<script id="msdocs-script">
		var msDocs = {
  "environment": {
    "accessLevel": "online",
    "azurePortalHostname": "portal.azure.com",
    "reviewFeatures": false,
    "supportLevel": "production",
    "systemContent": true,
    "siteName": "learn",
    "legacyHosting": false
  },
  "data": {
    "contentLocale": "en-us",
    "contentDir": "ltr",
    "userLocale": "en-us",
    "userDir": "ltr",
    "pageTemplate": "Conceptual",
    "brand": "",
    "context": {},
    "standardFeedback": false,
    "showFeedbackReport": false,
    "feedbackHelpLinkType": "ask-the-community",
    "feedbackHelpLinkUrl": "https://learn.microsoft.com/powershell/scripting/community/community-support",
    "feedbackSystem": "OpenSource",
    "feedbackGitHubRepo": "",
    "feedbackProductUrl": "https://github.com/powershell/powershell/issues/new",
    "extendBreadcrumb": false,
    "isEditDisplayable": true,
    "isPrivateUnauthorized": false,
    "hideViewSource": false,
    "isPermissioned": false,
    "hasRecommendations": true,
    "contributors": [
      {
        "name": "sdwheeler",
        "url": "https://github.com/sdwheeler"
      },
      {
        "name": "v-thepet",
        "url": "https://github.com/v-thepet"
      }
    ],
    "openSourceFeedbackIssueUrl": "https://github.com/MicrosoftDocs/PowerShell-Docs/issues/new?template=04-customer-feedback.yml",
    "openSourceFeedbackIssueTitle": "",
    "openSourceFeedbackIssueLabels": "needs-triage"
  },
  "functions": {}
};;
	</script>

			<!-- base scripts, msdocs global should be before this -->
			<script src="/static/assets/0.4.03433.7881-f368a308/scripts/en-us/index-docs.js"></script>
			

			<!-- json-ld -->
			
		<script >bazadebezolkohpepadr="1941482164"</script><script type="text/javascript" src="https://learn.microsoft.com/akam/13/73b8aaf5"  defer></script></head>
	
			<body
				id="body"
				data-bi-name="body"
				class="layout-body "
				lang="en-us"
				dir="ltr"
			>
				<header class="layout-body-header background-color-body-medium">
		<div class="header-holder has-default-focus">
			
		<a
			href="#main"
			
			style="z-index: 1070"
			class="outline-color-text visually-hidden-until-focused position-fixed inner-focus focus-visible top-0 left-0 right-0 padding-xs text-align-center background-color-body"
			
		>
			Skip to main content
		</a>
	
		<a
			href="#"
			data-skip-to-ask-learn
			style="z-index: 1070"
			class="outline-color-text visually-hidden-until-focused position-fixed inner-focus focus-visible top-0 left-0 right-0 padding-xs text-align-center background-color-body"
			hidden
		>
			Skip to Ask Learn chat experience
		</a>
	

			<div hidden id="cookie-consent-holder" data-test-id="cookie-consent-container"></div>
			<!-- Unsupported browser warning -->
			<div
				id="unsupported-browser"
				style="background-color: white; color: black; padding: 16px; border-bottom: 1px solid grey;"
				hidden
			>
				<div style="max-width: 800px; margin: 0 auto;">
					<p style="font-size: 24px">This browser is no longer supported.</p>
					<p style="font-size: 16px; margin-top: 16px;">
						Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
					</p>
					<div style="margin-top: 12px;">
						<a
							href="https://go.microsoft.com/fwlink/p/?LinkID=2092881 "
							style="background-color: #0078d4; border: 1px solid #0078d4; color: white; padding: 6px 12px; border-radius: 2px; display: inline-block;"
						>
							Download Microsoft Edge
						</a>
						<a
							href="https://learn.microsoft.com/en-us/lifecycle/faq/internet-explorer-microsoft-edge"
							style="background-color: white; padding: 6px 12px; border: 1px solid #505050; color: #171717; border-radius: 2px; display: inline-block;"
						>
							More info about Internet Explorer and Microsoft Edge
						</a>
					</div>
				</div>
			</div>
			<!-- site header -->
			<div
				id="ms--site-header"
				data-test-id="site-header-wrapper"
				itemscope="itemscope"
				itemtype="http://schema.org/Organization"
			>
				<div
					id="ms--mobile-nav"
					class="site-header display-none-tablet padding-inline-none gap-none"
					data-bi-name="mobile-header"
					data-test-id="mobile-header"
				></div>
				<div
					id="ms--primary-nav"
					class="site-header display-none display-flex-tablet"
					data-bi-name="L1-header"
					data-test-id="primary-header"
				></div>
				<div
					id="ms--secondary-nav"
					class="site-header display-none display-flex-tablet"
					data-bi-name="L2-header"
					data-test-id="secondary-header"
					
				></div>
			</div>
			
		<!-- banner -->
		<div data-banner>
			<div id="disclaimer-holder"></div>
			
		</div>
		<!-- banner end -->
	
		</div>
	</header>
				 <section
					id="layout-body-menu"
					class="layout-body-menu border-right display-flex background-color-body-medium"
					data-bi-name="menu"
			  >
					
		<div
			id="left-container"
			class="left-container display-none padding-none display-block-tablet width-full"
			data-toc-container="true"
		>
			<div
				id="ms--toc-content"
				class="padding-left-sm padding-right-none padding-bottom-sm height-full"
			>
				<nav
					id="affixed-left-container"
					class="margin-top-xxs-tablet position-sticky display-flex flex-direction-column width-full"
					aria-label="Primary"
					data-bi-name="left-toc"
					role="navigation"
				>
					<div
						id="ms--collapsible-toc-header"
						class="display-flex flex-direction-row-reverse justify-content-center align-items-center margin-bottom-xxs margin-right-xxs"
					>
						<button
							type="button"
							class="button button-clear inner-focus"
							data-collapsible-toc-toggle
							aria-expanded="true"
							aria-controls="ms--toc-content"
							aria-label="Table of contents"
						>
							<span class="icon icon-mirrored-rtl font-size-md" aria-hidden="true">
								<span class="docon docon-panel-left-contract"></span>
							</span>
						</button>
						<div
							id="ms--collapsible-toc-moniker-slot"
							class="flex-grow-1 display-none-layout-menu-collapsed"
						></div>
					</div>
				</nav>
			</div>
		</div>
	
			  </section>

				<main
					id="main"
					role="main"
					class="layout-body-main "
					data-bi-name="content"
					lang="en-us"
					dir="ltr"
				>
					
			<div
		id="ms--content-header"
		class="content-header default-focus border-bottom-none"
		data-bi-name="content-header"
	>
		<div class="content-header-controls margin-xxs margin-inline-sm-tablet">
			<button
				type="button"
				class="contents-button button button-sm margin-right-xxs"
				data-bi-name="contents-expand"
				aria-haspopup="true"
				data-contents-button
			>
				<span class="icon" aria-hidden="true"><span class="docon docon-menu"></span></span>
				<span class="contents-expand-title"> Table of contents </span>
			</button>
			<button
				type="button"
				class="ap-collapse-behavior ap-expanded button button-sm"
				data-bi-name="ap-collapse"
				aria-controls="action-panel"
			>
				<span class="icon" aria-hidden="true"><span class="docon docon-exit-mode"></span></span>
				<span>Exit editor mode</span>
			</button>
		</div>
	</div>
			<div
				data-main-column
				class="reading-width margin-inline-auto layout-padding padding-top-none padding-top-sm-tablet padding-bottom-sm"
			>
				<div>
					
		<div id="article-header" class="background-color-body margin-bottom-xs display-none-print">
			<div class="display-flex align-items-center justify-content-space-between">
				
		<details
			id="article-header-breadcrumbs-overflow-popover"
			class="popover popover-left"
			data-for="article-header-breadcrumbs"
		>
			<summary
				class="button button-clear button-primary button-sm inner-focus"
				aria-label="All breadcrumbs"
			>
				<span class="icon" aria-hidden="true">
					<span class="docon docon-more"></span>
				</span>
			</summary>
			<div id="article-header-breadcrumbs-overflow" class="popover-content"></div>
		</details>

		<bread-crumbs
			id="article-header-breadcrumbs"
			role="group"
			aria-label="Breadcrumbs"
			data-test-id="article-header-breadcrumbs"
			class="overflow-hidden flex-grow-1 margin-right-sm margin-right-md-tablet margin-right-lg-desktop margin-left-negative-xxs padding-left-xxs"
		></bread-crumbs>
	 
		<div
			id="article-header-page-actions"
			class="opacity-none margin-left-auto display-flex flex-wrap-no-wrap align-items-stretch"
		>
			
		<button
			class="button button-sm border-none inner-focus display-none-tablet flex-shrink-0 "
			data-bi-name="ask-learn-assistant-entry"
			data-test-id="ask-learn-assistant-modal-entry-mobile"
			data-ask-learn-modal-entry
			
			type="button"
			style="min-width: max-content;"
			aria-expanded="false"
			aria-label="Ask Learn"
			hidden
		>
			<span class="icon font-size-lg" aria-hidden="true">
				<span class="docon docon-chat-sparkle-fill gradient-ask-learn-logo"></span>
			</span>
		</button>
		<button
			class="button button-sm display-none display-inline-flex-tablet display-none-desktop flex-shrink-0 margin-right-xxs border-color-ask-learn "
			data-bi-name="ask-learn-assistant-entry"
			
			data-test-id="ask-learn-assistant-modal-entry-tablet"
			data-ask-learn-modal-entry
			type="button"
			style="min-width: max-content;"
			aria-expanded="false"
			hidden
		>
			<span class="icon font-size-lg" aria-hidden="true">
				<span class="docon docon-chat-sparkle-fill gradient-ask-learn-logo"></span>
			</span>
			<span>Ask Learn</span>
		</button>
		<button
			class="button button-sm display-none flex-shrink-0 display-inline-flex-desktop margin-right-xxs border-color-ask-learn "
			data-bi-name="ask-learn-assistant-entry"
			
			data-test-id="ask-learn-assistant-flyout-entry"
			data-ask-learn-flyout-entry
			data-flyout-button="toggle"
			type="button"
			style="min-width: max-content;"
			aria-expanded="false"
			aria-controls="ask-learn-flyout"
			hidden
		>
			<span class="icon font-size-lg" aria-hidden="true">
				<span class="docon docon-chat-sparkle-fill gradient-ask-learn-logo"></span>
			</span>
			<span>Ask Learn</span>
		</button>
	 

			<details class="popover popover-right" id="article-header-page-actions-overflow">
				<summary
					class="justify-content-flex-start button button-clear button-sm button-primary inner-focus"
					aria-label="More actions"
					title="More actions"
				>
					<span class="icon" aria-hidden="true">
						<span class="docon docon-more-vertical"></span>
					</span>
				</summary>
				<div class="popover-content">
					
		<button
			type="button"
			id="ms--focus-mode-button"
			data-focus-mode
			data-bi-name="focus-mode-entry"
			data-page-action-item="overflow-all"
			data-popover-close
			class="button button-clear button-sm button-block justify-content-flex-start text-align-left inner-focus display-none display-inline-flex-tablet"
		>
			<span class="icon" aria-hidden="true">
				<span class="docon docon-glasses"></span>
			</span>
			<span>Reading mode</span>
		</button>
	 
		<button
			data-page-action-item="overflow-mobile"
			type="button"
			class="button-block button-sm inner-focus button button-clear display-none-tablet justify-content-flex-start text-align-left"
			data-bi-name="contents-expand"
			data-contents-button
			data-popover-close
		>
			<span class="icon" aria-hidden="true"
				><span class="docon docon-editor-list-bullet"></span
			></span>
			<span class="contents-expand-title">Table of contents</span>
		</button>
	 
		<a
			id="lang-link-overflow"
			class="button-sm inner-focus button button-clear button-block justify-content-flex-start text-align-left"
			data-bi-name="language-toggle"
			data-page-action-item="overflow-all"
			data-check-hidden="true"
			data-read-in-link
			href="#"
			hidden
		>
			<span class="icon" aria-hidden="true" data-read-in-link-icon>
				<span class="docon docon-locale-globe"></span>
			</span>
			<span data-read-in-link-text>Read in English</span>
		</a>
	
					
		<button
			type="button"
			class="collection button button-clear button-sm button-block justify-content-flex-start text-align-left inner-focus"
			data-list-type="collection"
			data-bi-name="collection"
			data-page-action-item="overflow-all"
			data-check-hidden="true"
			data-popover-close
		>
			<span class="icon" aria-hidden="true">
				<span class="docon docon-circle-addition"></span>
			</span>
			<span class="collection-status">Add</span>
		</button>
	 
		<button
			type="button"
			class="collection button button-block button-clear button-sm justify-content-flex-start text-align-left inner-focus"
			data-list-type="plan"
			data-bi-name="plan"
			data-page-action-item="overflow-all"
			data-check-hidden="true"
			data-popover-close
			hidden
		>
			<span class="icon" aria-hidden="true">
				<span class="docon docon-circle-addition"></span>
			</span>
			<span class="plan-status">Add to plan</span>
		</button>
	 
					
		<a
			data-contenteditbtn
			class="button button-clear button-block button-sm inner-focus justify-content-flex-start text-align-left text-decoration-none"
			data-bi-name="edit"
			data-page-action-item="overflow-all"
			data-check-hidden="true"
			
			href="https://github.com/MicrosoftDocs/PowerShell-Docs/blob/main/reference/docs-conceptual/install/install-powershell-on-windows.md"
			data-original_content_git_url="https://github.com/MicrosoftDocs/PowerShell-Docs/blob/live/reference/docs-conceptual/install/install-powershell-on-windows.md"
			data-original_content_git_url_template="{repo}/blob/{branch}/reference/docs-conceptual/install/install-powershell-on-windows.md"
			data-pr_repo=""
			data-pr_branch=""
		>
			<span class="icon" aria-hidden="true">
				<span class="docon docon-edit-outline"></span>
			</span>
			<span>Edit</span>
		</a>
	  
		<hr class="margin-block-xxs" />
		
				<button
					class="button button-block button-clear button-sm justify-content-flex-start text-align-left inner-focus"
					type="button"
					data-bi-name="copy-markdown"
					data-page-action-item="overflow-all"
					data-copy-markdown
					data-copy-state="idle"
					data-check-hidden="true"
				>
					<span class="icon color-primary" aria-hidden="true">
						<span data-show-when="idle" class="docon docon-code-lang"></span>
						<span data-show-when="loading" class="loader" hidden></span>
						<span data-show-when="success" class="docon docon-check-mark" hidden></span>
					</span>
					<span>Copy Markdown</span>
				</button>
		   
				<button
					class="button button-block button-clear button-sm justify-content-flex-start text-align-left inner-focus"
					type="button"
					data-bi-name="print"
					data-page-action-item="overflow-all"
					data-popover-close
					data-print-page
					data-check-hidden="true"
				>
					<span class="icon color-primary" aria-hidden="true">
						<span class="docon docon-print"></span>
					</span>
					<span>Print</span>
				</button>
		  
	
				</div>
			</details>
		</div>
	
			</div>
		</div>
	  
		<!-- privateUnauthorizedTemplate is hidden by default -->
		<div unauthorized-private-section data-bi-name="permission-content-unauthorized-private" hidden>
			<hr class="hr margin-top-xs margin-bottom-sm" />
			<div class="notification notification-info">
				<div class="notification-content">
					<p class="margin-top-none notification-title">
						<span class="icon" aria-hidden="true"
							><span class="docon docon-exclamation-circle-solid"></span
						></span>
						<span>Note</span>
					</p>
					<p class="margin-top-none authentication-determined not-authenticated">
						Access to this page requires authorization. You can try <a class="docs-sign-in" href="#" data-bi-name="permission-content-sign-in">signing in</a> or <a  class="docs-change-directory" data-bi-name="permisson-content-change-directory">changing directories</a>.
					</p>
					<p class="margin-top-none authentication-determined authenticated">
						Access to this page requires authorization. You can try <a class="docs-change-directory" data-bi-name="permisson-content-change-directory">changing directories</a>.
					</p>
				</div>
			</div>
		</div>
	
					<div class="content"><h1 id="install-powershell-7-on-windows">Install PowerShell 7 on Windows</h1></div>
					
		<div
			id="article-metadata"
			data-bi-name="article-metadata"
			data-test-id="article-metadata"
			class="page-metadata-container display-flex gap-xxs justify-content-space-between align-items-center flex-wrap-wrap"
		>
			 
				<div
					id="user-feedback"
					class="margin-block-xxs display-none display-none-print"
					hidden
					data-hide-on-archived
				>
					
		<button
			id="user-feedback-button"
			data-test-id="conceptual-feedback-button"
			class="button button-sm button-clear button-primary display-none"
			type="button"
			data-bi-name="user-feedback-button"
			data-user-feedback-button
			hidden
		>
			<span class="icon" aria-hidden="true">
				<span class="docon docon-like"></span>
			</span>
			<span>Feedback</span>
		</button>
	
				</div>
		  
		</div>
	 
		<div data-id="ai-summary" class="display-none-print">
			<div id="ms--ai-summary-cta" class="margin-top-xs display-flex align-items-center">
				<span class="icon" aria-hidden="true">
					<span class="docon docon-sparkle-fill gradient-text-vivid"></span>
				</span>
				<button
					id="ms--ai-summary"
					type="button"
					class="tag tag-sm tag-suggestion margin-left-xxs"
					data-test-id="ai-summary-cta"
					data-bi-name="ai-summary-cta"
					data-an="ai-summary"
				>
					<span class="ai-summary-cta-text">
						Summarize this article for me
					</span>
				</button>
			</div>
			<!-- Slot where the client will render the summary card after the user clicks the CTA -->
			<div id="ms--ai-summary-header" class="margin-top-xs"></div>
		</div>
	 
		<nav
			id="center-doc-outline"
			class="doc-outline display-none-desktop display-none-print margin-bottom-sm"
			data-bi-name="intopic toc"
			aria-label="In this article"
		>
			<h2 id="ms--in-this-article" class="title is-6 margin-block-xs">
				In this article
			</h2>
		</nav>
	
					<div class="content"><p>PowerShell 7 doesn't replace Windows PowerShell 5.1. It installs to a new directory and runs
side-by-side with Windows PowerShell 5.1. There are some Windows PowerShell modules that can be run
using the PowerShell 7 Windows Compatibility feature. Other modules require that you run them in
Windows PowerShell 5.1. For more information, see <a href="../whats-new/module-compatibility?view=powershell-7.6" data-linktype="relative-path">PowerShell 7 module compatibility</a>.</p>
<p>There are multiple package versions of PowerShell 7 that can be installed. This article focuses on
installing the latest stable release package. For more information about the package versions, see
the <a href="powershell-support-lifecycle?view=powershell-7.6" data-linktype="relative-path">PowerShell Support Lifecycle</a> article.</p>
<h2 id="choose-an-installation-method">Choose an installation method</h2>
<p>There are multiple ways to install PowerShell in Windows. Each install method is designed to support
different scenarios and workflows. Choose the method that best suits your needs.</p>
<ul>
<li><a href="#winget" data-linktype="self-bookmark">WinGet</a> - Recommended way to install PowerShell on Windows clients</li>
<li><a href="#msi" data-linktype="self-bookmark">MSI package</a> - Best choice for Windows Servers and enterprise deployment scenarios</li>
<li><a href="#msstore" data-linktype="self-bookmark">MSIX package</a> - An easy way to install for casual users of PowerShell but has limitations</li>
<li><a href="#zip" data-linktype="self-bookmark">ZIP package</a> - Easiest way to <em>side load</em> or install multiple versions or install on Windows
Server Core, Windows IoT, and Arm-based systems</li>
<li><a href="#dotnet" data-linktype="self-bookmark">.NET Global tool</a> - A good choice for .NET developers that install and use other global tools</li>
</ul>
<h3 id="install-powershell-using-winget">Install PowerShell using WinGet</h3>
<p><a id="winget"></a>WinGet, the Windows Package Manager, is a command-line tool that enables you to
discover, install, upgrade, remove, and configure applications on Windows client computers. This
tool is the client interface to the Windows Package Manager service. The <code>winget</code> command-line tool
is included in Windows 11 and Windows Server 2025 as part of the <strong>App Installer</strong>. The <code>winget</code>
command can be run from any command shell, including the Windows Command shell (<code>cmd.exe</code>), Windows
PowerShell (<code>powershell.exe</code>), or PowerShell (<code>pwsh.exe</code>).</p>
<div class="NOTE">
<p>Note</p>
<p>See the <a href="/en-us/windows/package-manager/winget" data-linktype="absolute-path">winget documentation</a> for a list of system requirements and install instructions.
<code>winget</code> isn't available on Windows Server 2022 or earlier versions. Windows Server 2025 includes
<code>winget</code> for <strong>Windows Server with Desktop Experience</strong> only.</p>
</div>
<p>Use the following <code>winget</code> commands to install PowerShell:</p>
<p>Search for the latest version of PowerShell</p>
<pre><code class="lang-powershell">winget search --id Microsoft.PowerShell --exact
</code></pre>
<pre><code class="lang-Output">Name               Id                           Version   Source
-----------------------------------------------------------------
PowerShell         Microsoft.PowerShell         7.6.2.0   winget
</code></pre>
<p>Beginning with the winget package for PowerShell 7.6.0, winget installs the MSIX package by default.</p>
<p>Install the PowerShell 7 MSIX package:</p>
<pre><code class="lang-powershell">winget install --id Microsoft.PowerShell --source winget
</code></pre>
<p>Use the following command to install the PowerShell 7 MSI package:</p>
<pre><code class="lang-powershell">winget install --id Microsoft.PowerShell --source winget --installer-type wix
</code></pre>
<p>Alternatively, you can manually download and install the <a href="#msi" data-linktype="self-bookmark">MSI package</a>.</p>
<p>Beginning with the winget package for PowerShell 7.7.0-preview.1, there is no MSI package available.
WinGet only installs the MSIX package.</p>
<p>Use the following command to install PowerShell 7.7-preview packages:</p>
<pre><code class="lang-powershell">winget install --id Microsoft.PowerShell.Preview --source winget
</code></pre>
<h3 id="install-the-msi-package">Install the MSI package</h3>
<p><a id="msi"></a>To install PowerShell on Windows, use the following links to download the install
package from GitHub.</p>
<p>Latest stable release:</p>
<ul>
<li><a href="https://github.com/PowerShell/PowerShell/releases/download/v7.6.2/PowerShell-7.6.2-win-x64.msi" data-linktype="external">PowerShell-7.6.2-win-x64.msi</a></li>
<li><a href="https://github.com/PowerShell/PowerShell/releases/download/v7.6.2/PowerShell-7.6.2-win-arm64.msi" data-linktype="external">PowerShell-7.6.2-win-arm64.msi</a></li>
</ul>
<p>Once downloaded, double-click the installer file and follow the prompts.</p>
<h3 id="install-the-msi-package-with-command-line-options">Install the MSI package with command-line options</h3>
<p>MSI packages can be installed from the command line allowing administrators to deploy packages
without user interaction. The MSI package includes the following properties to control the
installation options:</p>
<ul>
<li><p><code>USE_MU</code> - This property has two possible values:</p>
<ul>
<li><code>1</code> (default) - Opts into updating through Microsoft Update, WSUS, or Configuration Manager</li>
<li><code>0</code> -  Don't opt into updating through Microsoft Update, WSUS, or Configuration Manager</li>
</ul>
</li>
<li><p><code>ENABLE_MU</code></p>
<ul>
<li><p><code>1</code> (default) - Opts into using Microsoft Update for Automatic Updates</p>
</li>
<li><p><code>0</code> - Don't opt into using Microsoft Update</p>
<div class="NOTE">
<p>Note</p>
<p>Enabling updates may have been set in a previous installation or manual configuration. Using
<code>ENABLE_MU=0</code> doesn't remove the existing settings. Also, this setting can be overruled by
Group Policy settings controlled by your administrator.</p>
</div>
</li>
</ul>
</li>
<li><p><code>ADD_EXPLORER_CONTEXT_MENU_OPENPOWERSHELL</code> - This property controls the option for adding the
<code>Open PowerShell</code> item to the context menu in Windows Explorer.</p>
</li>
<li><p><code>ADD_FILE_CONTEXT_MENU_RUNPOWERSHELL</code> - This property controls the option for adding the
<code>Run with PowerShell</code> item to the context menu in Windows Explorer.</p>
</li>
<li><p><code>ENABLE_PSREMOTING</code> - This property controls the option for enabling PowerShell remoting during
installation.</p>
</li>
<li><p><code>REGISTER_MANIFEST</code> - This property controls the option for registering the Windows Event
Logging manifest.</p>
</li>
<li><p><code>ADD_PATH</code> - This property controls the option for adding PowerShell to the Windows PATH
environment variable.</p>
</li>
<li><p><code>DISABLE_TELEMETRY</code> - This property controls the option for disabling PowerShell's telemetry by
setting the <code>POWERSHELL_TELEMETRY_OPTOUT</code> environment variable.</p>
</li>
<li><p><code>INSTALLFOLDER</code> - This property controls the installation directory. The default is
<code>$Env:ProgramFiles\PowerShell\</code>. This is the location where the installer creates the versioned
subfolder. You can't change the name of the versioned subfolder.</p>
<ul>
<li>For current releases, the versioned subfolder is <code>7</code></li>
<li>For preview releases, the versioned subfolder is <code>7-preview</code></li>
</ul>
</li>
</ul>
<p>The following example shows how to silently install PowerShell with all the install options enabled.</p>
<pre><code class="lang-powershell">$msiParams = @(
    '/package PowerShell-7.6.2-win-x64.msi'
    '/quiet'
    'ADD_EXPLORER_CONTEXT_MENU_OPENPOWERSHELL=1'
    'ADD_FILE_CONTEXT_MENU_RUNPOWERSHELL=1'
    'ENABLE_PSREMOTING=1'
    'REGISTER_MANIFEST=1'
    'USE_MU=1'
    'ENABLE_MU=1'
    'ADD_PATH=1'
)
msiexec.exe @msiParams
</code></pre>
<p>For a full list of command-line options for <code>Msiexec.exe</code>, see <a href="/en-us/windows/desktop/Msi/command-line-options" data-linktype="absolute-path">Command line options</a>.</p>
<h3 id="install-the-zip-package">Install the ZIP package</h3>
<p><a id="zip"></a>PowerShell binary ZIP archives are provided to enable advanced deployment scenarios.
Download one of the following ZIP archives from the <a href="https://github.com/PowerShell/PowerShell/releases/latest" data-linktype="external">current release</a> page.</p>
<ul>
<li><a href="https://github.com/PowerShell/PowerShell/releases/download/v7.6.2/PowerShell-7.6.2-win-x64.zip" data-linktype="external">PowerShell-7.6.2-win-x64.zip</a></li>
<li><a href="https://github.com/PowerShell/PowerShell/releases/download/v7.6.2/PowerShell-7.6.2-win-arm64.zip" data-linktype="external">PowerShell-7.6.2-win-arm64.zip</a></li>
</ul>
<p>Depending on how you download the file you may need to unblock the file using the <code>Unblock-File</code>
cmdlet. Unzip the contents to the location of your choice and run <code>pwsh.exe</code> from there. Unlike
installing the MSI packages, installing the ZIP archive doesn't check for prerequisites. For
remoting over WSMan to work properly, ensure that you've met the <a href="/en-us/powershell/module/microsoft.powershell.core/about/about_remote_requirements" data-linktype="absolute-path">prerequisites</a>.</p>
<p>Use this method to install the ARM-based version of PowerShell on computers like the Microsoft
Surface Pro X. For best results, install PowerShell to the <code>$Env:ProgramFiles\PowerShell\7</code> folder.
If you are installing an additional version of PowerShell 7 side-by-side with an existing version of
PowerShell 7, install the additional version to a different folder. You must manually add a shortcut
to the Start Menu and add the location to the PATH environment variable.</p>
<h3 id="install-as-a-net-global-tool">Install as a .NET Global tool</h3>
<p><a id="dotnet"></a>If you already have the <a href="/en-us/dotnet/core/sdk" data-linktype="absolute-path">.NET Core SDK</a> installed, you can install PowerShell
as a <a href="/en-us/dotnet/core/tools/global-tools" data-linktype="absolute-path">.NET Global tool</a>.</p>
<pre><code>dotnet tool install --global PowerShell
</code></pre>
<p>The dotnet tool installer adds <code>$HOME\.dotnet\tools</code> to your <code>$Env:PATH</code> environment variable.
However, the currently running shell doesn't have the updated <code>$Env:PATH</code>. You can start PowerShell
from a new shell by typing <code>pwsh</code>.</p>
<h3 id="install-the-msix-package">Install the MSIX package</h3>
<p><a id="msstore"></a>PowerShell can be installed from the <a href="https://www.microsoft.com/store/apps/9MZ1SNWT0N5D" data-linktype="external">Microsoft Store</a> or by manually
downloading the MSIX package.</p>
<p>Benefits of the Microsoft Store package:</p>
<ul>
<li>Automatic updates built right into Windows</li>
<li>Integrates with other software distribution mechanisms like Intune and Configuration Manager</li>
<li>Can install on Windows systems using x64 or Arm64 processors</li>
</ul>
<p>To manually install the MSIX package, download one of the following packages from the GitHub
releases page and double-click the file to install it.</p>
<ul>
<li>Latest LTS - <a href="https://github.com/PowerShell/PowerShell/releases/download/v7.6.2/PowerShell-7.6.2.msixbundle" data-linktype="external">PowerShell-7.6.2.msixbundle</a></li>
<li>Latest stable - <a href="https://github.com/PowerShell/PowerShell/releases/download/v7.5.7/PowerShell-7.5.7.msixbundle" data-linktype="external">PowerShell-7.5.7.msixbundle</a></li>
<li>Previous LTS - <a href="https://github.com/PowerShell/PowerShell/releases/download/v7.4.16/PowerShell-7.4.16.msixbundle" data-linktype="external">PowerShell-7.4.16.msixbundle</a></li>
<li>Current preview - <a href="https://github.com/PowerShell/PowerShell/releases/download/v7.7.0-preview.1/PowerShellPreview-7.7.0-preview.1.msixbundle" data-linktype="external">PowerShell-7.7.0-preview.1.msixbundle</a></li>
</ul>
<p>Alternatively, you can use the following command to install the MSIX package from the command line:</p>
<pre><code class="lang-powershell">Add-AppxPackage -Path ".\PowerShell-7.6.2.msixbundle"
</code></pre>
<h4 id="limitations-of-a-msix-based-installation">Limitations of a MSIX-based installation</h4>
<p>Store-based installations are installed for a single user. There is no option to install it for all
users. Microsoft Store packages run in an application sandbox that virtualizes access to some
filesystem and registry locations. Changes to virtualized file and registry locations don't persist
outside of the application sandbox.</p>
<p>Store-based installations don't support PowerShell remoting. The application sandbox blocks all
changes to the application's root folder. Any system-level configuration settings stored in
<code>$PSHOME</code> can't be modified. This includes the WSMAN configuration. This prevents remote sessions
from connecting to Store-based installs of PowerShell. User-level configurations and SSH remoting
for outbound connections are supported.</p>
<p>The following commands aren't supported in a Microsoft Store instance of PowerShell. These commands
need write access to <code>$PSHOME</code>.</p>
<ul>
<li><code>Register-PSSessionConfiguration</code></li>
<li><code>Update-Help -Scope AllUsers</code></li>
<li><code>Enable-ExperimentalFeature -Scope AllUsers</code></li>
<li><code>Set-ExecutionPolicy -Scope LocalMachine</code></li>
</ul>
<p>For MSIX-based installations, you can't create or modify the all-users profile scripts
<code>$PROFILE.AllUsersAllHosts</code> and <code>$PROFILE.AllUsersCurrentHost</code> because those profiles must be
stored in <code>$PSHOME</code>. Current-user profiles are still supported.</p>
<p>The PowerShell package is exempt from file and registry virtualization. Changes to virtualized file
and registry locations now persist outside of the application sandbox. However, changes to the
application's root folder are still blocked.</p>
<p>For more information, see <a href="/en-us/windows/msix/desktop/desktop-to-uwp-behind-the-scenes" data-linktype="absolute-path">Understanding how packaged desktop apps run on Windows</a>.</p>
<div class="IMPORTANT">
<p>Important</p>
<p>You must be running on Windows build 1903 or higher for this exemption to work.</p>
</div>
<h2 id="start-powershell-7">Start PowerShell 7</h2>
<p>After installing PowerShell 7, you can start it by running the <code>pwsh</code> command or open it from the
Start Menu. The installer creates shortcut entries in the Windows Start Menu.</p>
<p>By default, the installer installs the package in <code>$Env:ProgramFiles\PowerShell\7</code>. Preview releases
of PowerShell 7 install to <code>$Env:ProgramFiles\PowerShell\7-preview</code>. The installed location is added
to your <code>$Env:PATH</code> environment variable.</p>
<div class="NOTE">
<p>Note</p>
<p>To run PowerShell 7.5 side-by-side with other versions of PowerShell 7, use the <a href="#zip" data-linktype="self-bookmark">ZIP install</a>
method to install the other version to a different folder. When you install using the ZIP method,
you must manually add a shortcut to the Start Menu and add the location to the PATH environment
variable.</p>
</div>
<p>The following screenshot shows multiple versions of PowerShell in the Start Menu. Select the item
labeled <strong>PowerShell 7</strong>.</p>
<p><img src="../../docs-conceptual/install/media/install-powershell-on-windows/powershell-start-menu.png?view=powershell-7.6" alt="PowerShell in the Start Menu." data-linktype="relative-path"></p>
<p>The selected entry is for PowerShell 7. Preview versions of PowerShell 7 install side-by-side with
stable versions. Select the item labeled <strong>PowerShell 7-preview</strong> to start the preview version.</p>
<p>The first and last entries shown are for Windows PowerShell 5.1, which are installed by default on
Windows. If you choose <strong>Windows PowerShell ISE</strong>, that starts the Windows PowerShell Integrated
Scripting Environment (ISE), which is a different application that only works with Windows
PowerShell 5.1.</p>
<h2 id="upgrade-powershell-7">Upgrade PowerShell 7</h2>
<p>PowerShell 7 supports updates through Microsoft Update. When you enable this feature, you'll get
the latest PowerShell 7 updates in your traditional Microsoft Update (MU) management flow, whether
that's with Windows Update for Business, WSUS, Microsoft Endpoint Configuration Manager, or the
interactive MU dialog in <strong>Settings</strong>. For more information, see the
<a href="microsoft-update-faq?view=powershell-7.6" data-linktype="relative-path">PowerShell Microsoft Update FAQ</a>.</p>
<p>If you want to upgrade to the latest version of PowerShell 7 before it's available through Microsoft
Update, you should use the same install method you used when you first installed PowerShell. Newer
versions of PowerShell 7 replace existing previous versions of PowerShell 7. Preview versions of
PowerShell can be installed side-by-side with non-preview versions of PowerShell. Newer preview
versions replace existing previous preview versions.</p>
<p>If you aren't sure how PowerShell was installed, you can check the value of the <code>$PSHOME</code> variable,
which always points to the directory containing PowerShell that the current session is running.</p>
<ul>
<li>If the value is <code>$HOME\.dotnet\tools</code>, PowerShell was installed with the <a href="#dotnet" data-linktype="self-bookmark">.NET Global tool</a>.</li>
<li>If the value is <code>$Env:ProgramFiles\PowerShell\7</code>, PowerShell was probably installed using the
<a href="#msi" data-linktype="self-bookmark">MSI package</a>. You can verify this by looking for PowerShell in the <strong>Programs and Features</strong>
Control Panel.</li>
<li>If the value starts with <code>$Env:ProgramFiles\WindowsApps\</code>, PowerShell was installed using the
<a href="#msstore" data-linktype="self-bookmark">MSIX package</a>.</li>
<li>If the value is anything else, it's likely that PowerShell was installed as a <a href="#zip" data-linktype="self-bookmark">ZIP package</a>.</li>
</ul>
<p>To determine whether PowerShell may be upgraded with WinGet, run the following command:</p>
<pre><code class="lang-powershell">winget list --id Microsoft.PowerShell --upgrade-available
</code></pre>
<p>If there is an available upgrade, the output indicates the latest available version. Use the
following command to upgrade PowerShell using WinGet:</p>
<pre><code class="lang-powershell">winget upgrade --id Microsoft.PowerShell
</code></pre>
<p>If available in the new version, WinGet uses the same package format (MSI or MSIX) that was used to
install the current version of PowerShell. Alternatively, you can manually download and install
the package you want.</p>
<h2 id="uninstall-powershell-7">Uninstall PowerShell 7</h2>
<p>The process of uninstalling PowerShell 7 depends on the installation method you used.</p>
<ul>
<li><p>If you installed PowerShell using WinGet, run the following command:</p>
<pre><code class="lang-powershell">winget uninstall --id Microsoft.PowerShell
</code></pre>
</li>
<li><p>If you installed PowerShell using the MSI package, you can uninstall it from the
<strong>Programs and Features</strong> Control Panel.</p>
</li>
<li><p>If you installed PowerShell using the ZIP package, delete the folder where you unzipped the files.</p>
</li>
<li><p>If you installed PowerShell from the Microsoft Store, open the <strong>Start</strong> menu and search for
<code>PowerShell 7</code>. Select <strong>Uninstall</strong> from the menu of options.</p>
</li>
<li><p>If you installed PowerShell as a .NET Global tool, run the following command:</p>
<pre><code class="lang-powershell">dotnet tool uninstall --global PowerShell
</code></pre>
</li>
</ul>
<h2 id="supported-versions-of-windows">Supported versions of Windows</h2>
<!-- markdownlint-disable first-line-h1 -->
<p>Microsoft supports PowerShell until <a href="/en-us/powershell/scripting/install/powershell-support-lifecycle" data-linktype="absolute-path">PowerShell reaches end-of-support</a> or the version of
<a href="/en-us/lifecycle/products/?terms=Windows%20Server&amp;products=windows" data-linktype="absolute-path">Windows reaches end-of-support</a>.</p>
<p>The Docker images for the .NET SDK contain the latest versions of PowerShell. These images are
available from the <a href="https://mcr.microsoft.com/artifact/mar/dotnet/sdk/tags" data-linktype="external">Microsoft Artifact Registry</a>. These images may not have the latest security
updates. Microsoft recommends that you update the OS packages to the latest version to ensure the
latest security updates are applied. These images are provided for testing purposes. If you need a
Docker image for a production workload, you should build and maintain your own image.</p>
<div class="NOTE">
<p>Note</p>
<p>Support for a specific version of Windows is determined by the Microsoft Support Lifecycle
policies. For more information, see:</p>
<ul>
<li><a href="/en-us/lifecycle/faq/windows" data-linktype="absolute-path">Windows client lifecycle FAQ</a></li>
<li><a href="/en-us/lifecycle/policies/modern" data-linktype="absolute-path">Modern Lifecycle Policy FAQ</a></li>
</ul>
</div>
<p>You can check the version that you are using by running <code>winver.exe</code>.</p>
<h2 id="supported-installation-methods">Supported installation methods</h2>
<p>Microsoft supports the installation methods in this document. There may be other third-party methods
of installation available from other sources. While those tools and methods may work, Microsoft
can't support those methods.</p>
<!-- markdownlint-disable first-line-h1 -->
<div class="NOTE">
<p>Note</p>
<p>The installation commands in this article are for the latest stable release of PowerShell. To
install a different version of PowerShell, adjust the command to match the version you need. Open
the <a href="https://github.com/PowerShell/PowerShell/tags" data-linktype="external">Release tags page</a> on GitHub. Select the tag for the release version you want to install.
The download links for every package are found in the <strong>Assets</strong> section of the release. The
<strong>Assets</strong> section may be collapsed, so you may need to click to expand it.</p>
</div>
<!-- link references -->
<!-- link references -->
</div>
					
		<div
			id="ms--inline-notifications"
			class="margin-block-xs"
			data-bi-name="inline-notification"
		></div>
	 
		<div
			id="assertive-live-region"
			role="alert"
			aria-live="assertive"
			class="visually-hidden"
			aria-relevant="additions"
			aria-atomic="true"
		></div>
		<div
			id="polite-live-region"
			role="status"
			aria-live="polite"
			class="visually-hidden"
			aria-relevant="additions"
			aria-atomic="true"
		></div>
	
					
			
		<!-- feedback section -->
		<section
			class="feedback-section position-relative margin-top-lg border border-radius padding-xxs display-none-print"
			data-bi-name="open-source-feedback-section"
			data-open-source-feedback-section
			hidden
		>
			<div class="display-flex flex-direction-column flex-direction-row-tablet">
				<div
					class="width-450-tablet padding-inline-xs padding-inline-xs-tablet padding-top-xs padding-bottom-sm padding-top-xs-tablet background-color-body-medium"
				>
					<div class="display-flex flex-direction-column">
						<div class="padding-bottom-xxs">
							<span class="icon margin-right-xxs" aria-hidden="true">
								<span class="docon docon-brand-github"></span>
							</span>
							<span class="font-weight-semibold">
								Collaborate with us on GitHub
							</span>
						</div>
						<span class="line-height-normal">
							The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see <a href="https://learn.microsoft.com/powershell/scripting/community/contributing/powershell-style-guide">our contributor guide</a>.
						</span>
					</div>
				</div>
				<div
					class="display-flex gap-xs width-full-tablet flex-direction-column padding-xs justify-content-space-evenly"
				>
					<div class="media">
						
					<div class="media-left">
						<div class="image image-36x36" hidden data-open-source-image-container>
							<img
								class="theme-display is-light"
								src="https://learn.microsoft.com/media/logos/logo-powershell-core.svg"
								aria-hidden="true"
								data-open-source-image-light
							/>
							<img
								class="theme-display is-dark is-high-contrast"
								src="https://learn.microsoft.com/media/logos/logo-powershell-core.svg"
								aria-hidden="true"
								data-open-source-image-dark
							/>
						</div>
					</div>
			  

						<div class="media-content">
							<p
								class="font-size-xl font-weight-semibold margin-bottom-xxs"
								data-open-source-product-title
							>
								PowerShell
							</p>
							<div class="display-flex gap-xs flex-direction-column">
								<p class="line-height-normal" data-open-source-product-description></p>
								<div class="display-flex gap-xs flex-direction-column">
									<a href="#" data-github-link>
										<span class="icon margin-right-xxs" aria-hidden="true">
											<span class="docon docon-bug"></span>
										</span>
										<span>Open a documentation issue</span>
									</a>
									<a
										href="https://github.com/powershell/powershell/issues/new"
										class="display-block margin-top-auto font-size-md"
										data-feedback-product-url
									>
										<span class="icon margin-right-xxs" aria-hidden="true">
											<span class="docon docon-feedback"></span>
										</span>
										<span>Provide product feedback</span>
									</a>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</section>
		<!-- end feedback section -->
	
			
		<!-- feedback section -->
		<section
			id="site-user-feedback-footer"
			class="font-size-sm margin-top-md display-none-print display-none-desktop"
			data-test-id="site-user-feedback-footer"
			data-bi-name="site-feedback-section"
		>
			<hr class="hr" />
			<h2 id="ms--feedback" class="title is-3">Feedback</h2>
			<div class="display-flex flex-wrap-wrap align-items-center">
				<p class="font-weight-semibold margin-xxs margin-left-none">
					Was this page helpful?
				</p>
				<div class="buttons">
					<button
						class="thumb-rating-button like button button-primary button-sm"
						data-test-id="footer-rating-yes"
						data-binary-rating-response="rating-yes"
						type="button"
						title="This article is helpful"
						data-bi-name="button-rating-yes"
						aria-pressed="false"
					>
						<span class="icon" aria-hidden="true">
							<span class="docon docon-like"></span>
						</span>
						<span>Yes</span>
					</button>
					<button
						class="thumb-rating-button dislike button button-primary button-sm"
						id="standard-rating-no-button"
						hidden
						data-test-id="footer-rating-no"
						data-binary-rating-response="rating-no"
						type="button"
						title="This article is not helpful"
						data-bi-name="button-rating-no"
						aria-pressed="false"
					>
						<span class="icon" aria-hidden="true">
							<span class="docon docon-dislike"></span>
						</span>
						<span>No</span>
					</button>
					<details
						class="popover popover-top"
						id="mobile-help-popover"
						data-test-id="footer-feedback-popover"
					>
						<summary
							class="thumb-rating-button dislike button button-primary button-sm"
							data-test-id="details-footer-rating-no"
							data-binary-rating-response="rating-no"
							title="This article is not helpful"
							data-bi-name="button-rating-no"
							aria-pressed="false"
							data-bi-an="feedback-unhelpful-popover"
						>
							<span class="icon" aria-hidden="true">
								<span class="docon docon-dislike"></span>
							</span>
							<span>No</span>
						</summary>
						<div
							class="popover-content width-200 width-300-tablet"
							role="dialog"
							aria-labelledby="popover-heading"
							aria-describedby="popover-description"
						>
							<p id="popover-heading" class="font-size-lg margin-bottom-xxs font-weight-semibold">
								Need help with this topic?
							</p>
							<p id="popover-description" class="font-size-sm margin-bottom-xs">
								Want to try using Ask Learn to clarify or guide you through this topic?
							</p>
							
		<div class="buttons flex-direction-row flex-wrap justify-content-center gap-xxs">
			<div>
		<button
			class="button button-sm border inner-focus display-none margin-right-xxs"
			data-bi-name="ask-learn-assistant-entry-troubleshoot"
			data-test-id="ask-learn-assistant-modal-entry-mobile-feedback"
			data-ask-learn-modal-entry-feedback
			data-bi-an=feedback-unhelpful-popover
			type="button"
			style="min-width: max-content;"
			aria-expanded="false"
			aria-label="Ask Learn"
			hidden
		>
			<span class="icon font-size-lg" aria-hidden="true">
				<span class="docon docon-chat-sparkle-fill gradient-ask-learn-logo"></span>
			</span>
		</button>
		<button
			class="button button-sm display-inline-flex display-none-desktop flex-shrink-0 margin-right-xxs border-color-ask-learn margin-right-xxs"
			data-bi-name="ask-learn-assistant-entry-troubleshoot"
			data-bi-an=feedback-unhelpful-popover
			data-test-id="ask-learn-assistant-modal-entry-tablet-feedback"
			data-ask-learn-modal-entry-feedback
			type="button"
			style="min-width: max-content;"
			aria-expanded="false"
			hidden
		>
			<span class="icon font-size-lg" aria-hidden="true">
				<span class="docon docon-chat-sparkle-fill gradient-ask-learn-logo"></span>
			</span>
			<span>Ask Learn</span>
		</button>
		<button
			class="button button-sm display-none flex-shrink-0 display-inline-flex-desktop margin-right-xxs border-color-ask-learn margin-right-xxs"
			data-bi-name="ask-learn-assistant-entry-troubleshoot"
			data-bi-an=feedback-unhelpful-popover
			data-test-id="ask-learn-assistant-flyout-entry-feedback"
			data-ask-learn-flyout-entry-show-only
			data-flyout-button="toggle"
			type="button"
			style="min-width: max-content;"
			aria-expanded="false"
			aria-controls="ask-learn-flyout"
			hidden
		>
			<span class="icon font-size-lg" aria-hidden="true">
				<span class="docon docon-chat-sparkle-fill gradient-ask-learn-logo"></span>
			</span>
			<span>Ask Learn</span>
		</button>
	</div>
			<button
				type="button"
				class="button button-sm margin-right-xxs"
				data-help-option="suggest-fix"
				data-bi-name="feedback-suggest"
				data-bi-an="feedback-unhelpful-popover"
				data-test-id="suggest-fix"
			>
				<span class="icon" aria-hidden="true">
					<span class="docon docon-feedback"></span>
				</span>
				<span> Suggest a fix? </span>
			</button>
		</div>
	
						</div>
					</details>
				</div>
			</div>
		</section>
		<!-- end feedback section -->
	
		
				</div>
				
		<div id="ms--additional-resources-mobile" class="display-none-print">
			<hr class="hr" hidden />
			<h2 id="ms--additional-resources-mobile-heading" class="title is-3" hidden>
				Additional resources
			</h2>
			
		<section
			id="right-rail-recommendations-mobile"
			class=""
			data-bi-name="recommendations"
			hidden
		></section>
	 
		<section
			id="right-rail-training-mobile"
			class=""
			data-bi-name="learning-resource-card"
			hidden
		></section>
	 
		<section
			id="right-rail-events-mobile"
			class=""
			data-bi-name="events-card"
			hidden
		></section>
	
		</div>
	 
		<div
			id="article-metadata-footer"
			data-bi-name="article-metadata-footer"
			data-test-id="article-metadata-footer"
			class="page-metadata-container"
		>
			<hr class="hr" />
			<ul class="metadata page-metadata" data-bi-name="page info" lang="en-us" dir="ltr">
				<li class="visibility-hidden-visual-diff">
			<span class="badge badge-sm text-wrap-pretty">
				<span>Last updated on <local-time format="twoDigitNumeric"
		datetime="2026-05-20T08:00:00.000Z"
		data-article-date-source="calculated"
		class="is-invisible"
	>
		2026-05-20
	</local-time></span>
			</span>
		</li>
			</ul>
		</div>
	
			</div>
			
		<div
			id="action-panel"
			role="region"
			aria-label="Action Panel"
			class="action-panel"
			tabindex="-1"
		></div>
	
		
				</main>
				<aside
					id="layout-body-aside"
					class="layout-body-aside  "
					data-bi-name="aside"
					aria-label="Additional resources"
			  >
					
		<div
			id="ms--additional-resources"
			class="right-container padding-sm display-none display-block-desktop height-full"
			data-bi-name="pageactions"
		>
			<div id="affixed-right-container" data-bi-name="right-column">
				
		<nav
			id="side-doc-outline"
			class="doc-outline border-bottom padding-bottom-xs margin-bottom-xs scrollbar-width-thin"
			data-bi-name="intopic toc"
			aria-label="In this article"
		>
			<h3>In this article</h3>
		</nav>
	
				<!-- Feedback -->
				
		<section
			id="ms--site-user-feedback-right-rail"
			class="font-size-sm display-none-print"
			data-test-id="site-user-feedback-right-rail"
			data-bi-name="site-feedback-right-rail"
		>
			<div class="display-flex flex-wrap-wrap align-items-center">
				<p class="font-weight-semibold margin-xxs margin-left-none">
					Was this page helpful?
				</p>
				<div class="display-flex flex-wrap-nowrap">
					<button
						class="thumb-rating-button like inner-focus"
						data-test-id="right-rail-rating-yes"
						data-binary-rating-response="rating-yes"
						type="button"
						title="This article is helpful"
						aria-label="This article is helpful"
						data-bi-name="button-rating-yes"
						aria-pressed="false"
					>
						<span class="icon" aria-hidden="true">
							<span class="docon docon-like"></span>
						</span>
					</button>
					<button
						class="thumb-rating-button dislike inner-focus"
						id="right-rail-no-button"
						hidden
						data-test-id="right-rail-rating-no"
						data-binary-rating-response="rating-no"
						type="button"
						title="This article is not helpful"
						aria-label="This article is not helpful"
						data-bi-name="button-rating-no"
						aria-pressed="false"
					>
						<span class="icon" aria-hidden="true">
							<span class="docon docon-dislike"></span>
						</span>
					</button>
					<details class="popover popover-right" id="help-popover" data-test-id="feedback-popover">
						<summary
							tabindex="0"
							class="thumb-rating-button dislike inner-focus"
							data-test-id="details-right-rail-rating-no"
							data-binary-rating-response="rating-no"
							title="This article is not helpful"
							aria-label="This article is not helpful"
							data-bi-name="button-rating-no"
							aria-pressed="false"
							data-bi-an="feedback-unhelpful-popover"
						>
							<span class="icon" aria-hidden="true">
								<span class="docon docon-dislike"></span>
							</span>
						</summary>
						<div
							class="popover-content width-200 width-300-tablet"
							role="dialog"
							aria-labelledby="popover-heading-right-rail"
							aria-describedby="popover-description-right-rail"
						>
							<p
								id="popover-heading-right-rail"
								class="font-size-lg margin-bottom-xxs font-weight-semibold"
							>
								Need help with this topic?
							</p>
							<p id="popover-description-right-rail" class="font-size-sm margin-bottom-xs">
								Want to try using Ask Learn to clarify or guide you through this topic?
							</p>
							
		<div class="buttons flex-direction-row flex-wrap justify-content-center gap-xxs">
			<div>
		<button
			class="button button-sm border inner-focus display-none margin-right-xxs"
			data-bi-name="ask-learn-assistant-entry-troubleshoot"
			data-test-id="ask-learn-assistant-modal-entry-mobile-feedback"
			data-ask-learn-modal-entry-feedback
			data-bi-an=feedback-unhelpful-popover
			type="button"
			style="min-width: max-content;"
			aria-expanded="false"
			aria-label="Ask Learn"
			hidden
		>
			<span class="icon font-size-lg" aria-hidden="true">
				<span class="docon docon-chat-sparkle-fill gradient-ask-learn-logo"></span>
			</span>
		</button>
		<button
			class="button button-sm display-inline-flex display-none-desktop flex-shrink-0 margin-right-xxs border-color-ask-learn margin-right-xxs"
			data-bi-name="ask-learn-assistant-entry-troubleshoot"
			data-bi-an=feedback-unhelpful-popover
			data-test-id="ask-learn-assistant-modal-entry-tablet-feedback"
			data-ask-learn-modal-entry-feedback
			type="button"
			style="min-width: max-content;"
			aria-expanded="false"
			hidden
		>
			<span class="icon font-size-lg" aria-hidden="true">
				<span class="docon docon-chat-sparkle-fill gradient-ask-learn-logo"></span>
			</span>
			<span>Ask Learn</span>
		</button>
		<button
			class="button button-sm display-none flex-shrink-0 display-inline-flex-desktop margin-right-xxs border-color-ask-learn margin-right-xxs"
			data-bi-name="ask-learn-assistant-entry-troubleshoot"
			data-bi-an=feedback-unhelpful-popover
			data-test-id="ask-learn-assistant-flyout-entry-feedback"
			data-ask-learn-flyout-entry-show-only
			data-flyout-button="toggle"
			type="button"
			style="min-width: max-content;"
			aria-expanded="false"
			aria-controls="ask-learn-flyout"
			hidden
		>
			<span class="icon font-size-lg" aria-hidden="true">
				<span class="docon docon-chat-sparkle-fill gradient-ask-learn-logo"></span>
			</span>
			<span>Ask Learn</span>
		</button>
	</div>
			<button
				type="button"
				class="button button-sm margin-right-xxs"
				data-help-option="suggest-fix"
				data-bi-name="feedback-suggest"
				data-bi-an="feedback-unhelpful-popover"
				data-test-id="suggest-fix"
			>
				<span class="icon" aria-hidden="true">
					<span class="docon docon-feedback"></span>
				</span>
				<span> Suggest a fix? </span>
			</button>
		</div>
	
						</div>
					</details>
				</div>
			</div>
		</section>
	
			</div>
		</div>
	
			  </aside> <section
					id="layout-body-flyout"
					class="layout-body-flyout "
					data-bi-name="flyout"
			  >
					 <div
	class="height-full border-left background-color-body-medium"
	id="ask-learn-flyout"
></div>
			  </section> <div class="layout-body-footer " data-bi-name="layout-footer">
		<footer
			id="footer"
			data-test-id="footer"
			data-bi-name="footer"
			class="footer-layout padding-xs padding-sm-desktop has-default-focus border-top"
			role="contentinfo"
		>
			<div class="display-flex gap-xs flex-wrap-wrap is-full-height padding-right-lg-desktop">
				
		<a
			data-mscc-ic="false"
			href="#"
			data-bi-name="select-locale"
			class="locale-selector-link flex-shrink-0 button button-sm button-clear external-link-indicator"
			id=""
			title=""
			><span class="icon" aria-hidden="true"
				><span class="docon docon-world"></span></span
			><span class="local-selector-link-text">en-us</span></a
		>
	 <div class="ccpa-privacy-link" data-ccpa-privacy-link hidden>
		
		<a
			data-mscc-ic="false"
			href="https://aka.ms/yourcaliforniaprivacychoices"
			data-bi-name="your-privacy-choices"
			class="button button-sm button-clear flex-shrink-0 external-link-indicator"
			id=""
			title=""
			>
		<svg
			xmlns="http://www.w3.org/2000/svg"
			viewBox="0 0 30 14"
			xml:space="preserve"
			height="16"
			width="43"
			aria-hidden="true"
			focusable="false"
		>
			<path
				d="M7.4 12.8h6.8l3.1-11.6H7.4C4.2 1.2 1.6 3.8 1.6 7s2.6 5.8 5.8 5.8z"
				style="fill-rule:evenodd;clip-rule:evenodd;fill:#fff"
			></path>
			<path
				d="M22.6 0H7.4c-3.9 0-7 3.1-7 7s3.1 7 7 7h15.2c3.9 0 7-3.1 7-7s-3.2-7-7-7zm-21 7c0-3.2 2.6-5.8 5.8-5.8h9.9l-3.1 11.6H7.4c-3.2 0-5.8-2.6-5.8-5.8z"
				style="fill-rule:evenodd;clip-rule:evenodd;fill:#06f"
			></path>
			<path
				d="M24.6 4c.2.2.2.6 0 .8L22.5 7l2.2 2.2c.2.2.2.6 0 .8-.2.2-.6.2-.8 0l-2.2-2.2-2.2 2.2c-.2.2-.6.2-.8 0-.2-.2-.2-.6 0-.8L20.8 7l-2.2-2.2c-.2-.2-.2-.6 0-.8.2-.2.6-.2.8 0l2.2 2.2L23.8 4c.2-.2.6-.2.8 0z"
				style="fill:#fff"
			></path>
			<path
				d="M12.7 4.1c.2.2.3.6.1.8L8.6 9.8c-.1.1-.2.2-.3.2-.2.1-.5.1-.7-.1L5.4 7.7c-.2-.2-.2-.6 0-.8.2-.2.6-.2.8 0L8 8.6l3.8-4.5c.2-.2.6-.2.9 0z"
				style="fill:#06f"
			></path>
		</svg>
	
			<span>Your Privacy Choices</span></a
		>
	
	</div>
				<div class="flex-shrink-0">
		<div class="dropdown has-caret-up">
			<button
				data-test-id="theme-selector-button"
				class="dropdown-trigger button button-clear button-sm inner-focus theme-dropdown-trigger"
				aria-controls="{{ themeMenuId }}"
				aria-expanded="false"
				title="Theme"
				data-bi-name="theme"
			>
				<span class="icon" aria-hidden="true"><span class="docon docon-sun"></span></span>
				<span>Theme</span>
				<span class="icon expanded-indicator" aria-hidden="true">
					<span class="docon docon-chevron-down-light"></span>
				</span>
			</button>
			<div class="dropdown-menu" id="{{ themeMenuId }}" role="menu">
				<ul class="theme-selector padding-xxs" data-test-id="theme-dropdown-menu">
					<li class="theme display-block">
						<button
							class="button button-clear button-sm theme-control button-block justify-content-flex-start text-align-left"
							data-theme-to="light"
						>
							<span class="theme-light margin-right-xxs">
								<span
									class="theme-selector-icon border display-inline-block has-body-background"
									aria-hidden="true"
								>
									<svg class="svg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 14">
										<rect width="22" height="14" class="has-fill-body-background" />
										<rect x="5" y="5" width="12" height="4" class="has-fill-secondary" />
										<rect x="5" y="2" width="2" height="1" class="has-fill-secondary" />
										<rect x="8" y="2" width="2" height="1" class="has-fill-secondary" />
										<rect x="11" y="2" width="3" height="1" class="has-fill-secondary" />
										<rect x="1" y="1" width="2" height="2" class="has-fill-secondary" />
										<rect x="5" y="10" width="7" height="2" rx="0.3" class="has-fill-primary" />
										<rect x="19" y="1" width="2" height="2" rx="1" class="has-fill-secondary" />
									</svg>
								</span>
							</span>
							<span role="menuitem"> Light </span>
						</button>
					</li>
					<li class="theme display-block">
						<button
							class="button button-clear button-sm theme-control button-block justify-content-flex-start text-align-left"
							data-theme-to="dark"
						>
							<span class="theme-dark margin-right-xxs">
								<span
									class="border theme-selector-icon display-inline-block has-body-background"
									aria-hidden="true"
								>
									<svg class="svg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 14">
										<rect width="22" height="14" class="has-fill-body-background" />
										<rect x="5" y="5" width="12" height="4" class="has-fill-secondary" />
										<rect x="5" y="2" width="2" height="1" class="has-fill-secondary" />
										<rect x="8" y="2" width="2" height="1" class="has-fill-secondary" />
										<rect x="11" y="2" width="3" height="1" class="has-fill-secondary" />
										<rect x="1" y="1" width="2" height="2" class="has-fill-secondary" />
										<rect x="5" y="10" width="7" height="2" rx="0.3" class="has-fill-primary" />
										<rect x="19" y="1" width="2" height="2" rx="1" class="has-fill-secondary" />
									</svg>
								</span>
							</span>
							<span role="menuitem"> Dark </span>
						</button>
					</li>
					<li class="theme display-block">
						<button
							class="button button-clear button-sm theme-control button-block justify-content-flex-start text-align-left"
							data-theme-to="high-contrast"
						>
							<span class="theme-high-contrast margin-right-xxs">
								<span
									class="border theme-selector-icon display-inline-block has-body-background"
									aria-hidden="true"
								>
									<svg class="svg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 14">
										<rect width="22" height="14" class="has-fill-body-background" />
										<rect x="5" y="5" width="12" height="4" class="has-fill-secondary" />
										<rect x="5" y="2" width="2" height="1" class="has-fill-secondary" />
										<rect x="8" y="2" width="2" height="1" class="has-fill-secondary" />
										<rect x="11" y="2" width="3" height="1" class="has-fill-secondary" />
										<rect x="1" y="1" width="2" height="2" class="has-fill-secondary" />
										<rect x="5" y="10" width="7" height="2" rx="0.3" class="has-fill-primary" />
										<rect x="19" y="1" width="2" height="2" rx="1" class="has-fill-secondary" />
									</svg>
								</span>
							</span>
							<span role="menuitem"> High contrast </span>
						</button>
					</li>
				</ul>
			</div>
		</div>
	</div>
			</div>
			<ul class="links" data-bi-name="footerlinks">
				<li class="manage-cookies-holder" hidden=""></li>
				<li>
		
		<a
			data-mscc-ic="false"
			href="https://learn.microsoft.com/en-us/principles-for-ai-generated-content"
			data-bi-name="aiDisclaimer"
			class=" external-link-indicator"
			id=""
			title=""
			>AI Disclaimer</a
		>
	
	</li><li>
		
		<a
			data-mscc-ic="false"
			href="https://learn.microsoft.com/en-us/previous-versions/"
			data-bi-name="archivelink"
			class=" external-link-indicator"
			id=""
			title=""
			>Previous Versions</a
		>
	
	</li> <li>
		
		<a
			data-mscc-ic="false"
			href="https://techcommunity.microsoft.com/t5/microsoft-learn-blog/bg-p/MicrosoftLearnBlog"
			data-bi-name="bloglink"
			class=" external-link-indicator"
			id=""
			title=""
			>Blog</a
		>
	
	</li> <li>
		
		<a
			data-mscc-ic="false"
			href="https://learn.microsoft.com/en-us/contribute"
			data-bi-name="contributorGuide"
			class=" external-link-indicator"
			id=""
			title=""
			>Contribute</a
		>
	
	</li><li>
		
		<a
			data-mscc-ic="false"
			href="https://go.microsoft.com/fwlink/?LinkId=521839"
			data-bi-name="privacy"
			class=" external-link-indicator"
			id=""
			title=""
			>Privacy</a
		>
	
	</li><li>
		
		<a
			data-mscc-ic="false"
			href="https://go.microsoft.com/fwlink/?linkid=2259814"
			data-bi-name="consumer-health-privacy"
			class=" external-link-indicator"
			id=""
			title=""
			>Consumer Health Privacy</a
		>
	
	</li><li>
		
		<a
			data-mscc-ic="false"
			href="https://learn.microsoft.com/en-us/legal/termsofuse"
			data-bi-name="termsofuse"
			class=" external-link-indicator"
			id=""
			title=""
			>Terms of Use</a
		>
	
	</li><li>
		
		<a
			data-mscc-ic="false"
			href="https://www.microsoft.com/legal/intellectualproperty/Trademarks/"
			data-bi-name="trademarks"
			class=" external-link-indicator"
			id=""
			title=""
			>Trademarks</a
		>
	
	</li>
				<li>&copy; Microsoft 2026</li>
			</ul>
		</footer>
	</footer>
			<noscript><img src="https://learn.microsoft.com/akam/13/pixel_73b8aaf5?a=dD1kM2I1YjY2ZWM3ZmRiMTE5Y2RhZjcyYWY5ZWRmZWUxNTIyMTBhNzVkJmpzPW9mZg==" style="visibility: hidden; position: absolute; left: -999px; top: -999px;" /></noscript></body>
		</html>