Cannot delete WSUS role on SBS 2008


trying fix wsus on sbs 2008 server, followed https://technet.microsoft.com/en-us/library/dd939818(v=ws.10).aspx , ran command msiexec /x {bdd79957-5801-4a2d-b09e-852e7fa64d01} callerid=ocsetup.exe

i'm still receiving error 0x80070643 messagecode: -2147023293 when trying delete wsus role sbs 2008 server.

the worst, lost access sharepoint services.

any idea how windows internal database, or fix suppression of wsus role sbs 2008 in order reinstall after role?

thank you

thank anne,

i arrived delete enterely wsus of powershell script submitted microsoft support.

thank !

here powershell taht fixed problem.

write-host "****** wsus 3.0 removal script - ver 2.0 author: moloyt@microsoft.com ******" -foregroundcolor red -backgroundcolor yellow write-host "****** script remove wsus 3.0 sbs 2008 ******" -foregroundcolor red -backgroundcolor yellow write-host "****** please make sure have backup of server before proceed further ******" -foregroundcolor red -backgroundcolor yellow   $userinput = read-host "do want continue?" `n"[y] yes [n] no" if ($userinput -eq "n") {write-host "script execution cancelled" -foregroundcolor red -backgroundcolor yellow}   elseif ($userinput -eq "y") {  #creating backup folder write-host "creating backup folder" -foregroundcolor red -backgroundcolor yellow md $env:systemdrive\updateservicesbackup\registrybackup -force -confirm:$false   #stopping update services service write-host "stopping update services service" -foregroundcolor red -backgroundcolor yellow stop-service wsusservice -force -confirm:$false   #stopping windows internal database service write-host "stopping windows internal database service" -foreground red -backgroundcolor yellow stop-service *microsoft##ssee* -force -confirm:$false   #backing registry write-host "backing registry" -foregroundcolor red -backgroundcolor yellow reg export hklm\system\currentcontrolset\services $env:systemdrive\updateservicesbackup\registrybackup\servicesbackup.reg /y reg export hklm\software\microsoft\"microsoft sql server" $env:systemdrive\updateservicesbackup\registrybackup\sqlbackup.reg /y if (test-path hklm:\software\microsoft\"update services") {reg export hklm\software\microsoft\"update services" $env:systemdrive\updateservicesbackup\registrybackup\updateservicesbackup.reg /y} reg export hklm\software\microsoft\windows\currentversion\installer\userdata $env:systemdrive\updateservicesbackup\registrybackup\userdatabackup.reg /y reg export hklm\software\classes\installer\products $env:systemdrive\updateservicesbackup\registrybackup\productsbackup.reg /y   #storing information wsus contentdir in variable if (test-path "hklm:\software\microsoft\update services\server\setup") {$wsusdbpath = get-itemproperty -path "hklm:\software\microsoft\update services\server\setup" -name contentdir}   #deleting wsus web site , application pool write-host "deleting wsus web site , application pool" -foregroundcolor red -backgroundcolor yellow cd $env:windir\system32\inetsrv .\appcmd.exe add backup "iis backup before wsus removal" .\appcmd.exe stop apppool "defaultapppool" .\appcmd.exe stop site "default web site" .\appcmd.exe delete site "wsus administration" .\appcmd.exe delete apppool "wsuspool"   #deleting registry entries related wsus write-host "deleting registry entries related wsus" -foregroundcolor red -backgroundcolor yellow new-psdrive -name hkcr -psprovider registry -root hkey_classes_root if (test-path hklm:\software\microsoft\"update services") {remove-item hklm:\software\microsoft\"update services" -force -recurse -confirm:$false} if (test-path hklm:\system\currentcontrolset\services\wsus*) {remove-item hklm:\system\currentcontrolset\services\wsus* -force -recurse -confirm:$false} if (test-path hklm:\software\classes\installer\products\25b648779c414cf4eb36ef60fa054124) {remove-item hklm:\software\classes\installer\products\25b648779c414cf4eb36ef60fa054124 -force -recurse -confirm:$false} if (test-path hklm:\software\microsoft\windows\currentversion\installer\userdata\s-1-5-18\products\25b648779c414cf4eb36ef60fa054124) {remove-item hklm:\software\microsoft\windows\currentversion\installer\userdata\s-1-5-18\products\25b648779c414cf4eb36ef60fa054124 -force -recurse -confirm:$false} if (test-path hkcr:\wsus*) {remove-item hkcr:\wsus* -force -recurse -confirm:$false} if (test-path hklm:\software\microsoft\windows\currentversion\uninstall\"windows server update services 3.0 sp2") {remove-item hklm:\software\microsoft\windows\currentversion\uninstall\"windows server update services 3.0 sp2" -force -recurse -confirm:$false} if (test-path hklm:\software\microsoft\windows\currentversion\uninstall\"windows server update services 3.0 sp1") {remove-item hklm:\software\microsoft\windows\currentversion\uninstall\"windows server update services 3.0 sp1" -force -recurse -confirm:$false} if (test-path hklm:\software\microsoft\.netframework\v2.0.50727\assemblyfoldersex\"update services assemblies") {remove-item hklm:\software\microsoft\.netframework\v2.0.50727\assemblyfoldersex\"update services assemblies" -force -recurse -confirm:$false}   #renaming c:\program files\update services folder write-host "renaming c:\program files\update services folder" -foregroundcolor red -backgroundcolor yellow cd $env:systemdrive if (test-path $env\"program files\update services") {rename-item -path $env\"program files\update services" -newname "update services_old" -force -confirm:$false} if (test-path $env\"inetpub\wwwroot\iuident.cab") {remove-item -path $env\"inetpub\wwwroot\iuident.cab" -force -recurse -confirm:$false} if (test-path $env\"inetpub\wwwroot\wutrack.bin") {remove-item -path $env\"inetpub\wwwroot\wutrack.bin" -force -recurse -confirm:$false} if (test-path $env\"programdata\microsoft\windows\start menu\programs\administrative tools\windows server update services.lnk") {remove-item -path $env\"programdata\microsoft\windows\start menu\programs\administrative tools\windows server update services.lnk" -force -recurse -confirm:$false} if (test-path $env\"programdata\microsoft\windows\start menu\programs\administrative tools\microsoft windows server update services 3.0 sp1.lnk") {remove-item -path $env\"programdata\microsoft\windows\start menu\programs\administrative tools\microsoft windows server update services 3.0 sp1.lnk" -force -recurse -confirm:$false} if (test-path $env\"programdata\microsoft\event viewer\views\serverroles\windowsserverupdateservices.events.xml") {remove-item -path $env\"programdata\microsoft\event viewer\views\serverroles\windowsserverupdateservices.events.xml" -force -recurse -confirm:$false}   #renaming wsus folder write-host "renaming wsus folder" -foregroundcolor red -backgroundcolor yellow if (test-path $wsusdbpath.contentdir) {rename-item -path $wsusdbpath.contentdir -newname "wsus_old" -force -confirm:$false} get-psdrive -psprovider filesystem | foreach-object {if(test-path (($_.root)+"wsus")){rename-item -path (($_.root)+"wsus") -newname (($_.root)+"wsus_old") -force -confirm:$false}}   #starting default web site , defaultapppool write-host "starting default web site , defaultapppool" -foregroundcolor red -backgroundcolor yellow cd $env:windir\system32\inetsrv .\appcmd.exe start apppool "defaultapppool" .\appcmd.exe start site "default web site"   #starting windows internal database service write-host "starting windows internal database service" -foreground red -backgroundcolor yellow start-service *microsoft##ssee* -confirm:$false   write-host "****** end of script ******" -foregroundcolor red -backgroundcolor yellow write-host "****** must reboot server before attempting installation of wsus 3.0 ******" -foregroundcolor red -backgroundcolor yellow  }  else {write-host "wrong input. please type either y or n" -foregroundcolor red -backgroundcolor yellow} 




Windows Server  >  WSUS



Comments

Popular posts from this blog

WIMMount (HSM) causing cluster storage to go redirected (2012r2 DC)

Failed to delete the test record dcdiag-test-record in zone test.com

Azure MFA with Azure AD and RDS