lastlogondate

PowerShell Tip of the Week: Get duplicated AD groups

In this post, I want to share a simple method to find duplicated Active Directory objects. Get-ADGroup Recently I was looking for duplicated groups. I was using one of the ActiveDirectory module commands and a simple filter to find all groups. The Get-ADGroup cmdlet gets a group or performs a search to retrieve multiple groups from an Active Directory. The Identity parameter specifies the Active Directory group to get. You can identify a group …

occurrence

PowerShell Tip of the Week: Count occurrence of each element

How to count the occurrence of each element. Today I would like to share a few examples describing how it can be done. To do this we can use Group-Object cmdlet. Count the occurrence The Group-Object cmdlet displays objects in groups based on the value of a specified property. Group-Objectreturns a table with one row for each property value and a column that displays the number of items with that value. Example: Get …