Windows server 2022 批处理 无需按Ctrl+Alt+Del
批处理来启用“无需按Ctrl+Alt+Del”选项,您可以按照以下步骤进行操作:
打开记事本,并输入以下命令:
@echo off
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DisableCAD /t REG_DWORD /d 0 /f
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v DisableCAD /t REG_DWORD /d 1 /f
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"DisableCAD"=dword:00000000
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]
"DisableCAD"=dword:00000001
开启无线网卡服务步骤
第一步必须开启 无线WLAN服务组件
CMD:
dism /online /enable-feature /featurename:Wireless-Networking /norestart
POWERSHELL:
Enable-WindowsOptionalFeature -Online -FeatureName "Wireless-Networking" -NoRestart
Add-WindowsCapability -Online -Name "WirelessNetworking" -NoRestart
第二步 安装无线网卡驱动
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\WirelessNetworking.exe]
"Debugger"="netsh wlan set hostednetwork mode=allow"
第三步 下面的 系统服务 开启 即可
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WlanSvc]
"Start"=dword:00000002
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WlanSvc\Parameters]
"ServiceDll"="%SystemRoot%\System32\wlansvc.dll"
@echo off
REM 启用 WLAN AutoConfig 服务
sc config WlanSvc start=auto
REM 启动 WLAN AutoConfig 服务
net start WlanSvc
echo 无线 WLAN 服务已启用并设置为自动启动。
@echo off
REM 启用 WLAN AutoConfig 服务
sc config WlanSvc start=auto
REM 启动 WLAN AutoConfig 服务
net start WlanSvc
echo 无线 WLAN 服务已启用并设置为自动启动。
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\AudioSrv]
"Start"=dword:00000002
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\AudioSrv]
"DelayedAutoStart"=dword:00000001
@echo off
REM 启用音频服务
sc config AudioSrv start=auto
REM 启动音频服务
net start AudioSrv
echo 音频服务已启用并设置为自动启动。
网络
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WcmSvc\GroupPolicy" /v fSoftDisconnectConnections /t REG_DWORD /d 0 /f
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WcmSvc\GroupPolicy]
"fSoftDisconnectConnections"=dword:00000000
@echo off
REM 禁用关机提示
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Reliability" /v "ShutdownReasonOn" /t REG_DWORD /d 0 /f
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Reliability]
"ShutdownReasonOn"=dword:00000000
echo 关机提示已成功禁用!
@echo off
REM 禁用Internet Explorer 安全增强
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components{A509B1A7-37EF-4b3f-8CFC-4F3A74704073}" /v IsInstalled /t REG_DWORD /d 0 /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components{A509B1A8-37EF-4b3f-8CFC-4F3A74704073}" /v IsInstalled /t REG_DWORD /d 0 /f
echo Internet Explorer 安全增强。
@echo off
REM 启用“无需按Ctrl+Alt+Del”选项
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DisableCAD /t REG_DWORD /d 0 /f
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v DisableCAD /t REG_DWORD /d 1 /f
@echo off
REM 禁用 锁屏功能
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Personalization" /v NoLockScreen /t REG_DWORD /d 1 /f
shutdown /r /t 0

浙公网安备 33010602011771号