我有
Windows Server 2003域和Windows XP工作站.有必要在下午6点在计算机上显示一个窗口(你真的想要关闭一台电脑和是/否按钮).如果用户点击是或еxpired5分钟电脑关机,否则用户点击一小时窗口后显示不到将再次显示.
查看
Sysinternal’s
pssshutdown
,结合Windows at命令,您可以创建每日计划任务来执行此操作.该实用程序允许自定义消息框,默认超时并显示一个窗口,提示用户取消或继续关闭.
使用计算机登录脚本创建组策略,例如:
REM Schedule computer shutdown task using AT. SET SHUTDOWNTIME=22:00 SET TIMEOUT=600 IF EXIST "%PROGRAMFILES%\PStools\psshutdown.exe" ( REM Clear at tasks AT.EXE /delete /yes REM Schedule shutdown daily,repeat in case of user cancellation. AT.EXE %SHUTDOWNTIME% /EVERY:m,t,w,th,f,s,su "%PROGRAMFILES%\PStools\psshutdown.exe" -accepteula -c -f -k -t %TIMEOUT% -m "Nightly shutdown in progress. Click CANCEL if you need to continue using this computer." )
您需要自定义psshutdown的路径以匹配您的环境.