Manage Windows users with the net user command
NOTE: This currently only works with local user accounts, not domain accounts
Add a user to the minion
CLI Example:
salt '*' user.add name password
Add user to a group
CLI Example:
salt '*' user.addgroup username groupname
Change the full name of the user
CLI Example:
salt '*' user.chfullname user 'First Last'
Change the groups this user belongs to, add append to append the specified groups
CLI Example:
salt '*' user.chgroups foo wheel,root True
Change the home directory of the user
CLI Example:
salt '*' user.chhome foo \\fileserver\home\foo
Change the profile directory of the user
CLI Example:
salt '*' user.chprofile foo \\fileserver\profiles\foo
Remove a user from the minion NOTE: purge and force have not been implemented on Windows yet
CLI Example:
salt '*' user.delete name
Return the list of all info for all users
CLI Example:
salt '*' user.getent
Return user information
CLI Example:
salt '*' user.info root
Return a list of groups the named user belongs to
CLI Example:
salt '*' user.list_groups foo
Remove user from a group
CLI Example:
salt '*' user.removegroup username groupname
Set a user's password
CLI Example:
salt '*' user.setpassword name password