Users

P

python1

Do you know of a way to list the users on a Win2K machine? I can't seem
to find a module for this.

Thanks.
 
P

Peter Hansen

python1 said:
Do you know of a way to list the users on a Win2K machine? I can't seem
to find a module for this.

As a starting point, I played a moment and found this:
['NetFileClose', 'NetFileEnum', 'NetFileGetInfo', ...
'NetUserEnum', 'NetUserGetGroups', 'NetUserGetInfo', ...]Traceback (most recent call last):
Traceback (most recent call last):
([{'name': u'Administrator'}, {'name': u'ASPNET'}, {'name': u'Elinor'},
{'name':
u'Guest'}, {'name': u'HelpAssistant'}, {'name': u'Peter'}, {'name':
u'postgres'
}, {'name': u'SUPPORT_388945a0'}], 8, 0)

Searching Google for NetUserEnum would probably be a good
next step. Note that you will need pywin32 (formerly the
win32all) package installed to get win32net.

-Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,213
Messages
2,571,108
Members
47,701
Latest member
LeoraRober

Latest Threads

Top