locked
get the all disabled IDs in Ad and Exchange with full details RRS feed

  • Question

  • Dear Experts,

    Pls suggest a LDAP query , VB Script or some MS utility to get the all disabled IDs in Ad and Exchange with full details.

    Thx in Advance.

    Rgds,


    Balwan Singh
    Tuesday, September 20, 2011 11:31 AM

Answers

  • If Exchange 2010 this may work for you:

     

    get-Mailbox -resultsize unlimited | where { $_.ExchangeUserAccountControl -match “AccountDisabled”} | select name,database,organizationalunit | sort-object name | export-csv c:\disabled.csv

    • Proposed as answer by ams11 Tuesday, September 20, 2011 12:49 PM
    • Marked as answer by Balwan Singh Tuesday, September 20, 2011 1:32 PM
    Tuesday, September 20, 2011 12:49 PM

All replies

  • If Exchange 2010 this may work for you:

     

    get-Mailbox -resultsize unlimited | where { $_.ExchangeUserAccountControl -match “AccountDisabled”} | select name,database,organizationalunit | sort-object name | export-csv c:\disabled.csv

    • Proposed as answer by ams11 Tuesday, September 20, 2011 12:49 PM
    • Marked as answer by Balwan Singh Tuesday, September 20, 2011 1:32 PM
    Tuesday, September 20, 2011 12:49 PM
  • Thx for reply. its working.

    But i required AD IDs also. is there any LADAP query or Exe Available.

    Rgds,

    Balwan Singh


    Balwan Singh
    Tuesday, September 20, 2011 1:19 PM