Put this in a batch file
rem Take ownership
takeown /f C:\Windows\System32\GWX /r /d yrem Set Permission
icacls C:\Windows\System32\GWX\* /grant %USERNAME%:FRem Kill process
taskkill /f /im gwx.exe
taskkill /f /im GWX.exeRem Remove Folder
rd /S /q C:\Windows\System32\GWX