Using the PowerShell 7 console
With PowerShell 7, the name of the PowerShell executable is now pwsh.exe
, as you saw in the previous recipe. After installing PowerShell 7 in Windows, you can start the PowerShell 7 console by clicking Start and typing pwsh.exe
, then hitting Return. The PowerShell MSI installer does not create a Start panel or taskbar shortcut.
Getting ready
You run this recipe on SRV1
after you have installed PowerShell 7.
How to do it...
- Running the PowerShell 7 console
From the Windows desktop in
SRV1
, click on the Windows key, then typepwsh
, followed by the Enter key. - Viewing the PowerShell version
$PSVersionTable
- Viewing theÂ
$Host
 variable$Host
- Looking at the PowerShell process
Get-Process -Id $Pid |   Format-Custom MainModule -Depth 1
- Looking at...