OtorDupont-7816 avatar image
0 Votes"
OtorDupont-7816 asked DSPatrick edited

How to launch a background Windows user after Sysprep?

Hello ! I want to make Windows Images that can be clonable, so I'm currently using Sysprep with OOBE. Right now, I would like (when the windows machine boot) to launch a background user that will have an open session and dedicated tasks to do.

I was previously using WinLogon but Sysprep actually wipes those registries. I'm currently looking into Answer Files to make the user persists and login it. The problem is that I have my user but the AutoLogon attribute seems to not work (or not the way I wanted).

Do you know a way yo get a background user launched after SysPrep? Either via AnswerFiles, a way to keep winlogon registry or other mecanisms?

Thank you very much!

This is currently my answer file OOBE component:

<settings pass="oobeSystem">
    <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="">
            <LocalAccount wcm:action="add">

Also here is what I was using for WinLogon registries values:

New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon' -Name AutoAdminLogon -Value 1 | Out-Null
New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon' -Name DefaultUserName -Value $usrname | Out-Null
New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon' -Name DefaultPassword -Value $pswStr | Out-Null

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

0 Answers