Sign In with your
Trend Micro Account
Need Help?
Need More Help?

Create a technical support case if you need further support.

Recreating Virtual Directory for OfficeScan (OSCE)

    • Updated:
    • 17 Oct 2016
    • Product/Version:
    • OfficeScan 10.6
    • OfficeScan 11.0
    • OfficeScan XG.All
    • Platform:
    • N/A N/A
    • Windows 10
    • Windows 10 32-bit
    • Windows 10 64-bit
    • Windows 2003 Datacenter 64-bit
    • Windows 2003 Enterprise
    • Windows 2003 Enterprise 64-bit
    • Windows 2003 Server R2
    • Windows 2003 Standard
    • Windows 2003 Standard 64-bit
    • Windows 2008 32-Bit
    • Windows 2008 64-Bit
    • Windows 2008 Datacenter
    • Windows 2008 Datacenter 64-bit
    • Windows 2008 Enterprise
    • Windows 2008 Enterprise 64-bit
    • Windows 2008 Server Core
    • Windows 2008 Server R2 Enterprise
    • Windows 2008 Standard
    • Windows 2008 Standard 64-bit
    • Windows 2008 Web Server Edition
    • Windows 2008 Web Server Edition 64-bit
    • Windows 2012 Datacenter
    • Windows 2012 Datacenter R2
    • Windows 2012 Enterprise
    • Windows 2012 Enterprise R2
    • Windows 2012 Server Essential R2
    • Windows 2012 Server Essentials
    • Windows 2012 Server R2
    • Windows 2012 Standard
    • Windows 2012 Standard R2
    • Windows 2012 Web Server Edition
    • Windows 2016 Server Core
    • Windows 2016 Server Datacenter
    • Windows 2016 Server Standard
    • Windows 7 32-Bit
    • Windows 7 64-Bit
    • Windows 8 32-Bit
    • Windows 8 64-Bit
    • Windows 8.1 32-Bit
    • Windows 8.1 64-Bit
    • Windows Vista 32-bit
    • Windows Vista 64-bit
    • Windows XP Home
    • Windows XP Professional
    • Windows XP Professional 64-bit
Summary

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.

Details
Public

There are various scenarios that you need to consider before recreating virtual directories for OfficeScan. Select the scenario that fits you.

 
This procedure will not recreate Local Web Classifications Server or Smart Scan Server (Integrated) websites. If you want to have these websites, then proceed to Item B.
  1. Remove the OfficeScan website from IIS via IIS Manager.
  2. Open a command prompt and navigate to the ..\PCCSRV folder.
  3. Run these commands:

    Svrsvcsetup.exe -setvirdir
    Svrsvcsetup.exe -setprivilege
    Svrsvcsetup.exe -enablessl (This is optional if SSL is enabled.)

  4. 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.

  1. Open the Registry Editor.
     
    Always back up the whole registry before making any modifications. Incorrect changes to the registry can cause serious system problems.
  2. 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].
  3. Close the Registry Editor.
  4. Open a command prompt and navigate to the ..\PCCSRV folder.
  5. Go back to the command prompt and type the following:

    For OfficeScan 11.0 and 10.6 SP2/SP3:

     
    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

    For OfficeScan 10.6:

    Svrsvcsetup.exe -BackupAosReg
    Svrsvcsetup.exe -uninstall
    Svrsvcsetup.exe -install
    Svrsvcsetup.exe -setprivilege
    Svrsvcsetup.exe -enablessl
    Svrsvcsetup.exe -RestoreAosReg

  6. Restart the Officescan Plug-in Manager service.
  7. Start the OfficeScan Master Service (if stopped).
  8. 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).

    OSCE management console

  9. Please add the Handler Mappings "PHP_ZIP_VIA_FASTCGI":
    1. Open the Internet Information Services (IIS) console and navigate to the OfficeScan website.
    2. Double-click the Handler Mappings option (in Feature View).
    3. 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

    4. Click on Request Restrictions.
    5. Select "File or folder" for Mapping
    6. Select "Script" for Access
    7. Click OK to save all the configuration.
  10. Log on to the OfficeScan management console again for verification.
Premium
Internal
Rating:
Category:
Troubleshoot
Solution Id:
1059386
Feedback
Did this article help you?

Thank you for your feedback!

To help us improve the quality of this article, please leave your email here so we can clarify further your feedback, if neccessary:
We will not send you spam or share your email address.

*This form is automated system. General questions, technical, sales, and product-related issues submitted through this form will not be answered.

If you need additional help, you may try to contact the support team. Contact Support


To help us improve the quality of this article, please leave your email here so we can clarify further your feedback, if neccessary:
We will not send you spam or share your email address.

*This form is automated system. General questions, technical, sales, and product-related issues submitted through this form will not be answered.


Need More Help?

Create a technical support case if you need further support.