久光本光的主页 久光本光的主页
  • 首页
  • 知识区
  • 影视区
  • 游戏区
  • 软件区

久光本光

管理员
听不见音乐的人以为跳舞的人疯了

热门标签

bitiful (1) cloudflare (1) cs (1) Debian (1) fps游戏 (2) IPTV (1) OpenWrt (1) rclone (1) rime输入法 (1) stun穿透 (1) windows (6) X-Lite (1) X-Lite中文 (1) X-Lite汉化 (1) XOS (2) 人物志 (4) 优化 (2) 光猫 (1) 公网 (1) 分手 (1) 刘慈欣 (3) 北宋 (4) 历史 (5) 原版windows (2) 反恐精英 (1) 失恋 (1) 宝塔 (1) 小狼毫 (1) 小说解读 (3) 文人 (5) 游戏剧情 (1) 游戏教程 (1) 游戏解读 (1) 王安石 (1) 王荆公 (1) 白霜词库 (1) 科幻 (3) 精简 (5) 系统优化 (3) 缤纷云 (1) 苏东坡 (2) 苏轼 (2) 遗憾 (1) 雾凇拼音 (1) 项脊轩志 (1)
久光本光
2 月前

原版Windows11优化/系统整备流程

文章字数:4880
阅读时间: 13 分钟

安装阶段跳过联网账户/启用本地账户

shift+f10调出cmd,输入regedit打开注册表,找到:计算机\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\OOBE,新建Dword项HideWirelessSetupInOOBE,值给1

进入系统后可以停止bitlocker

卸载edge和小组件/阻止gamebar后台录制

务必提前装好其他浏览器再操作!!!

1。 管理员运行powershell,复制以下:

# ============================================
# 启用卸载功能脚本(含备份)
# ============================================

$jsonPath = "C:\Windows\System32\IntegratedServicesRegionPolicySet.json"
$backupPath = "C:\Windows\System32\IntegratedServicesRegionPolicySet.json.bak"

# -------------------------------
# 1. 检查管理员权限
# -------------------------------
$currentUser = [Security.Principal.WindowsIdentity]::GetCurrent()
$principal = New-Object Security.Principal.WindowsPrincipal($currentUser)
if (-not $principal.IsInRole([Security.Principal.WindowsBuiltinRole]::Administrator)) {
    Write-Error "请以管理员身份运行此 PowerShell"
    exit
}

# -------------------------------
# 2. 取得文件所有权
# -------------------------------
Write-Host "获取文件所有权..."
takeown /f $jsonPath
icacls $jsonPath /grant administrators:F

# -------------------------------
# 3. 备份原文件
# -------------------------------
Write-Host "备份原文件到 $backupPath"
$backupDir = Split-Path $backupPath
if (-not (Test-Path $backupDir)) { New-Item -ItemType Directory -Path $backupDir -Force }
Copy-Item -Path $jsonPath -Destination $backupPath -Force

# -------------------------------
# 4. 读取 JSON 并修改 policies 数组
# -------------------------------
Write-Host "读取并修改 JSON 文件..."
$jsonContent = Get-Content $jsonPath -Raw | ConvertFrom-Json

# 从注册表获取当前地理位置代码
$geoCode = (Get-ItemProperty -Path 'Registry::HKEY_USERS\.DEFAULT\Control Panel\International\Geo' -Name Name).Name
Write-Host "当前注册表 Geo 地区代码:$geoCode"

# 遍历 policies 数组
foreach ($policy in $jsonContent.policies) {
    if ($policy.'$comment' -eq 'Edge is uninstallable.') {
        # 修改 defaultState
        $policy.defaultState = 'enabled'

        # 修改 enabled 数组,加入注册表获取的地区代码
        $enabledArray = $policy.conditions.region.enabled
        if (-not ($enabledArray -contains $geoCode)) {
            $enabledArray = @($geoCode) + $enabledArray
        }
        $policy.conditions.region.enabled = $enabledArray

        Write-Host "修改完成:$($policy.'$comment')"
    }
}

# 保存回文件
$jsonContent | ConvertTo-Json -Depth 10 | Set-Content $jsonPath -Encoding UTF8

# -------------------------------
# 5. 恢复 TrustedInstaller 权限
# -------------------------------
Write-Host "恢复 TrustedInstaller 权限..."
icacls $jsonPath /setowner "NT SERVICE\TrustedInstaller"
icacls $jsonPath /grant:r "NT SERVICE\TrustedInstaller:(F)" /inheritance:e

Write-Host "操作完成,原文件已备份到 $backupPath"

# -------------------------------
# 6. 修改注册表,允许 Edge 可卸载
# -------------------------------
Write-Host "修改注册表:允许 Microsoft Edge 可卸载..."
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge" /v NoRemove /t REG_DWORD /d 0 /f

随后可去控制面板正常卸载edge。

2。 管理员模式启动cmd,输入:

winget uninstall "windows web experience pack"

win+r运行gpedit.msc,找到计算机配置 -> 管理模板 -> windows组件 -> 小组件,找到“允许小组件”,选择已禁用

3。 管理员模式启动cmd,输入:

reg add "HKCU\System\GameConfigStore" /v "GameDVR_Enabled" /t REG_DWORD /d "0" /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\GameDVR" /v "AllowGameDVR" /t REG_DWORD /d "0" /f
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\GameDVR" /v "AppCaptureEnabled" /t REG_DWORD /d "0" /f

关闭vbs(基于虚拟化的安全性)

在windows安全中心 -> 设备安全性 -> 内核隔离详细信息 -> 关闭内存完整性

win+r,运行输入regedit,导航至:计算机\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\DeviceGuard,将EnableVirtualizationBasedSecurity项的值改为0

隐私与遥测深度优化

  1. 组策略配置
    Win+R 输入 gpedit.msc,依次进入:
    计算机配置 → 管理模板 → Windows 组件 → 数据收集和预览版本 → 「允许诊断数据」
    选择「已启用」,选项设为发送所需的诊断数据
    计算机配置 → 管理模板 → Windows 组件 → Windows 错误报告 → 「禁用 Windows 错误报告」
    选择「已启用」

  2. 系统设置调整
    打开「设置 → 隐私和安全性 → 诊断和反馈」:
    反馈频率改为「从不」
    关闭「改进墨迹书写和键入」等所有可选上报开关

  3. 命令行禁用核心遥测服务
    以管理员身份运行 CMD,复制以下执行:

    sc config DiagTrack start= disabled
    sc stop DiagTrack
    sc config WerSvc start= disabled
    sc stop WerSvc
    sc config dmwappushservice start= disabled
    sc stop dmwappushservice
  4. 利用pstools禁用相任务计划
    下载pstools,下载地址:https://download.sysinternals.com/files/PSTools.zip
    解压后管理员运行cmd,并cd进这个目录,运行

    PsExec.exe -i -s %windir%\system32\mmc.exe /s taskschd.msc

    禁用Application Experience、Customer Experience Improvement Program、Diagnostics、Windows Error Reporting四个文件夹中的全部任务(期间遇到报错重新运行上面的命令打开任务计划程序即可)

系统服务精简

以下列出的服务都可以安全禁用

服务显示名 服务名 备注
Connected User Experiences and Telemetry DiagTrack 系统遥测核心服务
Diagnostic Policy Service DPS 系统诊断与问题检测
DialogBlockingService DialogBlockingService 对话框阻止服务
Distributed Link Tracking Client TrkWks NTFS 文件跨设备链接维护
Downloaded Maps Manager MapsBroker 离线地图数据管理
Geolocation Service lfsvc 系统定位与地理围栏
Microsoft App-V Client AppVClient 应用虚拟化客户端
Microsoft 键盘筛选器 MsKeyboardFilter 击键筛选与映射
Net.Tcp Port Sharing Service NetTcpPortSharing TCP 端口共享服务
Network Connected Devices Auto-Setup NcdAutoSetup 网络设备自动发现安装
Offline Files CscService 脱机文件缓存
OpenSSH Authentication Agent ssh-agent SSH 密钥代理
Program Compatibility Assistant Service PcaSvc 程序兼容助手
Remote Registry RemoteRegistry 远程修改注册表
Routing and Remote Access RemoteAccess 路由与远程访问
Shared PC Account Manager SharedPCAccountManagerService 共享设备账户管理
SysMain SysMain 系统预读缓存(SSD 下无收益)
TCP/IP NetBIOS Helper lmhosts 无局域网共享可禁用
User Experience Virtualization Service UevAgentService 用户体验虚拟化
Windows Error Reporting Service WerSvc 错误报告上传
Windows Search WSearch 文件索引与搜索
零售演示服务 RetailDemoService 门店演示模式
设备管理 WAP 推送消息路由服务 dmwappushservice 移动设备管理推送
自动时区更新程序 tzautoupdate 自动同步系统时区
Fax Fax 传真服务,Pro 版专属,桌面端无用
数字钱包服务 WalletService NFC 支付 / 电子卡,Pro 版专属
  • 软件区
  • windows
  • 优化
  • 原版windows
  • 精简
等 人表示很赞
久光本光
久光本光
3 周前

推荐 不仅是精简:XOS PlayBook —— 可能是目前最专业的Windows深度优化方案

之前分享我自己封装的精简版win11时提到过,尝试过市面上大多数流行的PlayBook方案,但结果大多平平无奇,有些甚至出现性能释放不升反降的情况。正因如此,我才决定自行封装一版,所幸大家的反馈都非常不错。 🔧 什么是PlayBook? ...
  • 软件区
  • windows
  • XOS
  • 精简
  • 系统优化
久光本光
久光本光
1 年前

推荐 Debian服务器通过rclone挂载缤纷云(或其他s3兼容云存储),适用宝塔备份任务

安装rclone并配置好缤纷云或其他s3兼容存储 在缤纷云或其他云存储后台获取Access Key和Secret Key 随后ssh进入你的服务器,安装rclone并配置缤纷云存储桶 依次运行 apt update apt instal ...
  • 软件区
  • bitiful
  • Debian
  • rclone
  • 宝塔
  • 缤纷云
久光本光
久光本光
2 月前

推荐 windows11镜像推荐:X-Lite 26h1 V3汉化版

实装截图 下载地址 https://ugediao.com/windows-x-lite-download-link.html 镜像介绍 首先,安装这个镜像务必看下面的安装引导,不要直接操作!!! 在windows7和windows10时 ...
  • 软件区
久光本光
久光本光
2 年前

推荐 ImmortalWrt 调整记录

扩容 ddns、uhttpd开启https访问,防火墙直接放行v6(本设备+lan) dockerman安装,docker-compose安装 samba,shadow-useradd ...
  • 软件区
久光本光
久光本光
2 年前

推荐 wordpress主题 Farallon 调整记录

这是为了记录我对wordpress主题Farallon的一些修改 ...
  • 软件区

自媒体

随机推荐

  • rime输入法+白霜词库配置说明
  • windows11镜像推荐:X-Lite 26h1 V3汉化版
  • 历史上真实存在的圣人【范仲淹人物志】
  • 不仅是精简:XOS PlayBook —— 可能是目前最专业的Windows深度优化方案
  • wordpress主题 Farallon 调整记录
  • Windows11 LTSC究极优化+美化指南
  • 【微软原版】Windows11 LTSC 24h2 简体中文版镜像ISO下载地址
  • stun打洞+cloudflare回源规则,将本地服务放进公网
  • 使用github action编译自定义rustdesk客户端指南(内置自己的服务器信息、内置固定密码、内置自定义api服务器)
  • 铁甲柔情 男人的终极浪漫 《泰坦陨落2》剧情向解读
  • 原版Windows11优化/系统整备流程
  • 魂穿北宋三天,苏轼治好了我的精神内耗
  • cs2 帧数优化 平滑 + 输入延迟优化指南
  • 从史册到人心,一代名臣化身青天阎罗【包拯人物志】
  • Debian服务器通过rclone挂载缤纷云(或其他s3兼容云存储),适用宝塔备份任务
Copyright © 2026 久光本光的主页. All rights reserved. Designed by nicetheme. 苏公网安备32100302010906号 苏ICP备2024106004号
  • 首页
  • 知识区
  • 影视区
  • 游戏区
  • 软件区