Tools needed for Exchange Across Forest Migration

Posted by support | General | Thursday 22 January 2009 5:38 pm

across-forest-migration-exchange-200-to-2007

PDF of Tools needed to perform acrosss forest migration for exchange 2000 to 2007.  For the Interorg Public Folder syn to work you may need to download these DLL files:

Exchange DLL Files

Exchange DLL Files

In Exchange 2000 you cannot have in Public Folders a name.com or the PFDAdmin will not work.

DSQuery Primary Addresses

Posted by support | General | Thursday 22 January 2009 10:06 am

To list Primary addresses and pipe to a file:

dsquery * -limit 0 -filter “(&(objectCategory=person)(objectClass=user)(mail=*))” -attr name mail >”c:\PrimaryEmailAddresses.txt”

REF: http://www.petri.co.il/forums/showthread.php?t=18464

Export and Import PST Files from the Exchange 2007 PowerShell

Posted by support | Command Line, Exchange, Microsoft | Thursday 15 January 2009 4:16 pm

Must Setup Permission before creating pst files
Get-Mailbox -Database ’servername\Private Information Store (xxx_xxx)’ | Add-MailboxPermission -User administrator -AccessRights FullAccess

Export All Mailboxes to pst files.
Get-Mailbox -Database ’servername\Private Information Store (xxx_xxx)’ | Export-Mailbox -PSTFolderPath E:\PSTs

Export Single user to PST file.

Export-Mailbox -Identity john@contoso.com -PSTFolderPath C:\PSTFiles\john.pst -BadItemLimit 9999

 

IMPORT All PST Files into Exchange.

(must run permission on for user to import, mailboxes in target server must be created before import.)

Get-Mailbox -Database ’servername\Private Information Store (xxx_xxx)’ | Import-Mailbox -PSTFolderPath E:\PSTs 

 

dsquery group command

Posted by support | Active Directory, Exchange, Microsoft | Thursday 15 January 2009 2:50 pm

Useful one-step scripts: REF:http://winmasterplan.blogspot.com/2008_07_01_archive.html

- Show the creation date of all groups from AD forest:
dsquery * forestroot -filter “(&(objectClass=Group))” -attr name whenCreated description -limit 0

 
- Show the date of modification of all groups from AD forest:
dsquery * forestroot -filter “(&(objectClass=Group))” -attr name whenChanged description -limit 0

 

 

- Show the creation date of all users from AD forest:
dsquery * forestroot -filter “(&(objectClass=User))” -attr name whenCreated description -limit 0

 
- Show all distribution groups mail enabled from AD forest
dsuery * forestroot -filter “(&(samAccountType=268435457)(mail=*))” -limit 0