elvisghost

KB4577015 secpol.msc issue patcher

Oct 5th, 2020 (edited)
681
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 1.68 KB | None | 0 0
  1. @echo off
  2.  
  3. :menu
  4. echo KB4577015 secpol.msc issue patcher
  5. echo 1 - fix
  6. echo 2 - undo
  7. echo 3 - exit
  8.  
  9. echo.
  10. set /p option="choose an option: "
  11. if not defined option goto menu
  12. if "%option%"=="1" (goto fix)
  13. if "%option%"=="2" (goto undo)
  14. if "%option%"=="3" (exit)
  15. exit
  16.  
  17. :fix
  18. cls
  19. reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SecEdit\Reg Values\MACHINE/Software/Microsoft/Windows/CurrentVersion/Policies/System/DontDisplayLockedUserId" /f >nul
  20. echo fixed
  21. echo.
  22. goto menu
  23.  
  24. :undo
  25. cls
  26. @reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SecEdit\Reg Values\MACHINE/Software/Microsoft/Windows/CurrentVersion/Policies/System/DontDisplayLockedUserId" /f >nul
  27. @reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SecEdit\Reg Values\MACHINE/Software/Microsoft/Windows/CurrentVersion/Policies/System/DontDisplayLockedUserId" /v DisplayChoices  /t REG_MULTI_SZ /d "1|@wsecedit.dll,-59025"\0"2|@wsecedit.dll,-59026"\0"3|@wsecedit.dll,-59027"\0"4|@wsecedit.dll,-59167" /f >nul
  28. @reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SecEdit\Reg Values\MACHINE/Software/Microsoft/Windows/CurrentVersion/Policies/System/DontDisplayLockedUserId" /v DisplayName /t REG_SZ /d @wsecedit.dll,-59024 /f >nul
  29. @reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SecEdit\Reg Values\MACHINE/Software/Microsoft/Windows/CurrentVersion/Policies/System/DontDisplayLockedUserId" /v DisplayType /t REG_DWORD /d 00000003 /f >nul
  30. @reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SecEdit\Reg Values\MACHINE/Software/Microsoft/Windows/CurrentVersion/Policies/System/DontDisplayLockedUserId" /v ValueType /t REG_DWORD /d 00000004 /f >nul
  31. echo reverted to KB4577015
  32. echo.
  33. goto menu
Add Comment
Please, Sign In to add comment