Tuesday, December 15, 2009

Exchange 2007 - get the list of mailboxes from database

To get the list of mailboxes per databases: for ex. Exch2 SG1 DB1

Get-Mailbox –Database “EXCH1\EXCHSG1\DB1” | Format-Table DisplayName,WindowsEmailaddress,Database > exch2sg1db1.txt


or


Get-Mailbox –Database “EXCH2\EXCH2_SG1\DB1” | Format-Table DisplayName,WindowsEmailaddress,Database > exch2sg1db1.txt

Exchange 2007 mailbox migration in Bulks

Steps in moving mailboxes in Bulk:

1. Put all the users that need to be migrated in a text file containing just their email addresses. Name it like “names.txt”

2. Then login on one of the Exchange 2007 servers.

3. Open “Exchange Management Shell”

4. In the shell command prompt, the syntax is: gc {textfilename} | Move-Mailbox –TargetDatabase {nameOfDatabase} –Maxthreads 20

For example: gc names.txt | Move-Mailbox –TargetDatabase “XCH5\SG3\XCH5SG3DB” –Maxthreads 20

5. After the migration is complete, it will generate an xml file in “C:\Program Files\Microsoft\Exchange Server\Logging\MigrationLogs”

6. Open the XML file in Excel as XML table to see the results. All the result should be “This mailbox has been moved to the target database.” . If the mailbox has a different result then it has to be done from GUI and select the option to skip corrupted items.

Exchange 2007 - how to check backup status of databases

Using powershell

Get-MailboxDatabase -Status | FT name, LastFullBackup, LastIncrementalBackup

Microsoft provides Free Antivirus

http://www.microsoft.com/security_essentials

About Microsoft Security Essentials

Microsoft Security Essentials provides real-time protection for your home PC that guards against viruses, spyware, and other malicious software.

Microsoft Security Essentials is a free* download from Microsoft that is simple to install, easy to use, and always kept up to date so you can be assured your PC is protected by the latest technology. It’s easy to tell if your PC is secure — when you’re green, you’re good. It’s that simple.

Microsoft Security Essentials runs quietly and efficiently in the background so that you are free to use your Windows-based PC the way you want—without interruptions or long computer wait times.