Skip to content

JoshTheSysEngineer/Powershell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

PowerShell Setup

My workflow for configuring my PowerShell environment.

Application Installs

  1. Windows Terminal (admin & user accounts)
  2. WinGet
$progressPreference = 'silentlyContinue'
Write-Information "Downloading WinGet and its dependencies..."
Invoke-WebRequest -Uri https://aka.ms/getwinget -OutFile Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle
Invoke-WebRequest -Uri https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx -OutFile Microsoft.VCLibs.x64.14.00.Desktop.appx
Invoke-WebRequest -Uri https://github.com/microsoft/microsoft-ui-xaml/releases/download/v2.8.6/Microsoft.UI.Xaml.2.8.x64.appx -OutFile Microsoft.UI.Xaml.2.8.x64.appx
Add-AppxPackage Microsoft.VCLibs.x64.14.00.Desktop.appx
Add-AppxPackage Microsoft.UI.Xaml.2.8.x64.appx
Add-AppxPackage Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle
  1. PowerShell 7 (admin & user accounts)
  2. Oh-My-Posh (admin & user accounts)
Set-ExecutionPolicy Bypass -Scope Process -Force; Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://ohmyposh.dev/install.ps1'))
  1. SysInternals
  2. VS Code
  3. PowerToys
  4. RSAT

Configurations

  1. Create C:\HOME directory
  2. Download and install FieraNerdFont
  3. Configure PowerShell Profile 3.1 notepad $profile; if not present New-Item -Path $profile -Type File -Force
$env:Path += ";C:\Users\user\AppData\Local\Programs\oh-my-posh\bin;C:\HOME\sysinternals"
oh-my-posh init pwsh --config "C:\Users\$($env:username)\AppData\Local\Programs\oh-my-posh\themes\catppuccin_macchiato.omp.json" | Invoke-Expression
Set-Location c:\home

function home {cls && pushd "c:\home"}
function profile {notepad $PROFILE && $PROFILE}
  1. Copy SysInternals to C:\HOME
  2. Add HOME as C:\HOME in System Environment Variables
  3. Configure PowerShell Terminal to use FieraNerdFont
  4. Download syntax files for Nano
  5. Copy syntax files to C:\Program Files\Git\usr\share\nano
  6. Create Symbolix links to useful folders under C:\home
New-Item -ItemType Directory -Path c:\pwsh
New-Item -ItemType SymbolicLink -Target c:\pwsh -Path c:\home\pwsh
New-Item -ItemType Directory -Path c:\pwsh
New-Item -ItemType SymbolicLink -Target c:\git -Path c:\home\git
  1. Install RSAT
Get-WindowsCapability -Name RSAT* -Online | Add-WindowsCapability -Online
  1. Configure Termianl as default console & automatically launch PowerShell 7

PowerShell Modules

  1. PSReadLine
  2. PSWriteHTML
  3. GPOZaurr

About

Powershell snippets created in my personal time for fun

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published