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

34

u/Thotaz Apr 06 '21

I wish PS was faster to start in general. Even without any profiles the first launch after a fresh boot is pretty slow regardless of how fast your PC is. On slower/busier PCs it can easily take several seconds and it makes me pick cmd over PS for simple tasks like viewing the IP address or launching a program from a folder with special arguments.

-5

u/Where_Do_I_Fit_In Apr 07 '21

The starting speed of PowerShell and cmd side by side is pretty noticable (especially with a powerful PC). I don't really see a compelling reason to start PowerShell other than using cmdlets/scripting. cmd does the job and starts faster.

7

u/da_chicken Apr 07 '21

You just start Powershell and leave it open. You should close it when you need to reset the environment. If you don't know when you need to do that, you probably don't need to close it at all.

Besides, once you get used to Windows Terminal, you just don't think about opening a new tab.

2

u/elevul Apr 07 '21

Eh, no windows terminal on servers

1

u/[deleted] Apr 07 '21

[removed] — view removed comment

0

u/jantari Apr 07 '21

That's a preview release only currently. Also not sure whether it will work on Server Core or just Desktop. If it requires the desktop then it's useless

1

u/Thotaz Apr 07 '21

There's no way it'll support core. Core doesn't have all of the modern UWP/XAML components that it uses.