Hello:
Whenever a Distribution List (DL) is created in Active Roles Server (ARS), the group ExchangeVersion is set to (6.5.65) Exchange 2003 version. In order to function correctly with Exchange 2010, every DL that is created needs to be upgraded to 2010 after they are created: PS> set-distributiongroup -identity %groupname% -forceupgrade
This will upgrade the DL to version 10.0 Exchange 2010 version, which is required in our environment.
Is there a way to do this in ARS workflows.??
-----
I created a new workflow, triggerd on group created with GroupType = 8. (Universal DL)
The workflow kicks off, and the following script runs, after the group is created:
function onPostCreate($Request)
{
$groupname = $Request.get("CN")
set-distributiongroup "$groupname" -forceupgrade
}
The issue is that the "set-distributiongroup" is regular powershell, and not a PowerGui command and this command doesnt actually run.?
I can change the script to:
function onPostCreate($Request)
{
$groupname = $Request.get("CN")
#set-distributiongroup "$groupname" -forceupgrade
set-qadgroup "$groupname" -notes "This is a test"
}
and the notes field is updated perfectly, so I know the script is correct.
I cannot find any other way to do this, but I want to upgrade all DLs to version 2010 upon creation...ideas.??