def set_computer_name(name):
 cmd = 'systemsetup -setcomputername "{0}"'.format(name)
 salt.utils.mac_utils.execute_return_success(cmd)
 return salt.utils.mac_utils.confirm_updated(name, get_computer_name)

def set_computer_name ( name ) : cmd = 'systemsetup -setcomputername "{0}"' . format ( name ) salt . utils . mac_utils . execute_return_success ( cmd ) return salt . utils . mac_utils . confirm_updated ( name , get_computer_name )
set the windows computer name .