是否可以在
Windows上为本地与远程(rdp)
登录设置不同的屏幕保护程序锁定时间?我不太了解Windows
管理员,只是通过GPO推送此配置.
@H_
502_2@
没有内置
功能来执行此操作.如果我要这样做,我将从组策略管理模板中
删除任何与屏幕保护程序超时相关的设置,并部署
登录脚本来管理设置.该
登录脚本可以检查Console的CLIENTNAME环境变量(因为基于RDP的
登录将具有远程客户端计算机的
名称).它可能是一件简单的事情:
@echo off
rem Timeout for RDP sessions
set TIMEOUT=600
rem If a console session (non-RDP) set the timeout differently
if "%CLIENTNAME%"=="Console" set TIMEOUT=300
rem Put the timeout value into the registry
reg add "HKEY_CURRENT_USER\Control Panel\Desktop" /v ScreenSaveTimeOut /d %TIMEOUT% /t REG_SZ /f
rem Call API to re-read parameters from the registry
rundll32 user32.dll,UpdatePerUserSystemParameters