Could you provide a minimal unattend.xml file for use in Windows 7, which will be manually installed, updated and configured on one workstation, then SysPrep will be run like this:

sysprep /generalize /oobe /unattend:unattend.xml /shutdown

and then C: partition cloned to multiple workstations (I use partimage from a Linux LiveUSB for this).

This unattend.xml should configure a workstation so it will not ask for anything after cloning. Workstation should just show an ordinary login screen with accounts configured before. It should create random computer name and don't try to join Active Directory, as I'm not comfortable with storing passwords in unattend.xml.

I don't want to use Windows System Image Manager (Windows SIM) from Windows Automated Installation Kit (Windows AIK) as this is overkill — too complicated for my tastes.

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend"
    <settings pass="generalize">
        <component name="Microsoft-Windows-PnpSysprep"
                language="neutral" versionScope="nonSxS">
    <settings pass="specialize">
        <component name="Microsoft-Windows-Deployment"
                language="neutral" versionScope="nonSxS">
                <RunSynchronousCommand wcm:action="add">
                    <Description>Disable create user account</Description>
                    <Path>reg add HKLM\Software\Microsoft\Windows\CurrentVersion\Setup\OOBE /v UnattendCreatedUser /t REG_DWORD /d 1 /f</Path>
        <component name="Microsoft-Windows-Shell-Setup"
                language="neutral" versionScope="nonSxS">
            <RegisteredOwner>Wile E. Coyote</RegisteredOwner>
            <RegisteredOrganization>ACME Corp.</RegisteredOrganization>
            <TimeZone>Central European Standard Time</TimeZone>
    <settings pass="oobeSystem">
        <component name="Microsoft-Windows-International-Core"
                language="neutral" versionScope="nonSxS">

You just need to change:

  • <RegisteredOwner>
  • <RegisteredOrganization>
  • <TimeZone>
  • Polish locale pl-PL to yours, for example en-US for US.
| improve this answer | |
  • In case you are wondering where to place the file like me, you can place it directly on c:. If you call the command line like shown above, this will cache the file in the Panter folder. All the information here: technet.microsoft.com/en-us/library/cc749415(WS.10).aspx – codea Nov 6 '16 at 9:31
  • 1
    Will this work for Windows 2016? I'm trying to find the same thing for Win 2016 and found this. Thanks. – Just a learner Apr 28 '18 at 18:29

You can have it join a domain without a password using UnsecureJoin.

| improve this answer | |
  • In fact, unsecure join is MORE SECURE than specifying a username/password, as both are stored in plain text if I am correct. – YetiFiasco Sep 17 '14 at 8:10
  • If I undestand correctly from UnsecureJoin documentation you need to have computer account created on server before using it. So this conflicts with "it should create random computer name" requirement. – Tometzky Oct 15 '14 at 19:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.