Uninstalling an agent manually on the Windows operating system

If Add or Remove Programs from the Windows™ Control Panel fails to uninstall an agent, run the following steps:
  1. If you have jobs that are currently running on the workstation, wait for them to finish. To determine which are not finished, check for jobs that are in the exec state. When there are no jobs in this state, you can continue with the rest of the procedure.
  2. Log on to the computer where the agent is installed as a user in the Administrators group.
  3. Run the ShutDownLwa command to stop the agent and then verify that the agent and JobManager processes are down.
  4. Open the %WINDIR%\TWSRegistry.dat file. Delete all the rows that contain the name of the TWS_user. For example, if the user ID is twsuser, delete the rows containing twsuser, as shown in the following example:
    /Tivoli/Workload_Scheduler/twsuser_DN_objectClass=OU
    /Tivoli/Workload_Scheduler/twsuser_DN_PackageName=FP_TWS_WINDOWS_X86_64_twsuser.9.5.0.01
    /Tivoli/Workload_Scheduler/twsuser_DN_MajorVersion=9
    /Tivoli/Workload_Scheduler/twsuser_DN_MinorVersion=5
    /Tivoli/Workload_Scheduler/twsuser_DN_PatchVersion=1
    /Tivoli/Workload_Scheduler/twsuser_DN_FeatureList=
    /Tivoli/Workload_Scheduler/twsuser_DN_ProductID=TWS_ENGINE
    /Tivoli/Workload_Scheduler/twsuser_DN_ou=twsuser
    /Tivoli/Workload_Scheduler/twsuser_DN_InstallationPath=C:\Program Files\IBM\TWA_twsuser\TWS
    /Tivoli/Workload_Scheduler/twsuser_DN_UserOwner=twsuser
    /Tivoli/Workload_Scheduler/twsuser_DN_MaintenanceVersion=0
    /Tivoli/Workload_Scheduler/twsuser_DN_Agent=LWA
  5. Delete the file teb_tws_cpa_agent_tws_user.ini, which is located in the %windir%\teb directory.
  6. Delete the installation directory and all its contents.
  7. Depending on what point the installation or uninstallation process reached before it failed, you might need to remove the tws_cpa_agent registry key. To do so, run the regedit command as follows:
    1. Select Start > Run, type regedit and press the enter key.
    2. Select HKEY_LOCAL_MACHINE > Software.
    3. Open System > CurrentControlSet > Services.
    4. Delete the tws_cpa_agent_user_ID key.
  8. Depending on what point the installation or uninstallation process reached before it failed, you might need to remove the Add or Remove Programs keys. To do, this, use the system's facilities:
    1. Open the Add or Remove Programs option window from the Windows Control Panel
    2. If Tivoli Workload Scheduler is available on the menu, click Remove on it.
    3. As you have, in the previous step, removed the uninstaller, a message is displayed, asking if you want to remove the Add or Remove Programs keys. Click "Yes" and the keys are removed.

The agent is now completely removed from the computer.