Manage groups on Windows
salt.modules.win_groupadd.
add
(name, gid=None, system=False)¶Add the specified group
CLI 范例:
salt '*' group.add foo
salt.modules.win_groupadd.
adduser
(name, username)¶add a user to a group
CLI 范例:
salt '*' group.adduser foo username
salt.modules.win_groupadd.
delete
(name)¶Remove the named group
CLI 范例:
salt '*' group.delete foo
salt.modules.win_groupadd.
deluser
(name, username)¶remove a user from a group
CLI 范例:
salt '*' group.deluser foo username
salt.modules.win_groupadd.
getent
(refresh=False)¶Return info on all groups
CLI 范例:
salt '*' group.getent
salt.modules.win_groupadd.
info
(name)¶Return information about a group
CLI 范例:
salt '*' group.info foo
salt.modules.win_groupadd.
members
(name, members_list)¶remove a user from a group
CLI 范例:
salt '*' group.members foo 'user1,user2,user3'