QuestWinsows PowerShell
Find all enabled AD usersget-qaduser -includeallproperties -ldapfilter "(!(userAccountControl:1.2.840.113556.1.4.803:=2))"
# Get Enabled users only
Get-QADUser -Enabled -SizeLimit 0
- or -
# Get Disabled users only
Get-QADUser -Disabled -SizeLimit 0
Wednesday, 28 April 2010
Tuesday, 27 April 2010
Quest ActiveRoles Management Shell for Active Directory
Monday, 26 April 2010
How to find group members for n number of groups
$groups=get-content groups.txt
Foreach($group in $groups)
{
Get-QADGroupMember $group
Get-qadgroup $group
}
Foreach($group in $groups)
{
Get-QADGroupMember $group
Get-qadgroup $group
}
Find memberof for n number of users with powershell
$users=get-content users.txt
Foreach($user in $users)
{
get-Qadmemberof $user
Get-qaduser $user
}
Foreach($user in $users)
{
get-Qadmemberof $user
Get-qaduser $user
}
Monday, 19 April 2010
How Can I List the Members of a Group in Alphabetical Order?
How Can I List the Members of a Group in Alphabetical Order?
http://blogs.technet.com/heyscriptingguy/archive/2004/11/22/how-can-i-list-the-members-of-a-group-in-alphabetical-order.aspx
http://blogs.technet.com/heyscriptingguy/archive/2004/11/22/how-can-i-list-the-members-of-a-group-in-alphabetical-order.aspx
Subscribe to:
Posts (Atom)