Консультация № 47049
22.06.2006, 13:45
0.00 руб.
0 4 2
Здравствуйте, Уважаемый эксперт! Обращаюсь именно к Вам со следующим вопросом:

Система Windows XP SP2. На данный момент один пользователь. Планируется активировать еще одного (еще одна учетная запись). Так вот, можно ли каким либо способом сделать так, чтобы в определенное время, когда появляется окно выбора пользователя, запускался либо скрипт, либо программа, которые автоматически (меня в это время за компьютером нет) выбирали бы пользователя, т.е. как бы я нажал на кнопку мышки по нужной иконке. Автоматизировать процесс входа, так сказать.

Если такое возможно, поделитесь - как это сделать.
Спасибо за ответы и внимание.

Обсуждение

Неизвестный
22.06.2006, 16:12
общий
это ответ
Здравствуйте, Черных Василий!

Автоматический логин в Windows XP хорошо рассмотрен в Microsoft Knowledge Base. В приложении привожу Вам эту статью, правда на английском.
Теперь кратко поясню по русски. Есть два пути:
1. Редактировать реестр.
Пуск - Выполнить - regedit - OK
Добраться до ключа реестра HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\Winlogon
В DefaultUserName ввести имя пользователся для автовхода, в DefaultPassword - пароль. Если этих ключей не существует создайте их (Правка - Создать - Строковой параметр).
2. Не нужно редактировать реестр.
Пуск - Выполнить - control userpasswords2 - ОК
Снимаем галочку Требовать ввод имени пользователя и пароля.

Если вы желаете в следующий раз загрузиться под другим пользователем, нажмите и держите Shift после завершения сеанса. Также сменить пользователя можно в любой момент и при работе в Windows.

Полная статья в приложении.

Приложение:
http://support.microsoft.com/?kbid=315231How to turn on automatic logon in Windows XPView products that this article applies to.Article ID : 315231Last Review : June 23, 2005Revision : 4.2This article was previously published under Q315231Important This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base: 256986 Description of the Microsoft Windows RegistryINTRODUCTIONThis article describes how to configure Microsoft Windows XP to automate the logon process by storing your password and other pertinent information in the registry database. This feature permits other users to start your computer and to use the account that you establish to automatically log on.Important If you turn on autologon, using Windows XP becomes more convenient. However, using this feature can pose a security risk.MORE INFORMATIONWarning If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.If you set a computer for automatic logon, anyone who can physically gain access to the computer can also gain access to everything that is on the computer, including any network or networks that the computer is connected to. Additionally, if you turn on automatic logon, the password is stored in the registry in plain text. The specific registry key that stores this value is remotely readable by the Authenticated Users group. Therefore, only use this setting if the computer is physically secured and if you make sure that users who you do not trust cannot remotely see the registry.You can use Registry Editor to add your log on information. To do this, follow these steps: 1. Click Start, click Run, type regedit, and then click OK.2. Locate the following registry key:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\Winlogon3. Using your account name and password, double-click the DefaultUserName entry, type your user name, and then click OK.4. Double-click the DefaultPassword entry, type your password under the value data box, and then click OK.If there is no DefaultPassword value, create the value. To do this, follow these steps: a. In Registry Editor, click Edit, click New, and then click String Value.b. Type DefaultPassword as the value name, and then press ENTER.c. Double-click the newly created key, and then type your password in the Value Data box.If no DefaultPassword string is specified, Windows XP automatically changes the value of the AutoAdminLogon registry key from 1 (true) to 0 (false) to turn off the AutoAdminLogon feature.5. Double-click the AutoAdminLogon entry, type 1 in the Value Data box, and then click OK.If there is no AutoAdminLogon entry, create the entry. To do this, follow these steps: a. In Registry Editor, click Edit, click New, and then click String Value.b. Type AutoAdminLogon as the value name, and then press ENTER.c. Double-click the newly created key, and then type 1 in the Value Data box.6. Quit Registry Editor.7. Click Start, click Restart, and then click OK.After your computer restarts and Windows XP starts, you can log on automatically. If you want to bypass the automatic logon to log on as a different user, hold down the SHIFT key after you log off or after Windows XP restarts. Note that this procedure applies only to the first logon. To enforce this setting for future logoffs, the administrator must set the following registry key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\WinlogonValue:ForceAutoLogonType: REG_SZData: 1You can also use turn on automatic logon without editing the registry in Microsoft Windows XP Home Edition and in Microsoft Windows XP Professional on a computer that is not joined to a domain. To do this, follow these steps: 1. Click Start, and then click Run.2. In the Open box, type control userpasswords2, and then click OK.Note When users try to display help information in the User Accounts window in Windows XP Home Edition, the help information is not displayed. Additionally, users receive the following error message:Cannot find the Drive:\Windows\System32\users.hlp Help file. Check to see that the file exists on your hard disk drive. If it does not exist, you must reinstall it.3. Clear the "Users must enter a user name and password to use this computer" check box, and then click Apply.4. In the Automatically Log On window, type the password in the Password box, and then retype the password in the Confirm Password box.5. Click OK to close the Automatically Log On window, and then click OK to close the User Accounts window.APPLIES TO• Microsoft Windows XP Home Edition• Microsoft Windows XP Professional• Microsoft Windows XP Professional for Itanium-based systems
Неизвестный
22.06.2006, 17:57
общий
Поддерживаю. Если разрешить "быструю смену пользователей" (панель управления - учетные записи пользователей - изменить вход в систему), то можно поставить, чтобы все время загружаться со второй учетной записью, а если работать самому, то после загрузки выполнять Пуск - завершение сеанса - сменить пользователя (на свою учетную запись можно и поставить другой пароль)
Неизвестный
22.06.2006, 20:11
общий
Нет, мне именно нужно, чтоб при загрузке ОС всегда был возможен выбор пользователя (две иконки). Но в определенное время, скажем, в 5 утра, нужен именно АВТОМАТИЧЕСКИЙ вход.
Неизвестный
23.06.2006, 08:07
общий
это ответ
Здравствуйте, Черных Василий!
Есть специальная настройка, которая позволяет автоматически входить в систему без выбора имени и ввода пароля. Также автоматический вход в систему можно включить следующим способом: Пуск - Выполнить - набрать "control userpasswords2", в появившемся окне снять галочку с "Требовать ввод имени и пароля", после нажатия на ОК появится окно, где нужно указать пользователя и пароль. Если автоматический вход включен, то его можно обойти, удерживая клавишу SHIFT при загрузке компьютера.

HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon

STRING AutoAdminLogon, принимает значение "1" - Автоматический вход включен, "0" - выключен.

STRING DefaultUserName, имя пользователя, которое используется при автоматическом входе в систему
STRING DefaultUserPassword, пароль пользователя
STRING DefaultDomainName, домен по умолчанию, используется для компьютеров в сети

Примечание: пароль храниться в реестре в незашифрованном виде!!!!!!!

Если при загрузке компьютера отключен показ предыдущего имени (параметр DontDisplayLastUserName) автоматический вход в систему работать не будет!

Если опция сбрасывается после перезагрузки, создайте пароль для своей учетной записи (Панель управления - Учетные записи пользователей) или используйте апплет control userpasswords2 (см. выше)
Форма ответа