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

Java Control Panel Icon "Application Not Found"

Enterprise CA option is greyed out / unavailable

Unable to connect to Wireless profile being pushed using GPO