Support for reboot, shutdown, etc
Get the Windows computer description
CLI Example:
salt 'minion-id' system.get_computer_desc
Get the Windows computer name
CLI Example:
salt 'minion-id' system.get_computer_name
Get a pending computer name. If the computer name has been changed, and the change is pending a system reboot, this function will return the pending computer name. Otherwise, None will be returned. If there was an error retrieving the pending computer name, False will be returned, and an error message will be logged to the minion log.
CLI Example:
salt 'minion-id' system.get_pending_computer_name
Get the Windows system date
CLI Example:
salt '*' system.get_system_date
Get the Windows system time
CLI Example:
salt '*' system.get_system_time
Halt a running system
CLI Example:
salt '*' system.halt
Change the system runlevel on sysV compatible systems
CLI Example:
salt '*' system.init 3
Join a computer the an Active Directory domain
CLI Example:
salt 'minion-id' system.join_domain 'mydomain.local' 'myusername' 'mysecretpasswd' 'OU=MyClients;OU=MyOrg;DC=myDom;DC=local'
Poweroff a running system
CLI Example:
salt '*' system.poweroff
Reboot the system
CLI Example:
salt '*' system.reboot
Set the Windows computer description
CLI Example:
salt 'minion-id' system.set_computer_desc 'This computer belongs to Dave!'
Set the Windows computer name
CLI Example:
salt 'minion-id' system.set_computer_name 'DavesComputer'
Set the Windows system date. Use <mm-dd-yy> format for the date.
CLI Example:
salt '*' system.set_system_date '03-28-13'
Set the Windows system time
CLI Example:
salt '*' system.set_system_time '11:31:15 AM'
Shutdown a running system
CLI Example:
salt '*' system.shutdown
Shutdown a running system with no timeout or warning
CLI Example:
salt '*' system.shutdown_hard
Start the Windows time service
CLI Example:
salt '*' system.start_time_service
Stop the Windows time service
CLI Example:
salt '*' system.stop_time_service
Current Salt release: 2014.1.6
Docs for previous releases on salt.rtfd.org.