远程编程和注销活动域用户 [英] remotely and programatically logoff an active domain user

查看:132
本文介绍了远程编程和注销活动域用户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要能够从程序注销所有用户从他的Windows会话。

I need to be able to logoff any user from his windows session from a program.

我知道我可以以管理员身份登录,并强制远程注销。是否有任何其他的方式来强制注销没有登录?

I know I could log in as an admin and force a remote logoff. Is there any other way to force a logoff without logging in?

该工具将作为管理员运行,因此这不是一个问题,能够远程注销无需登录的。

The tool will run as admin so that's not a problem, being able to remote logoff without logging in is.

工具是.NET的,但任何其他方式是值得欢迎的(JScript中,命令行工具,从PInvoke的运行,等等。)

Tool is in .NET, but any other way is welcome (JScript, command line tool to run from PInvoke, etc.)

推荐答案

也许与Sysinternals的的 PsTools 的,尤其是 PsShutdown

Perhaps with Sysinternals' PsTools, particularly PsShutdown?

这篇关于远程编程和注销活动域用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆