Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Script To Enlist All "Built-In" User Accounts in the Domain

$
0
0

Hi There,

I am looking for a script that will enumerate/list all built-in user-accounts in the domain -- not other user accounts.
LDAP Filter: "(sAMAccountType=805306368)" gives all User-Accounts, including built-in user accounts. But I am looking for a script that will give, as output, the list of all "Built-In" user accounts only.
I have also tried the LDAP Filter -- "(objectCategory=builtinDomain)" --- This only gives the Built-In container. But it does not give the list of all "built-In" user accounts. By default the "Built-In" container contains Built-In Groups.
For example: in a domain there are a list of built-in user accounts like "krbtgt", "guest" etc. These accounts may be enabled or disabled -- doesn't matter.

I am looking for a script that will enlist all these "built-in" user-accounts only.

Please help me by give me the code snippet or by pointing me to a script.

Thank you

Monimoy Sanyal


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>