PowerShell tips This note was created on 3/20/2023 This note was last edited on 3/20/2023 Disable telemetry (pwsh, GNU/Linux): > echo 'export POWERSHELL_TELEMETRY_OPTOUT=1' >> .profile Disable telemetry (Powershell, MS Windows): > notepad $PSHOME\Profile.ps1 Add: ~~~ POWERSHELL_TELEMETRY_OPTOUT=true ~~~ Get and enable execution of PowerShell scripts: > Get-ExecutionPolicy > Set-ExecutionPolicy RemoteSigned # (other options: Restricted, Unrestricted) Get PowerShell version: > $PSVersionTable.PSVersion