是否有可能有不同的屏幕保护程序locking时间在Windows上本地与远程(rdp)login? 我不太了解Windowspipe理员,只是通过GPO推送了这个configuration。
没有内置的function来做到这一点。 如果我要这样做,我会从组策略pipe理模板中删除任何屏幕保护程序超时相关的设置,并部署login脚本来pipe理设置。 该login脚本可以检查Console的CLIENTNAME环境variables(因为基于RDP的login将在此处具有远程客户端计算机的名称)。 这可能是如下简单的事情:
@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