This post will show how to import data from PST file to mailbox in Exchange 2007 running on Windows server 2003. Lets import testuser.pst which is located in D:\PST to testuser mailbox.
First we need to have full access rights on testuser mailbox. To grant it to our user (Admin) open powershell and type:
Add-MailboxPermission -Identity testuser -User Admin -AccessRights FullAccess
After granting rights we can proceed with data import:
Import-Mailbox -Identity testuser@testdomain.com -PSTFolderPath D:\PST\testuser.pst
Note that you need Outlook 2003 with SP2 or Outlook 2007 installed to perform this import
In this post you`ll see how to disconnect or remove permanently user mailbox in Exchange 2007 server. Note that user account asociated with that mailbox will be deleted in both ways. Lets operate in domain testdomain.com against user Testuser mailbox “testuser”.
To disconnect mailbox and delete user account type:
Remove-Mailbox -Identity testdomain.com\testuser
To remove mailbox and delete user account type:
Remove-Mailbox -Identity testdomain.com\testuser -Permanent $true
This example will show you how to create mailbox for new user in Exchange 2007 server named “TestExchange”. Lets create new mailbox for user Thomas Green in testdomain.com domain. Mailbox will be created in “FirstDB” database which is located in “FirstSG” storage group. To do it open exchange powershell in your Windows server 2003 and type:
New-Mailbox -Alias thomas -Database “FirstSG\FirstDB” -Name ThomasGreen -OrganizationalUnit Users -FirstName Thomas -LastName Green -DisplayName “Thomas Green” -UserPrincipalName ThomasGreen@testdomain.com
We will check how to list Public Folder “TestPF” permissions which is located under \Finance on Exchange 2007 server “TestExchange”. For that open exchange powershell in Windows server 2003 and type:
Get-PublicFolderClientPermission \Finance\TestPF -Server TestExchange
This post will show how to create new public folder named “TestPF” under existing PF path \Finance in Exchange 2007 server “TestExchange” running on Windows server 2003. To start with this tast open exchange powershell and type:
New-PublicFolder -Name TestPF -Path \Finance -Server TestExchange
This post will show you how to view active sessions in Exchange 2007 server named “TestExchange” running on Windows server 2003. To do that open exchange powershell and type:
Get-LogonStatistics -Server TestExchange
Note that in order to use Get-LogonStatistics cmdlet you have to be at least Exchange View-Only Administrator.
This article will show you how to install new version of powershell. Note that before Powershell v2.0 (CTP) install you have to uninstall Powershell 1.0 from your Windows server 2003 or Windows XP computer. For that go to add and remove programs window, mark “Show updates” option and remove Powershell 1.0.
After that you have to install WS-Management v1.1 package which can be downloaded from here .
And finally download and install Powershell v2.0 .
This post will show you how to delete storage group named “TestStorageGroup” from Exchange 2007 server named “MyExchange” running on Windows server 2003 OS. To perform delete open powershell and type:
Remove-StorageGroup -Identity “MyExchange.mydomain.com\TestStorageGroup”
Note that storage group`s log files are not removed when you perform remove. If you want to remove log files you have to do it manually.
This post will show how to create new storage group named “TestStorageGroup” in Exchange 2007 server “TestServer” running on Windows server 2003 OS. We will set storage group log location to D:\Logs. To create storage group open exchange powershell and type:
New-StorageGroup -Name TestStorageGroup -Server TestServer -LogFolderPath: “D:\Logs”
This post will show you how to use Move-Mailbox powershell cmdlet and move testuser@mydomain.com mailbox to another mailbox database in Exchange 2007 server named NewMBX. To do that open powershell for exchange in your Windows server 2003 and type:
Move-Mailbox testuser@mydomain.com -TargetDatabase NewMBX
Type Y to confirm move