Insert this one liner into your PowerShell profile script to get a random about entry from the help system each day when you open your console. First find your profile.ps1 file and open it. You can simply use the built in $PROFILE variable to find the file.
Or you can go straight to opening it by typing "notepad $profile" and pressing enter.
Then add this line to the script:
get-random (get-help "about_*") | help
save the file, exit notepad, then open a new PowerShell console.
You should be presented with a random about file describing a topic in PowerShell. If you close PowerShell and open it everytime you run commands instead of leaving it open, it can get old real quick. However, for learning the mechanics this is a great tool. To stop it, go through the same process and remove that line from your profile.ps1 script.
Then add this line to the script:
get-random (get-help "about_*") | help
save the file, exit notepad, then open a new PowerShell console.
You should be presented with a random about file describing a topic in PowerShell. If you close PowerShell and open it everytime you run commands instead of leaving it open, it can get old real quick. However, for learning the mechanics this is a great tool. To stop it, go through the same process and remove that line from your profile.ps1 script.
RSS Feed