我试图让Windows客户端自动注销一段时间后,我一直在尝试使用winexit.scr,我已经看到在其他地方类似的环境中工作。
通过这些说明 (我读了评论和通知,原来的ADM提供的是越野车),我没有喜乐,所以曾经! Winexit.scr拒绝读取registry中的任何设置,即使使用testing帐户,我也可以访问所需的registry项; 编辑,添加和删除值。
基本上winexit.scr总是使用默认值:30秒超时,不强制注销。 我真正想要的是一个30分钟的超时强制退出,closures所有的用户应用程序等
我尝试删除并重新添加ADM模板,从头开始创buildGPO几次,给予各种registry权限 – 包括完全控制到“每个人”只是为了好玩!
呵呵,客户端都是win XP SP3,DC是win 2003 R2 SP2。
那么,有人可以提出一些build议吗?
干杯!
我必须在相同的环境(服务器2K3 / Win XP)中实现类似的解决scheme,我发现的权威指南位于一个小的WordPress博客 。 我强烈build议您遵循他的叙述,从通过实施和故障排除寻找解决scheme。
我唯一的build议是检查registry值的权限,默认情况下,它们仅适用于pipe理员。
您可以尝试使用logoff.exe或shutdown.exe(当然带有-l标志)作为空闲超时屏幕保护程序
为了做到这一点(例如正确使用windows屏幕保护程序参数),您需要创build一个脚本来接受这里定义的屏幕保护参数,主要关注/ s标志
Logoff.exe:
Logoff command kicks off (logging off) the specified remote session. Log off help shows, C:>logoff /? Terminates a session. LOGOFF [sessionname | sessionid] [/SERVER:servername] [/V] sessionname The name of the session. sessionid The ID of the session. /SERVER:servername Specifies the Terminal server containing the user session to log off (default is current). /V Displays information about the actions performed. Eg, C:>logoff /server:infra-apps 1 /v Logging off session ID 1
Shutdown.exe的
Usage: shutdown [/i | /l | /s | /r | /g | /a | /p | /h | /e] [/f] [/m \\computer][/t xxx][/d [p|u:]xx:yy [/c "comment"]] No args Display help. This is the same as typing /?. /? Display help. This is the same as not typing any options. /i Display the graphical user interface (GUI). This must be the first option. /l Log off. This cannot be used with /m or /d options. /s Shutdown the computer. /r Shutdown and restart the computer. /g Shutdown and restart the computer. After the system is rebooted, restart any registered applications. /a Abort a system shutdown. This can only be used during the time-out period. /p Turn off the local computer with no time-out or warning. Can be used with /d and /f options. /h Hibernate the local computer. Can be used with the /f option. /e Document the reason for an unexpected shutdown of a computer. /m \\computer Specify the target computer. /t xxx Set the time-out period before shutdown to xxx seconds. The valid range is 0-315360000 (10 years), with a default of 30. If the timeout period is greater than 0, the /f parameter is implied. /c "comment" Comment on the reason for the restart or shutdown. Maximum of 512 characters allowed. /f Force running applications to close without forewarning users. The /f parameter is implied when a value greater than 0 is specified for the /t parameter. /d [p|u:]xx:yy Provide the reason for the restart or shutdown. p indicates that the restart or shutdown is planned. u indicates that the reason is user defined. If neither p nor u is specified the restart or shutdown is unplanned. xx is the major reason number (positive integer less than 256). yy is the minor reason number (positive integer less than 65536).
另外,在使用logoff.exe的情况下,可以通过监视空闲计时器的系统级服务来执行,并通过传递控制台会话ID来相应地注销用户。
请注意,这个实现可能需要使用至less一些编程
另一种方法是创build一个包含所需文件和registry设置的MSI包,然后在AD中使用计算机策略应用msi进行软件分发。 这样可以避免必须摆弄pipe理模板。
我会使用visual studio,尽pipe可能还有一些其他好的免费和第三方工具可以为你做同样的事情。