question

VIETDANG-2485 avatar image
0 Votes"
VIETDANG-2485 asked RichMatheisen-8856 answered

Search and export all Logon Names in an entire Forest

Hi All,

I would like to extract all logon names for all our users globally in all Forests.
Found some PS scripts here but they do not give me the results I need
Alot of sAMAccountNames tied to user accounts are missing,

TKIA

windows-server-powershellwindows-active-directory
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

RichMatheisen-8856 avatar image
0 Votes"
RichMatheisen-8856 answered

Assuming you can access the other forests, you'll have to use a Global Catalog server in each forest to get that information. Or you can query a Domain Controller in each domain of each forest.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.