ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Best Way to clean up WinSXS folder on Server 2008 R2

    IT Discussion
    windows winsxs updates
    4
    10
    5.9k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ?
      A Former User
      last edited by

      almost all our servers (VMs) have a 40GB C Drive for the OS install. A lot of them I'm finding are near full, this seems to be because the WinSxS folder is huge (one right now is 21GB). What's the best way to clean it? I know you can install windows desktop experience and then use the disk cleanup utility but I do no want to go through that trouble.

      nadnerBN 1 Reply Last reply Reply Quote 2
      • scottalanmillerS
        scottalanmiller
        last edited by

        I know that @GregoryHall was working on this just this week. Maybe he has some insight.

        1 Reply Last reply Reply Quote 0
        • AmbarishrhA
          Ambarishrh
          last edited by

          What about using the powershell script from https://gallery.technet.microsoft.com/scriptcenter/CleanMgrexeKB2852386-83d7a1ae

          ? 1 Reply Last reply Reply Quote 1
          • ?
            A Former User @Ambarishrh
            last edited by A Former User

            @Ambarishrh said:

            What about using the powershell script from https://gallery.technet.microsoft.com/scriptcenter/CleanMgrexeKB2852386-83d7a1ae

            Thanks. Sadly that requires the Desktop Experience feature to be installed. Not sure I want to be doing that on all my servers. at least 25 of them are heavy load SQL servers.

            1 Reply Last reply Reply Quote 0
            • AmbarishrhA
              Ambarishrh
              last edited by

              This seems like explaining what you want

              https://www.lisenet.com/2014/disk-cleanup-on-windows-server-2008-without-installing-desktop-experience/

              nadnerBN 1 Reply Last reply Reply Quote 1
              • nadnerBN
                nadnerB @Ambarishrh
                last edited by

                @Ambarishrh said:

                This seems like explaining what you want

                https://www.lisenet.com/2014/disk-cleanup-on-windows-server-2008-without-installing-desktop-experience/

                Yep, that'd do it.
                I wrote a How-To on this a while ago 🙂
                Shameless plug
                http://community.spiceworks.com/how_to/29928-enable-disk-clean-on-server-2008-and-2008-r2

                1 Reply Last reply Reply Quote 1
                • nadnerBN
                  nadnerB @A Former User
                  last edited by

                  @thecreativeone91 said:

                  almost all our servers (VMs) have a 40GB C Drive for the OS install. A lot of them I'm finding are near full, this seems to be because the WinSxS folder is huge (one right now is 21GB). What's the best way to clean it? I know you can install windows desktop experience and then use the disk cleanup utility but I do no want to go through that trouble.

                  Even with cleanmgr.exe, it won't clean up much of the winsxs folder, if any. It seems almost an untameable. I've had to extend the OS drives to accommodate the bloating caused by that folder as I haven't been able to find an effective solution.

                  1 Reply Last reply Reply Quote 0
                  • scottalanmillerS
                    scottalanmiller
                    last edited by

                    This is something that I love about Linux, disk space rarely changes and when it does it is almost always completely predictable and understandable. Windows seems to always have this complex sprawl of files over time that no one is sure are or are not safe to remove or where they are.

                    1 Reply Last reply Reply Quote 2
                    • ?
                      A Former User
                      last edited by

                      Pretty crazy. We're mostly on server 2012 R2 and might move these to the Server (2016) or whatever it's called. But we try to use as little of diskspace as possible. most of our VMs are using 40GB C Drives. moving to 80GB is going to be painful. We still have about 60 or so still on Win 2k8 R2. Many of our SANs only have 2-8TB free right now so yeah. Thanks Microsoft. I did find this command which may help me dism /online /cleanup-image /spsuperseded We shall see.

                      1 Reply Last reply Reply Quote 0
                      • ?
                        A Former User
                        last edited by A Former User

                        So yeah I ran the Disk Cleanup tool on some of them. We have approx 14 servers with less than 10GB left on the C Drive (which is only the windows install, nothing else all 40GB).

                        Anyway the tool sometimes caused them to have less disk space free after it ran. for example an application server went from having 1.8GB free to having 215mb free after running disk cleanup and the superseded cleanup stated here: http://blogs.technet.com/b/joscon/archive/2011/02/15/how-to-reclaim-space-after-applying-service-pack-1.aspx

                        1 Reply Last reply Reply Quote 0
                        • 1 / 1
                        • First post
                          Last post