Get-adobject mail


I have a small problem with a script

$users = path/to/csv Foreach ($user in $users) { $mail = $ Get-adobject -properties mail – filter {mail – eq “$mail”} }

I got no error, if I run the script and just type $mail I get a adress from the csv but the Get-adobject string don’t work when I have $mail the command works good when I write an actual address from the list. It must be something obvious that I’m missing. Thank you

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

Leave a Reply