Exporting attributes from Active Direcotory

Import-module ActiveDirectory

Get-ADUser -Filter * -SearchBase "OU=Others,OU=traveling,OU=Employees,dc=Aryan,DC=net" -Properties givenname,sn,sAMAccountName,mail,mobile,manager,telephonenumber,title | Select givenname,sn,sAMAccountName,mail,mobile,manager,telephonenumber,title | Export-CSV "C:\Scripts\Exporting_Users_From_AD\Travelling_Others.csv"

Comments

Popular posts from this blog

Enterprise CA option is greyed out / unavailable

Rearm the Office 2013 installation

MP has rejected registration request due to failure in client certificate