Jump to content

Windows Server 2016 Datacenter - Killing the bloat

Hi Guys,

 

I've started myself off on a little challenge - was wondering if anyone wanted to weigh in with suggestions / scores that beat mine :P

 

I'm essentially trying to script a de-bloating of Windows Server 2016 Datacenter edition.  With Microsoft's per-core charging policy now, the possibility is there to spread the work across multiple machines - the only kicker is the default memory usage.

 

As a baseline, I've used a VMWare virtual machine with:

 

4 CPU Cores (to ensure that's not a bottleneck)

4 GB RAM (to ensure no pagefile schenanigans

40GB Disk space

 

And the default RAM usage when RDP'ed to the machine:

1.5GB/4GB!  Ooof!

Attached baseline screenshot of what Task Manager reports as the usage.

 

So I did some pruning.

 

Using powershell / dism I removed:

 

RSAT (remote server administration tools)

Internet-Explorer-Optional (Because it's not 2008)

WindowsMediaPlayer (........server right?)

ServerCore-WOW64 (32bit application support, because.)

Microsoft-Windows-Printing-XPSServices-Package

Printing-XPSServices-Features

ServerCore-Drivers-General-WOW64 (32bit driver support)

Windows-Defender-Gui

Windows-Defender-Features

Windows-Defender

WindowsServerBackup

 

I also disabled the Scheduled task for Server Manager (which saves 300MB!)

I've then set the performance settings to prioritise programs over background services.

 

And we're down to:

 

0.9GB (attached)

 

It's amazing how much is loaded into the RAM.  Can anyone beat 0.9GB with a little pagefile usage as possible, or have any ideas to reduce this further, whilst leaving this as a workable server?

 

The plan is - to make this into a powershell script to streamline the machine if I need to rebuild.

 

Cheers!

 

Before:

baseline.png

After:

pruned.PNG

 

 

PS - No windows updates were processing and increasing the RAM size on first use - machine was fully updated.

Link to comment
Share on other sites

Link to post
Share on other sites

You might be interested in /r/PowerShell as they also share useful scripts and knowledge.

HAL9000: AMD Ryzen 9 3900x | Noctua NH-D15 chromax.black | 32 GB Corsair Vengeance LPX DDR4 3200 MHz | Asus X570 Prime Pro | ASUS TUF 3080 Ti | 1 TB Samsung 970 Evo Plus + 1 TB Crucial MX500 + 6 TB WD RED | Corsair HX1000 | be quiet Pure Base 500DX | LG 34UM95 34" 3440x1440

Hydrogen server: Intel i3-10100 | Cryorig M9i | 64 GB Crucial Ballistix 3200MHz DDR4 | Gigabyte B560M-DS3H | 33 TB of storage | Fractal Design Define R5 | unRAID 6.9.2

Carbon server: Fujitsu PRIMERGY RX100 S7p | Xeon E3-1230 v2 | 16 GB DDR3 ECC | 60 GB Corsair SSD & 250 GB Samsung 850 Pro | Intel i340-T4 | ESXi 6.5.1

Big Mac cluster: 2x Raspberry Pi 2 Model B | 1x Raspberry Pi 3 Model B | 2x Raspberry Pi 3 Model B+

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×