Make WinSxS folder smaller on Windows Server 2012
Skriven av
fantomen
,
04 August 2012
·
464 visningar
After installation of Windows Server 2012 all roles and features are available in the WinSxS folder (C:WindowsWinSxS).
This means that you don’t have to have the DVD available if you want to add more roles or features to the operating system and can easily deploy more functionality to your machine.
In my case now with my Hyper-V host my WinSxS folder is 6.36GB large which of course is not big but will grow as Windows Update and more things are added over time.

Maybe you want to have a very slim machine or maybe you want to have a “central” WinSxS folder instead where you can get all the files needed if you need to add something sometime.
I can run the Get-WindowsFeature in PowerShell to see what roles and features are available and if they are installed or not.
This also means I can query what I currently have installed with:
Now after sending that command it takes a while to complete but after it has removed all components from the folder and it has reduced in size

Next time you want to add more things to the server you have to specify where Windows needs to look for the files needed for installation. It can be the original DVD, a WIM-file, Windows Update…

If you again run the command “Get-WindowsFeature” you can on the right side see if the component is Installed, Available (Where before) or Removed (As they are now).
I hope you like what you read here on the blog.
I love feedback so don’t hesitate to write a line or two!!!
Källa
This means that you don’t have to have the DVD available if you want to add more roles or features to the operating system and can easily deploy more functionality to your machine.
In my case now with my Hyper-V host my WinSxS folder is 6.36GB large which of course is not big but will grow as Windows Update and more things are added over time.
Maybe you want to have a very slim machine or maybe you want to have a “central” WinSxS folder instead where you can get all the files needed if you need to add something sometime.
I can run the Get-WindowsFeature in PowerShell to see what roles and features are available and if they are installed or not.
This also means I can query what I currently have installed with:
Get-WindowsFeature | Where-Object -FilterScript { $_.Installed -Eq $True }
Get-WindowsFeature | Where-Object -FilterScript { $_.Installed -Eq $False }
Get-WindowsFeature | Where-Object -FilterScript { $_.Installed -Eq $False } | Uninstall-WindowsFeature –Remove
Now after sending that command it takes a while to complete but after it has removed all components from the folder and it has reduced in size
Next time you want to add more things to the server you have to specify where Windows needs to look for the files needed for installation. It can be the original DVD, a WIM-file, Windows Update…
If you again run the command “Get-WindowsFeature” you can on the right side see if the component is Installed, Available (Where before) or Removed (As they are now).
I hope you like what you read here on the blog.
I love feedback so don’t hesitate to write a line or two!!!
Källa




Skapa anpassat tema


