Saturday 23 May 2020

How to export all member of a group in AD with their specific attributes

How to export all member of a group in AD and their specific attributes

PS C:\Windows\system32>$group = "ABCGroup"

PS C:\Windows\system32> Get-ADGroup $group -Properties Member | Select-Object -Expand Member | Get-ADUser -Property * | ft company, whenCreated, lastLogonTimestamp, mobile > C:\ABCGroup.CSV

No comments:

Post a Comment