troubleshooting Question

Automatic login to domain Windows 7 computers

Avatar of alfatec
alfatec asked on
Windows NetworkingWindows Server 2003Networking Protocols
4 Comments1 Solution632 ViewsLast Modified:
I currently use the following to autologin my workstations as an administrator.I call a batch file at the command prompt using the For command and a list of PC names that enables autologin and reboots:

For /f %i in (pc.txt) do call do.bat %i

DO.BAT
reg add "\\%1\HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" /v AutoAdminLogon /t REG_SZ /d 1 /f
reg add "\\%1\HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultDomainName /t REG_SZ /d YOURDOMAIN /f
reg add "\\%1\HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultUserName /t REG_SZ /d YOURUSERNAME /f
reg add "\\%1\HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultPassword /t REG_SZ /d YOURPASSWORD /f
shutdown /r /m "\\%1" /t 1 /f


When I am done  I do this to disable the autologin and reboot:

For /f %i in (pc.txt) do call undo.bat %i

UNDO.BAT
reg add "\\%1\HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" /v AutoAdminLogon /t REG_SZ /d 0 /f
reg delete "\\%1\HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultUserName /f
reg delete "\\%1\HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultPassword /f
shutdown /r /m "\\%1" /t 1 /f

Now this all works fine for Windows XP workstations but when I have applied this to
Windows 7 workstations I get an error stating 'The network path cannot be found'. As soon
as I send it to an XP workstation it is fine. Any help would be appreciated.
ASKER CERTIFIED SOLUTION
Alan_White

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros