How To: Completely Remove an Agent and All of Its Components

Version 17

    Purpose

     

    This article provides steps to completely remove all components of the Protect/Patch for Windows Servers (PWS) agent from a client system and then perform a clean re-installation of the agent.

    Do not perform these steps on your Protect / PWS console machine.

     

    Resolution

     

    To uninstall and then reinstall the agent:

     

    1. Uninstall the Shavlik Protect/Ivanti PWS Agent and its components from Add/Remove Programs or Programs & Features in the Windows Control Panel.
    2. Delete the ProgramData/App Data folders:
      • Vista & Newer – C:\ProgramData\LANDesk\Shavlik Technologies
      • XP/2003 – C:\Documents & Settings\All Users\Application Data\LANDesk\Shavlik Technologies
    3. Delete the C:\Program Files\LANDesk\Shavlik Protect Agent folder

    For 64bit machines, ensure to add (x86) to the path.

    1. Delete the relevant certificates.

      To delete certificates:
      1. Click Start > Run, type mmc, and click OK. The MMC Snap In window opens.
      2. Click File > Add/Remove Snap-In.
      3. Under Available Snap Ins, select Certificates.
      4. Click Add.
      5. Select the Computer Account option and click Next.
      6. Ensure that the Local Computer option is selected and then click Finish.
      7. Close the Add or Remove Snap Ins window.   
        You should now see Certificates listed under Console Root.
      8. Expand Certificates.
      9. Delete these certificates that are listed as being issued by ST Root Authority:
        • Personal\Certificates
        • Trusted Root Certification Authorities\Certificates
        • Intermediate Certification Authorities\Certificates
      10. Close the window.
    2. Verify that the agent machine keys are removed.

    The machine keys are located at:

    Windows 2008, 2008 R2, Vista, and 7 – C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys
    Windows 2003, 2003 R2, and XP – C:\Documents & Settings\All Users\Application Data\ Microsoft\Crypto\RSA\MachineKeys

    You can open these files using a text editor, such as notepad, and then use CTRL+F to search for the words console and agent in each of these files.

    If any of the files have the word console or agent in plain text, delete the file. Do not delete any files that do not contain these words in plain text.

    Do not delete any certificates or files in the Crypto\RSA\MachineKeys folder that you are not sure about. If you have any questions, contact Shavlik Support.

    It is highly recommended to perform a backup of the registry before performing any modifications.

    How to back up Windows Registry: http://windows.microsoft.com/en-US/windows-vista/Back-up-the-registry

    1. Open regedit and navigate to HKEY_CLASSES_ROOT\Installer\UpgradeCodes\

            Delete or rename the key that contains any of the GUIDS below:

            Make sure to use the corresponding GUID for the version of Protect you are attempting to uninstall.

    • Protect 7.0.832.0: {C6D1AE7C-DE93-4E93-A916-C4144525C82C}
    • Protect 7.0.841.0: {C6D1AE7C-DE93-4E93-A916-C4144525C82C}
    • Protect 7.1.410.0: {90047C28-0B1B-4B30-8177-50729907EBF2}
    • Protect 7.2.155.0: {9B7F1E45-4C47-4E25-9EAB-098923E4171C}
    • Protect 7.5.2716.0: {CEA2D643-08C0-422E-9B27-B58ED9D38D07}
    • Protect 7.6.1482.0: {661A3308-5BE2-4E0F-A752-BDDB247DD2DB}
    • Protect 7.8.1340.0: {0A4D8D5E-7177-4A45-8A7F-0A5757403F97}
    • Protect 7.8.1388.0: {0A4D8D5E-7177-4A45-8A7F-0A5757403F97}
    • Protect 7.8.1392.0: {0A4D8D5E-7177-4A45-8A7F-0A5757403F97}
    • Protect 8.0.3756.0: {F77AFB04-D13F-48DA-BB99-A5B31B6AAE0B}
    • Protect 8.0.3965.1: {5A696B05-9F06-4B3D-83A0-69E848EFAC4A}
    • Protect 9.0.1106:    {FD2F9A12-2845-7E54-5BD6-99619B461852}
    • Protect 9.0.1182:    {FD2F9A12-2845-7E54-5BD6-99619B461852}
    • Protect 9.1.4334:    {FD2F9A12-2845-7E54-5BD6-99619B461852}
    • Protect 9.1.4472:    {FD2F9A12-2845-7E54-5BD6-99619B461852}
    • Patch for Windows Servers 9.3.4379 {FD2F9A12-2845-7E54-5BD6-99619B461852}
    • Patch for Windows Servers 9.3.4440 {FD2F9A12-2845-7E54-5BD6-99619B461852}
    1. Delete the following registry key, if it exists: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\LANDESK\Shavlik Protect\Agent
    2. Reboot the machine.
    3. (Optional) Install the agent either from the Protect console or using the manual installer package.

     

    Affected Product(s)

     

    Shavlik Protect 9.x

    Ivanti Patch for Windows Server 9.3+