{"id":1,"date":"2016-09-23T13:42:55","date_gmt":"2016-09-23T13:42:55","guid":{"rendered":"http:\/\/www.web-workers.ch\/?p=1"},"modified":"2017-03-02T12:55:31","modified_gmt":"2017-03-02T12:55:31","slug":"how_to_reinstall_wsus_on_windows_2012_r2","status":"publish","type":"post","link":"https:\/\/www.web-workers.ch\/index.php\/2016\/09\/23\/how_to_reinstall_wsus_on_windows_2012_r2\/","title":{"rendered":"How to reinstall WSUS on Windows 2012 R2"},"content":{"rendered":"<p style=\"text-align: left;\">To re-install WSUS with a clean database i.e. no previous configuration, run the following procedure (powershell commands).<\/p>\n<blockquote>\n<p style=\"text-align: left;\"><span style=\"font-size: 10pt;\"><span style=\"text-decoration: underline;\"><em>Remove all WSUS components<\/em><\/span><br \/>\n<span style=\"font-size: small;\"><br \/>\n&#8211; <\/span>Uninstall-WindowsFeature -Name UpdateServices,Windows-Internal-Database,Iis<br \/>\n&#8211;\u00a0Remove-WindowsFeature -Name UpdateServices,UpdateServices-DB,UpdateServices-RSAT,UpdateServices-API,UpdateServices-UI-IncludeManagementTools<br \/>\n&#8211; Delete\u00a0C:\\Windows\\WID<br \/>\n&#8211;\u00a0Delete the registry key HKLM\\SOFTWARE\\Microsoft\\Update Services<br \/>\n&#8211;\u00a0Delete the WSUS file from %appdata%\\Microsoft\\MMC<br \/>\n&#8211;\u00a0Delete\u00a0folder %ProgramFiles%\\Update Services along with all of its subfolders and files.<br \/>\n&#8211; Reboot the Server<br \/>\n<\/span><\/p>\n<p style=\"text-align: left;\"><span style=\"font-size: 10pt;\"><span style=\"text-decoration: underline;\"><em><br \/>\nInstall\u00a0all WSUS components<\/em><\/span><\/span><\/p>\n<p style=\"text-align: left;\"><span style=\"font-size: 10pt;\">&#8211; Verify IIS is installed and working without errors (check http:\/\/localhost\u00a0on server)<br \/>\n&#8211;\u00a0Install-WindowsFeature -Name Iis<br \/>\n&#8211; Install-WindowsFeature <span style=\"font-size: small;\">&#8211;<\/span>Name UpdateServices <span style=\"font-size: small;\">&#8211;<\/span>IncludeManagementTools<br \/>\n<\/span><\/p>\n<p>&#8211;\u00a0Once WSUS installation has completed, change the current working directory to %programfiles%\\Update Services\\Tools and run one of the following post-installation commands:<\/p>\n<p>To use a SQL DB: .\\wsusutil.exe postinstall SQL_INSTANCE_NAME=\u201dSERVER\\Instance\u201d CONTENT_DIR=\u201d&lt;drive&gt;:\\WSUS\u201d<\/p>\n<p>To use WID: .\\wsusutil.exe postinstall CONTENT_DIR=\u201d&lt;drive&gt;:\\WSUS\u201d<\/p>\n<p style=\"text-align: left;\"><span style=\"font-size: 10pt;\">&#8211; Reboot the Server<\/span><\/p>\n<\/blockquote>\n<p style=\"text-align: left;\">Logfiles for WSUS post-Installation tasks are\u00a0located in the %temp% folder.\u00a0There should be a log file with the .TMP file extension. (EXAMPLE: tmp56B7.tmp)<\/p>\n<p>Sources:<br \/>\n&#8211; <a href=\"http:\/\/serverfault.com\/questions\/449914\/how-to-completely-wipe-wsus-and-start-again\" target=\"_blank\">http:\/\/serverfault.com\/questions\/449914\/how-to-completely-wipe-wsus-and-start-again<\/a><br \/>\n&#8211; <a href=\"https:\/\/ittherapist.net\/2013\/12\/17\/how-to-fix-windows-server-2012-and-2012-r2-wsus-post-install-fails-immediately\/\" target=\"_blank\">https:\/\/ittherapist.net\/2013\/12\/17\/how-to-fix-windows-server-2012-and-2012-r2-wsus-post-install-fails-immediately\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>To re-install WSUS with a clean database i.e. no previous configuration, run the following procedure (powershell commands). Remove all WSUS components &#8211; Uninstall-WindowsFeature -Name UpdateServices,Windows-Internal-Database,Iis &#8211;\u00a0Remove-WindowsFeature -Name UpdateServices,UpdateServices-DB,UpdateServices-RSAT,UpdateServices-API,UpdateServices-UI-IncludeManagementTools &#8211; Delete\u00a0C:\\Windows\\WID [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":23,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[3],"tags":[46,43,49,39,59,52,9,78,29,107,79,102,28],"class_list":["post-1","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mswin","tag-file","tag-http","tag-https","tag-iis","tag-lock","tag-log","tag-microsoft","tag-mmc","tag-server","tag-shell","tag-sql","tag-update","tag-windows"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.web-workers.ch\/wp-content\/uploads\/2016\/09\/7484.Restart-warning_01455B5B.png?fit=1437%2C788&ssl=1","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8sxjX-1","jetpack-related-posts":[],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/www.web-workers.ch\/index.php\/wp-json\/wp\/v2\/posts\/1","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.web-workers.ch\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.web-workers.ch\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.web-workers.ch\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.web-workers.ch\/index.php\/wp-json\/wp\/v2\/comments?post=1"}],"version-history":[{"count":23,"href":"https:\/\/www.web-workers.ch\/index.php\/wp-json\/wp\/v2\/posts\/1\/revisions"}],"predecessor-version":[{"id":106,"href":"https:\/\/www.web-workers.ch\/index.php\/wp-json\/wp\/v2\/posts\/1\/revisions\/106"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.web-workers.ch\/index.php\/wp-json\/wp\/v2\/media\/23"}],"wp:attachment":[{"href":"https:\/\/www.web-workers.ch\/index.php\/wp-json\/wp\/v2\/media?parent=1"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.web-workers.ch\/index.php\/wp-json\/wp\/v2\/categories?post=1"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.web-workers.ch\/index.php\/wp-json\/wp\/v2\/tags?post=1"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}