mirror of
https://github.com/bin456789/reinstall.git
synced 2025-12-10 07:28:56 +08:00
windows: dd / iso 安装后添加静态网络配置
This commit is contained in:
16
windows-del-gpo.bat
Normal file
16
windows-del-gpo.bat
Normal file
@ -0,0 +1,16 @@
|
||||
@echo off
|
||||
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"
|
||||
Reference in New Issue
Block a user