Quantcast
Channel: /r/powershell – How to Code .NET
Viewing all articles
Browse latest Browse all 8793

Exporting AD help!

$
0
0

Guys, Hopefully someone will be able to help! I’m a bit of a noob when it comes to power shell, i’ve been able to create a few simple scripts that create user’s / group’s etc. Either way. I have been given a task to find out the Jobs Title: for around 800 users (Ad contains currently holds around 7,000 user’s) does anyone have a script i could use to allow me to export basic AD info for specific users? I know how to export to all users however unsure for specific users. Any help is much appreciated.

Edit: Thanks for all the help and prombt response ended up using..

Import-Csv “C:whateveryoulike.csv” | foreach { Get-ADUser $_.samaccountname -properties title | Select samaccountname, title } | Export-csv C:C:whateveryoulike.csv

submitted by /u/minkdowg
[link] [comments]

The post Exporting AD help! appeared first on How to Code .NET.


Viewing all articles
Browse latest Browse all 8793

Latest Images

Trending Articles



Latest Images