win32net.NetGroupDelUser

Here are the examples of the python api win32net.NetGroupDelUser taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

2 Examples 7

Example 1

Project: winsys
Source File: accounts.py
View license
    def remove(self, member):
        """Remove a :class:`Principal` from this local group. The
        principal must already be a member of the group.

        :param member: anything accepted by :func:`principal`
        :returns: :class:`Principal` for `member`
        """
        member = principal(member)
        wrapped(win32net.NetGroupDelUser, self.system, self.name, r"%s\%s" % (member.domain, member.name))
        return member

Example 2

Project: WAPT
Source File: accounts.py
View license
    def remove(self, member):
        """Remove a :class:`Principal` from this local group. The
        principal must already be a member of the group.

        :param member: anything accepted by :func:`principal`
        :returns: :class:`Principal` for `member`
        """
        member = principal(member)
        wrapped(win32net.NetGroupDelUser, self.system, self.name, r"%s\%s" % (member.domain, member.name))
        return member