Quantcast
Channel: Windows PowerShell Forum
Viewing all articles
Browse latest Browse all 2562

How do I use Get-Aduser with the right Filter to list users?

$
0
0

Hi,

I've issued the following command, but it produces no output.  My goal is to list all Users with a SamAccountName beginning with A* thru F*.  Any suggestions?

get-aduser-filter'SamAccountName -like "a*-f*"'


Thanks for your help! SdeDot


Viewing all articles
Browse latest Browse all 2562

Latest Images

Trending Articles



Latest Images

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