• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Unused windows accounts

Bud Guy

Senior member
What do you use to find unused windows computer and user accounts in active directory?

I've found a program called Unused Account Ferret that allows you to define variables for your search, like when the last logon was for users or computers. The program works great, but I'm looking for a free way to do this.

Any ideas?
 
Right on man! Exactally what I was looking for! This is what makes AT so nice!

Now, since you seem to be in the know about dsquery and dsget, how would I combine the two to do these two things at once...

1: show the users of a specified group.. say "accounting"
And
2: pull the users email addy's.

The domian would be temp.cary.im.com

Thanks man!
 
ok, I think I've got it working to an extent.

C:\>dsget group CN=Accounting,OU=Finance,DC=temp,DC=cary,DC=im,DC=com -members -expand | dsget user -email

This gets me exactally what I want, but I've run into another issue. I get errors when I try to burrow into nested OU's.

Example:
C:\>dsget group "CN=Accounting,OU=Finance,OU=Finance Managers,DC=temp,DC=cary,DC=im,DC=com" -members -expand | dsget user -email

The OU structure is a top level of Finance, then Finance Managers, then the group name of Accounting.

I'm sure that I've done something, simple very wrong.

Does this make sense?
 
You have your LDAP syntax slightly backward. If Finance is the parent, and Finance Managers is the child OU, it should be:

"CN=Accounting,OU=Finance Managers,OU=Finance,dc=....."
 
YOU ARE THE MAN!

I can't tell you how many ways I screwed up the syntax. I must have gotten every possible combination of syntax errors before you set me straight!

I owe you a beer!
Thanks,
Shane
 
Back
Top