How to run Exchange .ps1 script as scheduled task
There are many reasons why one would like to run an Exchange powershell .ps1 script as a scheduled task.
In this post I will share with you how to achieve this on both Microsoft Exchange 2007 and Exchange 2010.
Obviously you should start by creating your .ps1 script for this article we will assume the script location is c:\pcs\YourScript.ps1
Running into Public Folders problems after migration? Read this first…
After migrating your Exchange Public Folders from Exchange 2003 to Exchange 2007 / 2010 chances are you will start experiencing some problems.
These issues might show up under different symptoms however they all have one common solution.
Moving the File Share Witness of a CCR cluster in Exchange 2007
I have recently needed to move the File Share Witness on a Microsoft Exchange 2007 CCR cluster from its original location to an alternate server and I will share with you how to do it in case you are faced with a similar scenarion.
Step 1: Create & Configure the new File Share Witness
On the server you want to host the new File Share Witness
- Create a new folder say FSW_ClusterName
- Share this folder and give the Cluster Service Account Full Control shared permissions
- As far as NTFS permissions grant Administrators and the Cluster Service Account Full Control
Step 2: Moving the File Share Witness
To move it use the following commands
Installing your first Exchange 2010 CAS – Part 3
This is the third, and last, part of the "Installing your first Exchange 2010 CAS" tutorial. In part 1 we discussed migration from Exchange 2003 to Exchange 2010, In part 2 migration from Exchange 2007 to 2010. Today we will discuss the case of mixed Exchange 2003 - 2007 environment.
If you managed to get your Exchange 2003/2007 environment working together then you already know that Exchange 2007 CAS can proxy requests to Exchange 2003 mailbox servers. We also know from part 1 of this tutorial that it is not the case for Exchange 2010.
Right now you have your Exchange 2007 CAS that is internet facing and handling all incoming requests by itself. Basically you should think of this as a combination of part 1 and part 2, one thing is common and it is that the newly introduced Exchange 2010 CAS will be dealing with incoming requests.
For Exchange 2007 Mailboxes
Bug revealed in Dynamic Distribution Groups on Exchange 2007
I have been lately involved in a question on Experts-Exchange that turned into a very interesting adventure that led me to discover a bug in the Dynamic Distribution Groups on Exchange 2007.
I have tested the below on Exchange 2007 SP2 rollup 2 and the bug was still there, however I need to mention that tests also proved it was solved on Exchange 2010.
The Setup
First let me give you a very brief idea about the setup, for the lab I have setup an EBS server and created 2 mailboxes on it "John Doe" and "Jane Jackson".
Running Get-Recipient shows the 3 mailboxes in this organization

Taking a look at Active Directory Users and Computers also reveals that "John Doe" and "Jane Jackson" are located in the TestOu, the Administrator is located in the Users containter

The Plot
Allow relaying on Exchange 2007 & Exchange 2010 in 4 easy steps
I have this application/website that needs to send emails, I have it configured to use our exchange server as SMTP. It can send emails to internal users however external ones are failing with a "550 5.7.1 Unable to relay" error
I have been answering this question, under different forms, so often on Experts Exchange lately that I have it copied on a notepad and end up by pasting it again every now and then.
First a mail server should be configure to unconditionally (not talking about spam/viruses here) accept emails sent to users in the smtp domains it serves. However it should be careful about who gets to send emails to other smtp domains using its services, that's what is called relaying.
This should explain why, in the above scenario, emails sent to internal users are received but not to external one. So for your application to be able to send external emails you should allow it (or its IP address) to relay emails through your exchange server and here is how to do it in Exchange 2007 and Exchange 2010.

