远程编程和注销活动域用户用户

2023-09-08 13:16:13 作者:⒉⒋k灬ネ申

我需要能够从程序注销所有用户从他的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?

 
精彩推荐
图片推荐