Get group member / user Email and City

Get group member / user Email and City


Get-ADGroupMember -Identity "Group Name" -Recursive | Get-ADUser -Properties Mail,city | Select-Object Name,SamAccountName,Mail,city | Export-CSV -Path C:\Newfolder\NEW.csv -NoTypeInformation


==============================================================


Get-ADUser -Filter "City -eq 'CityName'"

No comments: