Skip to content

Commit

Permalink
增强 关闭数据提示
Browse files Browse the repository at this point in the history
  • Loading branch information
xrgzs committed Apr 10, 2024
1 parent 096ed39 commit 71f4fd5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions api/api.bat
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,11 @@ if %osver% GEQ 3 (
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\ReserveManager" /v ShippedWithReserves /t REG_DWORD /d 0 /f
"%nsudo%" -U:T -P:E -wait regedit /s "%~dp0apifiles\WUdrivers-disable.reg"
start "" /wait "%~dp0apifiles\Wub.exe" /D /P
echo 关闭显示你的数据将在你所在的国家或地区之外进行处理
taskkill /f /im WWAHost.exe
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\CloudExperienceHost\Intent\PersonalDataExport" /f /v "PDEShown" /t REG_DWORD /d 2
reg add "HKU\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\CloudExperienceHost\Intent\PersonalDataExport" /f /v "PDEShown" /t REG_DWORD /d 2

)
if exist api4_dls.bat call api4_dls.bat
if exist "%SystemDrive%\Windows\Setup\xrsyssearchapi.txt" (
Expand Down

0 comments on commit 71f4fd5

Please sign in to comment.