Heya,
Thankfully quite a simple setup (I only really use powershell to SSH into machines I don't normally SSH into).
Opening via Windows terminal which is pointing to: %SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe
Profile is on an NVME drive in my user directory:
PS C:\Users\Alex> $PROFILE
C:\Users\Alex\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1
I'm measuring speed via the command:
measure-script -Path $PROFILE
Which is available by installing PSProfiler (obvious how to do this, but gonna run through all the steps regardless):
Install-Module -Name PSProfiler
---
With PUP disabled:
PS C:\Users\Alex> measure-script -Path $PROFILE
C:\Users\Alex\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1
Count Line Time Taken Statement
----- ---- ---------- ---------
1 1 00:00.0360372 ssh-manager completion powershell | out-string | invoke-expression
0 2 00:00.0000000 # chocolatey profile
1 3 00:00.0000624 $chocolateyprofile = "$env:chocolateyinstall\helpers\chocolateyprofile.psm1"
0 4 00:00.0000000 if (test-path($chocolateyprofile)) {
1 5 00:00.0001841 import-module "$chocolateyprofile"
0 6 00:00.0000000 }
0 7 00:00.0000000