mirror of
https://github.com/bin456789/reinstall.git
synced 2025-06-10 06:19:58 +00:00
Compare commits
4 Commits
5b5b2698e2
...
bd266fb12f
Author | SHA1 | Date | |
---|---|---|---|
![]() |
bd266fb12f | ||
![]() |
4105a0bb41 | ||
![]() |
b84fd9e875 | ||
![]() |
d5b9c2da34 |
@ -1,10 +1,10 @@
|
|||||||
name: 同步到 Gitlab
|
name: 同步到 CNB
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
jobs:
|
jobs:
|
||||||
run:
|
run:
|
||||||
name: 同步到 Gitlab
|
name: 同步到 CNB
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
@ -12,7 +12,7 @@ jobs:
|
|||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- uses: yesolutions/mirror-action@master
|
- uses: yesolutions/mirror-action@master
|
||||||
with:
|
with:
|
||||||
REMOTE: https://gitlab.com/bin456789/reinstall.git
|
REMOTE: https://cnb.cool/bin456789/reinstall.git
|
||||||
GIT_USERNAME: username
|
GIT_USERNAME: cnb
|
||||||
GIT_PASSWORD: ${{ secrets.GITLAB_TOKEN }}
|
GIT_PASSWORD: ${{ secrets.CNB_TOKEN }}
|
||||||
PUSH_ALL_REFS: false
|
PUSH_ALL_REFS: false
|
18
.github/workflows/sync_to_gitlabcn.yml
vendored
18
.github/workflows/sync_to_gitlabcn.yml
vendored
@ -1,18 +0,0 @@
|
|||||||
name: 同步到 Gitlab CN
|
|
||||||
on:
|
|
||||||
workflow_dispatch:
|
|
||||||
push:
|
|
||||||
jobs:
|
|
||||||
run:
|
|
||||||
name: 同步到 Gitlab CN
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
- uses: yesolutions/mirror-action@master
|
|
||||||
with:
|
|
||||||
REMOTE: https://jihulab.com/bin456789/reinstall.git
|
|
||||||
GIT_USERNAME: username
|
|
||||||
GIT_PASSWORD: ${{ secrets.JIHULAB_TOKEN }}
|
|
||||||
PUSH_ALL_REFS: false
|
|
@ -71,7 +71,7 @@ curl -O https://raw.githubusercontent.com/bin456789/reinstall/main/reinstall.sh
|
|||||||
For server inside China:
|
For server inside China:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
curl -O https://gitlab.com/bin456789/reinstall/-/raw/main/reinstall.sh || wget -O reinstall.sh $_
|
curl -O https://cnb.cool/bin456789/reinstall/-/git/raw/main/reinstall.sh || wget -O reinstall.sh $_
|
||||||
```
|
```
|
||||||
|
|
||||||
## Download (Current system is <img width="20" height="20" src="https://blogs.windows.com/wp-content/uploads/prod/2022/09/cropped-Windows11IconTransparent512-32x32.png" /> Windows)
|
## Download (Current system is <img width="20" height="20" src="https://blogs.windows.com/wp-content/uploads/prod/2022/09/cropped-Windows11IconTransparent512-32x32.png" /> Windows)
|
||||||
@ -104,7 +104,7 @@ certutil -urlcache -f -split https://raw.githubusercontent.com/bin456789/reinsta
|
|||||||
For server inside China:
|
For server inside China:
|
||||||
|
|
||||||
```batch
|
```batch
|
||||||
certutil -urlcache -f -split https://gitlab.com/bin456789/reinstall/-/raw/main/reinstall.bat
|
certutil -urlcache -f -split https://cnb.cool/bin456789/reinstall/-/git/raw/main/reinstall.bat
|
||||||
```
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
@ -71,7 +71,7 @@ curl -O https://raw.githubusercontent.com/bin456789/reinstall/main/reinstall.sh
|
|||||||
国内服务器:
|
国内服务器:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
curl -O https://gitlab.com/bin456789/reinstall/-/raw/main/reinstall.sh || wget -O reinstall.sh $_
|
curl -O https://cnb.cool/bin456789/reinstall/-/git/raw/main/reinstall.sh || wget -O reinstall.sh $_
|
||||||
```
|
```
|
||||||
|
|
||||||
## 下载(当前系统是 <img width="20" height="20" src="https://blogs.windows.com/wp-content/uploads/prod/2022/09/cropped-Windows11IconTransparent512-32x32.png" /> Windows)
|
## 下载(当前系统是 <img width="20" height="20" src="https://blogs.windows.com/wp-content/uploads/prod/2022/09/cropped-Windows11IconTransparent512-32x32.png" /> Windows)
|
||||||
@ -104,7 +104,7 @@ certutil -urlcache -f -split https://raw.githubusercontent.com/bin456789/reinsta
|
|||||||
国内服务器:
|
国内服务器:
|
||||||
|
|
||||||
```batch
|
```batch
|
||||||
certutil -urlcache -f -split https://gitlab.com/bin456789/reinstall/-/raw/main/reinstall.bat
|
certutil -urlcache -f -split https://cnb.cool/bin456789/reinstall/-/git/raw/main/reinstall.bat
|
||||||
```
|
```
|
||||||
|
|
||||||
## 使用
|
## 使用
|
||||||
|
@ -3,7 +3,7 @@ mode con cp select=437 >nul
|
|||||||
setlocal EnableDelayedExpansion
|
setlocal EnableDelayedExpansion
|
||||||
|
|
||||||
set confhome=https://raw.githubusercontent.com/bin456789/reinstall/main
|
set confhome=https://raw.githubusercontent.com/bin456789/reinstall/main
|
||||||
set confhome_cn=https://gitlab.com/bin456789/reinstall/-/raw/main
|
set confhome_cn=https://cnb.cool/bin456789/reinstall/-/git/raw/main
|
||||||
rem set confhome_cn=https://www.ghproxy.cc/https://raw.githubusercontent.com/bin456789/reinstall/main
|
rem set confhome_cn=https://www.ghproxy.cc/https://raw.githubusercontent.com/bin456789/reinstall/main
|
||||||
|
|
||||||
set pkgs=curl,cpio,p7zip,dos2unix,jq,xz,gzip,zstd,openssl,bind-utils,libiconv,binutils
|
set pkgs=curl,cpio,p7zip,dos2unix,jq,xz,gzip,zstd,openssl,bind-utils,libiconv,binutils
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
set -eE
|
set -eE
|
||||||
confhome=https://raw.githubusercontent.com/bin456789/reinstall/main
|
confhome=https://raw.githubusercontent.com/bin456789/reinstall/main
|
||||||
confhome_cn=https://gitlab.com/bin456789/reinstall/-/raw/main
|
confhome_cn=https://cnb.cool/bin456789/reinstall/-/git/raw/main
|
||||||
# confhome_cn=https://www.ghproxy.cc/https://raw.githubusercontent.com/bin456789/reinstall/main
|
# confhome_cn=https://www.ghproxy.cc/https://raw.githubusercontent.com/bin456789/reinstall/main
|
||||||
|
|
||||||
# 默认密码
|
# 默认密码
|
||||||
|
@ -19,7 +19,7 @@ rem echo a | find "a"
|
|||||||
rem 使用高性能模式
|
rem 使用高性能模式
|
||||||
rem https://learn.microsoft.com/windows-hardware/manufacture/desktop/capture-and-apply-windows-using-a-single-wim
|
rem https://learn.microsoft.com/windows-hardware/manufacture/desktop/capture-and-apply-windows-using-a-single-wim
|
||||||
rem win8 pe 没有 powercfg
|
rem win8 pe 没有 powercfg
|
||||||
call powercfg /s 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c 2>nul
|
powercfg /s SCHEME_MIN 2>nul
|
||||||
|
|
||||||
rem 安装 SCSI 驱动
|
rem 安装 SCSI 驱动
|
||||||
if exist X:\drivers\ (
|
if exist X:\drivers\ (
|
||||||
|
21
windows.xml
21
windows.xml
@ -64,24 +64,31 @@
|
|||||||
<settings pass="specialize">
|
<settings pass="specialize">
|
||||||
<component name="Microsoft-Windows-Deployment" processorArchitecture="%arch%" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
<component name="Microsoft-Windows-Deployment" processorArchitecture="%arch%" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||||
<RunSynchronous>
|
<RunSynchronous>
|
||||||
<!-- aws和华为云都要求设置为从不关闭显示器
|
<!-- 大厂都要求设置高性能和从不关闭显示器
|
||||||
|
https://learn.microsoft.com/en-us/azure/virtual-machines/windows/prepare-for-upload-vhd-image#set-windows-configurations-for-azure
|
||||||
https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/migrating-latest-types.html
|
https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/migrating-latest-types.html
|
||||||
https://support.huaweicloud.com/usermanual-ims/zh-cn_topic_0047501112.html -->
|
https://support.huaweicloud.com/usermanual-ims/zh-cn_topic_0047501112.html
|
||||||
|
powercfg /aliases 能显示 GUID/名称 的对应关系,vista 也能使用名称 -->
|
||||||
<RunSynchronousCommand wcm:action="add">
|
<RunSynchronousCommand wcm:action="add">
|
||||||
<Order>1</Order>
|
<Order>1</Order>
|
||||||
<Path>powercfg /setacvalueindex 381b4222-f694-41f0-9685-ff5bb260df2e 7516b95f-f776-4464-8c53-06167f40cc99 3c0bc021-c8a8-4e07-a973-6b14cbcb2b7e 0</Path>
|
<Path>powercfg /setacvalueindex SCHEME_BALANCED SUB_VIDEO VIDEOIDLE 0</Path>
|
||||||
</RunSynchronousCommand>
|
</RunSynchronousCommand>
|
||||||
<RunSynchronousCommand wcm:action="add">
|
<RunSynchronousCommand wcm:action="add">
|
||||||
<Order>2</Order>
|
<Order>2</Order>
|
||||||
<Path>powercfg /setacvalueindex 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c 7516b95f-f776-4464-8c53-06167f40cc99 3c0bc021-c8a8-4e07-a973-6b14cbcb2b7e 0</Path>
|
<Path>powercfg /setacvalueindex SCHEME_MIN SUB_VIDEO VIDEOIDLE 0</Path>
|
||||||
</RunSynchronousCommand>
|
</RunSynchronousCommand>
|
||||||
<RunSynchronousCommand wcm:action="add">
|
<RunSynchronousCommand wcm:action="add">
|
||||||
<Order>3</Order>
|
<Order>3</Order>
|
||||||
<Path>powercfg /setacvalueindex a1841308-3541-4fab-bc81-f71556f20b4a 7516b95f-f776-4464-8c53-06167f40cc99 3c0bc021-c8a8-4e07-a973-6b14cbcb2b7e 0</Path>
|
<Path>powercfg /setacvalueindex SCHEME_MAX SUB_VIDEO VIDEOIDLE 0</Path>
|
||||||
|
</RunSynchronousCommand>
|
||||||
|
<!-- 设为高性能 -->
|
||||||
|
<RunSynchronousCommand wcm:action="add">
|
||||||
|
<Order>4</Order>
|
||||||
|
<Path>powercfg /setactive SCHEME_MIN</Path>
|
||||||
</RunSynchronousCommand>
|
</RunSynchronousCommand>
|
||||||
<!-- 启用 administrator 账户 -->
|
<!-- 启用 administrator 账户 -->
|
||||||
<RunSynchronousCommand wcm:action="add">
|
<RunSynchronousCommand wcm:action="add">
|
||||||
<Order>4</Order>
|
<Order>5</Order>
|
||||||
<!-- vista 没有自带 powershell -->
|
<!-- vista 没有自带 powershell -->
|
||||||
<!-- <Path>powershell "$User = Get-WmiObject Win32_UserAccount | where SID -like *-500; $User.Disabled = $False; $User.Put()"</Path> -->
|
<!-- <Path>powershell "$User = Get-WmiObject Win32_UserAccount | where SID -like *-500; $User.Disabled = $False; $User.Put()"</Path> -->
|
||||||
<!-- win7 此时无法用 wmic useraccount -->
|
<!-- win7 此时无法用 wmic useraccount -->
|
||||||
@ -91,7 +98,7 @@
|
|||||||
</RunSynchronousCommand>
|
</RunSynchronousCommand>
|
||||||
<!-- 禁用保留空间 -->
|
<!-- 禁用保留空间 -->
|
||||||
<RunSynchronousCommand wcm:action="add">
|
<RunSynchronousCommand wcm:action="add">
|
||||||
<Order>5</Order>
|
<Order>6</Order>
|
||||||
<Path>reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\ReserveManager /v ShippedWithReserves /t REG_DWORD /d 0 /f</Path>
|
<Path>reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\ReserveManager /v ShippedWithReserves /t REG_DWORD /d 0 /f</Path>
|
||||||
<!-- 此时以下命令无效 -->
|
<!-- 此时以下命令无效 -->
|
||||||
<!-- <Path>DISM /Online /Set-ReservedStorageState /State:Disabled</Path> -->
|
<!-- <Path>DISM /Online /Set-ReservedStorageState /State:Disabled</Path> -->
|
||||||
|
Loading…
x
Reference in New Issue
Block a user