mirror of
https://github.com/bin456789/reinstall.git
synced 2025-01-19 04:49:13 +08:00
18 lines
382 B
Batchfile
18 lines
382 B
Batchfile
@echo off
|
|
mode con cp select=437 >nul
|
|
setlocal enabledelayedexpansion
|
|
|
|
set "files[1]=%windir%\System32\GroupPolicy\gpt.ini"
|
|
set "files[2]=%windir%\System32\GroupPolicy\Machine\Scripts\scripts.ini"
|
|
|
|
for %%i in (1 2) do (
|
|
set "ini=!files[%%i]!"
|
|
if exist "!ini!.orig" (
|
|
move /y "!ini!.orig" "!ini!"
|
|
) else (
|
|
del "!ini!"
|
|
)
|
|
)
|
|
|
|
del "%~f0"
|