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
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