如何脚本日志和注销的Windows XP [英] How to script log in and log out on windows xp

查看:163
本文介绍了如何脚本日志和注销的Windows XP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现在这个网站,并在网上几个职位描述如何注销当前用户,但我怎么能登录特定的用户?

注销(Cygwin的)可以这样实现:

 回声\\ n| PowerShell的-ExecutionPolicy下RemoteSigned(gwmi Win32_OperatingSystem).Win32Shutdown(0)


解决方案

您可以登录与用户AutoAdminLogon功能

要存储在加密的密码,而不是明文形式,看到这里

配置自动登录后,您将需要重新启动计算机,以使登录发生。您可以绕过通过使用自定义GINA重新启动的需要,虽然这是一个有点复杂,在Vista上无法工作或更高版本。

I've found several posts on this site and the internet describing how to log out the current user, but how can I log in a specific user?

Log out (cygwin) can be accomplished this way:

echo "\n" | powershell -ExecutionPolicy RemoteSigned "(gwmi Win32_OperatingSystem).Win32Shutdown(0)"

解决方案

You can log in a user with the AutoAdminLogon feature.

To store the password in encrypted rather than plaintext form, see here.

After configuring automatic logon, you will need to reboot the computer in order to make the logon happen. You can bypass the need for a reboot by using a custom GINA, although this is a bit complicated and does not work on Vista or later.

这篇关于如何脚本日志和注销的Windows XP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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