Deploys a portable PowerShell package with often used modules. When updates are released, launching PSPortable will present a changelog and prompt to use update-console to update if desired.
- Skip if this is a server environment since oh-my-posh will not be used
- Run from an admin pwsh prompt and not PowerShell
try{
Remove-Item $env:POSH_PATH -Force -Recurse
Uninstall-Module oh-my-posh -AllVersions
} catch { }
winget install JanDeDobbeleer.OhMyPosh -s winget- Open an admin PowerShell prompt
- Run this script in PowerShell
- Install Nerd Font, Git, and sign into Git account
Install-Font
Install-chocolatey
choco install git
git config --global user.name "account"
git config --global user.email "email@site.com"- Terminal settings should be configured to your preference, Example Settings
- Nerd Font must be specified in the PSPortable or PSPortableLight profile.
- If installing a module is blocked when running as administrator with the reason the command was not run as an administrator, first run this function to add a windows defender path exception.
Add-MpPreference -ControlledFolderAccessAllowedApplications 'C:\ProgramData\PS7x64\PS7-x64\pwsh.exe'