[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Get all Users Ntlogins which are enabled from all Ou's in the Domain.

Posted on 2010-01-05
6
Medium Priority
?
178 Views
Last Modified: 2012-05-08
Hi,

Get all Users Ntlogins which are enabled from all Ou's in the Domain.
I want all account with Mailbox or Without but all enabled ones. from the current domain.

REgards
Sharath
0
Comment
Question by:bsharath
  • 3
  • 3
6 Comments
 
LVL 57

Accepted Solution

by:
Mike Kline earned 2000 total points
ID: 26188075
I like using a great tool called adfind by Joe Richards
http://www.joeware.net/freetools/tools/adfind/index.htm</P>adfind -default -bit -f  "&(objectcategory=person)(objectclass=user)(!userAccountControl:AND:=2)" samaccountname displayname -csv > c:\EnabledUsers.csv
That will give you a csv file on your C drive with all enabled users.
Thanks
Mike

0
 
LVL 11

Author Comment

by:bsharath
ID: 26188084
Thanks but get this in the log

"dn","samaccountname","displayname"
0
 
LVL 57

Expert Comment

by:Mike Kline
ID: 26188090
well I only outputted those attributes in my example, what other attributes are you looking for.
When you open that in excel it should list the users too.
Thanks
Mike
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 11

Author Comment

by:bsharath
ID: 26188100
I dont get the data but just the attibutes. No real data is found but just the headers
is there anything i need to change in the line?
0
 
LVL 57

Expert Comment

by:Mike Kline
ID: 26188152
Can you check that you typed the command in right.
I did a quick test in my lab (just outputted samaccountname for my test)
Thanks
Mike
 

adfind-enabled-users.jpg
0
 
LVL 11

Author Comment

by:bsharath
ID: 26188217
Thank u works perfect... The spaces were converted to special characters. When removed was fine...
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Microsoft Office 365 is a subscriptions based service which includes services like Exchange Online and Skype for business Online. These services integrate with Microsoft's online version of Active Directory called Azure Active Directory.
How to deal with a specific error when using the Enable-RemoteMailbox cmdlet to create a mailbox in the cloud-based service, for an existing user in an on-premises Active Directory.
The viewer will learn how to count occurrences of each item in an array.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Suggested Courses
Course of the Month19 days, 16 hours left to enroll

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question