Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Export empty fields

$
0
0

Hi everybody,

 

I have to export the users who don't have anything in the department field ? How can I do this please?

Get-ADUser -Filter * -Properties * | Select-Object -Property displayName,SamAccountName,department| Export-Csv -path c:\userall.csv -Encoding Unicode

Thanks for helping me

Nathalie


Viewing all articles
Browse latest Browse all 6937

Trending Articles