This GitHub repo contains assorted PowerShell code examples published in Jupyter/Polyglot Notebook files.
The basis of this was heavily inspired by the MMS presentation materials by Scott Corio (@scottcorio) and Nathan Ziehnert (@theznerd).
That led me down a rabbit for hours, days, weeks, exploring how different approaches to a given task could vary widely with regards to performance.
Please help support MMS MOA, as well as Scott Corrio and Nathan Ziehnert, and user groups like:
- Research Triangle PowerShell User Group (RTPSUG)
- Denver Modern Endpoint Management User Group (Denver MEMUG)
- PowerShell.org
- Matthew Dowst - Book - Newsletter
These geniuses have helped me many many times! I'm sure they'll be helpful to you as well.
- Install Visual Studio Code
- Install the Visual Studio Code extensions:
- PowerShell (or PowerShell Preview)
- .NET Interactive Notebooks (requires the .NET 6 SDK also)
- Run each code block in order from top to bottom (gradually, compare output times)
- Run each code block at least 3 times, to get an average time
- Try modifying the examples to see how it affects execution time
- Share feedback here using the "Issues" link above
Enjoy!