Exploring PowerShell 7 installation artifacts
In PowerShell 7, certain objects added by the PowerShell 7 installer (and PowerShell 7) differ from those used by Windows PowerShell.
Getting ready
This recipe uses SRV1
after you have installed PowerShell 7. In this recipe, you use the PowerShell 7 console to run the steps.
How to do it...
- Checking the version table for the PowerShell 7 console
$PSVersionTable
- Examining the PowerShell 7 installation folder
Get-Childitem -Path $env:ProgramFiles\PowerShell\7 -Recurse | Measure-Object -Property Length -Sum
- Viewing the PowerShell 7 configuration JSON file
Get-ChildItem -Path $env:ProgramFiles\PowerShell\7\powershell*.json | Get-Content
- Checking the initial Execution Policy for PowerShell 7
Get-ExecutionPolicy
...