locked
How to get unhidden contacts in AD? RRS feed

  • Question

  • Hi guys! i need to get all my external contacts in AD and check which are hidden and which are not.

    I've tried with several things but there was no use.

    Thanks in advance!

    • Moved by Bill_Stewart Friday, August 14, 2015 6:24 PM Unanswerable drive-by question
    Tuesday, June 23, 2015 12:14 PM

All replies

  • What have you tried? What went wrong?
    Tuesday, June 23, 2015 1:06 PM
  • Do you mean hidden from address lists? This may be what you're after - 

    $hidden = @()
    $visible = @()
    get-adobject -LDAPFilter "(objectclass=Contact)" -Properties msExchHideFromAddressLists | % {
    if($_.msExchHideFromAddressLists){
    
    $hidden += $_
    
    }else{
    
    $visible += $_
    
    }
    }

    Tuesday, June 23, 2015 1:13 PM
  • I agree, "it doesn't work with the stuff I tried" isn't really helpful

    This post is provided AS IS with no warranties or guarantees, and confers no rights.
    ~~~
    Questo post non fornisce garanzie e non conferisce diritti

    Tuesday, June 23, 2015 1:17 PM