本文介绍了没有用户登录时关闭终端服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要PowerShell脚本在没有活动会话/没有用户登录时关闭Windows Terminal Server 2008 R2。
Hi, I need powershell script to shut down the Windows Terminal Server 2008 R2 when there is no active session / no user logged in.
我已经将策略设置为当会话断开超过1小时时注销用户。所以,当服务器空闲时它应该自动关闭......请帮帮我。在此先感谢。
I have already set policy to logoff user when the session disconnected more then 1 hour. So, when the server is idle it should automatically shut down... Please help me. Thanks in advance.
推荐答案
查询/?
为用户解析输出。
同时在等待用户退出或用户将连续登录时设置登录。许多人都有可以保持会话活动的工具。
Also set login off while waiting for users to exit or users will log in continuously. Many have utilities that keep their session active.
更多推荐
没有用户登录时关闭终端服务器
发布评论