Windows server 2003/2008 – How to check Exchange 2007 health via powershell

Posted by Mark | Posted in Exchange 2007, Powershell, Windows 2003, Windows 2008 | Posted on 16-06-2009

0

This post will show you how to check basic Exchange server 2007 health using powershell commands.

To check if all required services are running open exchange powershell on you Windows server 2003/2008 and type:

Test-servicehealth

To perform MAPI connectivity check type:

Test-MAPIConnectivity

Windows server 2003/2008 and Exchange 2007 – How to test Outlook 2007 autodiscover

Posted by aidas | Posted in Exchange 2007, Powershell | Posted on 07-05-2009

0

This post will show how to use powershell to verify if autodiscover service is properly configured on your Exchange 2007 server named “TestExchangeServer”. To do it open exchange powershell on your Windows server 2003 and type:

Test-OutlookWebServices -ClientAccessServer “TestExchangeServer”

Windows server 2003/2008 and Exchange 2007 – How to suspend mail queue

Posted by aidas | Posted in Exchange 2007, Powershell | Posted on 07-05-2009

0

This post will show how to suspend mail queue on Exchange 2007 server using powershell. Lets say that one of your mail queue is growing too big. You want to suspend it and investigate cause of this. To suspend queue that has over 500 messages in it open exchange powershell on your Windows server 2003 and type:

Suspend-Queue -Filter {MessageCount -qt 500}

Windows server 2003/2008 and Exchange 2007 – How to remove message from mail queue

Posted by aidas | Posted in Exchange 2007, Powershell | Posted on 07-05-2009

0

This post will show you how to remove specific message from Exchange 2007 mail queue using powershell. Lets say we want to remove message that was send by testuser@testdomain.com. Also we want that no Non Delivery Record (NDR) will be generated. To do it open exchange powershell on your Windows server 2003 and type:

Remove-message -filter {FromAddress -eq “testuser@testdomain.com”} -WithNDR $false

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

Posted by aidas | Posted in Exchange 2007, Powershell | Posted on 06-05-2009

0

This post will show you how to view mail queue using powershell on your Exchange 2007 server. To do it open exchange powershell on your Windows server 2003 and type:

Get-queue | format-list

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

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

0

If you want to disable Exchange 2007 user mailbox this how to is for you. This operation will remove all exchange attributes from active directory user. Lets disable mailbox for user named “testuser”. To do it open exchange powershell on Windows server 2003 and type:

Disable-Mailbox testuser@testdomain.com

Windows server 2003/2008 and Exchange 2007 – How to enable or disable ActiveSync 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 ActiveSync for mailbox user named testuser using powershell on Windows server 2003.

To enable ActiveSync type:

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

To disable ActiveSync type:

Set-CASMailbox -Identity testuser@testdomain.com -ActiveSyncEnabled $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 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”