Filter Active Directory users based on custom attribute and export to csv
Get-ADUser -Filter {attribute -like 'Yes'} -Properties * | select attribute1, attribute2, attribute3, attribute4, attribute5, attribute5, attribute6 | Export-Csv -path 'd:\edu4.csv' -Encoding unicode The attributes after the select are exported in the csv file. If you want to find users with … Continue reading
Posted in Windows
Leave a comment