Aug 9, 2010

How to manually uninstall WSUS

Sometimes it may happen that in wanting to remove the installation of WSUS we throw an error and does not end up removing part of it. La idea es comentar los pasos necesarios para remover dicha instalación manualmente. The idea is to discuss the steps necessary to remove the installation manually. Qué se puede borrar, qué hay que modificar, qué hay que ejecutar, etc. What can delete, what to modify, what to run, etc.
Algunos pasos estan basados en KB's de Microsoft que también linkeo en el mismo artículo. Some steps are based on KB's from Microsoft that also'm just linking to the article. Luego de removerlo podrás instalarlo en el equipo nuevamente como si nunca hubiera estado instalado. After removing it you can install on your computer again as if it had never been installed.
 1. 1. En principio debemos parar todos los servicios de WSUS asociados. In principle we should stop all WSUS related services. Tanto de Update Services, como de la base de datos en caso de ser local y los de IIS para poder hacer una desinstalación completa y que no falle ningún archivo. Both of Update Services, and the database should be local and IIS to do a complete uninstall and you do not miss any.
2. 2. En caso de ser un equipo dedicado a WSUS habría que eliminar la base de datos. In the case of a team dedicated to WSUS should be eliminated database. Si se instaló con SQL Server 2005 no hace falta desinstalarlo, sólo remover la base, pero si se utilizó Windows Internal Database habría que removerla para que no arroje errores al reinstalarlo. If SQL Server 2005 installed with no need to uninstall, just remove the base, but if Windows Internal Database was used to remove it would have to not throw errors when reinstalling.
  • Abrir una ventana de comandos ( cmd.exe ) Open a command window (cmd.exe)
  • Ejecutar uno de los siguientes comandos: Run one of the following commands:
    En plataforma 32-bit: msiexec /x {CEB5780F-1A70-44A9-850F-DE6C4F6AA8FB} callerid=ocsetup.exe In 32-bit platform: msiexec / x (CEB5780F-1A70-44A9-850F-DE6C4F6AA8FB) callerid = ocsetup.exe
    En plataforma 64bit: msiexec /x {BDD79957-5801-4A2D-B09E-852E7FA64D01} callerid=ocsetup.exe 64bit platform: msiexec / x (BDD79957-5801-4A2D-B09E-852E7FA64D01) callerid = ocsetup.exe
  • Eliminar las bases que se encuentren debajo de la carpeta %windir%\SYSMSI\SSEE Remove the bases that are under the folder% windir% \ SYSMSI \ SSEE
Link de Microsoft » Link to Microsoft "
3. 3. Ahora procedemos a eliminar el directorio de instalación, generalmente en %ProgramFiles%\Update Services . Now proceed to remove the installation directory, typically in% ProgramFiles% \ Update Services. Borramos esa carpeta y todas las subcarpetas. Delete that folder and all subfolders.
4. 4. Eliminamos la entrada en el registro correspondiente a la instalación del producto: Remove the registry entry for product installation:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Update Services HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Update Services
5. 5. Ahora eliminamos el resto de las entradas del registro que corresponden a los servicios de WSUS: Now remove the remaining registry entries that correspond to the WSUS service:
HKLM\SYSTEM\CurrentControlSet\Services\WSUS: API Remoting Web Service HKLM \ SYSTEM \ CurrentControlSet \ Services \ WSUS: API Remoting Web Service
HKLM\SYSTEM\CurrentControlSet\Services\WSUS: Client Web Service HKLM \ SYSTEM \ CurrentControlSet \ Services \ WSUS: Client Web Service
HKLM\SYSTEM\CurrentControlSet\Services\WSUS: Client Web Service Methods HKLM \ SYSTEM \ CurrentControlSet \ Services \ WSUS: Client Web Service Methods
HKLM\SYSTEM\CurrentControlSet\Services\WSUS: Reporting Web Service HKLM \ SYSTEM \ CurrentControlSet \ Services \ WSUS: Reporting Web Service
HKLM\SYSTEM\CurrentControlSet\Services\WSUS: Server Web Methods HKLM \ SYSTEM \ CurrentControlSet \ Services \ WSUS: Server Web Methods
HKLM\SYSTEM\CurrentControlSet\Services\WSUS: Server Web Service HKLM \ SYSTEM \ CurrentControlSet \ Services \ WSUS: Server Web Service
HKLM\SYSTEM\CurrentControlSet\Services\WSUS: Update Regulation Web Methods HKLM \ SYSTEM \ CurrentControlSet \ Services \ WSUS: Update Regulation Web Methods
HKLM\SYSTEM\CurrentControlSet\Services\WSusCertServer HKLM \ SYSTEM \ CurrentControlSet \ Services \ WSusCertServer
HKLM\SYSTEM\CurrentControlSet\Services\WsusService HKLM \ SYSTEM \ CurrentControlSet \ Services \ WsusService
6. 6. Como siguiente paso debemos eliminar los archivos de instalación MSI del producto. As a next step we delete the files from MSI installation of the product. Para esto vamos a utilizar una herramienta de Microsoft llamada Windows Installer CleanUp Utility . For this we will use a Microsoft tool called Windows Installer CleanUp Utility. La utilidad se encuentra en el KB290301 » de Microsoft. The utility is located in the KB290301 " from Microsoft. Ahí figura como bajarla y ejecutarla. There appears as lower it and run. Sólo debemos seleccionar los paquetes correspondientes a WSUS y removerlos. We just need to select packages and remove them for WSUS.
7. 7. Si el equipo no tiene otro sitio web instalado, entonces te recomiendo remover el servicio de IIS del servidor utilizando Add/Remove Programs o bien Roles del 2008. If the computer does not have another website up, then I recommend removing the IIS service on the server using Add / Remove Programs or Roles, 2008. En caso de que existan otros sitios sólo podes eliminar el de WSUS junto a su Application Pool correspondiente. If there are other places you can only delete the WSUS Application Pool with his question. En caso de que compartan el sitio pero con otros directorios virtuales, podes eliminar los siguientes que sí estan relacionados con WSUS: If the site but share with other virtual directories, you can delete the following if they are related to WSUS:
  • Inventory Inventory
  • DSSAuthWebService DSSAuthWebService
  • ApiRemoting30 ApiRemoting30
  • Content Content
  • ReportingWebService ReportingWebService
  • SelfUpdate SelfUpdate
  • ServerSyncWebService ServerSyncWebService
  • SimpleAuthWebService SimpleAuthWebService
  • ClientWebService ClientWebService
8. 8. En caso de que no vayas a reinstalar el WSUS o bien quieras que baje todos los parches nuevamente y regenere la base de datos de información, tenés que eliminar el directorio C:\WSUS . If you're not going to reinstall the WSUS or want to download all the patches again and rebuild the database information, you have to delete the directory C: \ WSUS. La unidad varía según cada instalación. The unit varies with each installation. Si vas a reinstalar el producto y queres mantener lo mismo, podes dejarlo y apuntar al mismo directorio, pero recomiendo remover todo y empezar de nuevo. If you are reinstalling the product and want to maintain the same, you can leave and hit the same directory, but I recommend removing everything and start again.
9. 9. Ahora reiniciá el servidor y ya quedaría limpio para reinstalar. Now restart the server and that would clean reinstall.
10. 10. Recordá que si eliminaste el IIS y querés reinstalar tenes que volver a agregarlo con los componentes básicos como requisito de instalación. Remember that if you delete the IIS and you want to reinstall you have to re-add with the basic components and installation requirements.