3 Replies Latest reply on Dec 15, 2015 6:04 AM by keburkhart

    Need some help with Windows 10 Unattend xml file.  Why am I getting duplicate accounts?

    keburkhart Apprentice

      I know I'm missing something stupid here, but can someone point out what I'm doing wrong in my unattend.xml file that is causing my workstation to come up with TWO local accounts named the same?  I'm trying to create a local administrator account on the workstation that our techs use, but somehow I'm ending up with TWO identically named local accounts on the machine after it finishes processing it's unattend.xml file.

       

      Also, a second question:  when I do deploy this image, it reboots a time or two but eventually finishes at the Windows login screen and just sits there.  Once I log into the main "Administrator" account, provisioning kicks off again and proceeds to finish trying to process the rest of the actions in the provisioning template.  How do I make it keep automatically logging in until all provisioning is complete?

       

      Here is my unattend.xml.  Obviously I've replaced/removed some of the private information, but this is basically exactly what is being injected into my image:

       

      <?xml version="1.0" encoding="utf-8"?>

      <unattend xmlns="urn:schemas-microsoft-com:unattend">

          <settings pass="generalize">

              <component name="Microsoft-Windows-PnpSysprep" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

                  <PersistAllDeviceInstalls>true</PersistAllDeviceInstalls>

              </component>

              <component name="Microsoft-Windows-Security-SPP" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

                  <SkipRearm>1</SkipRearm>

              </component>

          </settings>

          <settings pass="specialize">

              <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

                  <ComputerName>%ldHostname%</ComputerName>

                  <CopyProfile>true</CopyProfile>

                  <ProductKey>%Win10ProdKey%</ProductKey>

                  <TimeZone>Eastern Standard Time</TimeZone>

                  <RegisteredOrganization>%Company%</RegisteredOrganization>

                  <RegisteredOwner>%Company%</RegisteredOwner>

              </component>

          </settings>

          <settings pass="auditSystem">

              <component name="Microsoft-Windows-PnpCustomizationsNonWinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

                  <DriverPaths>

                      <PathAndCredentials wcm:action="add" wcm:keyValue="1">

                          <Path>C:\Windows\LDDriverStore</Path>

                      </PathAndCredentials>

                  </DriverPaths>

              </component>

              <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

                  <AutoLogon>

                      <Password>

                          <Value>%AdminPass%</Value>

                          <PlainText>true</PlainText>

                      </Password>

                      <Enabled>true</Enabled>

                      <LogonCount>1</LogonCount>

                      <Username>maintech</Username>

                  </AutoLogon>

                  <UserAccounts>

                      <AdministratorPassword>

                          <Value>%AdminPass%</Value>

                          <PlainText>true</PlainText>

                      </AdministratorPassword>

                      <LocalAccounts>

                          <LocalAccount wcm:action="add">

                              <Password>

                                  <Value>%AdminPass%</Value>

                                  <PlainText>true</PlainText>

                              </Password>

                              <Group>Administrators</Group>

                              <DisplayName>maintech</DisplayName>

                              <Name>maintech</Name>

                          </LocalAccount>

                      </LocalAccounts>

                  </UserAccounts>

                  <TimeZone>Eastern Standard Time</TimeZone>

              </component>

          </settings>

          <settings pass="auditUser">

              <component name="Microsoft-Windows-Deployment" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

                  <RunSynchronous>

                      <RunSynchronousCommand wcm:action="add">

                          <Order>1</Order>

                          <Path>C:\Windows\System32\Sysprep\sysprep.exe /oobe /generalize /reboot</Path>

                          <WillReboot>Always</WillReboot>

                      </RunSynchronousCommand>

                  </RunSynchronous>

              </component>

          </settings>

          <settings pass="oobeSystem">

              <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

                  <AutoLogon>

                      <Password>

                          <Value>%AdminPass%</Value>

                          <PlainText>true</PlainText>

                      </Password>

                      <Username>Administrator</Username>

                      <LogonCount>1</LogonCount>

                      <Enabled>true</Enabled>

                  </AutoLogon>

                  <OOBE>

                      <HideEULAPage>true</HideEULAPage>

                      <NetworkLocation>Work</NetworkLocation>

                      <ProtectYourPC>1</ProtectYourPC>

                      <SkipMachineOOBE>true</SkipMachineOOBE>

                      <SkipUserOOBE>true</SkipUserOOBE>

                  </OOBE>

                  <UserAccounts>

                      <AdministratorPassword>

                          <Value>%AdminPass%</Value>

                          <PlainText>true</PlainText>

                      </AdministratorPassword>

                      <LocalAccounts>

                          <LocalAccount wcm:action="add">

                              <Password>

                                  <Value>%AdminPass%</Value>

                                  <PlainText>true</PlainText>

                              </Password>

                              <DisplayName>maintech</DisplayName>

                              <Group>Administrators</Group>

                              <Name>maintech</Name>

                          </LocalAccount>

                      </LocalAccounts>

                  </UserAccounts>

                  <RegisteredOrganization>%Company%</RegisteredOrganization>

                  <RegisteredOwner>%Company%</RegisteredOwner>

                  <TimeZone>Eastern Standard Time</TimeZone>

              </component>

          </settings>

          <cpi:offlineImage cpi:source="wim:c:/users/myusernameremoved/desktop/windows_wim_files/windows_10_(volume_license_disk)/install.wim#Windows 10 Pro" xmlns:cpi="urn:schemas-microsoft-com:cpi" />

      </unattend>

       

       

       

      PS:  We are running LDMS 9.6 if it makes a difference.

        • 1. Re: Need some help with Windows 10 Unattend xml file.  Why am I getting duplicate accounts?
          nick.evans SupportEmployee

          Hi Keburkhart,

          The account that is doubling up, was it created on the image before the capture? Example: Did you create the local user account, then sysprep and capture?

          If yes, it's possible that you're doubling up by the original being in existence (from before the capture), and then the unattend creates a second version of the account. Something you could do to verify this - Deploy your Win 10 image with the LDDefaultUnattend file which will NOT create any users, but does persists users. If you end up with the account in question when using that unattend, that seems pretty plausibly the issue.

           

          Nick

          1 of 1 people found this helpful
          • 2. Re: Need some help with Windows 10 Unattend xml file.  Why am I getting duplicate accounts?
            gjames Apprentice

            <LogonCount>1</LogonCount>

             

            You can change this number to control how many times it auto logs on for you. Provisioning should be working in the background you just can't see it until you log on. It is nice to set this number so that it keeps logging in except for a final reboot.

             

            As for the first question I mirror what Nick said. You may need to boot to audit mode and delete the account. I also like to cleanup the profile directory under c:\users as well as delete it from HKLM\Software\Microsoft\WIndows NT\CurrentVersion\ProfileList before my final sysprep and capture.

            • 3. Re: Need some help with Windows 10 Unattend xml file.  Why am I getting duplicate accounts?
              keburkhart Apprentice

              Thanks.  The account that was doubling was NOT already in the image.  Somehow, the unattend was creating the account twice.  I believe it was where I had it set to create that "maintech" account both in the Audit Pass and the OOBE Pass.  Anyway, I eventually just created a whole new unattend file and only added the account creations during the Audit Pass.  That seemed to solve THAT problem.  Thanks.