Need script to log in user on Win 7 computer
Updated: 18 Sep 2010 | 5 comments
With the bug in DS 6.9 sp3 and you can't remote when a user is not logged onto a Win 7 computer, I need a script to push down to log in a user. Does anyone have one?
discussion Filed Under:
Comments
you can setup sysprep to
you can setup sysprep to automatic login at unattend.xml config file
but this only works when you are installing pc.
Doesnt work if pc is already installed and in use.
Is this what you are looking
Is this what you are looking for?
http://on10.net/blogs/sarahintampa/Tip-Auto-Login-...
Thanks for your reply. This
Thanks for your reply. This could work. Its a little bit of a hassle though. If Symantec would just fix the ds remote for windows 7 in the DS console I wouldn't have to be looking for a fix.
Run Script Registry editor
We don't tipically use the DS for remote control, but if you need a way to force an auto log in there is always the registry. I believe this will work with Windows 7 although I have not tried it yet but we do use it for Windows XP for other reasons.
There are three parts to this, the first is adding the autolog in:
REG ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v AutoAdminLogon /d 1 /f
REG DELETE "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v AutoLogonCount /f
REG ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultUserName /d useraccount /f
REG ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultPassword /d userpw /f
REG ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultDomainName /d %COMPNAME% /f
*note* if you want it to use a domain account change %COMPNAME% with the domain you want to use
Second Force a restart (power control to reboot)
Finally once it boots up, remove the registry keys to prevent remote viewing of the password as it will be in plain text.
REG ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v AutoAdminLogon /d 0 /f
REG ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /ve DefaultUserName /f
REG DELETE "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultPassword /f
REG ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultDomain /d %YourDomain% /f
Run script registry Editor
Thanks. I think this script would work . I just wish Symantec would fix the DS remote function in DS6.9 for Windows 7 for a non logged on user.
Would you like to reply?
Login or Register to post your comment.