PowerShell
PowerShell in Modulen (ad-hoc Kommandos) und States verwenden
Module
salt '*' cmd.run 'powershell -Command "Get-Date"'
salt '*' cmd.run 'Get-Date' shell=powershell
salt '*' cmd.powershell 'Get-Date'
salt '*' cmd.run '$(Get-ComputerInfo).CsModel' shell=powershell
State
Mehrzeilige PowerShell Script in States
Last updated