What is the command to see what users are left in a database I want to delete?
I need to delete a database and I was wondering what the command is to see what users are left in the database?Thanks!
September 15th, 2009 12:48am

Exchange 2007?Get-MailboxDatabase -Identity "DB Identity" |Get-MailboxKarl
Free Windows Admin Tool Kit Click here and download it now
September 15th, 2009 1:35am

Hi Get-Mailboxdatabase -Identity "DBNAME" | Get-Mailbox -ResultSize Unlimited | Export-csv "Mailboxes.csv"Thanks Shiv
September 15th, 2009 2:29am

On Mon, 14-Sep-09 21:48:45 GMT, D303M wrote:>I need to delete a database and I was wondering what the command is to see what users are left in the database?Thanks! In case you're _not_ running Exchange 2007 (you didn't say you were),you can use the ADUC. You'll need to know the distinguished name ofthe database, though. The DN will look like this (the stuff betweenthe "<" and ">" is specific you your organization):inistrativeGroupName>,CN=AdministrativeGroups,CN=,CN=MicrosoftExchange,CN=Services,CN=Configuration,DC=,DC=You can get the value from LDP or ADSIEDIT if you don't feel confidententering that by hand.Once in ADUC, right-click the domain and select "Find". In the "Find:"drop-down list, select "Custom Search", and then click the "Advanced"tab. In the edit box, enter (all on one line):homemdb=CN=,CN=,CN=InformationStore,CN=,CN=Servers,CN=,CN=AdministrativeGroups,CN=,CN=MicrosoftExchange,CN=Services,CN=Configuration,DC=,DC=Then click the "Find Now" button.Or you can just use the regular "Users, Contacts, and Groups" search.Select the "Advanced" tab and, in the "Field" button select "User" andthen "Exchange Mailbox Store". The "Condition" is "Is (Exactly)" andthen enter the distinguished name of the mailbox server into thedd". Then click "Find Now".---Rich MatheisenMCSE+I, Exchange MVP--- Rich Matheisen MCSE+I, Exchange MVP
Free Windows Admin Tool Kit Click here and download it now
September 15th, 2009 4:24am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics