Quantcast
Channel: PowerShell
Viewing all articles
Browse latest Browse all 15370

Pull AD attributes script not exporting data

$
0
0
Powershell
ForEach($Userin(Get-Contentc:\ps\out.csv)){$Filter="displayName -eq ""*$($User.RecipientName)*"""Get-ADUser-Filter$Filter|selectemployeeNumber,cn|Export-CsvC:\ps\tes.csv}

I have a CSV file that has a recipient name with a white space between their first & last name. When I try to import csv/run the script above I do not get any exported data. Any help would be great!

Thanks,

John


Viewing all articles
Browse latest Browse all 15370

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>