PowerShell 7 Tutorial 1: How to install Windows PowerShell 7 on Windows 11 / Windows Server 2022

Опубликовано: 09 Октябрь 2024
на канале: NetITGeeks
7,452
77

How to install latest version of Windows PowerShell - Quick reference tutorial on how you can install the latest version of Windows PowerShell on your Windows 11 machine. Windows PowerShell playlist:    • PowerShell 7 Tutorials - Beginners  

PowerShell commands:
iex "& { $(irm https://aka.ms/install-powershell.ps1) } -UseMSI"
-Daily
Install from the daily build
-Preview
Install the latest preview version
-Quite
Install from MSI file without prompts
-DoNotOverwite
If there is a destination folder already exists, it will not overwrite
-AddtoPath
Allow you to set environment paths

Example of muti-switch command:
iex "& { $(irm https://aka.ms/install-powershell.ps1) } -UseMSI -Preview"

PowerShell version check:
$psversiontable.psversion

Remember:
pwsh = powershell 7

PS download: https://learn.microsoft.com/en-us/pow...
Weblink: https://sanuja.com/blog/introduction-...

Please note, in order to install PowerShell 7 on Windows Server 2022, you must use the .MSI file as of January 2023.

This demonstration uses Windows 11 Enterprise. But the PowerShell commands and steps taken here to install the latest version of PowerShell program should work on all versions of Windows 10, Windows Server 2012 through 2022.

-Windows PowerShell playlist:
   • PowerShell 7 Tutorials - Beginners  
-Windows Server Admin playlist:
   • Windows Server Administration  
-Microsoft Windows playlist:
   • Microsoft Windows  

Chapters:
0:00 - Installing with a command
3:22 - Installing using an MSI file
4:32 - Installation process
7:41 - Launch PowerShell

Track: WhileART Sessions Episode 02 | Waramathi (වරමාතී) Fusion
Watch:    • WhileART Sessions Episode 02 | Warama...  

https://sanuja.com

Co-producer:
Manuja Senanayake

#PowerShell #PS #powershellscripting