Sometime back an issue posted on TechNet forum but now looks many people are looking about same so though of documenting it. However Microsoft is aware about this and we will get the resolution soon.
Issues is, when you install Exchange 2007 on Windows 2008 Service Pack 2 and try to register SCW to secure Exchange Server Role with below cmdlet, it gives an error and log it in MSSCW log file.
SCW command to register Exchange 2007 extension:
scwcmd register /kbname:Ex2007KB /kbfile:"%programfiles%\Microsoft\Exchange Server\scripts\Exchange2007_WinSrv2008.xml”
|Command completed with error.
The parameter is incorrect.
Please check log file(s) under the following directory
MSSCW Log file error:
The specified OS version does not match with the version that is defined in the KBRegistration.xml file. The parameter is incorrect.
Reason is SCW extension XML files are hardcoded to run on Windows 2008 with maximum of Service Pack 1 however we can change the value of ServicePackMajorVersion from 1 to 2 in the file to work with SP2.
Open SCW extension XML file in notepad and change it from:
<SCWKBRegistrationInfo OSMajorVersion="6" OSMinorVersion="0" ServicePackMajorVersion="1" ServicePackMinorVersion="0">
<SCWKBRegistrationInfo OSMajorVersion="6" OSMinorVersion="0" ServicePackMajorVersion="2" ServicePackMinorVersion="0">