1418186898 发表于 2025-4-28 15:41

可还原!900+各类批处理,包含隐私,APPX,安全中心,xbox,等等等!

本帖最后由 1418186898 于 2025-4-28 15:44 编辑

上次弄了个禁用安全中心的注册表。发现BUG大堆。网上大堆现成的,不想修了。

https://privacy.sexy/

运行速度很慢。完全禁用和删除一个安全中心大概10多分钟。
按照需要选择,尽量只选必须的,速度真心感人。不要一次选大多。

可以一个大项,一个大项的弄/
有后悔药!出问题可以复原!

kevon2013 发表于 2025-4-28 15:51

{:5_266:}可是链接打不开,怎么下载啊

1418186898 发表于 2025-4-28 15:52

kevon2013 发表于 2025-4-28 15:51
可是链接打不开,怎么下载啊

可以打开啊。也不用科学啊

zhuzhim 发表于 2025-4-28 16:34

下载了,是英文的,你的如何显示中文?

1418186898 发表于 2025-4-28 16:38

zhuzhim 发表于 2025-4-28 16:34
下载了,是英文的,你的如何显示中文?

这是批处理啊,看不懂先用网页翻译勾选需要选的。下载后运行就行。不需要显示中文吧

zhuzhim 发表于 2025-4-28 16:47

我下载了桌面版,是个安装程序,安装后是英文

ddfzl 发表于 2025-4-28 16:51

看起来很厉害的样子,下载试用一下,感谢

zyw3501 发表于 2025-4-28 17:13

英文就无视,不懂怕弄出问题.

1418186898 发表于 2025-4-28 17:32

zhuzhim 发表于 2025-4-28 16:47
我下载了桌面版,是个安装程序,安装后是英文

用网页版,浏览器网页翻译。不要用exe。不是很清晰明了嘛。按选项勾选需要的。然后点下载,下载玩就是BAT.懂了吧,不存在英文看不懂。现在浏览器都有网页翻译的。

1418186898 发表于 2025-4-28 17:34

zyw3501 发表于 2025-4-28 17:13
英文就无视,不懂怕弄出问题.

网页翻译

引体向上 发表于 2025-4-28 18:18

厉害,我学习中。

cskkkk 发表于 2025-4-28 18:31

谢谢分享

小_星_星 发表于 2025-4-28 19:02

这个不错,感谢分享!
比如,那个清理临时文件的批处理:
@echo off
:: Ensure PowerShell is available
where PowerShell >nul 2>&1 || (
    echo PowerShell is not available. Please install or enable PowerShell.
    pause & exit 1
)
:: Ensure admin privileges
fltmc >nul 2>&1 || (
    echo Administrator privileges are required.
    PowerShell Start -Verb RunAs '%0' 2> nul || (
      echo Right-click on the script and select "Run as administrator".
      pause & exit 1
    )
    exit 0
)
:: Initialize environment
setlocal EnableExtensions DisableDelayedExpansion


:: ----------------------------------------------------------
:: --------------Clear temporary system folder---------------
:: ----------------------------------------------------------
echo --- Clear temporary system folder
:: Clear directory contents: "%SYSTEMROOT%\Temp"
PowerShell -ExecutionPolicy Unrestricted -Command "$pathGlobPattern = "^""$($directoryGlob = '%SYSTEMROOT%\Temp'; if ($directoryGlob.EndsWith('\*')) { $directoryGlob } elseif ($directoryGlob.EndsWith('\')) { "^""$($directoryGlob)*"^"" } else { "^""$($directoryGlob)\*"^"" } )"^""; $expandedPath = ::ExpandEnvironmentVariables($pathGlobPattern); Write-Host "^""Searching for items matching pattern: `"^""$($expandedPath)`"^""."^""; $deletedCount = 0; $failedCount = 0; $foundAbsolutePaths = @(); Write-Host 'Iterating files and directories recursively.'; try { $foundAbsolutePaths += @(; Get-ChildItem -Path $expandedPath -Force -Recurse -ErrorAction Stop | Select-Object -ExpandProperty FullName; ); } catch { <# Swallow, do not run `Test-Path` before, it's unreliable for globs requiring extra permissions #>; }; try { $foundAbsolutePaths += @(; Get-Item -Path $expandedPath -ErrorAction Stop | Select-Object -ExpandProperty FullName; ); } catch { <# Swallow, do not run `Test-Path` before, it's unreliable for globs requiring extra permissions #>; }; $foundAbsolutePaths = $foundAbsolutePaths | Select-Object -Unique | Sort-Object -Property { $_.Length } -Descending; if (!$foundAbsolutePaths) { Write-Host 'Skipping, no items available.'; exit 0; }; Write-Host "^""Initiating processing of $($foundAbsolutePaths.Count) items from `"^""$expandedPath`"^""."^""; foreach ($path in $foundAbsolutePaths) { if (-not (Test-Path $path)) { <# Re-check existence as prior deletions might remove subsequent items (e.g., subdirectories). #>; Write-Host "^""Successfully deleted: $($path) (already deleted)."^""; $deletedCount++; continue; }; try { Remove-Item -Path $path -Force -Recurse -ErrorAction Stop; $deletedCount++; Write-Host "^""Successfully deleted: $($path)"^""; } catch { $failedCount++; Write-Warning "^""Unable to delete $($path): $_"^""; }; }; Write-Host "^""Successfully deleted $($deletedCount) items."^""; if ($failedCount -gt 0) { Write-Warning "^""Failed to delete $($failedCount) items."^""; }"
:: ----------------------------------------------------------


:: Pause the script to view the final state
pause
:: Restore previous environment settings
endlocal
:: Exit the script successfully
exit /b 0

csx18 发表于 2025-4-28 20:22

感谢分享

jdg-scout 发表于 2025-4-28 20:54

感谢分享

雨止转晴 发表于 2025-4-28 21:18

这个网站不错

handsome_xiang 发表于 2025-4-28 21:32

感谢分享!

han1768 发表于 2025-4-28 21:38

这么神奇,谢谢分享

Federer 发表于 2025-4-28 21:52

代码太过复杂一个bat要到3M 很多重复的没用 文字

hqokabc 发表于 2025-4-28 22:01

多谢楼主分享
页: [1] 2
查看完整版本: 可还原!900+各类批处理,包含隐私,APPX,安全中心,xbox,等等等!