Svrsvcsetup.exe is a tool used for troubleshooting, but when not properly used, it could damage the OfficeScan Virtual Directories, including Plug-in Manager (PLM) and Plug-in Service (PLS) like IDF and VDI. Use this article to recreate your virtual directories.
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.