There are various scenarios that you need to consider before recreating virtual directories for OfficeScan. Select the scenario that fits you.
- Remove the OfficeScan website from IIS via IIS Manager.
- Open a command prompt and navigate to the ..\PCCSRV folder.
- Run these commands:
Svrsvcsetup.exe -setvirdir
Svrsvcsetup.exe -setprivilege
Svrsvcsetup.exe -enablessl (This is optional if SSL is enabled.) - Log on to the OfficeScan management console.
Disregard this procedure if you are using Intrusion Defense Firewall (IDF) and Apache for web server to prevent OSCE Master Service from not being created.
- Open the Registry Editor.
Always back up the whole registry before making any modifications. Incorrect changes to the registry can cause serious system problems.
- Go to [HKEY_LOCAL_MACHINE\SOFTWARE\TrendMicro\OfficeScan], right-click on it, and then select Export to export the registry entry to TrendOfficeScan.reg.
For 64-bit OfficeScan server, the registry is [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\TrendMicro\OfficeScan]. - Close the Registry Editor.
- Open a command prompt and navigate to the ..\PCCSRV folder.
- Go back to the command prompt and type the following:
Compared to "-uninstall", using "-uninstall_regen" will not uninstall the Apache web server. This also prevents issues where Ofcservice.exe is not reinstalled. "-enablessl" is optional if SSL is enabled.
Svrsvcsetup.exe -BackupAosReg
Svrsvcsetup.exe -uninstall_regen
Svrsvcsetup.exe -install
Svrsvcsetup.exe -setprivilege
Svrsvcsetup.exe -enablessl
Svrsvcsetup.exe -RestoreAosReg - Restart the Officescan Plug-in Manager service.
- Start the OfficeScan Master Service (if stopped).
- Log on to the OfficeScan management console.
When the OfficeScan server version is above 11.0 Service Pack 1, the dashboard of the management console may not display normally after running the above commands. The PHP errors shown below will occur (when using IE browser) or prompt to download index.php (when using Chrome).
- Please add the Handler Mappings "PHP_ZIP_VIA_FASTCGI":
- Open the Internet Information Services (IIS) console and navigate to the OfficeScan website.
- Double-click the Handler Mappings option (in Feature View).
- On the Handler Mappings page, right-click and select "add Module Mapping..."
Request Path : *.php
Module : FastCgiModule
Executable : "C:\Program Files (x86)\Trend Micro\OfficeScan\PCCSRV\PLM\PHP\php-cgi.exe" (depends on the real path in customer's environment )
Name : PHP_ZIP_VIA_FASTCGI - Click on Request Restrictions.
- Select "File or folder" for Mapping
- Select "Script" for Access
- Click OK to save all the configuration.
- Log on to the OfficeScan management console again for verification.
- Open Command Prompt (with Administrator privileges), and go to the IIS service folder using the command below:
cd %windir%\system32\inetsrv - Execute the commands below one at a time to recreate the Application Control and Vulnerability Protection Services:
appcmd add app /site.name:"OfficeScan" /path:"/officescan_iac" /physicalPath:"C:\Program Files (x86)\Trend Micro\Apex One\iServiceSrv\iAC\Web\ACServerWebApp" /applicationPool:"OfficeScan_iAC_AppPool"
appcmd add app /site.name:"OfficeScan" /path:"/officescan_iac/osf" /physicalPath:"C:\Program Files (x86)\Trend Micro\Apex One\iServiceSrv\iAC\Web\OSFChannel" /applicationPool:"OfficeScan_iAC_AppPool"
appcmd add app /site.name:"OfficeScan" /path:"/officescan_ivp" /physicalPath:"C:\Program Files (x86)\Trend Micro\Apex One\iServiceSrv\iVP\Web" /applicationPool:"OfficeScan_iVP_AppPool" - Execute the commands below to recreate the Endpoint Sensor Service:
appcmd add app /site.name:"OfficeScan" /path:"/officescan_iesconsole" /physicalPath:"C:\Program Files (x86)\Trend Micro\Apex One\iServiceSrv\iES\Web\ConsoleChannel" /applicationPool:"OfficeScan_iESConsole_AppPool"
appcmd add app /site.name:"OfficeScan" /path:"/officescan_iesagent" /physicalPath:"C:\Program Files (x86)\Trend Micro\Apex One\iServiceSrv\iES\Web\FastLaneChannel" /applicationPool:"OfficeScan_iESAgent_AppPool"
appcmd add app /site.name:"OfficeScan" /path:"/officescan_iesconsole/osf" /physicalPath:"C:\Program Files (x86)\Trend Micro\Apex One\iServiceSrv\iES\Web\OSFChannel" /applicationPool:"OfficeScan_iESConsole_AppPool"
The application pools ("OfficeScan_iVP_AppPool" & "OfficeScan_iAC_AppPool") should be created and started before the steps.