Windows server 2003/2008 and Exchange 2007 – How to import mailbox data from PST

Posted by aidas | Posted in Exchange 2007, Powershell, Windows 2003, Windows 2008 | Posted on 05-05-2009

0

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

Windows server 2003/2008 and Exchange 2007 – How to remove mailbox via powershell

Posted by aidas | Posted in Exchange 2007, Powershell, Windows 2003, Windows 2008 | Posted on 05-05-2009

0

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

Windows server 2003/2008 and Exchange 2007 – How to create mailbox for new user via powershell

Posted by aidas | Posted in Exchange 2007, Powershell, Windows 2003, Windows 2008 | Posted on 05-05-2009

0

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

Windows server 2003/2008 and Exchange 2007 – How to check public folder permissions

Posted by aidas | Posted in Exchange 2007, Powershell, Windows 2003, Windows 2008 | Posted on 05-05-2009

0

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

Windows server 2003/2008 and Exchange 2007 – How to create public folder via powershell

Posted by aidas | Posted in Exchange 2007, Powershell, Windows 2003, Windows 2008 | Posted on 05-05-2009

0

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

Windows server 2003/2008 and Exchange 2007 – How to view active sessions via powershell

Posted by aidas | Posted in Exchange 2007, Powershell, Windows 2003, Windows 2008 | Posted on 05-05-2009

0

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.

Windows server 2003 and Windows XP – How to install powershell V2.0 (CTP)

Posted by aidas | Posted in Powershell, Tools, Windows 2003, Windows XP | Posted on 05-05-2009

0

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 .

Windows server 2003/2008 and Exchange 2007 – How to delete storage group via powershell

Posted by aidas | Posted in Exchange 2007, Powershell, Windows 2003, Windows 2008 | Posted on 04-05-2009

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.

Windows server 2003/2008 and Exchange 2007 – How to create new storage group via powershell

Posted by aidas | Posted in Exchange 2007, Powershell, Windows 2003, Windows 2008 | Posted on 04-05-2009

0

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”

Windows server 2003/2008 and Exchange 2007 – How to move mailbox to another mailbox database

Posted by aidas | Posted in Exchange 2007, Powershell, Windows 2003, Windows 2008 | Posted on 04-05-2009

0

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