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/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 – How to set Exchange 2007 mailbox quota 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 use get-mailbox and set-mailbox cmdlets to set  mailbox quota for all mailboxes in OU “TestUsers” using powershell. We will set warning quota to 200Mb, prohibit send to 400Mb and prohibit send\receive quota to 600Mb. To implement it open powershell on you Windows server 2003 and type:

Get-Mailbox -OrganizationalUnit “TestUsers” | Set-Mailbox -IssueWarningQuota 209715200 -ProhibitSendQuota 419430400 -ProhibitSendReceiveQuota 629145600 -UseDatabaseQuotaDefaults  $false

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

Windows server 2003 and Windows XP – How to export Exchange 2007 mailbox to PST file

Posted by Thomas | Posted in Exchange 2007, Powershell, Windows 2003, Windows XP | Posted on 30-04-2009

0

In this article you`ll learn how to export Exchange 2007 mailbox to PST file using power shell on your Windows XP or Windows server 2003 machines.

For that task you must have power shell and Outlook 2003 with SP2 or Outlook 2007 installed.

In this example we need to export mailbox for user TestUser@mydomain.com to local folder D:\PST

Open power shell and type:

Export-Mailbox -Identity TestUser@mydomain.com -PSTFolderPath D:\PST\TestUser.pst

Windows server 2003 and Exchange 2007 – How to grant full access rights for the mailbox

Posted by Thomas | Posted in Exchange 2007, Powershell, Windows 2003 | Posted on 30-04-2009

0

This example will show how to grant full access rights to specific mailbox using power shell on Windows server 2003 with Exchange 2007 installed.

You want user Admin to have full access over mailbox named TestUser.

Open Power Shell extention for exchange and type:

Add-MailboxPermission -Identity TestUser -User Admin -AccessRights FullAccess

To make it work your user (Admin in this example) must be member of Exchange Administrators and Local administrators groups.