Wilson WindowWare Tech Support

WinBatch WinBatch+Compiler WebBatch
Home | Tech Database | Tech BBS | White Papers | Purchase


How to Retrieve a List of all Computer Accounts
in a given NT Domain

Keywords:   wntMemberList 

Question:

I need a method to retrieve a list of all computer accounts in a given NT domain. I'm running NT 4.0 for both workstation and server. The list I want is the same one that appears in server manager when All is selected from the view menu. I need some way to retrieve this list so it can be processed in batch.

Answer:

The wntUserList would probably do this for you. It's in the Win32 Network Extender.hlp file.

Maybe something like...

wntUserList(wntGetDc(server-name, domain-name, 1),16)

Article ID:   W13552
Filename:   Retrieve a List of Computer Accounts on NT Domain.txt