Windows server 2003/2008 and Exchange 2007 – How to enable or disable POP3 for mailbox user

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 enable or disable POP3 for mailbox user named testuser using powershell on Windows server 2003.

To enable POP3 type:

Set-CASMailbox -Identity testuser@testdomain.com -POPEnabled $true

To disable POP3 type:

Set-CASMailbox -Identity testuser@testdomain.com -POPEnabled $false

Windows server 2003/2008 and Exchange 2007 – How to enable or disable OWA for mailbox user

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 enable or disable Outlook Web Access (OWA) for mailbox user named testuser using powershell on Windows server 2003.

To enable OWA type:

Set-CASMailbox -Identity testuser@testdomain.com -OWAEnabled $true

To disable OWA type:

Set-CASMailbox -Identity testuser@testdomain.com -OWAEnabled $false

Windows server 2003/2008 and Exchange 2007 – How to enable or disable IMAP4 for mailbox user

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

0

This post will show you quick way how to enable or disable IMAP4 for mailbox user named testuser using powershell on Windows server 2003.

To enable IMAP4 type:

Set-CASMailbox -Identity testuser@testdomain.com -IMAPEnabled $true

To disable IMAP4 type:

Set-CASMailbox -Identity testuser@testdomain.com -IMAPEnabled $false

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 .