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"


Popular posts from this blog

Java Control Panel Icon "Application Not Found"

The install4j wizard could not find a Java Runtime Environment on your system. Please locate a suitable JRE...

Clients Unable to update - "Cached cookie has expired or new PID is available"