Scripts I use daily, some authored, some borrowed from respective authors by their permission or by them sharing scripts publically.
Scripts are built in different folders, and are called from the root folder:
- Azure - scripts to help with Azure tasks (you will need to have Azure Module installed)
- Codez - scripts to be used for coding assistance
- Random - random scripts to get weather info, to help with other tasks
- System - scripts to help with system administration like reading and setting env files, getting installed software, etc.
- RSS - scripts to help with RSS feeds - read rss feeds, get latest news, etc.
To run the scripts you will need to have PowerShell installed on your machine. You can download it from here. I recommmend using Windows Terminal and PowerToys.
If you want for example run Read-RssFeed.ps1, you would write Read-Rss.ps1 in your terminal:
Read-Rss.ps1
PowerShell doesn't know where this script is located and you will get this error:
To fix this, you need to add the root folder to your system path. You can do this manually, but I have a script for that. You can find it here. You can run it from the root folder, or from any other folder. It will add the root folder and all sub-folders to your system path.
Add-DirToSystemEnv.ps1 -RestartCurrentSession
The result is the following:
$powershell-docs = Start-Process "https://go.azuredemos.net/docs-pwsh-home"
$powershell-github = Start-Process "https://github.com/PowerShell/PowerShell.git"
$windows-terminal = Start-Process "https://go.azuredemos.net/docs-terminal-home"
$windows-terminal-github-page = Start-Process "https://github.com/microsoft/terminal.git"
$powershell-module-considerations = Start-Process "https://learn.microsoft.com/en-us/powershell/scripting/dev-cross-plat/performance/module-authoring-considerations?view=powershell-7.3"
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.
When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.