PowerShell function Update-Registry
I’m retooling my process for building Windows reference images and tweaking existing OS deployments. I was annoyed at needing extra handling for New-ItemProperty since it won’t automatically create a New-Item if the path doesn’t exist.
In the spirit of making everything modular, I created a simple function that combines the two. And because it’s me, I added way too many notes and other things. But, it’s a copy/paste to add this to my other scripts, so I’d say it’s worth it. Function is below.