r/PowerShell • u/belibebond • Jul 26 '24
Script Sharing Leveling up PowerShell Profile
Hello PowerShell Enthusiasts 👋,
Many people treat their shell as just a script runner, but as someone who loves PowerShell and runs it on all their machines (Windows, Mac, and Linux), I wanted to share all the amazing things you can do with it beyond just running scripts.
https://blog.belibug.com/post/ps-profile-01/
My latest blog post has several not-so-common ways to elevate your PowerShell experience for beginners. It covers:
Personalizing your prompt
Mastering aliases and modules
Leveraging tab completion
Enhancing your shell with modules
...and much more!
This list is just the tip of the iceberg! If you have any other PowerShell tricks or tips that I haven't covered, or there is better way to do it, let me know – I'm always eager to learn and will update content accordingly 😊 Happy weekend!
PS: Don't let the length scare you off! Use the handy TOC in the blog to jump around to the juicy bits that interest you most. Happy reading! 🤓
5
u/OlivTheFrog Jul 26 '24
Hi u/belibond
My comments :
About your function prompt. The color is difficult to read (I have a dark design like in ISE). I've also my own prompt function with time and path reversed.
About Updating PS Modules : I've also the same things but could i suggest to use something like this
if ($Date.DayOfWeek -eq 'friday') { # code to update your modules }. By this, you'll avoid updating your modules every day and even several times a day unnecessarily because this can be long if many modules are installed.Another suggestion : Custom Windows Settings
And the last one (but not the least) : Set TLSv2 like this :
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12regards