Here is quick PowerShell snippet to get information on how many user we have in Department and then pull the list from Active Directory to…
View More Get a list of users in certain Department from Active Directory with PowerShellCategory: Active Directory
Get report on recent password changes in AD
Here is a quick scrip to pull report on recent password changes for users in Active Directory: 123Import-Module ActiveDirectory $DateCutOff = (Get-Date).AddDays(-5) Get-ADUser -Filter *…
View More Get report on recent password changes in ADActive Directory DNS Zones explained
Active Directory depends on DNS for name resolution and locating resources on a network. DNS has a database that maintains resource records, which helps identify…
View More Active Directory DNS Zones explainedFind which Logon Server you Authenticated to ..
Sometimes there are situation that you need to troubleshoot Active Directory connectivity and you need to know to which server the user authenticated to. There…
View More Find which Logon Server you Authenticated to ..Add SMTP-ProxyAddress to users in AD with PowerShell
Here is a quick way to add new SMTP/ProxyAddress for the users in Active Directory with use of PowerShell. Create a csv file with two…
View More Add SMTP-ProxyAddress to users in AD with PowerShellExport users SamAccountName from Email address csv file
Quick PowerShell script to accomplish a task to get a list of users by SamAccountName from provided csv file with email addresses. The csv file…
View More Export users SamAccountName from Email address csv fileCopy Group Members from One group to Another
Simple PowerShell script to move members of one group to be also members of new group that you have just created. I am using this…
View More Copy Group Members from One group to AnotherGet AD Group Creation Date
Here is quick one liner hot to get a report on when Active Directory group has been created. This could be asked during audits so…
View More Get AD Group Creation DateGet list of Departments and number of users per Department in PowerShell
I need to create a report from Active Directory. I need to provide list of all Departments and headcount per Department. Here is quick PowerShell…
View More Get list of Departments and number of users per Department in PowerShellList 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: 123Import-Module ActiveDirectory $groups = "AWS-IAM-PCI-Prod-Admin","AWS-IAM-PCI-Prod-Deploy","AWS-IAM-PCI-Prod-Monitoring" foreach($group in…
View More List users from 3 different Active Directory Groups with PowerShell