Saturday, June 09, 2012

Manually Uninstalling Trend Micro Officescan


Trend Micro OfficeScan is normally deployed in corporate network environment to provide endpoint security. Administrators can remotely uninstall the Office Scan client, and user at the workstation can uninstall the client program using built-in uninstall mechanism too (i.e. Add and Remove Program in Control Panel). If for some reason, the Office Scan client cannot or unable to uninstall, or user doesn’t have the required password to remove the OfficeScan client, try the following workaround to manually uninstall and remove Trend Micro OfficeScan.

1.  Go to Control Panel Services (services.msc), and stop the following services:
  • OfficescanNT Listener
  • OfficescanNT RealTimeScan
  • OfficeScanNT Personal Firewall (if enabled)
2.  Run Registry Editor (regedit.exe).

3.  Navigate to the following registry key hive:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services

4.  Delete the following keys (if available):
  • Ntrtscan
  • Tmlisten
  • TmFilter
  • VSApiNt
  • TMPreFilter
  • TM_CFW
  • OfcPfwSvc
5.  Navigate to the following registry hive:
HKEY_LOCAL_MACHINE \SOFTWARE\TrendMicro or HKEY_LOCAL_MACHINE \SOFTWARE \Wow6432Node\TrendMicro (in 64-bit Windows operating system)

6.  Delete the following keys (if available):
  • OfcWatchDog
  • Pc-cillinNTCorp or OfficeScanCorp (depends on the client)
  • RemoteAgent
  • PC-cillin
  • CFW
7.  Browse to the following registry key hive:
HKEY_LOCAL_MACHINE \SOFTWARE \Microsoft\Windows\CurrentVersion\Run

8.  Delete the OfficeScanNT Monitor key.

9.  Navigate to the following registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall

10.  Delete the OfficeScanNT key.

11.  Delete the OfficeScan program group (Trend Micro OfficeScan Client) from the Windows Start menu.

12.  Restart the computer.

13.  Delete the directories that contain the OfficeScan Client program files, normally located inside Program Files folder.

NOTE:  The above steps work for OfficeScan 7.x client in Windows 2003/XP/2000/NT/Vista/2008 machine. 
For Trend Micro OfficeScan Corporate Edition (OSCE) – 5.58, OfficeScan Corporate Edition (OSCE) – 6.5, Client / Server / Messaging Suite for SMB – 2.0, follow these manual uninstallation steps instead.

1.  Delete the Trend Micro OfficeScan Client program shortcut in Start Menu, by right click on it and then choose Delete.

2.  Delete the installed files located in the OfficeScan folder under the \Program Files\Trend Micro\OfficeScan Client directory.

3.  Open the Registry Editor (regedit).

4.  Navigate to the following registry key:
HKEY_LOCAL_MACHINE\Software\TrendMicro

5.Delete the following keys:
  • OfcWatchDog
  • PC-cilling
  • PC-cillingNTCorp
6.  Also delete the following registry hives:
◦HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\OfficeScanNT Monitor
◦HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\OfficeScanNT
◦HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ntrtscan
◦HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\tmfilter
◦HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\tmlisten
◦HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TmPreFilter (for Win2003)
◦HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\VSApiNt

7.  Right click on My Computer, click Manage and then select Device Manager.
 
8.  Enable the Show Hidden Devices option.
 
9.Remove the following hidden devices in Non-Plug and Play Drivers tree pertaining to OfficeScan (right-click and select Uninstall):
  • Trend Micro VSAPI NT
  • Trend Micro FILTER
  • Common Firewall Driver
  • NTRTSCAN (if available)
  • TMLISTEN (if available)
10.Restart the OfficeScan client machine.
This has worked for me each and every time I have had to do a manual removal.  Good luck.

Things You Can Open in Windows From the Run Command


With all the work I do on Windows Server knowing these commands is a real time saver instead of always having to run things down through the GUI.  This isn't by any means a full list but here is a list of some of the things you can access in Windows without the mouse (type these at a Run Prompt):

    control = Opens the Control Panel Window
    control admintools = Opens the Administrative Tools
    control keyboard = Opens the Keyboard Properties Window
    control color = Opens the Display Properties (at the Appearance Tab in Windows 7)
    control folders = Opens the Folder Options Window
    control fonts = Opens the Font Policy Management Window
    control international (or intl.cpl) = Opens Regional and Language Options
    control mouse (or main.cpl) Opens mouse properties
    control userpasswords = Opens the User Accounts Editor
    control userpasswords2 (or netplwiz) = Opens User Account Access Restrictions
    control printers = Opens the Printers and Faxes Window
    control desktop (Windows Vista/7 only) = Opens Control Panel>Personalization
    appwiz.cpl = Opens the Add or Remove Programs Utility
    optionalfeatures = opens the Add or Remove Windows Component utility
    desk.cpl = Opens the Display Properties (Themes Tab)
    hdwwiz.cpl = Opens the Add Hardware Wizard
    irprops.cpl = Opens the Infrared utility (does nothing if no IR devices are installed)
    joy.cpl = Opens  Game Controller Settings
    mmsys.cpl = Opens the Sound and Audio device properties window (Volume Tab)
    sysdm.cpl = Opens the System Properties window
    telephon.cpl = Opens the Phone and Modem options window
    timedate.cpl = Opens the Date and Time Properties window
    wscui.cpl = Opens the Windows Security Center in XP (opens the Action Center in Windows Vista/7)
    access.cpl = Opens the Accessibility Options Window (does not work in Windows 7)
    wuaucpl.cpl = Opens Automatic Updates
    powercfg.cpl = Opens the Power Options Properties window
    ncpa.cpl = Opens the Network Connections window
    bthprops.cpl = Opens the Bluetooth Control window (does nothing if no bluetooth devices are installed)
    certmgr.msc = Opens the Certificate Management MMC
    compmgmt.msc = Opens the Computer Management
    comexp.msc (or dcomcnfg) = Opens the Computer Services MMC
    devmgmt.msc = Opens Device Manager
    diskmgmt.msc = Opens Disk Management
    eventvwr.msc (or eventvwr) = Opens the Event Viewer
    fsmgmt.msc = Opens Shared Folders
    napclcfg.msc = Opens the NAP client configuration tool
    services.msc = Opens Service Manager
    taskschd.msc (or control schedtasks) = Opens the Task Scheduler
    gpedit.msc = Opens the Group Policy MMC
    lusrmgr.msc = Opens Local Users and Groups
    secpol.msc = Opens the Local Security Settings window
    ciadv.msc = Opens the Indexing Service Window
    ntmsmgr.msc = Opens the Removable Storage Manager
    ntmsoprq.msc = Opens the Removable Storage Operator Requests
    wmimgmt.msc = Opens the WMI (Windows Management Instrumentation) window
    perfmon.msc (or perfmon) = Opens the Performance Monitor
    mmc = Opens a blank Microsoft Management Console
    mdsched = Opens the Memory Diagnostics tools
    dxdiag = Opens DirectX diagnostics tools
    odbcad32 = Opens the ODBC Data Source Administration window
    regedit (or regedt32) = Opens the Registry Editor (these commands actually open different Registry editors, google for the differences)
    drwtsn32 = Opens Dr. Watson
    verifier = Opens the Driver Verification Manager
    cliconfg = Opens the SQL Server Client Network Utility
    utilman = Opens the Utility Manager (in Windows 7 this opens the Ease Of Access Center)
    msconfig = Opens the System Configuration Utility
    sysedit = Opens the System Configuration Editor
    syskey = Opens the Windows Account Database Security Manager
    explorer = Opens Windows Explorer
    iexplorer = Opens Internet Explorer
    wab = Opens the Windows Address Book
    charmap = Opens the Character Map
    write = Opens Wordpad

Active directory response: 00002098: SecErr: DSID-03150BB9, problem 4003 (INSUFF_ACCESS_RIGHTS)

Active directory response: 00002098: SecErr: DSID-03150BB9, problem 4003 (INSUFF_ACCESS_RIGHTS)

If you're getting this error trying to move mailboxes from Exchange 2003 or 2007 to Exchange 2010 then here's the simple fix.
  • Go into the user's account in AD and go to the Security tab. 
  • Check the box to Inherit permissions. If it's already set, clear it, force an AD update, and then check the box again. 

I had 2 boxes do this on my last Exchange migration. It's a real pain to find out after you've waited on the mailbox to copy but a very easy fix.

Friday, June 08, 2012

Using Backup Exec 2010 R3 to Restore Exchange Data

I borrowed this write up from the Symantec Connect Community here.  This is very well written process to restore Exchange data with a minimum of fuss (if there is such a thing dealing with tape drives).

Restoring Data in Exchange

Before restoring data, a few things need to be checked and enabled:
● Check that there is sufficient disk space available. This is because Backup Exec will stage the entire Exchange Information Store before restoring any individual items.
● The default location for temporary files is: C:\Temp. This needs to be changed to the drive with the most space available.
This is done as follows: Tools, Options, Restore (Path on media server for staging temporary restore data…).
● The user concerned needs to be logged out of their email.
● Make sure the user informs the Service Desk/engineer of exactly what they want restored.


Restoring Data Using a Duplicate Copy

This method duplicates an Exchange Information Store to the local server hard drive. The reason for using this method would be due to a large Exchange IS database size, or wanting to stage the restore once.
Should a restore fail during normal restore process, the entire Exchange IS needs to be re-staged. This will take time depending on the database’s size.

Do the following:
● Check for a drive with sufficient disk space for the restore. The available space must be at least the size of the Exchange IS.
● On the target drive, create a folder called: Exchange Restore.
● Open Backup Exec, and go to Devices. Right-click Backup-to-Disk Folders, and choose: New Backup-to-Disk Folder. Give it the name: Exchange Restore, and point it to the target drive and folder. Click OK.
● Go to Job Setup, select the job that runs for the site, and under Backup Tasks, choose: New job to duplicate backup sets. Choose OK.
● Browse the server concerned, and under Microsoft Information Store, choose the Information Store you want to stage to disk. You need to select the date/media.
● Choose the new Backup-to-Disk folder created for this purpose, and click Run Now. Let the job complete.
● Make a note of the name of the image created by this job (Devices --> Backup-to-Disk Folders --> Exchange Restore).
● Click the Restore tab in Backup Exec. When the “Welcome to the Restore Wizard” screen shows, deselect the tab to “Always launch the Restore Wizard from the Restore Button”, and click Next.
● Under Selections, choose View by Media, and chose the image created in the duplication job.
● Find the user’s mailbox that needs to be restored, open the mailbox, and click Top of Information Store.
● From here, individual emails, contacts and folders can be restored.
● Select what needs to be restored.
● Click Resource Credentials, and then Test All to make sure that the security credentials are correct,
● Click Run Now.
● Go to Job Monitor, and the job should run successfully. This will restore data straight into the user’s mailbox.

Outlook 2010 Certificate Error After Migration

I recently did a migration from Exchange 2003 to Exchange 2010.  The new environment uses a CAS/HT server and a mailbox only server.  Everything went great until the first user opened up Outlook 2010 and there was the dreaded SECURITY ALERT stating that the certificate is invalid or does not match the name of the site.

Here's the fix for that little issue.

Assuming you have already installed the UCC certificate on the Exchange server you will need to enable the cert.  You can run the following command to enable the certificate.

Enable-ExchangeCertificate -Thumbprint 59 5e a4 7c f0 4e 66 da 3d 6b 29 95 f7 c4 b1 72 ca 0f 82 -Services "SMTP, IIS"

Note: The thumbprint needs to match the certificate you installed.  You can use either the GET-CERTIFICATE command or use the MMC, select the certificate, click on details, and then click on thumbprint.

For each CAS server that is installed a Service Connection Point (SCP) record is created for the autodiscover service for internal clients.

When i go into Outlook i get the following error:

image

This happens because the connection is using the NetBIOS name of mbx1 which does not match the name on the certificate. If you run Get-ClientAccessServer -Identity mbx1 | FL you would see that the AutoDiscoverServiceInternalUri says https://MBX1/Autodiscover/Autodiscover.xml and this does not match the certificate.  If you also check the other services and you will get the same results for OAB, EWS, Outlook Anywhere (OA) and Exchange Active Sync (EAS).  The fix is to update all theses internal URL links to match the name on the cert.
  • Set-ClientAccessServer -Identity "mbx1" –AutodiscoverServiceInternalURI https://nlb.nwtraders.msft/autodiscover/autodiscover.xml


  • Set-WebServicesVirtualDirectory -Identity "mbx1\EWS (Default Web Site)" –InternalUrl  https://nlb.nwtraders.msft/EWS/Exchange.asmx

  • Set-OABVirtualDirectory -Identity “mbx1\OAB (Default Web Site)” -InternalURL https://nlb.nwtraders.msft/OAB

  • Enable-OutlookAnywhere -Server mbx1 -ExternalHostname “nlb.nwtraders.msft” -ClientAuthenticationMethod “NTLM”

  • Set-ActiveSyncVirtualDirectory -Identity “mbx1\Microsoft-Server-ActiveSync (Default Web Site)” -InternalURL https://nlb.nwtraders.msft/Microsoft-Server-Activesync

Note: If you do decide to enable OA externally it is important to note that the external host name value configured for Outlook Anywhere must match the Certificate Principal Name (CPN) on the certificate used by clients and must match the end point property in the client.

In order for Subject Alternate Name (SAN) certificates to be used for clients to connect to the OA service, where the CPN does not match the msstd value configured in the Outlook client profile (but the URL is listed in the SAN part of the certificate), certain conditions need to be met, these are listed below:-
  • Outlook 2007 or higher
  • Vista SP1

After this is completed once you open Outlook 2010 you will no longer get the certificate error.