https://github.com/jdhitsolutions/spiceworld2021
Materials from my Spice World 2021 presentation on PowerShell Scripting Patterns and Practices
https://github.com/jdhitsolutions/spiceworld2021
powershell powershell-script spiceworks
Last synced: 10 months ago
JSON representation
Materials from my Spice World 2021 presentation on PowerShell Scripting Patterns and Practices
- Host: GitHub
- URL: https://github.com/jdhitsolutions/spiceworld2021
- Owner: jdhitsolutions
- License: other
- Created: 2021-08-04T11:57:46.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-02-12T14:27:08.000Z (about 2 years ago)
- Last Synced: 2025-04-06T07:52:59.000Z (10 months ago)
- Topics: powershell, powershell-script, spiceworks
- Language: PowerShell
- Homepage:
- Size: 84.1 MB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: License.txt
Awesome Lists containing this project
README
# PowerShell Scripting Patterns and Practices

PowerShell is all about automation. It doesn't matter if you want to automate the provisioning of a new Microsoft 365 account, create a Hyper-V virtual machine, or get system information. You will need to script and you will want to do it the right way. This repository contains material from my [SpiceWorld 2021](https://www.spiceworks.com/spiceworld/) presentation.
The PowerShell script files contain demonstration code. These *are not* files to execute. Open the files in your scripting editor (presumably [VS Code](https://code.visualstudio.com/)) and review. Many of the files contain examples of poor PowerShell scripting followed by suggested improved versions. Hopefully, you can use these "better" versions as models for your own work.
## Bonus Content
The bonus zip file contains a video file. It is content I recorded but was unable to fit into the final conference session due to time constraints. The PDF version of my slides reflects what I recorded not necessarily the final conference recording.
Because of the size of the file, it is not stored as part of the GitHub repository. If you download a zip file of the repository using the code button above, the bonus zip file won't be properly included. You'll most likely get an error about a corrupt fil when you try to open it. Instead, select the `PSScripting-Patterns-Practics-Bonus.zip` file from the listing in this repository and download from Git LFS.
> All of the material in this repository is offered freely for __educational__ purposes only. Nothing should be considered production-ready.
## :book: Learn More :mortar_board:
In addition to the well-known [_Learn PowerShell in a Month of Lunches_](https://www.manning.com/books/learn-windows-powershell-in-a-month-of-lunches-third-edition?a_aid=jdhit&a_bid=2326a8ab) book, you can find my other work on Leanpub.
| | |
|---|---|
 | [_The PowerShell Practice Primer_](https://leanpub.com/psprimer) isn't a book to teach your PowerShell, but rather to re-inforce what you already know through 100+ console-based exercises. No scripting is required. Updated with PowerShell 7.x content.
 | If you have read [_Learn PowerShell Scripting in a Month of Lunches_](https://www.manning.com/books/learn-powershell-scripting-in-a-month-of-lunches?a_aid=jdhit&a_bid=2326a8ab), then you are ready for the next step. Don Jones and I wrote [_The PowerShell Scripting and Toolmaking Book_](https://leanpub.com/powershell-scripting-toolmaking/) intending it to be the definitive guide on everything you need to know to be a better PowerShell scripter and toolmaker.
 | I have been creating video training courses for over ten years. I have a large course catalog at [Pluralsight](https://pluralsight.pxf.io/qbR6n), with an emphasis on PowerShell-related content. If you are just getting started with PowerShell 7, [I got you covered](https://pluralsight.pxf.io/Lbvya) there as well.
-----