Windows 10 win32net.NetUserGetLocalGroups error

Found a bug in EventGhost? Report it here.
Post Reply
eatmeimadanish
Experienced User
Posts: 118
Joined: Thu Oct 01, 2009 5:11 pm

Windows 10 win32net.NetUserGetLocalGroups error

Post by eatmeimadanish » Thu Jun 27, 2019 7:03 pm

The code in User.py generates an error on my system that blocks eventghost from working.

the code should be replaced to resolve this bug:

Code: Select all

def Groups(user_name=Name(), server=None):
    """
    Retrieves direct and indirect group name the username is a member of for a 
    specific computer/server. If no parameters are passed it will default to 
    the current user and the local computer.
    
    :type user_name: str
    :type server: str
    :rtype: list
    """
    try:
        return win32net.NetUserGetLocalGroups(server, user_name)
    except:
        return []

User avatar
kgschlosser
Site Admin
Posts: 4652
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Windows 10 win32net.NetUserGetLocalGroups error

Post by kgschlosser » Wed Jul 03, 2019 3:18 pm

we are aware of the problem and it is being worked on.
If you like the work I have been doing then feel free to Image

Post Reply