Jump to content

Recommended Posts

Posted

I'm trying to get a "netplwiz" "Script" to work in MDT so the users will autologon.

 

This is what I have come up with, it works when I manuel set the "autoadminlogon" to "1"

 

But why will this line not set the AutoadminLogon to "1"?

 

 

REG ADD "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" /v AutoAdminLogon /t REG_SZ /d 1 /f

REG ADD "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultDomainName /t REG_SZ /d HB_BIB /f

REG ADD "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultUserName /t REG_SZ /d "Naestved Bibliotek" /f

 

 

maybe there is a better why to make the script?

 

The only thing it needs to do is

1. autologon users

2. users needs a blank password (very imported)

3. Should be able to run through MDT during deployment.

 

 

Thanks :)

Posted

This is the script I have just apply it on a as and when basis to the computers that need it

 

Windows Registry Editor Version 5.00

 

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]

"AutoAdminLogon"="1"

"DefaultUserName"="username"

"DefaultDomainName"="domain"

"DefaultPassword"="password"

Posted

I'm having troubles on the same issue and was about to post when I saw this topic. I'm using a batch file to correct some issues on a few PCs that have already been deployed. Here is my batch file script.

@echo off

net user student /add /comment:"User" /passwordchg:NO

wmic useraccount where "name='student'" set passwordexpires=FALSE

net localgroup "Users" student/add

net user Admin pa44w0rd

reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" /v AutoAdminLogon /t REG_SZ /d 1

reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultUserName /t REG_SZ /d student

reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultPassword /t REG_SZ /d

reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" /v AutoLogonCount /t REG_DWORD /d 0

exit

 

But I still have to select a user when the PC turns on. This is not joined to a domain. A little help please? This is on windows 8.1

Posted
Okay after looking at the registry I found that its not creating the defaultpassword key so I edited the user creation line in the batch file to include a password and then entered the password into the regkey defaultpassword line and it worked. I guess it didn't like t making a key with a blank entry.
Posted (edited)

I change my script to

 

Windows registry Editor Version 5.00

 

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]

"AutoAdminLogon"="1"

"DefaultUserName"="Bruger"

 

 

And that works..

 

The biggest problem is where to put it in MDT-TS.

Cause it will force the computer to boot into a Normal user and that will mess up the TS.

 

 

Okay after looking at the registry I found that its not creating the defaultpassword key so I edited the user creation line in the batch file to include a password and then entered the password into the regkey defaultpassword line and it worked. I guess it didn't like t making a key with a blank entry

 

Does it need a password.?

 

The problem with netplwiz is that if you autologon with a user that has a password, IT HAS TO REBOOT to get into that user profil.

If the user hit the win key+L he cannot get into his account again, without knowing the password, whice he don't have henc,,, autologon.

The only way the user can get back in, is to reboot the computer.

Edited by denmyos

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...