Friday, October 15, 2010

Exchange 2007 servicecontrol.ps1 bug

You run ServiceControl.ps1 AfterPatch or ServiceControl.ps1 and get the error below. Microsoft made a mistake !

It's a bug in the script...

add a line at line 900:

$activity = 'BeforePatch'

add a line at line 958:

$activity='AfterPatch'


----------- snippet of error --------------
Write-Progress : Cannot bind argument to parameter 'Activity' because it is nul
l.
At D:\Program Files\Microsoft\Exchange Server\bin\ServiceControl.ps1:1017 char:
25
+ write-Progress -Activity <<<< $activity -Id 0 -Status 'Completed' -Completed
+ CategoryInfo : InvalidData: (:) [Write-Progress], ParameterBind
ingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,M
icrosoft.PowerShell.Commands.WriteProgressCommand

No comments:

Post a Comment