This is a really quick hit-and-run but I wanted to make sure to post this as I had a devil of a time combing around the internet trying to figure out a PowerShell 'one-liner' to deploy Salt minion on Windows that didn't reference a static binary and utilized the Salt project bootstrapper... but also set the correct
ExecutionPolicy in the namespace.
This assumes a flat install of Windows where a
c:\temp directory has not yet been created.
Set-ExecutionPolicy Bypass -Scope Process -Force; mkdir c:\temp\; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; (New-Object Net.WebClient).DownloadFile('https://winbootstrap.saltproject.io', 'c:\temp\bootstrap-salt.ps1'); c:\temp\bootstrap-salt.ps1 -minion win10_dev -master salt-dev
I know this is really super simple, but I hope it is useful to somebody someday as I have found very few resources for anything about Saltstack on Windows; the project documentation itself is pretty painful.
There's nothing I hate more than tech blogs having code snippets that don't work months or years later, so please leave a comment below if you experience either success or difficulty!