- 扫描 ID:
- b931d020-f695-470f-8073-74ca4895add3已完成
- 提交的 URL:
- https://aka.ms/PSWindows已重定向
- 报告完成时间:
链接 · 找到 19 个
从页面中识别出的传出链接
链接 | 文本 |
---|---|
https://go.microsoft.com/fwlink/?LinkId=521839 | Privacy Statement |
https://aka.ms/3rdpartycookies | Third-Party Cookies |
https://aka.ms/MSIgniteChallenge/Tier1Banner?wt.mc_id=ignite24_learnbanner_tier1_cnl | Register now |
https://go.microsoft.com/fwlink/p/?LinkID=2092881 | Download Microsoft Edge |
https://www.microsoft.com | Microsoft |
https://code.visualstudio.com/docs/languages/powershell/ | VS Code Extension |
https://www.powershellgallery.com/ | PowerShell Gallery |
https://devblogs.microsoft.com/powershell/ | PowerShell Team blog |
https://devblogs.microsoft.com/powershell-community/ | PowerShell Community blog |
https://aka.ms/powershell-release?tag=stable | Download PowerShell |
JavaScript 变量 · 找到 22 个
在页面窗口对象上加载的全局 JavaScript 变量是在函数外部声明的变量,可以从当前范围内的代码中的任何位置访问
名称 | 类型 |
---|---|
onbeforetoggle | object |
documentPictureInPicture | object |
onscrollend | object |
msDocs | object |
WcpConsent | function |
mscc | function |
oneDS4 | object |
oneDS | object |
__tsUtils$gblCfg | object |
__dynProto$Gbl | object |
控制台日志消息 · 找到 1 条
记录到 Web 控制台的消息
类型 | 类别 | 记录 |
---|---|---|
error | network |
|
HTML
页面的原始 HTML 正文
<!DOCTYPE html><html class="hasSidebar hasPageActions hasBreadcrumb conceptual has-default-focus theme-light" lang="en-us" dir="ltr" data-authenticated="false" data-auth-status-determined="true" data-target="docs" x-ms-format-detection="none" style="--window-inner-height: 600px !important; --atlas-header-height: 0px !important; --atlas-footer-height: 0px !important; --atlas-header-visible-height: 0px !important; --atlas-footer-visible-height: 0px !important;"><head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta property="og:title" content="Migrating from Windows PowerShell 5.1 to PowerShell 7 - PowerShell">
<meta property="og:type" content="website">
<meta property="og:url" content="https://learn.microsoft.com/en-us/powershell/scripting/whats-new/migrating-from-windows-powershell-51-to-powershell-7?view=powershell-7.4"><meta property="og:description" content="Update from PowerShell 5.1 to PowerShell 7 for your Windows platforms."><meta property="og:image" content="https://learn.microsoft.com/media/logos/logo-powershell-social.png">
<meta property="og:image:alt" content="Migrating from Windows PowerShell 5.1 to PowerShell 7 - PowerShell | Microsoft Learn">
<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="@MicrosoftLearn">
<meta name="color-scheme" content="light dark"><meta name="apiPlatform" content="powershell">
<meta name="archive_url" content="https://learn.microsoft.com/previous-versions/powershell/scripting/overview">
<meta name="author" content="sdwheeler">
<meta name="breadcrumb_path" content="/powershell/scripting/bread/toc.json">
<meta name="default_moniker" content="powershell-7.4">
<meta name="depot_name" content="PowerShell.PowerShell_PowerShell-docs_reference">
<meta name="description" content="Update from PowerShell 5.1 to PowerShell 7 for your Windows platforms.">
<meta name="document_id" content="2834a337-6896-15da-0c29-dfafe7561100">
<meta name="document_version_independent_id" content="c042b902-bdfb-5eea-f956-87b1c86644a7">
<meta name="feedback_help_link_type" content="ask-the-community">
<meta name="feedback_help_link_url" content="https://learn.microsoft.com/powershell/scripting/community/community-support">
<meta name="feedback_product_url" content="https://github.com/powershell/powershell/issues/new">
<meta name="feedback_system" content="OpenSource">
<meta name="git_commit_id" content="76e7822af488af90b2ebf072f30da42a0acadb41">
<meta name="gitcommit" content="https://github.com/MicrosoftDocs/PowerShell-Docs/blob/76e7822af488af90b2ebf072f30da42a0acadb41/reference/docs-conceptual/whats-new/Migrating-from-Windows-PowerShell-51-to-PowerShell-7.md">
<meta name="hideScope" content="false">
<meta name="locale" content="en-us">
<meta name="manager" content="jasongroce">
<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.x">
<meta name="ms.author" content="sewhee">
<meta name="ms.date" content="04/02/2024">
<meta name="ms.devlang" content="powershell">
<meta name="ms.service" content="powershell">
<meta name="ms.subservice" content="conceptual">
<meta name="ms.tgt_pltfr" content="windows, macos, linux">
<meta name="ms.topic" content="whats-new">
<meta name="original_content_git_url" content="https://github.com/MicrosoftDocs/PowerShell-Docs/blob/live/reference/docs-conceptual/whats-new/Migrating-from-Windows-PowerShell-51-to-PowerShell-7.md">
<meta name="page_type" content="conceptual">
<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="ROBOTS" content="INDEX, FOLLOW">
<meta name="schema" content="Conceptual">
<meta name="site_name" content="Docs">
<meta name="toc_preview" content="true">
<meta name="toc_rel" content="../toc.json">
<meta name="uhfHeaderId" content="MSDocsHeader-Powershell">
<meta name="updated_at" content="2024-12-17 11:00 PM">
<meta name="word_count" content="1625">
<meta name="persistent_id" content="65887f40-cb8a-6766-9b50-5b028087c89b">
<meta name="scope" content="PowerShell"><meta name="github_feedback_content_git_url" content="https://github.com/MicrosoftDocs/PowerShell-Docs/blob/main/reference/docs-conceptual/whats-new/Migrating-from-Windows-PowerShell-51-to-PowerShell-7.md"><link href="https://learn.microsoft.com/en-us/powershell/scripting/whats-new/migrating-from-windows-powershell-51-to-powershell-7?view=powershell-7.4" rel="canonical"><title>Migrating from Windows PowerShell 5.1 to PowerShell 7 - PowerShell | Microsoft Learn</title><link rel="stylesheet" href="/static/assets/0.4.029026183/styles/site-ltr.css">
<script id="msdocs-script">
var msDocs = {environment: {
supportLevel: 'production',
accessLevel: 'online',
reviewFeatures: false,
systemContent: true,
azurePortalHostname: 'portal.azure.com',
legacyHosting: false,
siteName: 'learn',
},data: {
timeOrigin: Date.now(),
contentLocale: 'en-us',
contentDir: 'ltr',
userLocale: 'en-us',
userDir: 'ltr',
pageTemplate: 'Conceptual',
brand: '',
context: {},
hasBinaryRating: true,
feedbackHelpLinkType:'ask-the-community',
feedbackHelpLinkUrl:'https://learn.microsoft.com/powershell/scripting/community/community-support',
standardFeedback: false,
showFeedbackReport: false,
enableTutorialFeedback: false,
feedbackSystem: 'OpenSource',
feedbackGitHubRepo: '',
feedbackProductUrl: 'https://github.com/powershell/powershell/issues/new',extendBreadcrumb: false,isEditDisplayable: true,
hideViewSource: false,
hasPageActions: true,
hasPrintButton: true,
hasBookmark: true,
hasShare: true,
isPermissioned: false,
isPrivateUnauthorized: false,hasRecommendations: true,openSourceFeedback: true,
openSourceFeedbackIssueUrl: 'https://github.com/MicrosoftDocs/PowerShell-Docs/issues/new?template=04-customer-feedback.yml',
openSourceFeedbackIssueTitle: '',
openSourceFeedbackIssueLabels: 'needs-triage',contributors: [{ name: "sdwheeler", url: "https://github.com/sdwheeler" },{ name: "Saibamen", url: "https://github.com/Saibamen" },{ name: "baardhermansen", url: "https://github.com/baardhermansen" },{ name: "milaandahiya", url: "https://github.com/milaandahiya" },{ name: "lucyllewy", url: "https://github.com/lucyllewy" },{ name: "chasewilson", url: "https://github.com/chasewilson" },{ name: "v-maudel", url: "https://github.com/v-maudel" },{ name: "k-takai", url: "https://github.com/k-takai" },{ name: "theJasonHelmick", url: "https://github.com/theJasonHelmick" }],},
functions:{}
};
</script><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="/static/assets/0.4.029026183/global/deprecation.js"></script><script src="/static/assets/0.4.029026183/scripts/en-us/index-docs.js"></script><style>
[data-moniker]:not([data-moniker~='powershell-7.4']) {
display: none !important;
}
</style><style id="ms-consent-banner-main-styles">.w8hcgFksdo30C8w-bygqu{color:#000}.ydkKdaztSS0AeHWIeIHsQ a{color:#0067B8}.erL690_8JwUW-R4bJRcfl{background-color:#EBEBEB;border:none;color:#000}.erL690_8JwUW-R4bJRcfl:enabled:hover{color:#000;background-color:#DBDBDB;box-shadow:0px 4px 10px rgba(0,0,0,0.25);border:none}.erL690_8JwUW-R4bJRcfl:enabled:focus{background-color:#DBDBDB;box-shadow:0px 4px 10px rgba(0,0,0,0.25);border:2px solid #000}.erL690_8JwUW-R4bJRcfl:disabled{opacity:1;color:rgba(0,0,0,0.2);background-color:rgba(0,0,0,0.2);border:none}._1zNQOqxpBFSokeCLGi_hGr{border:none;background-color:#0067B8;color:#fff}._1zNQOqxpBFSokeCLGi_hGr:enabled:hover{color:#fff;background-color:#0067B8;box-shadow:0px 4px 10px rgba(0,0,0,0.25);border:none}._1zNQOqxpBFSokeCLGi_hGr:enabled:focus{background-color:#0067B8;box-shadow:0px 4px 10px rgba(0,0,0,0.25);border:2px solid #000}._1zNQOqxpBFSokeCLGi_hGr:disabled{opacity:1;color:rgba(0,0,0,0.2);background-color:rgba(0,120,215,0.2);border:none}._23tra1HsiiP6cT-Cka-ycB{position:relative;display:flex;z-index:9999;width:100%;background-color:#F2F2F2;justify-content:space-between;text-align:left}div[dir="rtl"]._23tra1HsiiP6cT-Cka-ycB{text-align:right}._1Upc2NjY8AlDn177YoVj0y{margin:0;padding-left:5%;padding-top:8px;padding-bottom:8px}div[dir="rtl"] ._1Upc2NjY8AlDn177YoVj0y{margin:0;padding:8px 5% 8px 0;float:none}._23tra1HsiiP6cT-Cka-ycB svg{fill:none;max-width:none;max-height:none}._1V_hlU-7jdtPiooHMu89BB{display:table-cell;padding:12px;width:24px;height:24px;font-family:Segoe UI, SegoeUI, Arial, sans-serif;font-style:normal;font-weight:normal;font-size:24px;line-height:0}.f6QKJD7fhSbnJLarTL-W-{display:table-cell;vertical-align:middle;padding:0;font-family:Segoe UI, SegoeUI, Arial, sans-serif;font-style:normal;font-weight:normal;font-size:13px;line-height:16px}.f6QKJD7fhSbnJLarTL-W- a{text-decoration:underline}._2j0fmugLb1FgYz6KPuB91w{display:inline-block;margin-left:5%;margin-right:5%;min-width:40%;min-width:calc((150px + 3 * 4px) * 2 + 150px);min-width:-webkit-fit-content;min-width:-moz-fit-content;min-width:fit-content;align-self:center;position:relative}._1XuCi2WhiqeWRUVp3pnFG3{margin:4px;padding:5px;min-width:150px;min-height:36px;vertical-align:top;cursor:pointer;font-family:Segoe UI, SegoeUI, Arial, sans-serif;font-style:normal;font-weight:normal;font-size:15px;line-height:20px;text-align:center}._1XuCi2WhiqeWRUVp3pnFG3:focus{box-sizing:border-box}._1XuCi2WhiqeWRUVp3pnFG3:disabled{cursor:not-allowed}._2bvsb3ubApyZ0UGoQA9O9T{display:block;position:fixed;z-index:10000;top:0;left:0;width:100%;height:100%;background-color:rgba(255,255,255,0.6);overflow:auto;text-align:left}div[dir="rtl"]._2bvsb3ubApyZ0UGoQA9O9T{text-align:right}div[dir="rtl"] ._2bvsb3ubApyZ0UGoQA9O9T{left:auto;right:0}.AFsJE948muYyzCMktdzuk{position:relative;top:8%;margin-bottom:40px;margin-left:auto;margin-right:auto;box-sizing:border-box;width:640px;background-color:#fff;border:1px solid #0067B8}._3kWyBRbW_dgnMiEyx06Fu4{float:right;z-index:1;margin:2px;padding:12px;border:none;cursor:pointer;font-family:Segoe UI, SegoeUI, Arial, sans-serif;font-style:normal;font-weight:normal;font-size:13px;line-height:13px;display:flex;align-items:center;text-align:center;color:#666;background-color:#fff}div[dir="rtl"] ._3kWyBRbW_dgnMiEyx06Fu4{margin:2px;padding:12px;float:left}.uCYvKvHXrhjNgflv1VqdD{position:static;margin-top:36px;margin-left:36px;margin-right:36px}._17pX1m9O_W--iZbDt3Ta5r{margin-top:0;margin-bottom:12px;font-family:Segoe UI, SegoeUI, Arial, sans-serif;font-style:normal;font-weight:600;font-size:20px;line-height:24px;text-transform:none}._1kBkHQ1V1wu3kl-YcLgUr6{height:446px;overflow:auto}._20_nXDf6uFs9Q6wxRXG-I-{margin-top:0;font-family:Segoe UI, SegoeUI, Arial, sans-serif;font-style:normal;font-weight:normal;font-size:15px;line-height:20px}._20_nXDf6uFs9Q6wxRXG-I- a{text-decoration:underline}dl._2a0NH_GDQEQe5Ynfo7suVH{margin-top:36px;margin-bottom:0;padding:0;list-style:none;text-transform:none}dt._3j_LCPv7fyXv3A8FIXVwZ4{margin-top:20px;float:none;font-family:Segoe UI, SegoeUI, Arial, sans-serif;font-style:normal;font-weight:600;font-size:18px;line-height:24px;list-style:none}.k-vxTGFbdq1aOZB2HHpjh{margin:0;padding:0;border:none}._2Bucyy75c_ogoU1g-liB5R{margin:0;padding:0;border-bottom:none;font-family:Segoe UI, SegoeUI, Arial, sans-serif;font-style:normal;font-weight:600;font-size:18px;line-height:24px;text-transform:none}._63gwfzV8dclrsl2cfd90r{display:inline-block;margin-top:0;margin-bottom:13px;font-family:Segoe UI, SegoeUI, Arial, sans-serif;font-style:normal;font-weight:normal;font-size:15px;line-height:20px}._1l8wM_4mRYGz3Iu7l3BZR7{display:block}._2UE03QS02aZGkslegN_F-i{display:inline-block;position:relative;left:5px;margin-bottom:13px;margin-right:34px;padding:3px}div[dir="rtl"] ._2UE03QS02aZGkslegN_F-i{margin:0 0 13px 34px;padding:3px;float:none}div[dir="rtl"] ._2UE03QS02aZGkslegN_F-i{left:auto;right:5px}._23tra1HsiiP6cT-Cka-ycB *::before,._2bvsb3ubApyZ0UGoQA9O9T *::before,._23tra1HsiiP6cT-Cka-ycB *::after,._2bvsb3ubApyZ0UGoQA9O9T *::after{box-sizing:inherit}._1HSFn0HzGo6w4ADApV8-c4{outline:2px solid rgba(0,0,0,0.8)}input[type="radio"]._1dp8Vp5m3HwAqGx8qBmFV2{display:inline-block;position:relative;margin-top:0;margin-left:0;margin-right:0;height:0;width:0;border-radius:0;cursor:pointer;outline:none;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none}input[type="radio"]._1dp8Vp5m3HwAqGx8qBmFV2+label::before{display:block;position:absolute;top:5px;left:3px;height:19px;width:19px;content:"";border-radius:50%;border:1px solid #000;background-color:#fff}div[dir="rtl"] input[type="radio"]._1dp8Vp5m3HwAqGx8qBmFV2+label::before{left:auto;right:3px}input[type="radio"]._1dp8Vp5m3HwAqGx8qBmFV2:not(:disabled)+label:hover::before{border:1px solid #0067B8}input[type="radio"]._1dp8Vp5m3HwAqGx8qBmFV2:not(:disabled)+label:hover::after{display:block;position:absolute;top:10px;left:8px;height:9px;width:9px;content:"";border-radius:50%;background-color:rgba(0,0,0,0.8)}div[dir="rtl"] input[type="radio"]._1dp8Vp5m3HwAqGx8qBmFV2:not(:disabled)+label:hover::after{left:auto;right:8px}input[type="radio"]._1dp8Vp5m3HwAqGx8qBmFV2:not(:disabled)+label:focus::before{border:1px solid #0067B8}input[type="radio"]._1dp8Vp5m3HwAqGx8qBmFV2:not(:disabled)+label:focus::after{display:block;position:absolute;top:10px;left:8px;height:9px;width:9px;content:"";border-radius:50%;background-color:#000}div[dir="rtl"] input[type="radio"]._1dp8Vp5m3HwAqGx8qBmFV2:not(:disabled)+label:focus::after{left:auto;right:8px}input[type="radio"]._1dp8Vp5m3HwAqGx8qBmFV2:checked+label::after{display:block;position:absolute;top:10px;left:8px;height:9px;width:9px;content:"";border-radius:50%;background-color:#000}div[dir="rtl"] input[type="radio"]._1dp8Vp5m3HwAqGx8qBmFV2:checked+label::after{left:auto;right:8px}input[type="radio"]._1dp8Vp5m3HwAqGx8qBmFV2:disabled+label{cursor:not-allowed}input[type="radio"]._1dp8Vp5m3HwAqGx8qBmFV2:disabled+label::before{border:1px solid rgba(0,0,0,0.2);background-color:rgba(0,0,0,0.2)}._3RJzeL3l9Rl_lAQEm6VwdX{display:block;position:static;float:right;margin-top:0;margin-bottom:0;margin-left:19px;margin-right:0;padding-top:0;padding-bottom:0;padding-left:8px;padding-right:0;width:80%;width:calc(100% - 19px);font-family:Segoe UI, SegoeUI, Arial, sans-serif;font-style:normal;font-weight:normal;font-size:15px;line-height:20px;text-transform:none;cursor:pointer;box-sizing:border-box}div[dir="rtl"] ._3RJzeL3l9Rl_lAQEm6VwdX{margin:0 19px 0 0;padding:0 8px 0 0;float:left}.nohp3sIG12ZBhzcMnPala{margin-top:20px;margin-bottom:48px}._2uhaEsmeotZ3P-M0AXo2kF{padding:0;width:278px;height:36px;cursor:pointer;font-family:Segoe UI, SegoeUI, Arial, sans-serif;font-style:normal;font-weight:normal;font-size:15px;line-height:20px;text-align:center}._2uhaEsmeotZ3P-M0AXo2kF:focus{box-sizing:border-box}._2uhaEsmeotZ3P-M0AXo2kF:disabled{cursor:not-allowed}._3tOu1FJ59c_xz_PmI1lKV5{float:right;padding:0;width:278px;height:36px;cursor:pointer;font-family:Segoe UI, SegoeUI, Arial, sans-serif;font-style:normal;font-weight:normal;font-size:15px;line-height:20px;text-align:center}._3tOu1FJ59c_xz_PmI1lKV5:focus{box-sizing:border-box}._3tOu1FJ59c_xz_PmI1lKV5:disabled{cursor:not-allowed}div[dir="rtl"] ._3tOu1FJ59c_xz_PmI1lKV5{margin:0;padding:0;float:left}@media only screen and (max-width: 768px){._2j0fmugLb1FgYz6KPuB91w,._1Upc2NjY8AlDn177YoVj0y{padding-top:8px;padding-bottom:12px;padding-left:3.75%;padding-right:3.75%;margin:0;width:92.5%}._23tra1HsiiP6cT-Cka-ycB{display:block}._1XuCi2WhiqeWRUVp3pnFG3{margin-bottom:8px;margin-left:0;margin-right:0;width:100%}._2bvsb3ubApyZ0UGoQA9O9T{overflow:hidden}.AFsJE948muYyzCMktdzuk{top:1.8%;width:93.33%;height:96.4%;overflow:hidden}.uCYvKvHXrhjNgflv1VqdD{margin-top:24px;margin-left:24px;margin-right:24px;height:100%}._1kBkHQ1V1wu3kl-YcLgUr6{height:62%;height:calc(100% - 188px);min-height:50%}._2uhaEsmeotZ3P-M0AXo2kF{width:100%}._3tOu1FJ59c_xz_PmI1lKV5{margin-bottom:12px;margin-left:0;width:100%}div[dir="rtl"] ._3tOu1FJ59c_xz_PmI1lKV5{margin:0 0 12px 0;padding:0;float:none}}@media only screen and (max-width: 768px) and (orientation: landscape), only screen and (max-height: 260px), only screen and (max-width: 340px){.AFsJE948muYyzCMktdzuk{overflow:auto}}@media only screen and (max-height: 260px), only screen and (max-width: 340px){._1XuCi2WhiqeWRUVp3pnFG3{min-width:0}._3kWyBRbW_dgnMiEyx06Fu4{padding:3%}.uCYvKvHXrhjNgflv1VqdD{margin-top:3%;margin-left:3%;margin-right:3%}._17pX1m9O_W--iZbDt3Ta5r{margin-bottom:3%}._1kBkHQ1V1wu3kl-YcLgUr6{height:calc(79% - 64px)}.nohp3sIG12ZBhzcMnPala{margin-top:5%;margin-bottom:10%}._3tOu1FJ59c_xz_PmI1lKV5{margin-bottom:3%}div[dir="rtl"] ._3tOu1FJ59c_xz_PmI1lKV5{margin:0 0 3% 0;padding:0;float:none}}
</style><style type="text/css" id="ms-consent-banner-theme-styles">._23tra1HsiiP6cT-Cka-ycB {
background-color: #F2F2F2 !important;
}.w8hcgFksdo30C8w-bygqu {
color: #000000 !important;
}.ydkKdaztSS0AeHWIeIHsQ a {
color: #0067B8 !important;
}._2bvsb3ubApyZ0UGoQA9O9T {
background-color: rgba(255, 255, 255, 0.6) !important;
}.AFsJE948muYyzCMktdzuk {
background-color: #FFFFFF !important;
border: 1px solid #0067B8 !important;
}._3kWyBRbW_dgnMiEyx06Fu4 {
color: #666666 !important;
background-color: #FFFFFF !important;
}._1zNQOqxpBFSokeCLGi_hGr {
border: none !important;
background-color: #0067B8 !important;
color: #FFFFFF !important;
}._1zNQOqxpBFSokeCLGi_hGr:enabled:hover {
color: #FFFFFF !important;
background-color: #0067B8 !important;
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.25) !important;
border: none !important;
}._1zNQOqxpBFSokeCLGi_hGr:enabled:focus {
background-color: #0067B8 !important;
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.25) !important;
border: 2px solid #000000 !important;
}._1zNQOqxpBFSokeCLGi_hGr:disabled {
opacity: 1 !important;
color: rgba(0, 0, 0, 0.2) !important;
background-color: rgba(0, 120, 215, 0.2) !important;
border: none !important;
}.erL690_8JwUW-R4bJRcfl {
border: none !important;
background-color: #EBEBEB !important;
color: #000000 !important;
}.erL690_8JwUW-R4bJRcfl:enabled:hover {
color: #000000 !important;
background-color: #DBDBDB !important;
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.25) !important;
border: none !important;
}.erL690_8JwUW-R4bJRcfl:enabled:focus {
background-color: #DBDBDB !important;
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.25) !important;
border: 2px solid #000000 !important;
}.erL690_8JwUW-R4bJRcfl:disabled {
opacity: 1 !important;
color: rgba(0, 0, 0, 0.2) !important;
background-color: rgba(0, 0, 0, 0.2) !important;
border: none !important;
}input[type="radio"]._1dp8Vp5m3HwAqGx8qBmFV2 + label::before {
border: 1px solid #000000 !important;
background-color: #FFFFFF !important;
}._1HSFn0HzGo6w4ADApV8-c4 {
outline: 2px solid rgba(0, 0, 0, 0.8) !important;
}input[type="radio"]._1dp8Vp5m3HwAqGx8qBmFV2:checked + label::after {
background-color: #000000 !important;
}input[type="radio"]._1dp8Vp5m3HwAqGx8qBmFV2 + label:hover::before {
border: 1px solid #0067B8 !important;
}input[type="radio"]._1dp8Vp5m3HwAqGx8qBmFV2 + label:hover::after {
background-color: rgba(0, 0, 0, 0.8) !important;
}input[type="radio"]._1dp8Vp5m3HwAqGx8qBmFV2 + label:focus::before {
border: 1px solid #0067B8 !important;
}input[type="radio"]._1dp8Vp5m3HwAqGx8qBmFV2 + label:focus::after {
background-color: #000000 !important;
}input[type="radio"]._1dp8Vp5m3HwAqGx8qBmFV2:disabled + label::before {
border: 1px solid rgba(0, 0, 0, 0.2) !important;
background-color: rgba(0, 0, 0, 0.2) !important;
}</style><script type="application/ld+json">{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"name":"Learn","position":1,"@type":"ListItem","item":"https://learn.microsoft.com/en-us/?view=powershell-7.4"},{"name":"PowerShell","position":2,"@type":"ListItem","item":"https://learn.microsoft.com/en-us/powershell/?view=powershell-7.4"}]}</script></head>
<body lang="en-us" dir="ltr">
<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 has-body-background" tabindex="1">Skip to main content</a><div id="cookie-consent-holder" data-test-id="cookie-consent-container"><div id="wcpConsentBannerCtrl" class="_23tra1HsiiP6cT-Cka-ycB" dir="ltr" role="alert">
<div class="_1Upc2NjY8AlDn177YoVj0y">
<span class="_1V_hlU-7jdtPiooHMu89BB w8hcgFksdo30C8w-bygqu">
<svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 44 44" width="24px" height="24px" fill="none" stroke="currentColor">
<circle cx="22" cy="22" r="20" stroke-width="2"></circle>
<line x1="22" x2="22" y1="18" y2="33" stroke-width="3"></line>
<line x1="22" x2="22" y1="12" y2="15" stroke-width="3"></line>
</svg>
</span> <!-- used for icon -->
<p class="f6QKJD7fhSbnJLarTL-W- ydkKdaztSS0AeHWIeIHsQ w8hcgFksdo30C8w-bygqu">
We use optional cookies to improve your experience on our websites, such as through social media connections, and to display personalized advertising based on your online activity. If you reject optional cookies, only cookies necessary to provide you the services will be used. You may change your selection by clicking “Manage Cookies” at the bottom of the page. <a target="_blank" href="https://go.microsoft.com/fwlink/?LinkId=521839">Privacy Statement</a> <a target="_blank" href="https://aka.ms/3rdpartycookies">Third-Party Cookies</a>
</p>
</div>
<div class="_2j0fmugLb1FgYz6KPuB91w">
<button type="button" class="_1XuCi2WhiqeWRUVp3pnFG3 erL690_8JwUW-R4bJRcfl">Accept</button>
<button type="button" class="_1XuCi2WhiqeWRUVp3pnFG3 erL690_8JwUW-R4bJRcfl">Reject</button>
<button type="button" class="_1XuCi2WhiqeWRUVp3pnFG3 erL690_8JwUW-R4bJRcfl">Manage cookies</button>
</div>
</div></div><div id="banner-holder" class="has-default-focus has-overflow-hidden display-none-visual-diff theme-light"><!----><section data-bi-name="tier1-event-banner" data-dismissable="disappearing" class="tier1-event-banner position-relative padding-block-lg padding-block-md-tablet learn-challenge-2024-banner display-none-visual-diff">
<div class="uhf-container display-flex-tablet align-items-center">
<div class="has-backdrop-filter-blur margin-right-xxl-tablet">
<h2 class="title is-2 margin-bottom-xs"><!---->Microsoft Learn Challenge<!----></h2>
<p class="font-size-sm"><!---->Nov 23, 2024 – Jan 10, 2025<!----></p>
</div>
<p class="container is-max-mobile display-none display-block-widescreen has-backdrop-filter-blur font-size-sm margin-left-none margin-right-xxl text-wrap-pretty">
Build skills in the latest technologies and earn a digital badge by January 10!
</p>
<a data-bi-name="CTA" class="button margin-top-sm margin-bottom-sm-tablet " href="https://aka.ms/MSIgniteChallenge/Tier1Banner?wt.mc_id=ignite24_learnbanner_tier1_cnl">
<span><!---->Register now<!----></span>
<span class="icon" aria-hidden="true">
<span class="docon docon-chevron-right-light"></span>
</span>
</a>
</div>
<button type="button" data-dismiss="" data-bi-name="close" class="button delete delete-lg position-absolute top-0 right-0 margin-xs margin-sm-tablet ">
<span class="visually-hidden"><!---->Dismiss alert<!----></span>
</button>
</section><!----></div>
<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>
<!-- liquid-tag banners global -->
<!-- site header -->
<header id="ms--site-header" data-test-id="site-header-wrapper" role="banner" 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 id="ms--site-header-hamburger" data-test-id="site-header-hamburger">
<button type="button" class="button button-clear inner-focus" data-test-id="mobile-nav-open-button" data-bi-name="mobile-nav-open-button" title="Global navigation" aria-label="Global navigation">
<span class="icon" aria-hidden="true">
<span class="docon docon-menu"></span>
</span>
</button>
</div>
<!-- Brand -->
<a class="site-header-brand" itemprop="url" href="/en-us/" data-bi-name="site-header-brand-learn-mobile" data-test-id="site-header-brand-mobile">
<span><!---->Learn<!----></span>
</a>
<!-- MS logo -->
<a href="https://www.microsoft.com" aria-label="Microsoft" itemprop="url" data-bi-name="site-header-microsoft-logo-mobile" data-test-id="site-header-microsoft-logo-mobile" class="site-header-logo site-header-logo-centered">
<svg aria-hidden="true" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg" itemprop="logo" itemscope="itemscope">
<path d="M11.5216 0.5H0V11.9067H11.5216V0.5Z" fill="#f25022"></path>
<path d="M24.2418 0.5H12.7202V11.9067H24.2418V0.5Z" fill="#7fba00"></path>
<path d="M11.5216 13.0933H0V24.5H11.5216V13.0933Z" fill="#00a4ef"></path>
<path d="M24.2418 13.0933H12.7202V24.5H24.2418V13.0933Z" fill="#ffb900"></path>
</svg>
</a>
<!-- Search -->
<search-expander data-test-id="site-header-search-mobile" class="display-flex flex-grow-1 justify-content-flex-end">
<div hidden="" id="ms--site-header-search-mobile" class="display-flex align-items-center gap-xxs width-full padding-left-xxs">
<form class="flex-grow-1" method="GET" role="search" id="ms--site-header-search-form-mobile" data-bi-name="site-header-search-form-mobile" name="site-header-search-form-mobile" aria-label="Search" action="/en-us/search/">
<div class="autocomplete display-block" data-bi-name="autocomplete"><!---->
<div class="field-body control ">
<input role="combobox" maxlength="100" aria-autocomplete="list" autocapitalize="off" autocomplete="off" autocorrect="off" spellcheck="false" id="site-header-search-autocomplete-input-mobile" data-test-id="site-header-search-autocomplete-input-mobile" class="autocomplete-input input
width-full" type="search" name="terms" aria-expanded="false" aria-owns="ax-1-listbox" aria-controls="ax-1-listbox" aria-activedescendant="" aria-label="Search" aria-describedby="ms--site-header-search-autocomplete-input-mobile-description" placeholder="Search" data-bi-name="site-header-search-autocomplete-input-mobile" pattern=".*">
<span aria-hidden="true" class="autocomplete-loader loader has-text-primary " hidden=""></span>
<span hidden="" id="ms--site-header-search-autocomplete-input-mobile-description">
Suggestions will filter as you type
</span>
</div>
<ul role="listbox" id="ax-1-listbox" data-test-id="site-header-search-autocomplete-input-mobile-listbox" class="autocomplete-suggestions is-vertically-scrollable padding-xxs " aria-label="Suggestions" hidden="">
</ul>
<!----></div>
<!-- mobile safari will not dispatch submit event unless there's a submit button that is not display:none -->
<button type="submit" class="visually-hidden" tabindex="-1" aria-hidden="true"></button>
<input name="category" hidden="" value="">
</form>
<button data-search-expander-trigger-close="" type="button" class="button button-clear inner-focus" aria-controls="ms--site-header-search-mobile" aria-label="Close search" data-bi-name="site-header-search-close-mobile" data-test-id="site-header-search-close-mobile">
<span class="icon" aria-hidden="true">
<span class="docon docon-navigate-close"></span>
</span>
</button>
</div>
<button data-search-expander-trigger-open="" type="button" class="button button-clear inner-focus" aria-controls="ms--site-header-search-mobile" aria-label="Open search" data-bi-name="site-header-search-open-mobile" data-test-id="site-header-search-open-mobile">
<span class="icon" aria-hidden="true">
<span class="docon docon-search"></span>
</span>
</button>
</search-expander>
<!-- User avatar/Sign in -->
<!---->
<a href="#" data-bi-name="site-header-sign-in-mobile" data-test-id="site-header-sign-in-mobile" class="link-button font-size-sm flex-shrink-0 docs-sign-in auth-status-determined not-authenticated margin-right-xs margin-left-xxs">
Sign in
</a>
<details data-bi-name="site-header-user-mobile" class="popover popover-right auth-status-determined authenticated margin-right-xs margin-left-xxs">
<summary data-bi-name="site-header-user-avatar" aria-label="Your Account" data-test-id="site-header-user-mobile">
<div class="persona persona-sm">
<figure class="persona-avatar">
<img alt="" data-profile-property="avatarThumbnailUrl">
</figure>
</div>
</summary>
<div class="popover-content width-auto" data-bi-name="site-header-user-menu">
<div class="persona persona-sm">
<figure class="persona-avatar">
<img alt="" data-profile-property="avatarUrl" aria-labelledby="ms--user-display-name-mobile">
</figure>
<div class="persona-details" data-test-id="persona-detail-mobile">
<p class="persona-name" data-profile-property="displayName" id="ms--user-display-name-mobile"></p>
<p data-profile-property="upn"></p>
</div>
</div>
<ul class="padding-block-xs">
<li class="padding-bottom-xs">
<a data-profile-property="profileUrl" class="font-size-sm" data-bi-name="site-header-user-profile" href="https://learn.microsoft.com/en-us/users/me/activity/">
Profile
</a>
</li>
<li>
<a data-profile-property="settingsUrl" class="font-size-sm" data-bi-name="site-header-user-settings" href="https://learn.microsoft.com/en-us/users/me/settings/">
Settings
</a>
</li>
</ul>
<div class="border-top padding-top-xs">
<a class="docs-sign-out font-size-sm" href="#" data-bi-name="site-header-sign-out-mobile" data-test-id="site-header-user-sign-out-mobile">
Sign out
</a>
</div>
</div>
</details>
<!---->
<!----></div>
<div id="ms--primary-nav" class="site-header display-none display-flex-tablet" data-bi-name="L1-header" data-test-id="primary-header"><!---->
<!-- MS logo -->
<a href="https://www.microsoft.com" aria-label="Microsoft" itemprop="url" data-bi-name="site-header-microsoft-logo" data-test-id="site-header-microsoft-logo" class="site-header-logo ">
<svg aria-hidden="true" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg" itemprop="logo" itemscope="itemscope">
<path d="M11.5216 0.5H0V11.9067H11.5216V0.5Z" fill="#f25022"></path>
<path d="M24.2418 0.5H12.7202V11.9067H24.2418V0.5Z" fill="#7fba00"></path>
<path d="M11.5216 13.0933H0V24.5H11.5216V13.0933Z" fill="#00a4ef"></path>
<path d="M24.2418 13.0933H12.7202V24.5H24.2418V13.0933Z" fill="#ffb900"></path>
</svg>
</a>
<!-- Divider -->
<div class="site-header-divider"></div>
<!-- Brand -->
<a class="site-header-brand" itemprop="url" href="/en-us/" data-bi-name="site-header-brand-learn" data-test-id="site-header-brand">
<span><!---->Learn<!----></span>
</a>
<div id="ms--search-expander-wrapper" class="display-flex justify-content-space-between flex-grow-1 align-items-center overflow-x-hidden height-full">
<!-- Main Nav -->
<overflow-menu class="align-self-stretch" style="display: block; overflow: hidden; width: 100%;">
<nav class="site-header-nav" data-bi-name="primary-nav" data-overflow-menu-container="" aria-label="Global" style="visibility: visible; overflow: hidden;">
<button type="button" data-overflow-menu-prev-button="" data-bi-name="site-header-btn-prev" class="button button-clear button-sm inner-focus" hidden="" aria-label="Previous">
<span class="icon" aria-hidden="true">
<span class="docon docon-chevron-left-light"></span>
</span>
</button>
<ul class="display-flex gap-xxs-desktop">
<!---->
<li aria-setsize="4" aria-posinset="1">
<panel-controller data-bi-name="site-header-btn-1-discover">
<button type="button" aria-expanded="false" class="site-header-button" data-overflow-menu-item="" aria-controls="ms--panel-1" data-test-id="site-header-panel-controller-1" style="white-space: nowrap;">
<span><!---->Discover<!----></span>
<span class="icon expanded-indicator" aria-hidden="true">
<span class="docon docon-chevron-down-light"></span>
</span>
</button>
<div class="site-header-panel" hidden="" id="ms--panel-1" data-bi-name="panel-1-discover" data-test-id="site-header-panel-1">
<div class="site-header-panel-content">
<ul class="site-header-panel-cards">
<!---->
<li>
<article class="card position-relative background-color-body-accent-onhover background-color-body-medium box-shadow-none" data-bi-name="panel-card-1-documentation">
<div class="card-content">
<a class="card-title color-text background-color-transparent stretched-link" href="/en-us/docs/">
Documentation
</a>
<p class="card-content-description line-clamp-2"><!---->In-depth articles on Microsoft developer tools and technologies<!----></p>
</div>
</article>
</li>
<!---->
<li>
<article class="card position-relative background-color-body-accent-onhover background-color-body-medium box-shadow-none" data-bi-name="panel-card-2-training">
<div class="card-content">
<a class="card-title color-text background-color-transparent stretched-link" href="/en-us/training/">
Training
</a>
<p class="card-content-description line-clamp-2"><!---->Personalized learning paths and courses<!----></p>
</div>
</article>
</li>
<!---->
<li>
<article class="card position-relative background-color-body-accent-onhover background-color-body-medium box-shadow-none" data-bi-name="panel-card-3-credentials">
<div class="card-content">
<a class="card-title color-text background-color-transparent stretched-link" href="/en-us/credentials/">
Credentials
</a>
<p class="card-content-description line-clamp-2"><!---->Globally recognized, industry-endorsed credentials<!----></p>
</div>
</article>
</li>
<!---->
<li>
<article class="card position-relative background-color-body-accent-onhover background-color-body-medium box-shadow-none" data-bi-name="panel-card-4-qna">
<div class="card-content">
<a class="card-title color-text background-color-transparent stretched-link" href="/en-us/answers/">
Q&A
</a>
<p class="card-content-description line-clamp-2"><!---->Technical questions and answers moderated by Microsoft<!----></p>
</div>
</article>
</li>
<!---->
<li>
<article class="card position-relative background-color-body-accent-onhover background-color-body-medium box-shadow-none" data-bi-name="panel-card-5-code-samples">
<div class="card-content">
<a class="card-title color-text background-color-transparent stretched-link" href="/en-us/samples/">
Code Samples
</a>
<p class="card-content-description line-clamp-2"><!---->Code sample library for Microsoft developer tools and technologies<!----></p>
</div>
</article>
</li>
<!---->
<li>
<article class="card position-relative background-color-body-accent-onhover background-color-body-medium box-shadow-none" data-bi-name="panel-card-6-assessments">
<div class="card-content">
<a class="card-title color-text background-color-transparent stretched-link" href="/en-us/assessments/">
Assessments
</a>
<p class="card-content-description line-clamp-2"><!---->Interactive, curated guidance and recommendations<!----></p>
</div>
</article>
</li>
<!---->
<li>
<article class="card position-relative background-color-body-accent-onhover background-color-body-medium box-shadow-none" data-bi-name="panel-card-7-shows">
<div class="card-content">
<a class="card-title color-text background-color-transparent stretched-link" href="/en-us/shows/">
Shows
</a>
<p class="card-content-description line-clamp-2"><!---->Thousands of hours of original programming from Microsoft experts<!----></p>
</div>
</article>
</li>
<!---->
</ul>
</div>
<section class="site-header-panel-featured-content"><!----><!---->
<article class="card position-relative background-color-body-accent-onhover background-color-body-medium box-shadow-none" data-bi-name="featured-card-1-microsoft-learn-for-organizations">
<div class="card-content">
<p class="card-supertitle line-clamp-2 line-height-normal"><!---->Microsoft Learn for Organizations<!----></p>
<a class="card-title color-text background-color-transparent stretched-link" href="/en-us/training/organizations/">
Boost your team's technical skills
</a>
<p class="card-content-description line-clamp-2"><!---->Access curated resources to upskill your team and close skills gaps.<!----></p>
</div>
</article>
<!----><!----></section>
</div>
</panel-controller>
</li>
<!---->
<li aria-setsize="4" aria-posinset="2">
<panel-controller data-bi-name="site-header-btn-2-product-documentation">
<button type="button" aria-expanded="false" class="site-header-button" data-overflow-menu-item="" aria-controls="ms--panel-2" data-test-id="site-header-panel-controller-2" style="white-space: nowrap;">
<span><!---->Product documentation<!----></span>
<span class="icon expanded-indicator" aria-hidden="true">
<span class="docon docon-chevron-down-light"></span>
</span>
</button>
<div class="site-header-panel" hidden="" id="ms--panel-2" data-bi-name="panel-2-product-documentation" data-test-id="site-header-panel-2">
<div class="site-header-panel-content">
<ul class="site-header-panel-links">
<!---->
<li>
<a class="button button-clear button-sm button-block font-weight-normal justify-content-flex-start inner-focus border-none background-color-body-accent-onhover" href="/en-us/aspnet/" data-bi-name="panel-link-1-asp-dotnet">
ASP.NET
</a>
</li>
<!---->
<li>
<a class="button button-clear button-sm button-block font-weight-normal justify-content-flex-start inner-focus border-none background-color-body-accent-onhover" href="/en-us/azure/" data-bi-name="panel-link-2-azure">
Azure
</a>
</li>
<!---->
<li>
<a class="button button-clear button-sm button-block font-weight-normal justify-content-flex-start inner-focus border-none background-color-body-accent-onhover" href="/en-us/dynamics365/" data-bi-name="panel-link-3-dynamics365">
Dynamics 365
</a>
</li>
<!---->
<li>
<a class="button button-clear button-sm button-block font-weight-normal justify-content-flex-start inner-focus border-none background-color-body-accent-onhover" href="/en-us/microsoft-365/" data-bi-name="panel-link-4-microsoft-365">
Microsoft 365
</a>
</li>
<!---->
<li>
<a class="button button-clear button-sm button-block font-weight-normal justify-content-flex-start inner-focus border-none background-color-body-accent-onhover" href="/en-us/copilot/" data-bi-name="panel-link-5-copilot">
Microsoft Copilot
</a>
</li>
<!---->
<li>
<a class="button button-clear button-sm button-block font-weight-normal justify-content-flex-start inner-focus border-none background-color-body-accent-onhover" href="/en-us/microsoft-edge/" data-bi-name="panel-link-6-microsoft-edge">
Microsoft Edge
</a>
</li>
<!---->
<li>
<a class="button button-clear button-sm button-block font-weight-normal justify-content-flex-start inner-focus border-none background-color-body-accent-onhover" href="/en-us/entra/" data-bi-name="panel-link-7-microsoft-entra">
Microsoft Entra
</a>
</li>
<!---->
<li>
<a class="button button-clear button-sm button-block font-weight-normal justify-content-flex-start inner-focus border-none background-color-body-accent-onhover" href="/en-us/graph/" data-bi-name="panel-link-8-microsoft-graph">
Microsoft Graph
</a>
</li>
<!---->
<li>
<a class="button button-clear button-sm button-block font-weight-normal justify-content-flex-start inner-focus border-none background-color-body-accent-onhover" href="/en-us/mem/" data-bi-name="panel-link-9-microsoft-intune">
Microsoft Intune
</a>
</li>
<!---->
<li>
<a class="button button-clear button-sm button-block font-weight-normal justify-content-flex-start inner-focus border-none background-color-body-accent-onhover" href="/en-us/purview/" data-bi-name="panel-link-10-microsoft-purview">
Microsoft Purview
</a>
</li>
<!---->
<li>
<a class="button button-clear button-sm button-block font-weight-normal justify-content-flex-start inner-focus border-none background-color-body-accent-onhover" href="/en-us/microsoftteams/" data-bi-name="panel-link-11-microsoft-teams">
Microsoft Teams
</a>
</li>
<!---->
<li>
<a class="button button-clear button-sm button-block font-weight-normal justify-content-flex-start inner-focus border-none background-color-body-accent-onhover" href="/en-us/dotnet/" data-bi-name="panel-link-12-dotnet">
.NET
</a>
</li>
<!---->
<li>
<a class="button button-clear button-sm button-block font-weight-normal justify-content-flex-start inner-focus border-none background-color-body-accent-onhover" href="/en-us/power-apps/" data-bi-name="panel-link-13-power-apps">
Power Apps
</a>
</li>
<!---->
<li>
<a class="button button-clear button-sm button-block font-weight-normal justify-content-flex-start inner-focus border-none background-color-body-accent-onhover" href="/en-us/power-bi/" data-bi-name="panel-link-14-power-bi">
Power BI
</a>
</li>
<!---->
<li>
<a class="button button-clear button-sm button-block font-weight-normal justify-content-flex-start inner-focus border-none background-color-body-accent-onhover" href="/en-us/power-platform/" data-bi-name="panel-link-15-power-platform">
Power Platform
</a>
</li>
<!---->
<li>
<a class="button button-clear button-sm button-block font-weight-normal justify-content-flex-start inner-focus border-none background-color-body-accent-onhover" href="/en-us/powershell/" data-bi-name="panel-link-16-powershell">
PowerShell
</a>
</li>
<!---->
<li>
<a class="button button-clear button-sm button-block font-weight-normal justify-content-flex-start inner-focus border-none background-color-body-accent-onhover" href="/en-us/sql/" data-bi-name="panel-link-17-sql">
SQL
</a>
</li>
<!---->
<li>
<a class="button button-clear button-sm button-block font-weight-normal justify-content-flex-start inner-focus border-none background-color-body-accent-onhover" href="/en-us/sysinternals/" data-bi-name="panel-link-18-sysinternals">
Sysinternals
</a>
</li>
<!---->
<li>
<a class="button button-clear button-sm button-block font-weight-normal justify-content-flex-start inner-focus border-none background-color-body-accent-onhover" href="/en-us/visualstudio/" data-bi-name="panel-link-19-visual-studio">
Visual Studio
</a>
</li>
<!---->
<li>
<a class="button button-clear button-sm button-block font-weight-normal justify-content-flex-start inner-focus border-none background-color-body-accent-onhover" href="/en-us/windows/" data-bi-name="panel-link-20-windows">
Windows
</a>
</li>
<!---->
<li>
<a class="button button-clear button-sm button-block font-weight-normal justify-content-flex-start inner-focus border-none background-color-body-accent-onhover" href="/en-us/windows-server/" data-bi-name="panel-link-21-windows-server">
Windows Server
</a>
</li>
<!---->
</ul>
<a class="button button-clear button-sm color-hyperlink justify-content-flex-start border-none background-color-transparent margin-top-sm" href="/en-us/docs/" data-bi-name="panel-cta-view-all-products">
View all products
</a>
</div>
<section class="site-header-panel-featured-content"><!----><!---->
<article class="card position-relative background-color-body-accent-onhover background-color-body-medium box-shadow-none" data-bi-name="featured-card-1-microsoft-learn-for-organizations">
<div class="card-content">
<p class="card-supertitle line-clamp-2 line-height-normal"><!---->Microsoft Learn for Organizations<!----></p>
<a class="card-title color-text background-color-transparent stretched-link" href="/en-us/training/organizations/">
Boost your team's technical skills
</a>
<p class="card-content-description line-clamp-2"><!---->Access curated resources to upskill your team and close skills gaps.<!----></p>
</div>
</article>
<!----><!----></section>
</div>
</panel-controller>
</li>
<!---->
<li aria-setsize="4" aria-posinset="3">
<panel-controller data-bi-name="site-header-btn-3-dev-languages">
<button type="button" aria-expanded="false" class="site-header-button" data-overflow-menu-item="" aria-controls="ms--panel-3" data-test-id="site-header-panel-controller-3" style="white-space: nowrap;">
<span><!---->Development languages<!----></span>
<span class="icon expanded-indicator" aria-hidden="true">
<span class="docon docon-chevron-down-light"></span>
</span>
</button>
<div class="site-header-panel" hidden="" id="ms--panel-3" data-bi-name="panel-3-dev-languages" data-test-id="site-header-panel-3">
<div class="site-header-panel-content">
<ul class="site-header-panel-links">
<!---->
<li>
<a class="button button-clear button-sm button-block font-weight-normal justify-content-flex-start inner-focus border-none background-color-body-accent-onhover" href="/en-us/cpp/" data-bi-name="panel-link-1-cpp">
C++
</a>
</li>
<!---->
<li>
<a class="button button-clear button-sm button-block font-weight-normal justify-content-flex-start inner-focus border-none background-color-body-accent-onhover" href="/en-us/dotnet/csharp/" data-bi-name="panel-link-2-csharp">
C#
</a>
</li>
<!---->
<li>
<a class="button button-clear button-sm button-block font-weight-normal justify-content-flex-start inner-focus border-none background-color-body-accent-onhover" href="/en-us/dax/" data-bi-name="panel-link-3-dax">
DAX
</a>
</li>
<!---->
<li>
<a class="button button-clear button-sm button-block font-weight-normal justify-content-flex-start inner-focus border-none background-color-body-accent-onhover" href="/en-us/java/" data-bi-name="panel-link-4-java">
Java
</a>
</li>
<!---->
<li>
<a class="button button-clear button-sm button-block font-weight-normal justify-content-flex-start inner-focus border-none background-color-body-accent-onhover" href="/en-us/odata/" data-bi-name="panel-link-5-odata">
OData
</a>
</li>
<!---->
<li>
<a class="button button-clear button-sm button-block font-weight-normal justify-content-flex-start inner-focus border-none background-color-body-accent-onhover" href="/en-us/openapi/" data-bi-name="panel-link-6-open-api">
OpenAPI
</a>
</li>
<!---->
<li>
<a class="button button-clear button-sm button-block font-weight-normal justify-content-flex-start inner-focus border-none background-color-body-accent-onhover" href="/en-us/powerquery-m/" data-bi-name="panel-link-7-power-query-m">
Power Query M
</a>
</li>
<!---->
<li>
<a class="button button-clear button-sm button-block font-weight-normal justify-content-flex-start inner-focus border-none background-color-body-accent-onhover" href="/en-us/office/vba/" data-bi-name="panel-link-8-vba">
VBA
</a>
</li>
<!---->
</ul>
</div>
<section class="site-header-panel-featured-content"><!----><!---->
<article class="card position-relative background-color-body-accent-onhover background-color-body-medium box-shadow-none" data-bi-name="featured-card-1-microsoft-learn-for-organizations">
<div class="card-content">
<p class="card-supertitle line-clamp-2 line-height-normal"><!---->Microsoft Learn for Organizations<!----></p>
<a class="card-title color-text background-color-transparent stretched-link" href="/en-us/training/organizations/">
Boost your team's technical skills
</a>
<p class="card-content-description line-clamp-2"><!---->Access curated resources to upskill your team and close skills gaps.<!----></p>
</div>
</article>
<!----><!----></section>
</div>
</panel-controller>
</li>
<!---->
<li aria-setsize="4" aria-posinset="4">
<panel-controller data-bi-name="site-header-btn-4-topics">
<button type="button" aria-expanded="false" class="site-header-button" data-overflow-menu-item="" aria-controls="ms--panel-4" data-test-id="site-header-panel-controller-4" style="white-space: nowrap;">
<span><!---->Topics<!----></span>
<span class="icon expanded-indicator" aria-hidden="true">
<span class="docon docon-chevron-down-light"></span>
</span>
</button>
<div class="site-header-panel" hidden="" id="ms--panel-4" data-bi-name="panel-4-topics" data-test-id="site-header-panel-4">
<div class="site-header-panel-content">
<ul class="site-header-panel-links">
<!---->
<li>
<a class="button button-clear button-sm button-block font-weight-normal justify-content-flex-start inner-focus border-none background-color-body-accent-onhover" href="/en-us/ai/" data-bi-name="panel-link-1-ai">
Artificial intelligence
</a>
</li>
<!---->
<li>
<a class="button button-clear button-sm button-block font-weight-normal justify-content-flex-start inner-focus border-none background-color-body-accent-onhover" href="/en-us/compliance/" data-bi-name="panel-link-2-compliance">
Compliance
</a>
</li>
<!---->
<li>
<a class="button button-clear button-sm button-block font-weight-normal justify-content-flex-start inner-focus border-none background-color-body-accent-onhover" href="/en-us/devops/" data-bi-name="panel-link-3-devops">
DevOps
</a>
</li>
<!---->
<li>
<a class="button button-clear button-sm button-block font-weight-normal justify-content-flex-start inner-focus border-none background-color-body-accent-onhover" href="/en-us/platform-engineering/" data-bi-name="panel-link-4-platform-engineering">
Platform engineering
</a>
</li>
<!---->
<li>
<a class="button button-clear button-sm button-block font-weight-normal justify-content-flex-start inner-focus border-none background-color-body-accent-onhover" href="/en-us/security/" data-bi-name="panel-link-5-security">
Security
</a>
</li>
<!---->
</ul>
</div>
<section class="site-header-panel-featured-content"><!----><!---->
<article class="card position-relative background-color-body-accent-onhover background-color-body-medium box-shadow-none" data-bi-name="featured-card-1-microsoft-learn-for-organizations">
<div class="card-content">
<p class="card-supertitle line-clamp-2 line-height-normal"><!---->Microsoft Learn for Organizations<!----></p>
<a class="card-title color-text background-color-transparent stretched-link" href="/en-us/training/organizations/">
Boost your team's technical skills
</a>
<p class="card-content-description line-clamp-2"><!---->Access curated resources to upskill your team and close skills gaps.<!----></p>
</div>
</article>
<!----><!----></section>
</div>
</panel-controller>
</li>
<!---->
</ul>
<button type="button" data-overflow-menu-next-button="" data-bi-name="site-header-btn-next" class="button button-clear button-sm inner-focus margin-left-auto" aria-label="Next" hidden="">
<span class="icon" aria-hidden="true">
<span class="docon docon-chevron-right-light"></span>
</span>
</button>
</nav>
</overflow-menu>
<!-- Search -->
<search-expander data-test-id="site-header-search" class="flex-grow-1 margin-left-xxs">
<div hidden="" id="ms--site-header-search" class="display-flex align-items-center gap-xxs ">
<form class="flex-grow-1" method="GET" role="search" id="ms--site-header-search-form" data-bi-name="site-header-search-form" name="site-header-search-form" aria-label="Search" action="/en-us/search/">
<div class="autocomplete display-block" data-bi-name="autocomplete"><!---->
<div class="field-body control ">
<input role="combobox" maxlength="100" aria-autocomplete="list" autocapitalize="off" autocomplete="off" autocorrect="off" spellcheck="false" id="site-header-search-autocomplete-input" data-test-id="site-header-search-autocomplete-input" class="autocomplete-input input input-sm
width-full" type="search" name="terms" aria-expanded="false" aria-owns="ax-0-listbox" aria-controls="ax-0-listbox" aria-activedescendant="" aria-label="Search" aria-describedby="ms--site-header-search-autocomplete-input-description" placeholder="Search" data-bi-name="site-header-search-autocomplete-input" pattern=".*">
<span aria-hidden="true" class="autocomplete-loader loader has-text-primary " hidden=""></span>
<span hidden="" id="ms--site-header-search-autocomplete-input-description">
Suggestions will filter as you type
</span>
</div>
<ul role="listbox" id="ax-0-listbox" data-test-id="site-header-search-autocomplete-input-listbox" class="autocomplete-suggestions is-vertically-scrollable padding-xxs " aria-label="Suggestions" hidden="">
</ul>
<!----></div>
<!-- mobile safari will not dispatch submit event unless there's a submit button that is not display:none -->
<button type="submit" class="visually-hidden" tabindex="-1" aria-hidden="true"></button>
<input name="category" hidden="" value="">
</form>
<button data-search-expander-trigger-close="" type="button" class="button button-clear inner-focus" aria-controls="ms--site-header-search" aria-label="Close search" data-bi-name="site-header-search-close" data-test-id="site-header-search-close">
<span class="icon" aria-hidden="true">
<span class="docon docon-navigate-close"></span>
</span>
</button>
</div>
<button data-search-expander-trigger-open="" type="button" class="button button-clear inner-focus" aria-controls="ms--site-header-search" aria-label="Open search" data-bi-name="site-header-search-open" data-test-id="site-header-search-open">
<span class="icon" aria-hidden="true">
<span class="docon docon-search"></span>
</span>
</button>
</search-expander>
</div>
<!-- User avatar/Sign in -->
<!---->
<a href="#" data-bi-name="site-header-sign-in" data-test-id="site-header-sign-in" class="link-button font-size-sm flex-shrink-0 docs-sign-in auth-status-determined not-authenticated ">
Sign in
</a>
<details data-bi-name="site-header-user" class="popover popover-right auth-status-determined authenticated ">
<summary data-bi-name="site-header-user-avatar" aria-label="Your Account" data-test-id="site-header-user">
<div class="persona ">
<figure class="persona-avatar">
<img alt="" data-profile-property="avatarThumbnailUrl">
</figure>
</div>
</summary>
<div class="popover-content width-auto" data-bi-name="site-header-user-menu">
<div class="persona ">
<figure class="persona-avatar">
<img alt="" data-profile-property="avatarUrl" aria-labelledby="ms--user-display-name">
</figure>
<div class="persona-details" data-test-id="persona-detail">
<p class="persona-name" data-profile-property="displayName" id="ms--user-display-name"></p>
<p data-profile-property="upn"></p>
</div>
</div>
<ul class="padding-block-xs">
<li class="padding-bottom-xs">
<a data-profile-property="profileUrl" class="font-size-sm" data-bi-name="site-header-user-profile" href="https://learn.microsoft.com/en-us/users/me/activity/">
Profile
</a>
</li>
<li>
<a data-profile-property="settingsUrl" class="font-size-sm" data-bi-name="site-header-user-settings" href="https://learn.microsoft.com/en-us/users/me/settings/">
Settings
</a>
</li>
</ul>
<div class="border-top padding-top-xs">
<a class="docs-sign-out font-size-sm" href="#" data-bi-name="site-header-sign-out" data-test-id="site-header-user-sign-out">
Sign out
</a>
</div>
</div>
</details>
<!---->
<!----></div>
<div id="ms--secondary-nav" class="display-none display-flex-tablet" data-bi-name="L2-header" data-test-id="secondary-header"><!----><div class="site-header width-full"><!---->
<a class="site-header-brand font-size-h6 padding-inline-none margin-right-xxs" itemprop="url" href="/en-us/powershell/" data-bi-name="secondary-nav-link-category-powershell">
<span>
PowerShell
</span>
</a>
<nav class="site-header-nav width-auto" data-bi-name="secondary-nav" aria-label="Site">
<ul class="display-flex">
<!---->
<li>
<a data-test-id="header-link-overview" class="has-external-link-indicator site-header-button " href="/en-us/powershell/scripting/" data-bi-name="secondary-nav-link-1-overview">
<span><!---->Overview<!----></span>
</a>
</li>
<!---->
<li>
<a data-test-id="header-link-dsc" class="has-external-link-indicator site-header-button " href="/en-us/powershell/dsc/overview/" data-bi-name="secondary-nav-link-2-dsc">
<span><!---->DSC<!----></span>
</a>
</li>
<!---->
<li>
<a data-test-id="header-link-powershellget" class="has-external-link-indicator site-header-button " href="/en-us/powershell/gallery/overview/" data-bi-name="secondary-nav-link-3-powershellget">
<span><!---->PowerShellGet<!----></span>
</a>
</li>
<!---->
<li>
<a data-test-id="header-link-utility-modules" class="has-external-link-indicator site-header-button " href="/en-us/powershell/utility-modules/overview/" data-bi-name="secondary-nav-link-4-utility-modules">
<span><!---->Utility modules<!----></span>
</a>
</li>
<!---->
<li hidden="">
<a data-test-id="header-link-module-browser" class="has-external-link-indicator site-header-button " href="/en-us/powershell/module/" data-bi-name="secondary-nav-link-5-module-browser">
<span><!---->Module Browser<!----></span>
</a>
</li>
<!---->
<li hidden="">
<a data-test-id="header-link-api-browser" class="has-external-link-indicator site-header-button " href="/en-us/dotnet/api/?view=powershellsdk-7.4.0" data-bi-name="secondary-nav-link-6-api-browser">
<span><!---->API Browser<!----></span>
</a>
</li>
<!---->
<li class="dropdown" hidden="">
<button type="button" aria-expanded="false" class="dropdown-trigger site-header-button site-header-button-icon-chevron" aria-controls="bx-58" data-bi-name="secondary-nav-btn-7-resources" value="undefined">
<span><!---->Resources<!----></span>
<span aria-hidden="true" class="icon expanded-indicator ">
<span class="docon docon-chevron-down-light"></span>
</span>
</button>
<ul class="dropdown-menu padding-bottom-xxs background-color-body-medium" id="bx-58" aria-label="Resources" data-bi-name="secondary-nav-menu-7-resources">
<!---->
<li>
<a class="has-external-link-indicator site-header-button width-full justify-content-flex-start padding-inline-xs padding-block-xxs " href="https://code.visualstudio.com/docs/languages/powershell/" data-bi-name="secondary-nav-link-1-vs-code-extension">
<span><!---->VS Code Extension<!----></span>
</a>
</li>
<!---->
<li>
<a class="has-external-link-indicator site-header-button width-full justify-content-flex-start padding-inline-xs padding-block-xxs " href="https://www.powershellgallery.com/" data-bi-name="secondary-nav-link-2-powershell-gallery">
<span><!---->PowerShell Gallery<!----></span>
</a>
</li>
<!---->
<li>
<a class="has-external-link-indicator site-header-button width-full justify-content-flex-start padding-inline-xs padding-block-xxs " href="https://devblogs.microsoft.com/powershell/" data-bi-name="secondary-nav-link-3-powershell-team-blog">
<span><!---->PowerShell Team blog<!----></span>
</a>
</li>
<!---->
<li>
<a class="has-external-link-indicator site-header-button width-full justify-content-flex-start padding-inline-xs padding-block-xxs " href="https://devblogs.microsoft.com/powershell-community/" data-bi-name="secondary-nav-link-4-powershell-community-blog">
<span><!---->PowerShell Community blog<!----></span>
</a>
</li>
<!---->
</ul>
</li>
<!---->
<li class="dropdown">
<button type="button" aria-expanded="false" class="dropdown-trigger site-header-button site-header-button-icon-chevron" aria-controls="bx-59" data-bi-name="secondary-nav-btn-more" value="undefined">
<span><!---->More<!----></span>
<span aria-hidden="true" class="icon expanded-indicator ">
<span class="docon docon-chevron-down-light"></span>
</span>
</button>
<ul class="dropdown-menu padding-bottom-xxs background-color-body-medium" id="bx-59" aria-label="More" data-bi-name="secondary-nav-menu-more">
<!---->
<li hidden="">
<a class="has-external-link-indicator site-header-button width-full justify-content-flex-start padding-inline-xs padding-block-xxs " href="/en-us/powershell/scripting/" data-bi-name="secondary-nav-link-1-overview">
<span><!---->Overview<!----></span>
</a>
</li>
<!---->
<li hidden="">
<a class="has-external-link-indicator site-header-button width-full justify-content-flex-start padding-inline-xs padding-block-xxs " href="/en-us/powershell/dsc/overview/" data-bi-name="secondary-nav-link-2-dsc">
<span><!---->DSC<!----></span>
</a>
</li>
<!---->
<li hidden="">
<a class="has-external-link-indicator site-header-button width-full justify-content-flex-start padding-inline-xs padding-block-xxs " href="/en-us/powershell/gallery/overview/" data-bi-name="secondary-nav-link-3-powershellget">
<span><!---->PowerShellGet<!----></span>
</a>
</li>
<!---->
<li hidden="">
<a class="has-external-link-indicator site-header-button width-full justify-content-flex-start padding-inline-xs padding-block-xxs " href="/en-us/powershell/utility-modules/overview/" data-bi-name="secondary-nav-link-4-utility-modules">
<span><!---->Utility modules<!----></span>
</a>
</li>
<!---->
<li>
<a class="has-external-link-indicator site-header-button width-full justify-content-flex-start padding-inline-xs padding-block-xxs " href="/en-us/powershell/module/" data-bi-name="secondary-nav-link-5-module-browser">
<span><!---->Module Browser<!----></span>
</a>
</li>
<!---->
<li>
<a class="has-external-link-indicator site-header-button width-full justify-content-flex-start padding-inline-xs padding-block-xxs " href="/en-us/dotnet/api/?view=powershellsdk-7.4.0" data-bi-name="secondary-nav-link-6-api-browser">
<span><!---->API Browser<!----></span>
</a>
</li>
<!---->
<li class="dropdown">
<button type="button" aria-expanded="false" class="dropdown-trigger site-header-button width-full justify-content-space-between padding-inline-xs padding-block-xxs" aria-controls="bx-60" data-bi-name="secondary-nav-btn-7-resources" value="undefined">
<span><!---->Resources<!----></span>
<span aria-hidden="true" class="icon margin-left-xs">
<span class="docon docon-chevron-right-light"></span>
</span>
</button>
<ul class="dropdown-menu padding-bottom-xxs background-color-body-medium" id="bx-60" aria-label="Resources" data-bi-name="secondary-nav-menu-7-resources">
<!---->
<li>
<a class="has-external-link-indicator site-header-button width-full justify-content-flex-start padding-inline-xs padding-block-xxs " href="https://code.visualstudio.com/docs/languages/powershell/" data-bi-name="secondary-nav-link-1-vs-code-extension">
<span><!---->VS Code Extension<!----></span>
</a>
</li>
<!---->
<li>
<a class="has-external-link-indicator site-header-button width-full justify-content-flex-start padding-inline-xs padding-block-xxs " href="https://www.powershellgallery.com/" data-bi-name="secondary-nav-link-2-powershell-gallery">
<span><!---->PowerShell Gallery<!----></span>
</a>
</li>
<!---->
<li>
<a class="has-external-link-indicator site-header-button width-full justify-content-flex-start padding-inline-xs padding-block-xxs " href="https://devblogs.microsoft.com/powershell/" data-bi-name="secondary-nav-link-3-powershell-team-blog">
<span><!---->PowerShell Team blog<!----></span>
</a>
</li>
<!---->
<li>
<a class="has-external-link-indicator site-header-button width-full justify-content-flex-start padding-inline-xs padding-block-xxs " href="https://devblogs.microsoft.com/powershell-community/" data-bi-name="secondary-nav-link-4-powershell-community-blog">
<span><!---->PowerShell Community blog<!----></span>
</a>
</li>
<!---->
</ul>
</li>
<!---->
</ul>
</li>
<!---->
</ul>
</nav>
<span class="nav-bar-spacer"></span>
<div class="buttons"><!---->
<a data-test-id="navbar-primary-cta" class="button button-sm button-primary button-filled margin-right-none" href="https://aka.ms/powershell-release?tag=stable" data-bi-name="secondary-nav-cta-primary-download-powershell">
Download PowerShell
</a>
<!----></div>
<!----></div><!----></div>
</header><div id="content-header" class="content-header uhf-container has-padding has-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"><span class="docon docon-menu" aria-hidden="true"></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"><span class="docon docon-exit-mode" aria-hidden="true"></span></span>
<span>Exit focus mode</span>
</button>
</div>
</div><div id="disclaimer-holder" class="has-overflow-hidden has-default-focus">
<!-- liquid-tag banners sectional -->
</div>
</div>
<div class="mainContainer uhf-container has-default-focus" data-bi-name="body">
<div class="columns has-large-gaps is-gapless-mobile "><div id="left-container" class="left-container is-hidden-mobile column is-one-third-tablet is-one-quarter-desktop">
<nav id="affixed-left-container" class="margin-top-sm-tablet position-sticky display-flex flex-direction-column" aria-label="Primary" style="top: 24px; height: calc(100vh - 641px); max-height: 10933.3px;" data-bi-name="left toc" role="navigation"><div class="moniker-picker2" data-bi-name="moniker-picker"><!---->
<span class="label margin-bottom-xxs"><!---->Version<!----></span>
<div class="dropdown margin-bottom-xxs" role="navigation" aria-label="Version">
<button class="dropdown-trigger justify-content-flex-start button-block button button-sm inner-focus" aria-expanded="false" data-autofocus="" aria-controls="ax-5">
<span class="has-text-overflow-ellipsis"><!---->PowerShell 7.4 (LTS)<!----></span>
<span class="dropdown-button-chevron color-text" aria-hidden="true">
<span class="icon">
<span class="docon docon-chevron-down-light expanded-indicator"></span>
</span>
</span>
</button>
<ul class="dropdown-menu is-full-width is-vertically-scrollable" id="ax-5" aria-label="PowerShell">
<!----><!---->
<li>
<a class="preserve-view button button-sm button-clear button-block text-decoration-none inner-focus justify-content-flex-start has-text-wrap is-text-left" href="?view=powershell-7.5"><!---->7.5 (preview)<!----></a>
</li>
<!----><!----><!---->
<li>
<a class="preserve-view button button-sm button-clear button-block text-decoration-none inner-focus justify-content-flex-start has-text-wrap is-text-left" href="?view=powershell-7.4"><!---->7.4 (LTS)<!----></a>
</li>
<!----><!----><!---->
<li>
<a class="preserve-view button button-sm button-clear button-block text-decoration-none inner-focus justify-content-flex-start has-text-wrap is-text-left" href="?view=powershell-5.1"><!---->5.1<!----></a>
</li>
<!----><!---->
<li>
<a class="button button-sm button-clear button-block text-decoration-none border-top inner-focus justify-content-flex-start" href="https://learn.microsoft.com/previous-versions/powershell/scripting/overview"><!---->Previous versions<!----></a>
</li>
</ul>
</div>
<!----></div><form action="javascript:" role="search" aria-label="Search" class="margin-bottom-xxs"><label class="visually-hidden" for="ax-2">Search</label><div class="autocomplete display-block" data-bi-name="autocomplete"><!---->
<div class="field-body control has-icons-left">
<input role="combobox" maxlength="100" aria-autocomplete="list" autocapitalize="off" autocomplete="off" autocorrect="off" spellcheck="false" id="ax-2" data-test-id="ax-2" class="autocomplete-input input input-sm
control has-icons-left
width-full" type="text" aria-expanded="false" aria-owns="ax-3-listbox" aria-controls="ax-3-listbox" aria-activedescendant="" aria-describedby="ms--ax-2-description" placeholder="Filter by title" pattern=".*">
<span aria-hidden="true" class="icon is-small is-left">
<span class="has-text-primary docon docon-filter-settings"></span>
</span>
<span aria-hidden="true" class="autocomplete-loader loader has-text-primary " hidden=""></span>
<span hidden="" id="ms--ax-2-description">
Suggestions will filter as you type
</span>
</div>
<ul role="listbox" id="ax-3-listbox" data-test-id="ax-2-listbox" class="autocomplete-suggestions is-vertically-scrollable padding-xxs " aria-label="Suggestions" hidden="">
</ul>
<!----></div></form><ul class="tree table-of-contents is-vertically-scrollable flex-grow-1 flex-shrink-1" role="tree" aria-label="Table of contents" data-bi-name="tree" data-is-collapsible="true"><li role="none"><a aria-setsize="14" aria-level="1" aria-posinset="1" role="treeitem" tabindex="-1" class="tree-item is-leaf has-external-link-indicator" data-bi-name="tree-leaf" href="https://learn.microsoft.com/en-us/powershell/scripting/how-to-use-docs?view=powershell-7.4">How to use this documentation</a></li><li class="tree-item" aria-setsize="14" aria-level="1" aria-posinset="2" role="treeitem" tabindex="-1" id="title-2-1" aria-expanded="false"><span data-bi-name="tree-expander" class="tree-expander"><span class="tree-expander-indicator docon docon-chevron-right-light" aria-hidden="true"></span>Overview</span></li><li class="tree-item" aria-setsize="14" aria-level="1" aria-posinset="3" role="treeitem" tabindex="-1" id="title-3-1" aria-expanded="false"><span data-bi-name="tree-expander" class="tree-expander"><span class="tree-expander-indicator docon docon-chevron-right-light" aria-hidden="true"></span>Install</span></li><li class="tree-item" aria-setsize="14" aria-level="1" aria-posinset="4" role="treeitem" tabindex="-1" id="title-4-1" aria-expanded="false"><span data-bi-name="tree-expander" class="tree-expander"><span class="tree-expander-indicator docon docon-chevron-right-light" aria-hidden="true"></span>Learning PowerShell</span></li><li class="tree-item is-expanded" aria-setsize="14" aria-level="1" aria-posinset="5" role="treeitem" tabindex="-1" id="title-5-1" aria-expanded="true"><span data-bi-name="tree-expander" class="tree-expander"><span class="tree-expander-indicator docon docon-chevron-right-light" aria-hidden="true"></span>What's New in PowerShell</span><ul class="tree-group" role="group"><li role="none"><a aria-setsize="10" aria-level="2" aria-posinset="1" role="treeitem" tabindex="-1" class="tree-item is-leaf has-external-link-indicator" data-bi-name="tree-leaf" href="https://learn.microsoft.com/en-us/powershell/scripting/whats-new/overview?view=powershell-7.4">Overview</a></li><li role="none"><a aria-setsize="10" aria-level="2" aria-posinset="2" role="treeitem" tabindex="-1" class="tree-item is-leaf has-external-link-indicator" data-bi-name="tree-leaf" href="https://learn.microsoft.com/en-us/powershell/scripting/whats-new/what-s-new-in-powershell-75?view=powershell-7.4">What's new in PowerShell 7.5</a></li><li role="none"><a aria-setsize="10" aria-level="2" aria-posinset="3" role="treeitem" tabindex="-1" class="tree-item is-leaf has-external-link-indicator" data-bi-name="tree-leaf" href="https://learn.microsoft.com/en-us/powershell/scripting/whats-new/what-s-new-in-powershell-74?view=powershell-7.4">What's new in PowerShell 7.4</a></li><li role="none"><a aria-setsize="10" aria-level="2" aria-posinset="4" role="treeitem" tabindex="-1" class="tree-item is-leaf has-external-link-indicator" data-bi-name="tree-leaf" href="https://learn.microsoft.com/en-us/powershell/scripting/whats-new/what-s-new-in-powershell-73?view=powershell-7.4">What's new in PowerShell 7.3</a></li><li role="none"><a aria-setsize="10" aria-level="2" aria-posinset="5" role="treeitem" tabindex="-1" class="tree-item is-leaf has-external-link-indicator" data-bi-name="tree-leaf" href="https://learn.microsoft.com/en-us/powershell/scripting/whats-new/what-s-new-in-powershell-72?view=powershell-7.4">What's new in PowerShell 7.2</a></li><li role="none"><a aria-setsize="10" aria-level="2" aria-posinset="6" role="treeitem" tabindex="0" class="tree-item is-leaf has-external-link-indicator is-selected" data-bi-name="tree-leaf" href="https://learn.microsoft.com/en-us/powershell/scripting/whats-new/migrating-from-windows-powershell-51-to-powershell-7?view=powershell-7.4" aria-current="page">Migrating from Windows PowerShell 5.1 to PowerShell 7</a></li><li role="none"><a aria-setsize="10" aria-level="2" aria-posinset="7" role="treeitem" tabindex="-1" class="tree-item is-leaf has-external-link-indicator" data-bi-name="tree-leaf" href="https://learn.microsoft.com/en-us/powershell/scripting/whats-new/differences-from-windows-powershell?view=powershell-7.4">Differences between Windows PowerShell 5.1 and PowerShell 7.x</a></li><li role="none"><a aria-setsize="10" aria-level="2" aria-posinset="8" role="treeitem" tabindex="-1" class="tree-item is-leaf has-external-link-indicator" data-bi-name="tree-leaf" href="https://learn.microsoft.com/en-us/powershell/scripting/whats-new/unix-support?view=powershell-7.4">PowerShell differences on non-Windows platforms</a></li><li role="none"><a aria-setsize="10" aria-level="2" aria-posinset="9" role="treeitem" tabindex="-1" class="tree-item is-leaf has-external-link-indicator" data-bi-name="tree-leaf" href="https://learn.microsoft.com/en-us/powershell/scripting/whats-new/cmdlet-versions?view=powershell-7.4">Module and cmdlet release history</a></li><li role="none"><a aria-setsize="10" aria-level="2" aria-posinset="10" role="treeitem" tabindex="-1" class="tree-item is-leaf has-external-link-indicator" data-bi-name="tree-leaf" href="https://learn.microsoft.com/en-us/powershell/scripting/whats-new/module-compatibility?view=powershell-7.4">Module compatibility</a></li></ul></li><li class="tree-item" aria-setsize="14" aria-level="1" aria-posinset="6" role="treeitem" tabindex="-1" id="title-6-1" aria-expanded="false"><span data-bi-name="tree-expander" class="tree-expander"><span class="tree-expander-indicator docon docon-chevron-right-light" aria-hidden="true"></span>Windows PowerShell</span></li><li class="tree-item" aria-setsize="14" aria-level="1" aria-posinset="7" role="treeitem" tabindex="-1" id="title-7-1" aria-expanded="false"><span data-bi-name="tree-expander" class="tree-expander"><span class="tree-expander-indicator docon docon-chevron-right-light" aria-hidden="true"></span>Security</span></li><li role="none"><a aria-setsize="14" aria-level="1" aria-posinset="8" role="treeitem" tabindex="-1" class="tree-item is-leaf has-external-link-indicator" data-bi-name="tree-leaf" href="https://learn.microsoft.com/en-us/powershell/scripting/dsc/overview?view=powershell-7.4">Desired State Configuration (DSC)</a></li><li role="none"><a aria-setsize="14" aria-level="1" aria-posinset="9" role="treeitem" tabindex="-1" class="tree-item is-leaf has-external-link-indicator" data-bi-name="tree-leaf" href="https://learn.microsoft.com/en-us/powershell/scripting/gallery/overview?view=powershell-7.4">PowerShell Gallery</a></li><li class="tree-item" aria-setsize="14" aria-level="1" aria-posinset="10" role="treeitem" tabindex="-1" id="title-10-1" aria-expanded="false"><span data-bi-name="tree-expander" class="tree-expander"><span class="tree-expander-indicator docon docon-chevron-right-light" aria-hidden="true"></span>Community</span></li><li class="tree-item" aria-setsize="14" aria-level="1" aria-posinset="11" role="treeitem" tabindex="-1" id="title-11-1" aria-expanded="false"><span data-bi-name="tree-expander" class="tree-expander"><span class="tree-expander-indicator docon docon-chevron-right-light" aria-hidden="true"></span>Scripting and development</span></li><li class="tree-item" aria-setsize="14" aria-level="1" aria-posinset="12" role="treeitem" tabindex="-1" id="title-12-1" aria-expanded="false"><span data-bi-name="tree-expander" class="tree-expander"><span class="tree-expander-indicator docon docon-chevron-right-light" aria-hidden="true"></span>Docs Contributor's Guide</span></li><li role="none"><a aria-setsize="14" aria-level="1" aria-posinset="13" role="treeitem" tabindex="-1" class="tree-item is-leaf has-external-link-indicator" data-bi-name="tree-leaf" href="https://learn.microsoft.com/en-us/powershell/scripting/install/powershell-support-lifecycle?view=powershell-7.4">PowerShell support lifecycle</a></li><li class="border-top tree-item" aria-setsize="14" aria-level="1" aria-posinset="14" role="treeitem" tabindex="-1" id="title-14-1" aria-expanded="false"><span data-bi-name="tree-expander" class="tree-expander"><span class="tree-expander-indicator docon docon-chevron-right-light" aria-hidden="true"></span>Reference</span></li></ul><div class="padding-xxs padding-none-tablet border-top border-bottom-tablet"><button class="button button-sm button-clear button-block inner-focus justify-content-flex-start-tablet" data-bi-name="download-pdf" rel="nofollow"><!---->
<span class="icon" aria-hidden="true">
<span class="docon docon-dictionary-download"></span>
</span>
<span><!---->Download PDF<!----></span>
<!----></button></div></nav>
</div><!-- .primary-holder -->
<section class="primary-holder column is-two-thirds-tablet is-three-quarters-desktop">
<!--div.columns -->
<div class="columns is-gapless-mobile has-large-gaps "><div id="main-column" class="column is-full is-8-desktop">
<main id="main" class="" role="main" data-bi-name="content" lang="en-us" dir="ltr"><!-- article-header -->
<div id="article-header" class="background-color-body margin-top-sm-tablet margin-bottom-xs display-none-print">
<div class="display-flex align-items-center "><details id="article-header-breadcrumbs-overflow-popover" class="popover" data-for="article-header-breadcrumbs" hidden="">
<summary class="button button-clear button-primary button-sm inner-focus" aria-label="All breadcrumbs">
<span class="icon">
<span class="docon docon-more"></span>
</span>
</summary>
<div id="article-header-breadcrumbs-overflow" class="popover-content padding-none"><!---->
<nav>
<ol class="list-style-none">
<!---->
<li class="line-clamp-1">
<a class="display-block has-inner-focus padding-inline-xs padding-block-xxs border-radius font-size-sm" href="https://learn.microsoft.com/en-us/?view=powershell-7.4">
Learn
</a>
</li>
<!----><!---->
<li class="line-clamp-1">
<a class="display-block has-inner-focus padding-inline-xs padding-block-xxs border-radius font-size-sm" href="https://learn.microsoft.com/en-us/powershell/?view=powershell-7.4">
PowerShell
</a>
</li>
<!---->
</ol>
</nav>
<!----></div>
</details>
<bread-crumbs id="article-header-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" style="display: block; white-space: nowrap; overflow: hidden;"><!---->
<nav>
<ol class="breadcrumbs">
<!---->
<li class="breadcrumbs-item" data-bread-crumbs-collapse-target="">
<a href="https://learn.microsoft.com/en-us/?view=powershell-7.4"><!---->Learn<!----></a>
</li>
<!----><!---->
<li class="breadcrumbs-item" data-bread-crumbs-collapse-target="">
<a href="https://learn.microsoft.com/en-us/powershell/?view=powershell-7.4"><!---->PowerShell<!----></a>
</li>
<!---->
</ol>
</nav>
<!----></bread-crumbs><div id="article-header-page-actions" class="margin-left-auto display-flex flex-wrap-no-wrap align-items-stretch"><a id="lang-link-tablet" class="button button-primary button-clear button-sm display-none display-inline-flex-tablet" title="Read in English" data-bi-name="language-toggle" data-read-in-link="" hidden="" href="https://learn.microsoft.com/en-us/powershell/scripting/whats-new/migrating-from-windows-powershell-51-to-powershell-7?view=powershell-7.4" data-bi="{"cN":"language-toggle","value":"off"}">
<span class="icon margin-none" aria-hidden="true" data-read-in-link-icon="">
<span class="docon docon-locale-globe"></span>
</span>
<span class="is-visually-hidden" data-read-in-link-text="">Read in English</span>
</a><details class="popover popover-right add-item-popover">
<summary class="button button-clear button-sm button-primary display-none display-inline-flex-tablet" data-list-type="collection" data-list-item-title="Migrating from Windows PowerShell 5.1 to PowerShell 7 - PowerShell | Microsoft Learn" data-list-item-url="/powershell/scripting/whats-new/migrating-from-windows-powershell-51-to-powershell-7?view=powershell-7.4" data-list-source="module" data-resource-type="" data-bi-name="add-to-list" aria-describedby="popover-content" aria-expanded="false">
<span class="icon margin-none" aria-hidden="true">
<span class="docon docon-circle-addition"></span>
</span>
<span class="collection-status is-visually-hidden">Save</span>
</summary>
<div class="popover-content has-z-index-one">
<ul class="list-style-none margin-inline-none">
<li>
<button class="button button-clear button-sm button-primary" data-list-type="collection" data-list-item-title="Migrating from Windows PowerShell 5.1 to PowerShell 7 - PowerShell | Microsoft Learn" data-list-item-url="/powershell/scripting/whats-new/migrating-from-windows-powershell-51-to-powershell-7?view=powershell-7.4" data-bi-name="add-to-collections" data-pressed="false" title="Add Migrating from Windows PowerShell 5.1 to PowerShell 7 - PowerShell | Microsoft Learn to a collection">
<span class="icon" aria-hidden="true">
<span class="docon docon-circle-addition"></span>
</span>
<span class="collection-status">Add to Collections</span>
</button>
</li>
<li>
<button class="button button-clear button-sm button-primary" data-list-type="plan" data-list-item-title="Migrating from Windows PowerShell 5.1 to PowerShell 7 - PowerShell | Microsoft Learn" data-list-item-url="/powershell/scripting/whats-new/migrating-from-windows-powershell-51-to-powershell-7?view=powershell-7.4" data-bi-name="add-to-plans" data-pressed="false" title="Add Migrating from Windows PowerShell 5.1 to PowerShell 7 - PowerShell | Microsoft Learn to a Plan">
<span class="icon" aria-hidden="true">
<span class="docon docon-circle-addition"></span>
</span>
<span class="plan-status">Add to Plan</span>
</button>
</li>
</ul>
</div>
</details><a data-contenteditbtn="" class="button button-clear button-sm text-decoration-none button-primary display-none display-inline-flex-tablet" aria-label="Edit" title="Edit This Document" data-bi-name="edit" href="https://github.com/MicrosoftDocs/PowerShell-Docs/blob/main/reference/docs-conceptual/whats-new/Migrating-from-Windows-PowerShell-51-to-PowerShell-7.md" data-original_content_git_url="https://github.com/MicrosoftDocs/PowerShell-Docs/blob/live/reference/docs-conceptual/whats-new/Migrating-from-Windows-PowerShell-51-to-PowerShell-7.md" data-original_content_git_url_template="{repo}/blob/{branch}/reference/docs-conceptual/whats-new/Migrating-from-Windows-PowerShell-51-to-PowerShell-7.md" data-pr_repo="" data-pr_branch="">
<span class="icon margin-none" aria-hidden="true">
<span class="docon docon-edit-outline"></span>
</span>
</a>
<details class="popover popover-right" id="article-header-page-actions-overflow">
<summary class="justify-content-flex-start button button-clear button-sm button-primary" 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 padding-xs"><button data-page-action-item="overflow-mobile" type="button" class="justify-content-flex-start button-block button-sm has-inner-focus button button-clear display-none-tablet" data-bi-name="contents-expand" data-contents-button="" data-popover-close="">
<span class="icon">
<span class="docon docon-editor-list-bullet" aria-hidden="true"></span>
</span><span class="contents-expand-title">Table of contents</span></button><a id="lang-link-overflow" class="justify-content-flex-start button-sm has-inner-focus button button-clear button-block display-none-tablet" title="Read in English" data-bi-name="language-toggle" data-page-action-item="overflow-mobile" data-check-hidden="true" data-read-in-link="" hidden="" href="https://learn.microsoft.com/en-us/powershell/scripting/whats-new/migrating-from-windows-powershell-51-to-powershell-7?view=powershell-7.4" data-bi="{"cN":"language-toggle","value":"off"}">
<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 justify-content-flex-start button button-clear button-sm has-inner-focus button-block display-none-tablet" data-list-type="collection" data-bi-name="collection" title="Add Migrating from Windows PowerShell 5.1 to PowerShell 7 - PowerShell | Microsoft Learn to a collection" data-page-action-item="overflow-mobile" data-check-hidden="true" data-popover-close="" data-pressed="false">
<span class="icon" aria-hidden="true">
<span class="docon docon-circle-addition"></span>
</span>
<span class="collection-status">Add to Collections</span>
</button>
<button type="button" class="collection justify-content-flex-start button button-clear button-sm has-inner-focus button-block display-none-tablet" data-list-type="plan" data-bi-name="plan" title="Add Migrating from Windows PowerShell 5.1 to PowerShell 7 - PowerShell | Microsoft Learn to a Plan" data-page-action-item="overflow-mobile" data-check-hidden="true" data-popover-close="" data-pressed="false">
<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 has-inner-focus justify-content-flex-start text-decoration-none display-none-tablet" aria-label="Edit" title="Edit This Document" data-bi-name="edit" href="https://github.com/MicrosoftDocs/PowerShell-Docs/blob/main/reference/docs-conceptual/whats-new/Migrating-from-Windows-PowerShell-51-to-PowerShell-7.md" data-original_content_git_url="https://github.com/MicrosoftDocs/PowerShell-Docs/blob/live/reference/docs-conceptual/whats-new/Migrating-from-Windows-PowerShell-51-to-PowerShell-7.md" data-original_content_git_url_template="{repo}/blob/{branch}/reference/docs-conceptual/whats-new/Migrating-from-Windows-PowerShell-51-to-PowerShell-7.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><div aria-hidden="true" class="margin-none" data-page-action-item="overflow-all"></div>
<hr class="display-none-tablet margin-bottom-xxs margin-top-xxs">
<h4 class="font-size-sm padding-left-xxs">Share via</h4>
<a class="button button-clear button-sm button-block has-inner-focus text-decoration-none justify-content-flex-start share-facebook" data-bi-name="facebook" data-page-action-item="overflow-all" href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fpowershell%2Fscripting%2Fwhats-new%2Fmigrating-from-windows-powershell-51-to-powershell-7%3Fview%3Dpowershell-7.4%26WT.mc_id%3Dfacebook">
<span class="icon" aria-hidden="true">
<span class="docon docon-facebook-share font-size-md color-primary"></span>
</span>
<span class="margin-left-xxs">Facebook</span>
</a>
<a class="button button-clear button-sm has-inner-focus button-block text-decoration-none justify-content-flex-start share-twitter" data-bi-name="twitter" data-page-action-item="overflow-all" href="https://twitter.com/intent/tweet?original_referer=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fpowershell%2Fscripting%2Fwhats-new%2Fmigrating-from-windows-powershell-51-to-powershell-7%3Fview%3Dpowershell-7.4%26WT.mc_id%3Dtwitter&text=Today%20I%20completed%20%22Migrating%20from%20Windows%20PowerShell%205.1%20to%20PowerShell%207%20-%20PowerShell%20%7C%20Microsoft%20Learn%22!%20I'm%20so%20proud%20to%20be%20celebrating%20this%20achievement%20and%20hope%20this%20inspires%20you%20to%20start%20your%20own%20%40MicrosoftLearn%20journey!&tw_p=tweetbutton&url=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fpowershell%2Fscripting%2Fwhats-new%2Fmigrating-from-windows-powershell-51-to-powershell-7%3Fview%3Dpowershell-7.4%26WT.mc_id%3Dtwitter">
<span class="icon" aria-hidden="true">
<span class="docon docon-xlogo-share font-size-xxs"></span>
</span>
<span class="margin-left-xxs">x.com</span>
</a>
<a class="button button-clear button-sm has-inner-focus button-block text-decoration-none justify-content-flex-start share-linkedin" data-bi-name="linkedin" data-page-action-item="overflow-all" href="https://www.linkedin.com/feed/?shareActive=true&text=Today%20I%20completed%20%22Migrating%20from%20Windows%20PowerShell%205.1%20to%20PowerShell%207%20-%20PowerShell%20%7C%20Microsoft%20Learn%22!%20I'm%20so%20proud%20to%20be%20celebrating%20this%20achievement%20and%20hope%20this%20inspires%20you%20to%20start%20your%20own%20%40MicrosoftLearn%20journey!%0A%0D%0Ahttps%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fpowershell%2Fscripting%2Fwhats-new%2Fmigrating-from-windows-powershell-51-to-powershell-7%3Fview%3Dpowershell-7.4%26WT.mc_id%3Dlinkedin">
<span class="icon" aria-hidden="true">
<span class="docon docon-linked-in-logo font-size-sm color-primary"></span>
</span>
<span class="margin-left-xxs">LinkedIn</span>
</a>
<a class="button button-clear button-sm button-block has-inner-focus text-decoration-none justify-content-flex-start margin-bottom-xxs share-email" data-bi-name="email" data-page-action-item="overflow-all" href="mailto:?subject=%5BShared%20Article%5D%20Migrating%20from%20Windows%20PowerShell%205.1%20to%20PowerShell%207%20-%20PowerShell%20%7C%20Microsoft%20Learn&body=Today%20I%20completed%20%22Migrating%20from%20Windows%20PowerShell%205.1%20to%20PowerShell%207%20-%20PowerShell%20%7C%20Microsoft%20Learn%22!%20I'm%20so%20proud%20to%20be%20celebrating%20this%20achievement%20and%20hope%20this%20inspires%20you%20to%20start%20your%20own%20%40MicrosoftLearn%20journey!%0A%0D%0Ahttps%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fpowershell%2Fscripting%2Fwhats-new%2Fmigrating-from-windows-powershell-51-to-powershell-7%3Fview%3Dpowershell-7.4%26WT.mc_id%3Demail">
<span class="icon" aria-hidden="true">
<span class="docon docon-mail-message font-size-sm color-primary"></span>
</span>
<span class="margin-left-xxs">Email</span>
</a><hr>
<button class="button button-block button-clear button-sm justify-content-flex-start has-inner-focus margin-top-xxs" title="Print" type="button" aria-label="Print" data-bi-name="print" data-page-action-item="overflow-all" data-popover-close="" data-print-page="" data-check-hidden="true">
<span class="icon" aria-hidden="true">
<span class="docon docon-print font-size-sm color-primary"></span>
</span>
<span class="margin-left-xxs">Print</span>
</button>
</div>
</details>
</div></div>
</div>
<!-- end article-header --><div>
<button type="button" class="border contents-button button button-clear button-sm is-hidden-tablet has-inner-focus" data-bi-name="contents-expand" data-contents-button="" hidden="">
<span class="icon">
<span class="docon docon-editor-list-bullet" aria-hidden="true"></span>
</span><span class="contents-expand-title">Table of contents</span></button>
</div><!-- end mobile-contents button -->
<div class="content "><h1 id="migrating-from-windows-powershell-51-to-powershell-7">Migrating from Windows PowerShell 5.1 to PowerShell 7</h1><div class="display-flex justify-content-space-between align-items-center flex-wrap-wrap page-metadata-container">
<div class="margin-right-xxs">
<ul class="metadata page-metadata" data-bi-name="page info" lang="en-us" dir="ltr"><li>Article</li><li class="visibility-hidden-visual-diff"><time class="" data-article-date="" aria-label="Article review date" datetime="2024-04-02T21:58:00.000Z" data-article-date-source="calculated">04/02/2024</time>
</li><li class="contributors-holder display-none-print">
<button aria-label="View all contributors" class="contributors-button link-button" data-bi-name="contributors" title="View all contributors">9 contributors</button>
</li></ul>
</div>
<div id="user-feedback" class="margin-block-xxs display-none-print" data-hide-on-archived="">
<button id="user-feedback-button" data-test-id="conceptual-feedback-button" class="button button-sm button-clear button-primary" type="button" data-bi-name="user-feedback-button" data-user-feedback-button="">
<span class="icon" aria-hidden="true">
<span class="docon docon-like"></span>
</span>
<span>Feedback</span>
</button>
</div></div><nav id="center-doc-outline" class="doc-outline 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>
<ol id="content-well-in-this-article-list" class="border-left padding-left-xxs">
<!---->
<li class="">
<a href="#installing-powershell-7"><!---->Installing PowerShell 7<!----></a>
</li>
<!---->
<li class="">
<a href="#using-powershell-7-side-by-side-with-windows-powershell-51"><!---->Using PowerShell 7 side-by-side with Windows PowerShell 5.1<!----></a>
</li>
<!---->
<li class="">
<a href="#powershell-remoting"><!---->PowerShell Remoting<!----></a>
</li>
<!---->
<li class="">
<a href="#group-policy-supported"><!---->Group Policy supported<!----></a>
</li>
<!---->
<li class="expandable">
<a href="#separate-event-logs"><!---->Separate Event Logs<!----></a>
</li>
<!---->
<li class="expandable">
<a href="#improved-editing-experience-with-visual-studio-code"><!---->Improved editing experience with Visual Studio Code<!----></a>
</li>
<!---->
<li class="expandable">
<a href="#next-steps"><!---->Next Steps<!----></a>
</li>
<!---->
</ol>
<button type="button" aria-expanded="false" data-show-more="" class="link-button font-weight-semibold font-size-sm margin-top-xxs margin-left-xs" aria-controls="content-well-in-this-article-list" data-title="Show 3 more" data-bi-name="show-more-btn">
<span class="show-more-text "><!---->Show 3 more<!----></span>
</button>
<!----></nav><!-- <content> --><p>Designed for cloud, on-premises, and hybrid environments, PowerShell 7 is packed with enhancements
and <a href="https://learn.microsoft.com/en-us/powershell/scripting/whats-new/what-s-new-in-powershell-70?view=powershell-7.4" data-linktype="relative-path">new features</a>.</p>
<ul>
<li>Installs and runs side-by-side with Windows PowerShell</li>
<li>Improved compatibility with existing Windows PowerShell modules</li>
<li>New language features, like ternary operators and <code>ForEach-Object -Parallel</code></li>
<li>Improved performance</li>
<li>SSH-based remoting</li>
<li>Cross-platform interoperability</li>
<li>Support for Docker containers</li>
</ul>
<p>PowerShell 7 works side-by-side with Windows PowerShell letting you easily test and compare between
editions before deployment. Migration is simple, quick, and safe.</p>
<p>PowerShell 7 is supported on the following Windows operating systems:</p>
<ul>
<li>Windows 10, and 11</li>
<li>Windows Server 2016, 2019, and 2022</li>
</ul>
<p>PowerShell 7 also runs on macOS and several Linux distributions. For a list of supported operating
systems and information about the support lifecycle, see the <a href="https://learn.microsoft.com/en-us/powershell/scripting/install/powershell-support-lifecycle?view=powershell-7.4" data-linktype="relative-path">PowerShell Support Lifecycle</a>.</p>
<div class="heading-wrapper" data-heading-level="h2"><a class="anchor-link docon docon-link" href="#installing-powershell-7" aria-label="Section titled: Installing PowerShell 7"></a><h2 id="installing-powershell-7" class="heading-anchor">Installing PowerShell 7</h2></div>
<p>For flexibility and to support the needs of IT, DevOps engineers, and developers, there are several
options available to install PowerShell 7. In most cases, the installation options can be reduced to
the following methods:</p>
<ul>
<li>Deploy PowerShell using the <a href="https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.4#msi" data-linktype="relative-path">MSI package</a></li>
<li>Deploy PowerShell using the <a href="https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.4#zip" data-linktype="relative-path">ZIP package</a></li>
</ul>
<div class="alert is-info">
<p class="alert-title"><span class="docon docon-status-error-outline" aria-hidden="true"></span> Note</p>
<p>The MSI package can be deployed and updated with management products such as
<a href="/en-us/configmgr/apps/" data-linktype="absolute-path">Microsoft Configuration Manager</a>. Download the packages from
<a href="https://github.com/PowerShell/PowerShell/releases" data-linktype="external">GitHub Release page</a>.</p>
</div>
<p>Deploying the MSI package requires Administrator permission. The ZIP package can be deployed by any
user. The ZIP package is the easiest way to install PowerShell 7 for testing, before committing to a
full installation.</p>
<p>You may also install PowerShell 7 via the Windows Store or <code>winget</code>. For more information about both
of these methods, see the detailed instructions in <a href="https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.4#winget" data-linktype="relative-path">Installing PowerShell on Windows</a>.</p>
<div class="heading-wrapper" data-heading-level="h2"><a class="anchor-link docon docon-link" href="#using-powershell-7-side-by-side-with-windows-powershell-51" aria-label="Section titled: Using PowerShell 7 side-by-side with Windows PowerShell 5.1"></a><h2 id="using-powershell-7-side-by-side-with-windows-powershell-51" class="heading-anchor">Using PowerShell 7 side-by-side with Windows PowerShell 5.1</h2></div>
<p>PowerShell 7 is designed to coexist with Windows PowerShell 5.1. The following features ensure that
your investment in PowerShell is protected and your migration to PowerShell 7 is simple.</p>
<ul>
<li>Separate installation path and executable name</li>
<li>Separate PSModulePath</li>
<li>Separate profiles for each version</li>
<li>Improved module compatibility</li>
<li>New remoting endpoints</li>
<li>Group policy support</li>
<li>Separate Event logs</li>
</ul>
<div class="heading-wrapper" data-heading-level="h3"><a class="anchor-link docon docon-link" href="#differences-in-net-versions" aria-label="Section titled: Differences in .NET versions"></a><h3 id="differences-in-net-versions" class="heading-anchor">Differences in .NET versions</h3></div>
<p>PowerShell 7.4 is built on .NET 8.0. Windows PowerShell 5.1 is built on .NET Framework 4.x. The
differences between the .NET versions might affect the behavior of your scripts, especially if you
are calling .NET method directly. For more information,
<a href="https://learn.microsoft.com/en-us/powershell/scripting/whats-new/differences-from-windows-powershell?view=powershell-7.4" data-linktype="relative-path">Differences between Windows PowerShell 5.1 and PowerShell 7.x</a>.</p>
<div class="heading-wrapper" data-heading-level="h3"><a class="anchor-link docon docon-link" href="#separate-installation-path-and-executable-name" aria-label="Section titled: Separate installation path and executable name"></a><h3 id="separate-installation-path-and-executable-name" class="heading-anchor">Separate installation path and executable name</h3></div>
<p>PowerShell 7 installs to a new directory, enabling side-by-side execution with Windows PowerShell
5.1.</p>
<p>Install locations by version:</p>
<ul>
<li>Windows PowerShell 5.1: <code>$env:WINDIR\System32\WindowsPowerShell\v1.0</code></li>
<li>PowerShell 6.x: <code>$env:ProgramFiles\PowerShell\6</code></li>
<li>PowerShell 7: <code>$env:ProgramFiles\PowerShell\7</code></li>
</ul>
<p>The new location is added to your PATH allowing you to run both Windows PowerShell 5.1 and
PowerShell 7. If you're migrating from PowerShell 6.x to PowerShell 7, PowerShell 6 is removed and
the PATH replaced.</p>
<p>In Windows PowerShell, the PowerShell executable is named <code>powershell.exe</code>. In version 6 and above,
the executable is named <code>pwsh.exe</code>. The new name makes it easy to support side-by-side execution of
both versions.</p>
<div class="heading-wrapper" data-heading-level="h3"><a class="anchor-link docon docon-link" href="#separate-psmodulepath" aria-label="Section titled: Separate PSModulePath"></a><h3 id="separate-psmodulepath" class="heading-anchor">Separate PSModulePath</h3></div>
<p>By default, Windows PowerShell and PowerShell 7 store modules in different locations. PowerShell 7
combines those locations in the <code>$Env:PSModulePath</code> environment variable. When importing a module by
name, PowerShell checks the location specified by <code>$Env:PSModulePath</code>. This allows PowerShell 7 to
load both Core and Desktop modules.</p>
<div class="buttons buttons-right margin-bottom-none margin-top-sm"><!----> <button class="button button-clear button-sm display-flex gap-xxs">
<span class="icon" aria-hidden="true">
<span class="docon docon-expand color-primary"></span>
</span>
<span><!---->Expand table<!----></span>
</button><!----></div><div class="table-wrapper has-inner-focus" tabindex="0" role="group" aria-label="Horizontally scrollable data"><table aria-label="Table 1" class="table table-sm margin-top-none">
<thead>
<tr>
<th>Install Scope</th>
<th>Windows PowerShell 5.1</th>
<th>PowerShell 7.0</th>
</tr>
</thead>
<tbody>
<tr>
<td>PowerShell modules</td>
<td><code>$env:WINDIR\system32\WindowsPowerShell\v1.0\Modules</code></td>
<td><code>$env:ProgramFiles\PowerShell\7\Modules</code></td>
</tr>
<tr>
<td>User installed<br>AllUsers scope</td>
<td><code>$env:ProgramFiles\WindowsPowerShell\Modules</code></td>
<td><code>$env:ProgramFiles\PowerShell\Modules</code></td>
</tr>
<tr>
<td>User installed<br>CurrentUser scope</td>
<td><code>$HOME\Documents\WindowsPowerShell\Modules</code></td>
<td><code>$HOME\Documents\PowerShell\Modules</code></td>
</tr>
</tbody>
</table></div>
<p>The following examples show the default values of <code>$Env:PSModulePath</code> for each version.</p>
<ul>
<li><p>For Windows PowerShell 5.1:</p>
<div class="codeHeader" id="code-try-0" data-bi-name="code-header"><span class="language">PowerShell</span>
<button type="button" class="action position-relative display-none-print" data-bi-name="copy">
<span class="icon margin-right-xxs" aria-hidden="true">
<span class="docon docon-edit-copy"></span>
</span>
<span>Copy</span>
<div class="successful-copy-alert position-absolute right-0 top-0 left-0 bottom-0 display-flex align-items-center justify-content-center has-text-success-invert has-background-success is-transparent" aria-hidden="true">
<span class="icon font-size-lg">
<span class="docon docon-check-mark"></span>
</span>
</div>
</button>
</div><pre class="has-inner-focus"><code class="lang-powershell"><span><span class="hljs-variable">$Env:PSModulePath</span><span class="hljs-parameter"> -split</span> (<span class="hljs-string">';'</span>)
</span></code></pre>
<div class="codeHeader" id="code-try-1" data-bi-name="code-header"><span class="language">Output</span>
<button type="button" class="action position-relative display-none-print" data-bi-name="copy">
<span class="icon margin-right-xxs" aria-hidden="true">
<span class="docon docon-edit-copy"></span>
</span>
<span>Copy</span>
<div class="successful-copy-alert position-absolute right-0 top-0 left-0 bottom-0 display-flex align-items-center justify-content-center has-text-success-invert has-background-success is-transparent" aria-hidden="true">
<span class="icon font-size-lg">
<span class="docon docon-check-mark"></span>
</span>
</div>
</button>
</div><pre class="has-inner-focus"><code class="lang-Output">C:\Users\<user>\Documents\WindowsPowerShell\Modules
C:\Program Files\WindowsPowerShell\Modules
C:\WINDOWS\System32\WindowsPowerShell\v1.0\Modules
</code></pre>
</li>
<li><p>For PowerShell 7:</p>
<div class="codeHeader" id="code-try-2" data-bi-name="code-header"><span class="language">PowerShell</span>
<button type="button" class="action position-relative display-none-print" data-bi-name="copy">
<span class="icon margin-right-xxs" aria-hidden="true">
<span class="docon docon-edit-copy"></span>
</span>
<span>Copy</span>
<div class="successful-copy-alert position-absolute right-0 top-0 left-0 bottom-0 display-flex align-items-center justify-content-center has-text-success-invert has-background-success is-transparent" aria-hidden="true">
<span class="icon font-size-lg">
<span class="docon docon-check-mark"></span>
</span>
</div>
</button>
</div><pre class="has-inner-focus"><code class="lang-powershell"><span><span class="hljs-variable">$Env:PSModulePath</span><span class="hljs-parameter"> -split</span> (<span class="hljs-string">';'</span>)
</span></code></pre>
<div class="codeHeader" id="code-try-3" data-bi-name="code-header"><span class="language">Output</span>
<button type="button" class="action position-relative display-none-print" data-bi-name="copy">
<span class="icon margin-right-xxs" aria-hidden="true">
<span class="docon docon-edit-copy"></span>
</span>
<span>Copy</span>
<div class="successful-copy-alert position-absolute right-0 top-0 left-0 bottom-0 display-flex align-items-center justify-content-center has-text-success-invert has-background-success is-transparent" aria-hidden="true">
<span class="icon font-size-lg">
<span class="docon docon-check-mark"></span>
</span>
</div>
</button>
</div><pre class="has-inner-focus"><code class="lang-Output">C:\Users\<user>\Documents\PowerShell\Modules
C:\Program Files\PowerShell\Modules
C:\Program Files\PowerShell\7\Modules
C:\Program Files\WindowsPowerShell\Modules
C:\WINDOWS\System32\WindowsPowerShell\v1.0\Modules
</code></pre>
</li>
</ul>
<p>Notice that PowerShell 7 includes the Windows PowerShell paths and the PowerShell 7 paths to provide
autoloading of modules.</p>
<div class="alert is-info">
<p class="alert-title"><span class="docon docon-status-error-outline" aria-hidden="true"></span> Note</p>
<p>Additional paths may exist if you have changed the PSModulePath environment variable or installed
custom modules or applications.</p>
</div>
<p>For more information, see <a href="/en-us/powershell/module/microsoft.powershell.core/about/about_psmodulepath" data-linktype="absolute-path">about_PSModulePath</a>.</p>
<p>For more information about Modules, see <a href="/en-us/powershell/module/Microsoft.PowerShell.Core/About/about_Modules" data-linktype="absolute-path">about_Modules</a>.</p>
<div class="heading-wrapper" data-heading-level="h3"><a class="anchor-link docon docon-link" href="#separate-profiles" aria-label="Section titled: Separate profiles"></a><h3 id="separate-profiles" class="heading-anchor">Separate profiles</h3></div>
<p>A PowerShell profile is a script that executes when PowerShell starts. This script customizes your
environment by adding commands, aliases, functions, variables, modules, and PowerShell drives. The
profile script makes these customizations available in every session without having to manually
recreate them.</p>
<p>The path to the location of the profile has changed in PowerShell 7.</p>
<ul>
<li>In Windows PowerShell 5.1, the location of the profile is <code>$HOME\Documents\WindowsPowerShell</code>.</li>
<li>In PowerShell 7, the location of the profile is <code>$HOME\Documents\PowerShell</code>.</li>
</ul>
<p>The profile filenames have also changed:</p>
<div class="codeHeader" id="code-try-4" data-bi-name="code-header"><span class="language">PowerShell</span>
<button type="button" class="action position-relative display-none-print" data-bi-name="copy">
<span class="icon margin-right-xxs" aria-hidden="true">
<span class="docon docon-edit-copy"></span>
</span>
<span>Copy</span>
<div class="successful-copy-alert position-absolute right-0 top-0 left-0 bottom-0 display-flex align-items-center justify-content-center has-text-success-invert has-background-success is-transparent" aria-hidden="true">
<span class="icon font-size-lg">
<span class="docon docon-check-mark"></span>
</span>
</div>
</button>
</div><pre class="has-inner-focus"><code class="lang-powershell"><span><span class="hljs-variable">$PROFILE</span> | <span class="hljs-pscommand">Select-Object</span> *Host* | <span class="hljs-pscommand">Format-List</span>
</span></code></pre>
<div class="codeHeader" id="code-try-5" data-bi-name="code-header"><span class="language">Output</span>
<button type="button" class="action position-relative display-none-print" data-bi-name="copy">
<span class="icon margin-right-xxs" aria-hidden="true">
<span class="docon docon-edit-copy"></span>
</span>
<span>Copy</span>
<div class="successful-copy-alert position-absolute right-0 top-0 left-0 bottom-0 display-flex align-items-center justify-content-center has-text-success-invert has-background-success is-transparent" aria-hidden="true">
<span class="icon font-size-lg">
<span class="docon docon-check-mark"></span>
</span>
</div>
</button>
</div><pre class="has-inner-focus" role="group" aria-label="Horizontally scrollable code" tabindex="0"><code class="lang-Output"> AllUsersAllHosts : C:\Program Files\PowerShell\7\profile.ps1
AllUsersCurrentHost : C:\Program Files\PowerShell\7\Microsoft.PowerShell_profile.ps1
CurrentUserAllHosts : C:\Users\<user>\Documents\PowerShell\profile.ps1
CurrentUserCurrentHost : C:\Users\<user>\Documents\PowerShell\Microsoft.PowerShell_profile.ps1
</code></pre>
<p>For more information
<a href="/en-us/powershell/module/microsoft.powershell.core/about/about_profiles" data-linktype="absolute-path">about_Profiles</a>.</p>
<div class="heading-wrapper" data-heading-level="h3"><a class="anchor-link docon docon-link" href="#powershell-7-compatibility-with-windows-powershell-51-modules" aria-label="Section titled: PowerShell 7 compatibility with Windows PowerShell 5.1 modules"></a><h3 id="powershell-7-compatibility-with-windows-powershell-51-modules" class="heading-anchor">PowerShell 7 compatibility with Windows PowerShell 5.1 modules</h3></div>
<p>Most of the modules you use in Windows PowerShell 5.1 already work with PowerShell 7, including
Azure PowerShell and Active Directory. We're continuing to work with other teams to add native
PowerShell 7 support for more modules including Microsoft Graph, Office 365, and others. For the
current list of supported modules, see <a href="https://learn.microsoft.com/en-us/powershell/scripting/whats-new/module-compatibility?view=powershell-7.4" data-linktype="relative-path">PowerShell 7 module compatibility</a>.</p>
<div class="alert is-info">
<p class="alert-title"><span class="docon docon-status-error-outline" aria-hidden="true"></span> Note</p>
<p>On Windows, we've also added a <strong>UseWindowsPowerShell</strong> switch to <code>Import-Module</code> to ease the
transition to PowerShell 7 for those using incompatible modules. For more information on this
functionality, see <a href="/en-us/powershell/module/Microsoft.PowerShell.Core/About/about_windows_powershell_compatibility" data-linktype="absolute-path">about_Windows_PowerShell_Compatibility</a>.</p>
</div>
<div class="heading-wrapper" data-heading-level="h2"><a class="anchor-link docon docon-link" href="#powershell-remoting" aria-label="Section titled: PowerShell Remoting"></a><h2 id="powershell-remoting" class="heading-anchor">PowerShell Remoting</h2></div>
<p>PowerShell remoting lets you run any PowerShell command on one or more remote computers. You can
establish persistent connections, start interactive sessions, and run scripts on remote computers.</p>
<div class="heading-wrapper" data-heading-level="h3"><a class="anchor-link docon docon-link" href="#ws-management-remoting" aria-label="Section titled: WS-Management remoting"></a><h3 id="ws-management-remoting" class="heading-anchor">WS-Management remoting</h3></div>
<p>Windows PowerShell 5.1 and below use the WS-Management (WSMAN) protocol for connection negotiation
and data transport. Windows Remote Management (WinRM) uses the WSMAN protocol. If WinRM has been
enabled, PowerShell 7 uses the existing Windows PowerShell 5.1 endpoint named <code>Microsoft.PowerShell</code>
for remoting connections. To update PowerShell 7 to include its own endpoint, run the
<code>Enable-PSRemoting</code> cmdlet. For information about connecting to specific endpoints, see
<a href="https://learn.microsoft.com/en-us/powershell/scripting/security/remoting/wsman-remoting-in-powershell?view=powershell-7.4" data-linktype="relative-path">WS-Management Remoting in PowerShell</a></p>
<p>To use Windows PowerShell remoting, the remote computer must be configured for remote management.
For more information, including instructions, see <a href="/en-us/powershell/module/microsoft.powershell.core/about/about_remote_requirements" data-linktype="absolute-path">About Remote Requirements</a>.</p>
<p>For more information about working with remoting, see <a href="/en-us/powershell/module/microsoft.powershell.core/about/about_remote" data-linktype="absolute-path">About Remote</a></p>
<div class="heading-wrapper" data-heading-level="h3"><a class="anchor-link docon docon-link" href="#ssh-based-remoting" aria-label="Section titled: SSH-based remoting"></a><h3 id="ssh-based-remoting" class="heading-anchor">SSH-based remoting</h3></div>
<p>SSH-based remoting was added in PowerShell 6.x to support other operating systems that can't use
Windows native components like <strong>WinRM</strong>. SSH remoting creates a PowerShell host process on the
target computer as an SSH subsystem. For details and examples on setting up SSH-based remoting on
Windows or Linux, see: <a href="https://learn.microsoft.com/en-us/powershell/scripting/security/remoting/ssh-remoting-in-powershell?view=powershell-7.4" data-linktype="relative-path">PowerShell remoting over SSH</a>.</p>
<div class="alert is-info">
<p class="alert-title"><span class="docon docon-status-error-outline" aria-hidden="true"></span> Note</p>
<p>The PowerShell Gallery (PSGallery) contains a module and cmdlet that automatically configures
SSH-based remoting. Install the <code>Microsoft.PowerShell.RemotingTools</code> module from the
<a href="https://www.powershellgallery.com/packages/Microsoft.PowerShell.RemotingTools" data-linktype="external">PSGallery</a> and run the <code>Enable-SSH</code> cmdlet.</p>
</div>
<p>The <code>New-PSSession</code>, <code>Enter-PSSession</code>, and <code>Invoke-Command</code> cmdlets have new parameter sets to
support SSH connections.</p>
<div class="codeHeader" id="code-try-6" data-bi-name="code-header"><span class="language">PowerShell</span>
<button type="button" class="action position-relative display-none-print" data-bi-name="copy">
<span class="icon margin-right-xxs" aria-hidden="true">
<span class="docon docon-edit-copy"></span>
</span>
<span>Copy</span>
<div class="successful-copy-alert position-absolute right-0 top-0 left-0 bottom-0 display-flex align-items-center justify-content-center has-text-success-invert has-background-success is-transparent" aria-hidden="true">
<span class="icon font-size-lg">
<span class="docon docon-check-mark"></span>
</span>
</div>
</button>
</div><pre class="has-inner-focus" role="group" aria-label="Horizontally scrollable code" tabindex="0"><code class="lang-powershell"><span>[-HostName <string>] [-UserName <string>] [-KeyFilePath <string>]
</span></code></pre>
<p>To create a remote session, specify the target computer with the <strong>HostName</strong> parameter and provide
the user name with <strong>UserName</strong>. When running the cmdlets interactively, you're prompted for a
password.</p>
<div class="codeHeader" id="code-try-7" data-bi-name="code-header"><span class="language">PowerShell</span>
<button type="button" class="action position-relative display-none-print" data-bi-name="copy">
<span class="icon margin-right-xxs" aria-hidden="true">
<span class="docon docon-edit-copy"></span>
</span>
<span>Copy</span>
<div class="successful-copy-alert position-absolute right-0 top-0 left-0 bottom-0 display-flex align-items-center justify-content-center has-text-success-invert has-background-success is-transparent" aria-hidden="true">
<span class="icon font-size-lg">
<span class="docon docon-check-mark"></span>
</span>
</div>
</button>
</div><pre class="has-inner-focus"><code class="lang-powershell"><span><span class="hljs-pscommand">Enter-PSSession</span><span class="hljs-parameter"> -HostName</span> <Computer><span class="hljs-parameter"> -UserName</span> <Username>
</span></code></pre>
<p>Alternatively, when using the <strong>HostName</strong> parameter, provide the username information followed by
the at sign (<code>@</code>), followed by the computer name.</p>
<div class="codeHeader" id="code-try-8" data-bi-name="code-header"><span class="language">PowerShell</span>
<button type="button" class="action position-relative display-none-print" data-bi-name="copy">
<span class="icon margin-right-xxs" aria-hidden="true">
<span class="docon docon-edit-copy"></span>
</span>
<span>Copy</span>
<div class="successful-copy-alert position-absolute right-0 top-0 left-0 bottom-0 display-flex align-items-center justify-content-center has-text-success-invert has-background-success is-transparent" aria-hidden="true">
<span class="icon font-size-lg">
<span class="docon docon-check-mark"></span>
</span>
</div>
</button>
</div><pre class="has-inner-focus"><code class="lang-powershell"><span><span class="hljs-pscommand">Enter-PSSession</span><span class="hljs-parameter"> -HostName</span> <Username>@<Computer>
</span></code></pre>
<p>You may set up SSH key authentication using a private key file with the <strong>KeyFilePath</strong> parameter.
For more information, see <a href="/en-us/windows-server/administration/openssh/openssh_keymanagement" data-linktype="absolute-path">OpenSSH Key Management</a>.</p>
<div class="heading-wrapper" data-heading-level="h2"><a class="anchor-link docon docon-link" href="#group-policy-supported" aria-label="Section titled: Group Policy supported"></a><h2 id="group-policy-supported" class="heading-anchor">Group Policy supported</h2></div>
<p>PowerShell includes Group Policy settings to help you define consistent option values for servers in
an enterprise environment. These settings include:</p>
<ul>
<li>Console session configuration: Sets a configuration endpoint in which PowerShell is run.</li>
<li>Turn on Module Logging: Sets the LogPipelineExecutionDetails property of modules.</li>
<li>Turn on PowerShell Script Block Logging: Enables detailed logging of all PowerShell scripts.</li>
<li>Turn on Script Execution: Sets the PowerShell execution policy.</li>
<li>Turn on PowerShell Transcription: enables capturing of input and output of PowerShell commands
into text-based transcripts.</li>
<li>Set the default source path for Update-Help: Sets the source for Updatable Help to a directory,
not the Internet.</li>
</ul>
<p>For more information, see <a href="/en-us/powershell/module/microsoft.powershell.core/about/about_group_policy_settings" data-linktype="absolute-path">about_Group_Policy_Settings</a>.</p>
<p>PowerShell 7 includes Group Policy templates and an installation script in <code>$PSHOME</code>.</p>
<p>Group Policy tools use administrative template files (<code>.admx</code>, <code>.adml</code>) to populate policy settings
in the user interface. This allows administrators to manage registry-based policy settings. The
<code>InstallPSCorePolicyDefinitions.ps1</code> script installs PowerShell Administrative Templates on the
local machine.</p>
<div class="codeHeader" id="code-try-9" data-bi-name="code-header"><span class="language">PowerShell</span>
<button type="button" class="action position-relative display-none-print" data-bi-name="copy">
<span class="icon margin-right-xxs" aria-hidden="true">
<span class="docon docon-edit-copy"></span>
</span>
<span>Copy</span>
<div class="successful-copy-alert position-absolute right-0 top-0 left-0 bottom-0 display-flex align-items-center justify-content-center has-text-success-invert has-background-success is-transparent" aria-hidden="true">
<span class="icon font-size-lg">
<span class="docon docon-check-mark"></span>
</span>
</div>
</button>
</div><pre class="has-inner-focus"><code class="lang-powershell"><span><span class="hljs-pscommand">Get-ChildItem</span><span class="hljs-parameter"> -Path</span> <span class="hljs-variable">$PSHOME</span><span class="hljs-parameter"> -Filter</span> *Core*Policy*
</span></code></pre>
<div class="codeHeader" id="code-try-10" data-bi-name="code-header"><span class="language">Output</span>
<button type="button" class="action position-relative display-none-print" data-bi-name="copy">
<span class="icon margin-right-xxs" aria-hidden="true">
<span class="docon docon-edit-copy"></span>
</span>
<span>Copy</span>
<div class="successful-copy-alert position-absolute right-0 top-0 left-0 bottom-0 display-flex align-items-center justify-content-center has-text-success-invert has-background-success is-transparent" aria-hidden="true">
<span class="icon font-size-lg">
<span class="docon docon-check-mark"></span>
</span>
</div>
</button>
</div><pre class="has-inner-focus" role="group" aria-label="Horizontally scrollable code" tabindex="0"><code class="lang-Output"> Directory: C:\Program Files\PowerShell\7
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a--- 2/27/2020 12:38 AM 15861 InstallPSCorePolicyDefinitions.ps1
-a--- 2/27/2020 12:28 AM 9675 PowerShellCoreExecutionPolicy.adml
-a--- 2/27/2020 12:28 AM 6201 PowerShellCoreExecutionPolicy.admx
</code></pre>
<div class="heading-wrapper" data-heading-level="h2"><a class="anchor-link docon docon-link" href="#separate-event-logs" aria-label="Section titled: Separate Event Logs"></a><h2 id="separate-event-logs" class="heading-anchor">Separate Event Logs</h2></div>
<p>Windows PowerShell and PowerShell 7 log events to separate event logs. Use the following command to
get a list of the PowerShell logs.</p>
<div class="codeHeader" id="code-try-11" data-bi-name="code-header"><span class="language">PowerShell</span>
<button type="button" class="action position-relative display-none-print" data-bi-name="copy">
<span class="icon margin-right-xxs" aria-hidden="true">
<span class="docon docon-edit-copy"></span>
</span>
<span>Copy</span>
<div class="successful-copy-alert position-absolute right-0 top-0 left-0 bottom-0 display-flex align-items-center justify-content-center has-text-success-invert has-background-success is-transparent" aria-hidden="true">
<span class="icon font-size-lg">
<span class="docon docon-check-mark"></span>
</span>
</div>
</button>
</div><pre class="has-inner-focus"><code class="lang-powershell"><span><span class="hljs-pscommand">Get-WinEvent</span><span class="hljs-parameter"> -ListLog</span> *PowerShell*
</span></code></pre>
<p>For more information, see <a href="/en-us/powershell/module/microsoft.powershell.core/about/about_logging_windows" data-linktype="absolute-path">about_Logging_Windows</a>.</p>
<div class="heading-wrapper" data-heading-level="h2"><a class="anchor-link docon docon-link" href="#improved-editing-experience-with-visual-studio-code" aria-label="Section titled: Improved editing experience with Visual Studio Code"></a><h2 id="improved-editing-experience-with-visual-studio-code" class="heading-anchor">Improved editing experience with Visual Studio Code</h2></div>
<p><a href="https://code.visualstudio.com/" data-linktype="external">Visual Studio Code (VSCode)</a> with the <a href="https://code.visualstudio.com/docs/languages/powershell" data-linktype="external">PowerShell Extension</a> is the supported scripting
environment for PowerShell 7. The Windows PowerShell Integrated Scripting Environment (ISE) only
supports Windows PowerShell.</p>
<p>The updated PowerShell extension includes:</p>
<ul>
<li>New ISE compatibility mode</li>
<li>PSReadLine in the Integrated Console, including syntax highlighting, multi-line editing, and back
search</li>
<li>Stability and performance improvements</li>
<li>New CodeLens integration</li>
<li>Improved path autocompletion</li>
</ul>
<p>To make the transition to Visual Studio Code easier, use the <strong>Enable ISE Mode</strong> function available
in the <strong>Command Palette</strong>. This function switches VSCode into an ISE-style layout. The ISE-style
layout gives you all the new features and capabilities of PowerShell in a familiar user experience.</p>
<p>To switch to the new ISE layout, press <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>P</kbd> to open the
<strong>Command Palette</strong>, type <code>PowerShell</code> and select <strong>PowerShell: Enable ISE Mode</strong>.</p>
<p>To set the layout to the original layout, open the <strong>Command Palette</strong>, select
<strong>PowerShell: Disable ISE Mode (restore to defaults)</strong>.</p>
<p>For details about customizing the VSCode layout to ISE, see
<a href="https://learn.microsoft.com/en-us/powershell/scripting/dev-cross-plat/vscode/how-to-replicate-the-ise-experience-in-vscode?view=powershell-7.4" data-linktype="relative-path">How to Replicate the ISE Experience in Visual Studio Code</a></p>
<div class="alert is-info">
<p class="alert-title"><span class="docon docon-status-error-outline" aria-hidden="true"></span> Note</p>
<p>There are no plans to update the ISE with new features. In the latest versions of Windows 10 or
Windows Server 2019 and higher, the ISE is now a user-uninstallable feature. There are no plans to
permanently remove the ISE. The PowerShell Team and its partners are focused on improving the
scripting experience in the PowerShell extension for Visual Studio Code.</p>
</div>
<div class="heading-wrapper" data-heading-level="h2"><a class="anchor-link docon docon-link" href="#next-steps" aria-label="Section titled: Next Steps"></a><h2 id="next-steps" class="heading-anchor">Next Steps</h2></div>
<p>Armed with the knowledge to effectively migrate, <a href="https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.4" data-linktype="relative-path">install PowerShell 7</a> now!</p>
<!-- 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>
<!-- </content> -->
</main><!-- recommendations section --><!-- end recommendations section -->
<!-- feedback section --><section class="feedback-section position-relative margin-top-lg border border-radius padding-xxs" data-bi-name="open-source-feedback-section" data-open-source-feedback-section="">
<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" 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 feedback</p>
<div class="display-flex gap-xs flex-direction-column">
<p class="line-height-normal" data-open-source-product-description="">PowerShell is an open source project. Select a link to provide feedback:</p>
<div class="display-flex gap-xs flex-direction-column">
<a href="https://github.com/MicrosoftDocs/PowerShell-Docs/issues/new?template=04-customer-feedback.yml&pageUrl=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fpowershell%2Fscripting%2Fwhats-new%2Fmigrating-from-windows-powershell-51-to-powershell-7%3Fview%3Dpowershell-7.4&pageQueryParams=%3Fview%3Dpowershell-7.4&contentSourceUrl=https%3A%2F%2Fgithub.com%2FMicrosoftDocs%2FPowerShell-Docs%2Fblob%2Fmain%2Freference%2Fdocs-conceptual%2Fwhats-new%2FMigrating-from-Windows-PowerShell-51-to-PowerShell-7.md&documentVersionIndependentId=c042b902-bdfb-5eea-f956-87b1c86644a7&feedback=%0A%0A%5BEnter+feedback+here%5D%0A&author=%40sdwheeler&metadata=*+ID%3A+2834a337-6896-15da-0c29-dfafe7561100+%0A*+Service%3A+**powershell**%0A*+Sub-service%3A+**conceptual**&labels=needs-triage" 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 report section --><!-- end feedback report section --><aside id="ms--additional-resources-mobile" aria-label="Additional resources" class="display-none-desktop 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" data-bi-name="recommendations" hidden=""></section>
<section id="right-rail-training-mobile" data-bi-name="learning-resources-card" hidden=""></section>
<section id="right-rail-events-mobile" data-bi-name="events-card" hidden=""></section>
<section id="right-rail-qna-mobile" data-bi-name="qna-link-card" hidden=""></section>
</aside><div class="border-top is-visible-interactive has-default-focus margin-top-sm "><footer id="footer-interactive" data-bi-name="footer" class="footer-layout"><div class="display-flex gap-xs flex-wrap-wrap is-full-height padding-right-lg-desktop"><a data-mscc-ic="false" class="locale-selector-link button button-sm button-clear flex-shrink-0" href="/en-us/locale?target=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fpowershell%2Fscripting%2Fwhats-new%2Fmigrating-from-windows-powershell-51-to-powershell-7%3Fview%3Dpowershell-7.4" data-bi-name="select-locale" aria-label="Content language selector. Currently set to English (United States).">
<span class="icon" aria-hidden="true">
<span class="docon docon-world"></span>
</span>
<span class="local-selector-link-text">English (United States)</span></a><div class="ccpa-privacy-link" data-ccpa-privacy-link="">
<a href="https://aka.ms/yourcaliforniaprivacychoices" class="button button-sm button-clear flex-shrink-0" data-mscc-ic="false" data-bi-name="your-privacy-choices">
<svg role="img" aria-label="California Consumer Privacy Act (CCPA) Opt-Out Icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 14" xml:space="preserve" height="16" width="43" focusable="false">
<title>California Consumer Privacy Act (CCPA) Opt-Out Icon</title>
<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 class="dropdown-trigger button button-clear button-sm has-inner-focus theme-dropdown-trigger" aria-controls="theme-menu-interactive" aria-expanded="false" title="Theme" data-bi-name="theme">
<span class="icon">
<span class="docon docon-sun" aria-hidden="true"></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="theme-menu-interactive" role="menu">
<ul class="theme-selector padding-xxs" role="none">
<li class="theme display-block" role="menuitem">
<button class="button button-clear button-sm theme-control button-block justify-content-flex-start is-selected" data-theme-to="light" aria-pressed="true">
<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>
<rect x="5" y="5" width="12" height="4" class="has-fill-secondary"></rect>
<rect x="5" y="2" width="2" height="1" class="has-fill-secondary"></rect>
<rect x="8" y="2" width="2" height="1" class="has-fill-secondary"></rect>
<rect x="11" y="2" width="3" height="1" class="has-fill-secondary"></rect>
<rect x="1" y="1" width="2" height="2" class="has-fill-secondary"></rect>
<rect x="5" y="10" width="7" height="2" rx="0.3" class="has-fill-primary"></rect>
<rect x="19" y="1" width="2" height="2" rx="1" class="has-fill-secondary"></rect>
</svg>
</span>
</span>
<span>Light</span>
</button>
</li>
<li class="theme display-block" role="menuitem">
<button class="button button-clear button-sm theme-control button-block justify-content-flex-start" data-theme-to="dark" aria-pressed="false">
<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>
<rect x="5" y="5" width="12" height="4" class="has-fill-secondary"></rect>
<rect x="5" y="2" width="2" height="1" class="has-fill-secondary"></rect>
<rect x="8" y="2" width="2" height="1" class="has-fill-secondary"></rect>
<rect x="11" y="2" width="3" height="1" class="has-fill-secondary"></rect>
<rect x="1" y="1" width="2" height="2" class="has-fill-secondary"></rect>
<rect x="5" y="10" width="7" height="2" rx="0.3" class="has-fill-primary"></rect>
<rect x="19" y="1" width="2" height="2" rx="1" class="has-fill-secondary"></rect>
</svg>
</span>
</span>
<span>Dark</span>
</button>
</li>
<li class="theme display-block" role="menuitem">
<button class="button button-clear button-sm theme-control button-block justify-content-flex-start" data-theme-to="high-contrast" aria-pressed="false">
<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>
<rect x="5" y="5" width="12" height="4" class="has-fill-secondary"></rect>
<rect x="5" y="2" width="2" height="1" class="has-fill-secondary"></rect>
<rect x="8" y="2" width="2" height="1" class="has-fill-secondary"></rect>
<rect x="11" y="2" width="3" height="1" class="has-fill-secondary"></rect>
<rect x="1" y="1" width="2" height="2" class="has-fill-secondary"></rect>
<rect x="5" y="10" width="7" height="2" rx="0.3" class="has-fill-primary"></rect>
<rect x="19" y="1" width="2" height="2" rx="1" class="has-fill-secondary"></rect>
</svg>
</span>
</span>
<span>High contrast</span>
</button>
</li>
</ul>
</div>
</div>
</div>
</div>
<ul class="links" data-bi-name="footerlinks">
<li class="manage-cookies-holder"><button data-bi-name="manageCookies">Manage cookies</button></li><li><a class="external-link-indicator" data-mscc-ic="false" href="/en-us/previous-versions/" data-bi-name="archivelink">Previous Versions</a></li>
<li><a class="external-link-indicator" data-mscc-ic="false" href="https://techcommunity.microsoft.com/t5/microsoft-learn-blog/bg-p/MicrosoftLearnBlog" data-bi-name="bloglink">Blog</a></li>
<li><a class="external-link-indicator" data-mscc-ic="false" href="/en-us/contribute/" data-bi-name="contributorGuide">Contribute</a></li><li><a class="external-link-indicator" data-mscc-ic="false" href="https://go.microsoft.com/fwlink/?LinkId=521839" data-bi-name="privacy">Privacy</a></li><li><a class="external-link-indicator" data-mscc-ic="false" href="/en-us/legal/termsofuse" data-bi-name="termsofuse">Terms of Use</a></li><li><a class="external-link-indicator" data-mscc-ic="false" href="https://www.microsoft.com/legal/intellectualproperty/Trademarks/" data-bi-name="trademarks">Trademarks</a></li><li>© Microsoft 2024</li>
</ul>
</footer></div></div><div id="ms--additional-resources" class="right-container column is-4-desktop display-none display-block-desktop" data-bi-name="pageactions" role="complementary" aria-label="Additional resources">
<div id="affixed-right-container" class="margin-top-sm-tablet position-sticky" data-bi-name="right-column" style="top: 36px; bottom: 36px;">
<h2 id="ms--additional-resources-heading" class="title is-6 margin-top-md" hidden="">Additional resources</h2>
<section id="right-rail-events" data-bi-name="events-card" hidden=""></section>
<section id="right-rail-training" data-bi-name="learning-resources-card" hidden=""></section>
<section id="right-rail-recommendations" data-bi-name="recommendations" hidden=""></section>
<nav id="side-doc-outline" class="doc-outline" data-bi-name="intopic toc" aria-label="In this article">
<h3>In this article</h3>
</nav>
<section id="right-rail-qna" class="margin-top-xxs" data-bi-name="qna-link-card" hidden=""></section>
</div>
</div></div>
<!--end of div.columns -->
</section>
<!--end of .primary-holder -->
<!-- interactive container -->
<aside id="interactive-container" class="interactive-container is-visible-interactive column has-body-background-dark ">
</aside>
<!-- end of interactive container -->
</div>
</div>
<!--end of .mainContainer -->
<section class="border-top has-default-focus is-hidden-interactive margin-top-sm "><footer id="footer" data-bi-name="footer" class="footer-layout uhf-container has-padding" role="contentinfo"><div class="display-flex gap-xs flex-wrap-wrap is-full-height padding-right-lg-desktop"><a data-mscc-ic="false" class="locale-selector-link button button-sm button-clear flex-shrink-0" href="/en-us/locale?target=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fpowershell%2Fscripting%2Fwhats-new%2Fmigrating-from-windows-powershell-51-to-powershell-7%3Fview%3Dpowershell-7.4" data-bi-name="select-locale" aria-label="Content language selector. Currently set to English (United States).">
<span class="icon" aria-hidden="true">
<span class="docon docon-world"></span>
</span>
<span class="local-selector-link-text">English (United States)</span></a><div class="ccpa-privacy-link" data-ccpa-privacy-link="">
<a href="https://aka.ms/yourcaliforniaprivacychoices" class="button button-sm button-clear flex-shrink-0" data-mscc-ic="false" data-bi-name="your-privacy-choices">
<svg role="img" aria-label="California Consumer Privacy Act (CCPA) Opt-Out Icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 14" xml:space="preserve" height="16" width="43" focusable="false">
<title>California Consumer Privacy Act (CCPA) Opt-Out Icon</title>
<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 class="dropdown-trigger button button-clear button-sm has-inner-focus theme-dropdown-trigger" aria-controls="theme-menu" aria-expanded="false" title="Theme" data-bi-name="theme">
<span class="icon">
<span class="docon docon-sun" aria-hidden="true"></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="theme-menu" role="menu">
<ul class="theme-selector padding-xxs" role="none">
<li class="theme display-block" role="menuitem">
<button class="button button-clear button-sm theme-control button-block justify-content-flex-start is-selected" data-theme-to="light" aria-pressed="true">
<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>
<rect x="5" y="5" width="12" height="4" class="has-fill-secondary"></rect>
<rect x="5" y="2" width="2" height="1" class="has-fill-secondary"></rect>
<rect x="8" y="2" width="2" height="1" class="has-fill-secondary"></rect>
<rect x="11" y="2" width="3" height="1" class="has-fill-secondary"></rect>
<rect x="1" y="1" width="2" height="2" class="has-fill-secondary"></rect>
<rect x="5" y="10" width="7" height="2" rx="0.3" class="has-fill-primary"></rect>
<rect x="19" y="1" width="2" height="2" rx="1" class="has-fill-secondary"></rect>
</svg>
</span>
</span>
<span>Light</span>
</button>
</li>
<li class="theme display-block" role="menuitem">
<button class="button button-clear button-sm theme-control button-block justify-content-flex-start" data-theme-to="dark" aria-pressed="false">
<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>
<rect x="5" y="5" width="12" height="4" class="has-fill-secondary"></rect>
<rect x="5" y="2" width="2" height="1" class="has-fill-secondary"></rect>
<rect x="8" y="2" width="2" height="1" class="has-fill-secondary"></rect>
<rect x="11" y="2" width="3" height="1" class="has-fill-secondary"></rect>
<rect x="1" y="1" width="2" height="2" class="has-fill-secondary"></rect>
<rect x="5" y="10" width="7" height="2" rx="0.3" class="has-fill-primary"></rect>
<rect x="19" y="1" width="2" height="2" rx="1" class="has-fill-secondary"></rect>
</svg>
</span>
</span>
<span>Dark</span>
</button>
</li>
<li class="theme display-block" role="menuitem">
<button class="button button-clear button-sm theme-control button-block justify-content-flex-start" data-theme-to="high-contrast" aria-pressed="false">
<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>
<rect x="5" y="5" width="12" height="4" class="has-fill-secondary"></rect>
<rect x="5" y="2" width="2" height="1" class="has-fill-secondary"></rect>
<rect x="8" y="2" width="2" height="1" class="has-fill-secondary"></rect>
<rect x="11" y="2" width="3" height="1" class="has-fill-secondary"></rect>
<rect x="1" y="1" width="2" height="2" class="has-fill-secondary"></rect>
<rect x="5" y="10" width="7" height="2" rx="0.3" class="has-fill-primary"></rect>
<rect x="19" y="1" width="2" height="2" rx="1" class="has-fill-secondary"></rect>
</svg>
</span>
</span>
<span>High contrast</span>
</button>
</li>
</ul>
</div>
</div>
</div>
</div>
<ul class="links" data-bi-name="footerlinks">
<li class="manage-cookies-holder"><button data-bi-name="manageCookies">Manage cookies</button></li><li><a class="external-link-indicator" data-mscc-ic="false" href="/en-us/previous-versions/" data-bi-name="archivelink">Previous Versions</a></li>
<li><a class="external-link-indicator" data-mscc-ic="false" href="https://techcommunity.microsoft.com/t5/microsoft-learn-blog/bg-p/MicrosoftLearnBlog" data-bi-name="bloglink">Blog</a></li>
<li><a class="external-link-indicator" data-mscc-ic="false" href="/en-us/contribute/" data-bi-name="contributorGuide">Contribute</a></li><li><a class="external-link-indicator" data-mscc-ic="false" href="https://go.microsoft.com/fwlink/?LinkId=521839" data-bi-name="privacy">Privacy</a></li><li><a class="external-link-indicator" data-mscc-ic="false" href="/en-us/legal/termsofuse" data-bi-name="termsofuse">Terms of Use</a></li><li><a class="external-link-indicator" data-mscc-ic="false" href="https://www.microsoft.com/legal/intellectualproperty/Trademarks/" data-bi-name="trademarks">Trademarks</a></li><li>© Microsoft 2024</li>
</ul>
</footer>
</section>
<div id="action-panel" role="region" aria-label="Action Panel" class="action-panel has-default-focus" tabindex="-1"></div>
</body></html>