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

Why does same command with different parameter (filter or properties) give different results

$
0
0

why is it if i type
get-aduser -filter * | select Name, EmailAddress
it does not display EmailAddress?  It only displays Name

why is it if i  type
> get-aduser -properties * | select Name, EmailAddress
i get prompted for Filter and enter *
cmdlet Get-ADUser at command pipeline position 1
Supply values for the following parameters:
(Type !? for Help.)
Filter: *
It does display both Name, EmailAddress

I don't know when to use filter or properties ! ! I would appreciate an explanation if you would be so kind

 


Viewing all articles
Browse latest Browse all 6937

Trending Articles