Technology

Disk Cleanup WinSxS folder in Windows Server 2012 (R2) using DISM

Here is how to clean up the WinSxs folder on Windows Server 2012 R2, to reclaim disk space.
This will delete superseded updates and unused system files to free up extra disk space.
It uses dism.exe‘s disk cleanup options.

Often the Windows component store folder(C:\Windows\WinSxS) will take up a lot of space on your servers. This folder contains all the files that are required for a Windows installation as well as any updates to those files are also held within the component store as the updates are installed

Here's how to use the DISM tool to safely free up space:

The basic command we use it: Dism.exe /online /Cleanup-Image. This has the following extra options:

/AnalyzeComponentStore
/StartComponentCleanup
/ResetBase with /StartComponentCleanup
/SPSuperseded

Open a PowerShell as Administrator, then:

Office 365 2016 Word, excel lagging, slow typing.

There seems to be an issue with version 1706 (build 8229.2086) which causes lagging/slow typing on certain types of documents with images/templates.

As a temporary workaround, roll back to an earlier version of O365 office:

Disable office updates:
In word->File->Account
Check your version of Word
Switch off automatic updates.

To roll back to an earlier version:

Open an elevated command prompt and run the following commands:

cd %programfiles%\Common Files\Microsoft Shared\ClickToRun
officec2rclient.exe /update user updatetoversion=16.0.xxxx.yyyy

Where xxxx.yyyy is soemthing like 8201.2075 (seem to fix the issue)

Remember to tuen updates back on at a future point and restore Office to the latest version once the issue has been resolved.