Active 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 various servers, domains, and services…
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 various servers, domains, and services…
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 columns samaccountname | emailaddress john.doe …
Here are few quick one liners such as add user to 2 AD groups at same time: "Managers","SalesRep" | Add-ADGroupMember -Members ` (Read-Host -Prompt "Enter User Name") Add multiple user…
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 has one column "email' under…
Here is a quick snippet to show current status of Microsoft Antimalware on your Windows 10 computer. [cc lang="PowerShell"] Clear-Host Write-Host Write-Host "CURRENT STATUS " -Foregroundcolor yellow -BackgroundColor red Write-Host…
Here is another quick PowerShell script to check if user is a member of given group. [cc lang="PowerShell"] Clear-Host if (Get-Module -ListAvailable -Name ActiveDirectory) { Import-Module ActiveDirectory } else {…
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 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…