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
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”
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}
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
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
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
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
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
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”