





































reg add "HKLM\SYSTEM\CurrentControlSet\Control\Print"/f >nul 2>&1reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Printers"/f >nul 2>&1reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Printers\RPC"/f >nul 2>&1reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Printers\PointAndPrint"/f >nul 2>&1reg add "HKLM\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters"/f >nul 2>&1reg add "HKLM\SYSTEM\CurrentControlSet\Control\Print"/v "RpcAuthnLevelPrivacyEnabled"/t REG_DWORD/d 0/freg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Printers\RPC"/v "RpcUseNamedPipeProtocol"/t REG_DWORD/d 1/freg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Printers\PointAndPrint"/v "RestrictDriverInstallationToAdministrators"/t REG_DWORD/d 0/freg add "HKLM\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters"/v "AllowInsecureGuestAuth"/t REG_DWORD/d 1/fnet stop spooler & net start spoolergpupdate /force




@echo off
pushd "%~dp0"
dir /b %SystemRoot%\Windows\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientExtensions-Package~3*.mum >gp.txt
dir /b %SystemRoot%\Windows\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientTools-Package~3*.mum >>gp.txt
for /f %%i in ('findstr /i . gp.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\Windows\servicing\Packages\%%i"
pause

家庭版本
0x00000bc4是Win11共享打印机的典型报错,多出现在系统更新后,原因是打印组件RPC连接设置被改动,导致添加共享打印机时提示“操作无法完成,找不到打印机”。
按 Win + R 打开运行框,输入 gpedit.msc 回车。
依次展开:计算机配置 → 管理模板 → 打印机。
找到并双击 配置RPC连接设置,选择 已启用,下方选项改为 命名管道上的RPC,确认即可。
此方法仅适用于Win11 22H2及更高版本。家庭版无组策略,需改注册表:定位到 HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\Printers\RPC,新建DWORD值 RpcUseNamedPipeProtocol,值设为 1,重启生效。









