mansz81

Restore_Windows-Watermark.cmd

Mar 26th, 2022
401
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @echo off
  2. pushd "%~dp0"
  3.  
  4. IF EXIST "%windir%\System32\en-US\shell32.dll.old.mui" (
  5.     taskkill /f /im explorer.exe
  6.     ping 127.0.0.1 -n 3
  7.  
  8.     takeown /f "%windir%\System32\en-US\shell32.dll.mui" && icacls "%windir%\System32\en-US\shell32.dll.mui" /grant administrators:F
  9.     takeown /f "%windir%\System32\en-US\shell32.dll.old.mui" && icacls "%windir%\System32\en-US\shell32.dll.old.mui" /grant administrators:F
  10.  
  11.     IF EXIST "%windir%\System32\en-US\shell32.dll.old2.mui" (
  12.         del "%windir%\System32\en-US\shell32.dll.old2.mui"
  13.     )
  14.     rename "%windir%\System32\en-US\shell32.dll.mui" shell32.dll.old2.mui
  15.     rename "%windir%\System32\en-US\shell32.dll.old.mui" shell32.dll.mui
  16. ) ELSE (
  17. REM Do another thing
  18. )
  19.  
  20. IF EXIST "%windir%\Branding\Basebrd\en-US\basebrd.old.dll.mui" (
  21.     IF EXIST "%windir%\Branding\Basebrd\en-US\basebrd.dll.old2.mui" (
  22.         del "%windir%\Branding\Basebrd\en-US\basebrd.dll.old2.mui"
  23.     )
  24.     rename "%windir%\Branding\Basebrd\en-US\basebrd.dll.mui" basebrd.dll.old2.mui
  25.     rename "%windir%\Branding\Basebrd\en-US\basebrd.dll.old.mui" basebrd.dll.mui
  26. ) ELSE (
  27. REM Do another thing
  28. )
  29.  
  30. rem start %windir%\System32\mcbuilder.exe
  31. start /b %windir%\explorer.exe
  32. popd
  33. exit
Advertisement
Add Comment
Please, Sign In to add comment