Skip to content

Instantly share code, notes, and snippets.

View MichalStrehovsky's full-sized avatar

Michal Strehovský MichalStrehovsky

View GitHub Profile
@MichalStrehovsky
MichalStrehovsky / appxcleanup.cmd
Last active September 10, 2015 23:17
This script will strip all APPX packages from an offline Windows image (e.g. a WIM file extracted with DISM), or from the currently running instance of Windows.
@echo off
rem **************************************************************************************
rem * This script will strip all APPX packages from an offline Windows image (e.g. a WIM *
rem * file extracted with DISM.exe), or from the currently running instance of Windows. *
rem * Saves about 75% of the first logon time and won't clutter the system with stuff *
rem * you can get from the Store if you really need. *
rem **************************************************************************************
whoami /GROUPS | find "S-1-16-12288" >nul 2>&1 || (