I've been trying to locate / write a script that displays all NON disabled accounts in an active directory group.
The closest I've come to a working script displays all members of a group but it also shows the disabled users.
Here's the non-filtered query.
dsquery group -name "admins" | dsget group -members -expand
Please help, -Rob