You accomplished on a win7 x64 during an SCCM OSD Task sequence? The latest: I 
have created a PowerShell script that creates and sets the values for the reg 
keys and used the SMSTSPostAction variable to run the script at the very end of 
the task sequence. After all reboots have been completed during the ts. 
powershell -File "c:\Program Files\Scripts\Powershell\AutoLogonx64.ps1" 
-ExecutionPolicy ByPass

PowerShell Script

Set-Location -Path hklm:
New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows 
NT\CurrentVersion\Winlogon' -Name "AutoAdminLogon"
New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows 
NT\CurrentVersion\Winlogon' -Name "DefaultUserName"
New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows 
NT\CurrentVersion\Winlogon' -Name "DefaultDomainName"
New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows 
NT\CurrentVersion\Winlogon' -Name "DefaultPassword"
Set-Location -path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion'
Set-ItemProperty -Path Winlogon AutoAdminLogon -Value 1
Set-ItemProperty -Path Winlogon DefaultUserName -Value user
Set-ItemProperty -Path Winlogon DefaultDomainName -Value domain
Set-ItemProperty -Path Winlogon DefaultPassword -Value Password
Restart-Computer

So now at the end it still comes up to the ctrl alt delete does not login and 
the password key is not even there. And the autoadminlogon is set to 0.  Any 
more suggestions? To accomplish this in a task sequence?



Please Help!
From: listsad...@lists.myitforum.com [mailto:listsad...@lists.myitforum.com] On 
Behalf Of Saraceno, Rob
Sent: Friday, September 19, 2014 10:24 AM
To: mdtosd@lists.myitforum.com
Subject: RE: [MDT-OSD] AutoLogon With Domain Account in Task Sequence for 
Windows 7 SP1 x64

I've found the registry method to work better if you don't have a default 
domain and you put the domain into the user name (either as below or using the 
UPN)

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"AutoAdminLogon"="1"
"DefaultUserName"="mydomain\domain account"
-"DefaultDomainName"
"DefaultPassword"="MyPassword"


From: listsad...@lists.myitforum.com<mailto:listsad...@lists.myitforum.com> 
[mailto:listsad...@lists.myitforum.com] On Behalf Of Denzik, Josh
Sent: Thursday, September 18, 2014 9:02 PM
To: mdtosd@lists.myitforum.com<mailto:mdtosd@lists.myitforum.com>
Subject: [MDT-OSD] AutoLogon With Domain Account in Task Sequence for Windows 7 
SP1 x64

All,

I am having some trouble getting my machines to autologon with Windows 7 SP1 
x64.


1st Method:

The AutoLogon 3.01 Utility(Sysinternals Tool) is copied to a folder and 
referenced via command line to set the parameters in the task sequence: cmd.exe 
/c c:\windows\autologon\autologon.exe user domain password

Result: It comes up to the logon screen and never tries to logon. The  
AutoAdminLogon is set to 0. (This method works on x86 flawlessly.)



2nd Method

I import this RegKey Via Command Line in the Task sequence: cmd.exe /c REG 
IMPORT AutoLogonx64.reg See Below:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"AutoAdminLogon"="1"
"DefaultUserName"="domain account"
"DefaultDomainName"="mydomain"
"DefaultPassword"="MyPassword"



Result: Again comes up to the logon screen and does not automatically login. 
Once again the AutoAdminLogon is set to 0.  If I log into windows and set 
AutoAdminLogon and then reboot the machine it automatically logs in. It appears 
that something is not getting set correctly in the registry. Is this because of 
it being x64 or is SCCM setting something and overriding my task?  Does anyone 
have any suggestions to accomplish this? It must be done with a domain account.

Thanks in Advance:

Josh Denzik

----------------------------------------------------------------
The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited. If you received
this in error, please contact the sender and delete the material from any
computer.

Bain Capital, LLC
Boston, MA  USA
+1 (617) 516 2000

Reply via email to