Learn how to restore a backup copy of ofcserver.ini in the event that the one in use by the server becomes corrupt. Corruption can happen if the server runs out of disk space or an error occurs while the ofcserver.ini file is being updated.
The symptoms of a corrupt ofcsever.ini file are as follows:
- The file included in the console is unavailable.
- The OfficeScan Master Service keeps crashing.
- The file does not meet the preferred length, which is around 40 KB.
- The file is usually much smaller or much larger in size.
Below are some options for recovering a server with a corrupted ofcserver.ini file:
Recover the ofcserver.ini file from your most recent backup.
Recover ofcserver.ini from a backup made during an upgrade deployment:
- Search for the location of the most recent ofcserver.ini file using the following command:
- Stop the OfficeScan Master Service.
- Copy ofcserver.ini from the backup folder to \PCCSRV\Private. In this example, the backup copy is located in C:\Program Files (x86)\Trend Micro\OfficeScan\PCCSRV\Backup\CP_4150\Private\ofcserver.ini.
- Restart the OfficeScan Master Service.
The console access should now be restored. If not, recreate the OSCE virtual directories of the IIS by following the instructions in the following KB: Recreating Virtual Directory for OfficeScan (OSCE).
Install a replica of the OSCE server using the same settings (i.e. IP address/FQDN) and copy ofcserver.ini from the new replica server to the original server.
Carry out the disaster recovery procedure for your OSCE server (fresh installation) by following the steps in this article: Files to back up before upgrading, migrating, or uninstalling the OfficeScan server.