How to clean up Winsxs folder on Windows Server 2012 R2 or Windows 8.1

For Windows 7 Refer to my other blog here:

Windows 2012

Windows 2012 Source:

Deployment Image Servicing and Management (DISM) is a command-line tool that allows you to install, uninstall, configure, and update Windows features, packages, drivers, and international settings. The /Cleanup-Image parameter of Dism.exe provides advanced users more options to further reduce the size of the WinSxS folder. For more information, see DISM Operating System Package Servicing Command-Line Options.

  1. Using the /StartComponentCleanup parameter of Dism.exe on a running version of Windows 8.1 gives you similar results to running theStartComponentCleanup task in Task Scheduler, except previous versions of updated components will be immediately deleted (without a 30 day grace period) and you will not have a 1-hour timeout limitation.From an elevated command prompt, type the following:
    Dism.exe /online /Cleanup-Image /StartComponentCleanup
  1. Using the /ResetBase switch with the /StartComponentCleanup parameter of DISM.exe on a running version of Windows 8.1 removes all superseded versions of every component in the component store.From an elevated command prompt, type the following:
    Dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase
    All existing service packs and updates cannot be uninstalled after this command is completed. This will not block the uninstallation of future service packs or updates.
  1. To reduce the amount of space used by a Service Pack, use the /SPSuperseded parameter of Dism.exe on a running version of Windows 8.1 to remove any backup components needed for uninstallation of the service pack. A service pack is a collection of cumulative updates for a particular release of Windows.From an elevated command prompt, type the following:
    Dism.exe /online /Cleanup-Image /SPSuperseded
    The service pack cannot be uninstalled after this command is completed.

LOL League of Legends Launcher Fixes

For those who are having the Kernel error
“ Patcher Kernel has stopped working”

A common solution is to run the Program(League of Legends) as Admin

Right click League of Legends
Run as Administrator

If unsuccessful, attempt the instructions within the Client/Launcher Related Issues link

For those who are having the Black/Disappearing Logo error
an alternative fixture could be

Right Click your Desktop
Go to Screen Resolutions
Click on Advanced Settings
Click the Monitor Tab
Alter the Screen Refresh Rate to 60Hertz(Hz)
(or what is available that is an increase/decrease)

For those who are having the Bugsplat/Reconnect error
An equivalent means to resolve this problem is to

Bring up Task Manager (ctrl+alt+delete)
End Process for all League of Legends Applications
Right Click your LoL Launcher Icon
Go to Properties
Compatibility Tab
Check/UnCheck the Run this Program in compatibility mode:
Find Suitable Mode to Operate LoL (mine was Vista S1)
Run as Administrator
Apply Settings
(May have to restart computer, I have had to a couple times then other times I do not)
ReLaunch League

For those who are having the Rads/Un-launchable error <— Can resolve Kernel error as well
A possibility to resolve such issue could be to

Go to” C:\Riot Games\League of Legends\RADS\projects”
Delete the Folder called “lol_launcher”
Relaunch League of Legends
Patcher will download a new “lol_launcher”

Alternative route:

Go to “C:\Riot Games\League of Legends\RADS\downloads”
Delete everything within the folder
Go back to “C:\Riot Games\League of Legends\RADS\projects ”
Delete the lol_air_client and lol_air_client_config_na
Go back to “C:\Riot Games\League of Legends\RADS\solutions”
Delete everything within here
Restart Computer
Relauncher LoL as Administrator

Third Possiblity could be to

Uninstall League of Legends
Download and Install Alternative Patcher
NA Version
EUW Version
EUNE Version

Fourth Solution:

If you are running on NA launcher
Uninstall League
Delete/Remove Remaining Files or anything Excess pertaining to League
Restart Computer
Install Alternate Patcher/Installer (eg. EUNE/EUW vis versa if you are using EUNE/EUW)
Copy the Folders(C:\Programs\League of Legends\RADS\projects) and place onto Desktop:


Uninstall current Patcher/Installer
Restart Computer/Delete Remaining LoL files besides the copied files
Reinstall correct Version of LoL(if you normally use NA/EU/EUNE install that)
Copy Over the Installed Folders from your Desktop
Run League

For those who are Crashing In Lobby/Champion Selection

Crash Fix For Champ Select

Alternative Solution:
If you are running LoL Recorder/Replay

Close, Uninstall, or End Processes the program

For those who have Disconnected while In-Game

Many people seem to over look this or are unaware of the Pin
but regardless here is an Alternative Solution

Quick Reconnect/Ignore Login Process

For those who are getting Disconnect from error

Download Disable IPv6
Install the .msi file and follow the Prompt
ReLaunch LoL

If desired with unsuccessful attempt

Re-enable IPv6

Direct link for MS guide

Manual Disable IPv6

Disconnecting Alternatives<<—Can Help Resolve High Ping/Spikes as well

Disable/Uninstall Pando media booster
Disable Peer to Peer

Open Launcher
Click the Gear Icon
Uncheck Peer to Peer

Disable IP Helper

Press your Windows key
type Run in the search bar and open
type in services.msc then hit OK
scroll down to IP Helper and right click to Properties
Under the General tab you will see the Start up Type drop down menu
Change this to Disabled then press OK
Right Click IP Helper and click Stop

Add League to Windows Firewall

Go to your Control Panel
Open Windows Firewall
Click on Allow a program or feature through windows firewall
Add: Patcher
(path) League of Legends\RADS\projects\lol_launcher\releases.0.0. 187\deploy\LoLLauncher.exe
League of Legends (TM) Client
(path)League of Legends\RADS\solutions\lol_game_client_sln\release s.0.0.248\deploy\League of Legends.exe
lol.launcher.admin Optional
(path)League of Legends\lol.launcher.admin.exe

For those who are having the High Ping/Spikes error

High Ping Fix
Alternative Solutions for High Ping
Riot Thread in Regards to the High Latency

For those who are getting the Patch 33% error:

A few methods I have come by are

Outside of NA
Download the Hotspot Shield
Run LoL Patcher
Uninstall Hotspot Shield


Run LoL
Click the Repair
Wait roughly 10-15sec
Close LoL
Relaunch League

Third Solution:

Go to My Computer
Locate your League of Legends folder
Open your Rads folder
Delete everything Inside of your Solutions folder
Relaunch LoL Patcher
(Some may have have to delete the Entire Rads Folder)

For those who are receiving the Did Not Receive Response From Server error:

Ensure League is Closed
Open up Internet Explorer
Vist any website outside of your homepage
Relaunch League

Ensure these settings are Correct

Go to Internet Options
Connections Tab
Lan Settings
Under Automatic Configuration section
Check “Automatically detect settings”
Under Proxy Server section
Check Use a proxy server for your LAN
Check Bypass proxy server for local address

For those who are getting the Shader 2.0 error:

Make sure LoL is closed
Open your League of Legends\Config folder
There will be a file called game.cfg
Delete this
Relaunch League of Legends
It will patch the missing file/s
Once in a game go to VIDEO settings and apply preferred resolution/settings

Alternative Solution:

Right click League of Legends and go to Properties
Go to the Compatibility Tab
Check “Run in 640×480 screen resolution”
Then Apply/OK and relaunch LoL
Run a custom/game
Once Loaded press ESC and go to VIDEO settings
Change your Resolution to desired settings and apply
Close League and go back to your Compatibility tab
Uncheck “Run in 640×480 screen resolution”
Then Apply/OK and relaunch LoL

Equipment Recommendation:
Logitech MX 518 High Performance Optical Gaming Mouse (Metal)

Razer DeathAdder Ergonomic PC Gaming Mouse

Logitech G500s Laser Gaming Mouse with Adjustable Weight Tuning

Logitech Wireless Gaming Mouse G700

Razer Naga 2014 MMO Gaming Mouse

Why GitHub for Windows could be better?

It’s no surprize that Github and Ruby on Rails are NOT well supported on Windows Platform.
Why? I don’t really know.


I have been recently uploading some of my old work to my Github account  and found out that my Github on Windows app is doing very well.

I was only committing around 3500 files to it and the memory usage was about 800 Mb of Ram. Really ? What is the reason ? The size of all files is around 30mb.


Pretty shocking experience and I do not need to mention that my pc get was slow down as well :).


I started uploading it around 2hours ago and I don’t see the end of it or even the progression bar :>.


Few word to the owner of this app

I know you can do better guys and Thank you for current work!


I have to admin that I am more Linux orientated for Dev work but there are some many people using Windows and would like the nice UI (User Interface).

Do you know something better? Let me know. Post your comments.



Uploading it using my bash line would be some much easier 🙂


How to remove files using Python (File Remover program included)

1. Problem Description:

After doing some recovery from hard drive the software has created thousand of files which I didn’t needed.

Around 200k txt files . Removing that huge number of files using Windows is very painful because the Windows Explorer crashed. Bill Gates can’t handle it!!!

So I have write some basic script to do it for me:

2. Program (use it at your own risk )

Program goes through  all files in specifies directory and remove specific file types eg: .txt – text file.

You can run this program from Python Gui

import os


def file_remove(extension,indir):
counter = 0
for root, dirs, filenames in os.walk(indir):
for f in filenames:
full_path = root + “\\” + f
if f[-3:] == extension:
counter = counter + 1
print(“Removing ” + full_path)
print(“Removing type: ” + extension +” Number of files removed: “+ str(counter))