重启后Windows自动登录 [英] Windows Autologin once after restart

查看:144
本文介绍了重启后Windows自动登录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问候!



系统重启后,我希望系统自动登录帐户*仅限一次*,然后启动流程。



命令是从以正常权限运行的进程发出的。



系统重启是通过shutdown / r /完成的t 0



要开始一个过程,我会使用SchTasks / CREATE / SC ONIDLE ......

我会在关机前发出这个。



但是,我不知道重启后如何自动登录*仅限一次*



任何提示?



谢谢

Wolf

Greetings!

After system restart I want the system to login automatically to an account *one time only*, and then start a process.

The commands are issued from a process running with normal privileges.

The system restart is done with shutdown /r /t 0

To start a process I would use SchTasks /CREATE /SC ONIDLE...
I would issue this before shutdown.

However, I have no idea how to autologin after restart *one time only*

Any hints?

Thanks
Wolf

推荐答案

解决方案可能是使用脚本或程序,用于更改自动登录的注册表值。

您可以设置计算机必须自动登录设置条目的次数 AutoLogonCount HKEY_LOCAL_MACHINE \ SOFTWARE \ Microoft \ Windows NT \ CurrentVersion \Winlogon下的。这个值应该在每次启动时递减,当达到0时,将从注册表中删除所有自动登录条目(用户名和密码)。

无论如何,根据每个窗口的东西,有很多变化,错误与否,以及无论你想要什么叫他们...... :)

所以在WinXP下很多条目都是DWORDS,但在Win7下,大概是新版本,它是一个字符串......

进行常规研究(尝试并修复)......

一些有趣的链接:

1. http://superuser.com/questions/340396/how-do-i-change-automatic-logon -via-script-or-command-line [ ^ ]

2. https://social.technet.microsoft.com/Forums/windows/en-US/b2e213fe-ce33-4712-8a8d-3cc09722c551/windows-7-autologon?forum=w7itproinstall [ ^ ]
A solution could be the use of scripts, or programs, to change registry values for autologon.
You can set how many times the computer have to auto logon setting the entry AutoLogonCount under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon. This value should be decremented each boot, when reaches 0 will remove all autologon entries (username and password) from registry.
Anyway as per every window thing there are a lot of variations, bugs or not, and whatever you want call them ... :)
So happen that under WinXP many of the entries are DWORDS, but under Win7 and, presumably, newer versions it ia a string...
Make usual research (try and fix)...
Some interesting links:
1. http://superuser.com/questions/340396/how-do-i-change-automatic-logon-via-script-or-command-line[^]
2. https://social.technet.microsoft.com/Forums/windows/en-US/b2e213fe-ce33-4712-8a8d-3cc09722c551/windows-7-autologon?forum=w7itproinstall[^]


请参阅此Autologon Sysinternals实用程序: https://technet.microsoft.com/en-us/sysinternals/bb963905 [ ^ ]。



Windows Sysinternals Suite是必备的实用程序套件,对所有开发人员和系统都很有用管理员:

https://technet.microsoft.com/en-us/sysinternals/ bb842062 [ ^ ]。



-SA
Please see this Autologon Sysinternals utility: https://technet.microsoft.com/en-us/sysinternals/bb963905[^].

Windows Sysinternals Suite is a must-have suite of utilities, useful for all developers and system administrators:
https://technet.microsoft.com/en-us/sysinternals/bb842062[^].

—SA


这篇关于重启后Windows自动登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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