1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Windows ServerのCドライブが100%だったけどそんな訳ないやろ

Posted at

結論を先に言ってしまうと、WinSxS Folderが肥大化してしまっていたらしい。

Windowsの「C:\Windows\WinSxS」ディレクトリは「コンポーネントストア」とも呼ばれ、Windowsのサービシング(Servicing、Windowsの機能や更新プログラムのインストール/アンインストールなど)に関係するファイルの格納場所となっています。

引用
https://atmarkit.itmedia.co.jp/ait/articles/2205/25/news007.html#:~:text=Windows%E3%81%AE%E3%80%8CC%3A%5CWindows%5CWinSxS%E3%80%8D%E3%83%87%E3%82%A3%E3%83%AC%E3%82%AF%E3%83%88%E3%83%AA%E3%81%AF%E3%80%8C,%E5%A0%B4%E6%89%80%E3%81%A8%E3%81%AA%E3%81%A3%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99%E3%80%82

なので、WinSxSのサイズを圧縮してあげれば良いようです。


Log file in here C:\Windows\Logs\DISM\

dism /online /cleanup-image /ScanHealth

DISM /Online /Cleanup-Image /RestoreHealth /source:WIM:E:\path-to-the-WIM\Install.wim:1 /LimitAccess
(download ISO of OS and mount it to access install.wim or copy install.wim to somewhere and use the path to it in above command)
NOTE: the :1 refers to the OS folder inside (e.g. Server 2016 Standard is :1 and Datacebter maybe like :3). check with this command to find/conform which one: 
dism /Get-WimInfo /WimFile:H:\sources\install.wim

dism /online /cleanup-image /startcomponentcleanup
and maybe you want do:
Dism /online /Cleanup-Image /StartComponentCleanup /ResetBase
( removes all superseded versions of every component in the component store)

参考
https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/clean-up-the-winsxs-folder?view=windows-11

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?