On Wed, Dec 28, 2011 at 2:07 PM, Damien Solodow
<damien.solo...@harrison.edu> wrote:
> You might be over-engineering the solution. :)
> Try this to get a list of disabled users: Get-ADUser -Filter {enabled -eq 
> $false}

I don't want a list of all disabled users, tho. I just need to figure
out if the specific user I am working on is disabled. If they are, I
do one thing, else I go on to check other criteria.

Do I:

$var = Get-ADUser -filter {(sAMAccountname eq $UserBeingSearched)
(enabled -eq $false)}

What values will be in $var, for me to check?

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to listmana...@lyris.sunbeltsoftware.com
with the body: unsubscribe ntsysadmin

Reply via email to