没有用户登录时关闭终端服务器

编程入门 行业动态 更新时间:2024-10-24 22:25:26
本文介绍了没有用户登录时关闭终端服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我需要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.

更多推荐

没有用户登录时关闭终端服务器

本文发布于:2023-11-07 01:01:28,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1565126.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:终端   用户登录   服务器

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!