r/PowerShell • • Apr 06 '21

Optimizing your $Profile

https://devblogs.microsoft.com/powershell/optimizing-your-profile/
119 Upvotes

24 comments sorted by

View all comments

36

u/da_chicken Apr 06 '21
Set-Content $Profile -Value $null

Profile optimized.

2

u/motsanciens Apr 07 '21
[System.IO.File]::WriteAllLines($Profile, "")  

Optimized profile optimization
;)