Skip to content

Instantly share code, notes, and snippets.

Created January 2, 2013 16:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/4435871 to your computer and use it in GitHub Desktop.
Save anonymous/4435871 to your computer and use it in GitHub Desktop.
Install and configure the salt-minion service with nssm
Write-Host "Configuring salt-minion service"
c:\salt\nssm.exe install salt-minion c:\salt\salt-minion.exe -c c:\salt\etc\salt -l quiet
Set-Service -name "salt-minion" `
-displayName "Salt Minion" `
-StartupType Automatic `
-Description "Provides secure orchestration and centralized management"
New-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\services\salt-minion `
-Name "DependOnService" `
-PropertyType MultiString `
-force `
-Value "nsi" | Out-Null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment