You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$requiredEdition = 'Core' # Windows PowerShell is unsupported
if ($PSVersionTable.PSEdition -ne $requiredEdition) {
$PSVersionTable.Keys | ForEach-Object {
Write-Host " $_`: $($PSVersionTable[$_])"
}
Write-Host "`nThis PowerShell edition ($($PSVersionTable.PSEdition)) is unsupported. You must install PowerShell Core by following the instructions at $powerShellInstallLink.`n"
Exit 2
}
# The Core PSEdition includes the SemanticVersion type, which is unavailable on Windows PowerShell
if ($PSVersionTable.PSVersion -lt $minimumVersion) {
Write-Host "This version of PowerShell ($($PSVersionTable.PSVersion)) is too old (the minimum version is $minimumVersion). Install a newer version by following the instructions at $powerShellInstallLink.`n"