Skip to content

TheTaylorLee/PSPortable

Repository files navigation

PSPortable

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.

Install Oh-MyPosh (Optional)

  • 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

Install PSPortable Full or Light

  • Open an admin PowerShell prompt
  • Run this script in PowerShell

Using PSPortable or PSPortableLight in Terminal (Optional)

  • 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.

Troubleshooting

  • 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'

About

Customized PowerShell environment packaged into a deployable portable package.

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Languages