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.
有什么方法可以使用 Perl、PS Tools 或 Autoit 通过我的网络测试 PC 以查看它是否已开机并登录?
例如:
一个好处:
TASKLIST /S hostname /U username TASKLIST /S hostname /U domain\username
将显示用户在机器上运行的所有任务。如果它返回错误或没有输出,则用户未登录。否则,您解析程序列表并自行决定程序是否指示用户已登录,或者仅代表他/她在后台运行一些任务。