WSUS3の保存領域の引越に失敗した

Cドライブの容量不足通知が来るのでDから分けてやろうと実行したら、OSの機能だけで行うには

  • Dのデータを退避
  • サーバマネージャーでDを削除、Cを増量する
  • Dを作成

WSUS 3.0 SP2 をデータベースごと移行する方法についてを読みながら進めているので大丈夫!って思っていたけど躓いた。

※移行元と移行先のいずれか、または両方が SQL Server (製品版) を使用、もしくはインストールしている場合は、

製品版じゃないのでダメだったらしい。

WSUSは起動しないし、Dドライブは削除済みで\(^o^)/な状態・・・

サーバマネージャーで削除も出来ない\(^o^)/\(^o^)/\(^o^)/

Manual Uninstall of WSUS 3.0にあった手順を行う。

regedit.mscでHKLM\Software\Microsoft\Update Services\Serverのキーを削除!
エクスプローラで%ProgramFiles%\Update Services\Logfilesをバックアップ
%ProgramFiles%\Update Servicesを削除
再起動後に役割追加ウィザードでインストール

ほほう。試すがエラーになり、ログファイルを眺める

ParseCommandLine: Failed to open SOFTWARE\Microsoft\Update Services\Server\Setup registry key (Error 0x80070002: 指定されたファイルが見つかりません。)
DoInstall: ParseCommandLine failed (Error 0x80041453)

これに対する解決策をUnable to re-install WSUS 3 SP2 on Windows 2008 R2 SP1で見つける

1) If you still have a folder called DATA (with files in it) located in C:\Windows\SYSMSI\SSEE\MSSQL.2005\MSSQL; rename the folder to DATA-OLD
2) Install Windows Internal DB from CMD: WSSEE" /norestart - I removed the /quiet switch to present any errors at install, WSUS does not do this by default - if it did my problems would have been solved earlier.
3) Correct reg key permission:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\C40F045322D54ED0EEFABB9874F97A0A\
Subkey name: 25B648779C414CF4EB36EF60FA054124
Subkey does not contain correct permission: Take ownership of subkey, then go to parent key and replace permission on subkeys (should only be one subkey as shown above)
4) Perform the WSUS install from the download.

Hopefully this will help someone!

This was copied from here: www.experts-exchange.com/ITPro/IT_Administration/Q_24911652.html

For me there were several instances of "25B648779C414CF4EB36EF60FA 054124" I went back to "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\" and reset all the permissions for all the GUID's. I am not sure if that was a good idea but it worked.

1番目のリネームを試すと

「対象のフォルダへのアクセスは拒否されました」
「この操作を実行するアクセス許可が必要です」

色々と試しているけど、拒否され続けている・・・WSUSで管理している更新ファイルは再取得出来る。クライアントPCの情報って再取得すれば良いとなるとMS SQLを再インストールでいいかとか考えたけど、他のアプリケーションで使っているからダメだ。

ぐぐっていると私の戦場はここじゃない。他。(とあるネットワーク屋の日常)で同じような悩みを発見、
・・・紆余曲折

Manual Uninstall of WSUS 3.0を読む。

手動WSUS3削除手順

  • コマンドプロンプトを起動
  • msiexec /x {BDD79957-5801-4A2D-B09E-852E7FA64D01} callerid=ocsetup.exe
  • Windows Internal Database(MICROSOFT##SSEE)」が再起動を要求
  • %ProgramFiles%\Update Servicesをリネーム
  • %windir%\SYSMSI\SSEEをリネーム(出来た!!SSEEが原因だった)
  • OS再起動
  • インストールできない、変わらない\(^o^)/


・・・また途方に暮れる

まだ手はあるみたいだ。
https://support.microsoft.com/ja-jp/kb/290301/ja
MSICUU2.exeは入手できないけど、Fixitを取得できるので試す。1時間半ぐらいで終わる。

破損したパッチ レジストリーキー:未解決
プログラムをインストールまたはアンインストールできない:解決済み

結果はよくわからん。

役割の追加ウィザードでWSUSを入れ始めたのが金曜日の夕方、月曜の朝に確認してみるとWSUSウィザードが使えるようになっていた。
C:\WSUSを指定してインストーーーる!

結論

アンインストールに失敗したらWindows Installer Cleanup Utilityを思い出すこと。