Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我创建了一个 powershell 脚本来从 AD 获取具有高 cpu 使用率的非活动用户,但现在我想在不禁用帐户的情况下结束这些非活动用户的会话。我无法获取非活动用户的会话 ID
谁能帮我结束这个不活跃的用户会话?
您的意思是“非活动用户会话”,他们正在使用远程桌面,并且您想将它们从 ts / rdp 会话中注销?
以下是 PowerShell 脚本的链接,用于将人们从 RDP 会话中注销
Powershell命令将断开连接的用户踢出服务器
Powershell 注销远程会话