List users from 3 different Active Directory Groups with PowerShell

Here is a quick sample of Power Shell snippet to list users from 3 different Active Directory groups: Import-Module ActiveDirectory $groups = "AWS-IAM-PCI-Prod-Admin","AWS-IAM-PCI-Prod-Deploy","AWS-IAM-PCI-Prod-Monitoring" foreach($group in $groups){Get-ADGroupMember -Identity $group -Recursive |…

Continue ReadingList users from 3 different Active Directory Groups with PowerShell

Find out the current version of the Active Directory Schema

Quick one liner to find out current version of the Active Directory Schema on your network especially of you have mix of servers. Using dsquery utility: dsquery * cn=schema,cn=configuration,dc=domainname,dc=local -scope…

Continue ReadingFind out the current version of the Active Directory Schema

Remove all Group Membership from Disabled user except Domain User Group in PowerShell

Here is quick PowerShell script to remove ALL Group Membership from Disabled user in Active Directory. We will remove all Group membership from this user except Domain User group. So…

Continue ReadingRemove all Group Membership from Disabled user except Domain User Group in PowerShell

Report on user count in Active Directory with PowerShell

Here is quick [easyazon_link identifier="1787122042" locale="US" tag="wn0d5-20"] PowerShell [/easyazon_link] script that provides information on user count in [easyazon_link identifier="1782175997" locale="US" tag="wn0d5-20"] Active directory [/easyazon_link]: Total Number of All user accounts…

Continue ReadingReport on user count in Active Directory with PowerShell