I just uploaded a few of my PowerShell samples to GitHub at https://github.com/Jose-Barreto/PowerShell. Many were mentioned in previous blog posts:
- PowerShell Examples: Calculating the value of Pi
- PowerShell Examples: Calculating Prime Numbers
- PowerShell Examples: Generating Random Names
- PowerShell Examples: Counting words in a text file
- PowerShell Examples – Random words and their popularity via Bing
- PowerShell Examples: Using Bing to measure the popularity of cmdlets in a specific PowerShell module
- Using PowerShell and Excel PivotTables to understand the files on your disk
- Splitting logs with PowerShell
- Using PowerShell to generate a large test CSV file with random data
- PowerShell script organizes pictures in your OneDrive camera roll folder
- PowerShell for finding the size of your local OneDrive folder
- PowerShell script to check my backup by comparing file hashes
- PowerShell Examples: Adventure House Game
But not every file in that GitHub repo is documented in a blog post. Some are just some small tests and samples:
- An anagram builder – Given a word, finds anagrams for it
- Finding numbers – Finds the smallest and largest numbers
- Your age – Does some date math to find the day of the week you were born
- Counting words – Reads words from a sample text and finds the most popular ones
- TCP List – Lists remote connections, including the process name and remote host
I’ve been using PowerShell since the early days when it was still called Monad and I have a very old blog post to prove it: Monad is now PowerShell, goes RC1. It grew up to be the go-to scripting language for Windows and I have lots of fun trying to use as a general-purpose language…