WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Microsoft Client
plus
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

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
File Created: 2001:01:23:12:47:52
Last Updated: 2001:01:23:12:47:52