Thursday, August 29, 2013

How to Export a User Mailbox on Exchange Server 2010

  • Go to Exchange Powershell and enter the following;
New-MailboxExportRequest -Mailbox USERALIAS -FilePath \\someserver\users\USERALIAS.pst

This command starts building up the PST file on the location mentioned as \\someserver\users\USERALIAS.pst.






  •  To monitor the process type;
Get-MailboxExportRequest | Get-MailboxExportRequestStatistics

This will allow you to see the ongoing process.

 


After the job is done, you will see the "100%", now you can delete the export request.

 
  • Delete the export request by;

 

 


How to move System Mailboxes

Getting rid of the old mailbox database? Before you delete the old one, you have to move the system related mailboxes to the new one. This is how you do it on Exchange Server 2010;

Go to Powershell on your Exchange Server and enter:

  • Get-Mailbox -database YOUROLDDBNAME -Arbitration


 
You can see the entry in the red box.
 
  • Simply enter the following command which will start the move process
          Get-Mailbox -database YOUROLDDBNAME -Arbitration | New-MoveRequest -TargetDatabase YOURNEWDBNAME
 
 
  • You can monitor the process on EMC Move Request page
  • Since the mailbox is a small one, it would take less then a minute to be completed. Afterwards right click the request and select "Clear Move Request" to finish the job.
 

Wednesday, August 28, 2013

How to get WWN info on Hyper-V and Powershell

So you need to get the WWN numbers on your server (Windows Server 2012).


  • Open up a powershell with administrator privileges( Right click on powershell icon and choose "Run As administrator".

  • Run this command which will give you the WWN numbers :
                    Get-InitiatorPort


PS C:\Windows\system32> Get-InitiatorPort

InstanceName                  NodeAddress                   PortAddress                   ConnectionType
------------                  -----------                   -----------                   --------------
PCI\VEN_1657&DEV_0022&SUBS... 20008c7cff0d7d00              10008c7cff0d7d00              Fibre Channel
PCI\VEN_1657&DEV_0022&SUBS... 20008c7cff0d7d01              10008c7cff0d7d01              Fibre Channel







There you go.