Get 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 here is the PowerShell one…
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 here is the PowerShell one…
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 that will list all Departments…
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 |…
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…
Here is another quick helper for Help Desk guys to pull quickly information about user in PowerShell: SamAccountName Title Department Manager In this case the manager will be show as…
Quick Help Desk script tool in PowerShell to reset user password : [cc lang="PowerShell"] Clear-Host Import-Module ActiveDirectory $newpwd = Read-Host "[ Enter the new password ]" -AsSecureString $User = Read-Host…
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…
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…
Here is the task for today to use [easyazon_link identifier="1787122042" locale="US" tag="wn0d5-20"] PowerShell [/easyazon_link]. I was asked to find the list of employees under a specific manager. In [easyazon_link identifier="1449361420"…
Here is a quick almost one liner in [easyazon_link identifier="B07883YKV1" locale="US" tag="wn0d5-20"] PowerShell [/easyazon_link] to update/change UPN for users of specific group in [easyazon_link identifier="1449361420" locale="US" tag="wn0d5-20"]Active Directory [/easyazon_link]. Lets…