• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Windows 10 1803 - sysprep problem

    Scheduled Pinned Locked Moved Solved
    Windows Problems
    2
    11
    8.9k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • george1421G
      george1421 Moderator
      last edited by

      I haven’t started developing our 1803 image yet. But I am very interested in this problem since we use the unattend.xml file to set the computer name and not the fog service.

      If I have time I’ll load the 1803 iso into MDT and spin up a new (test) image to see if I can duplicate your findings.

      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

      1 Reply Last reply Reply Quote 0
      • F
        Florent
        last edited by

        Ok.
        In my case we do not use MDT.
        Just personnalize Windows 10 image , sysprep, and upload on FOG.
        In our FOG post install script this modify the unattend.xml to set computer name in reference with FOG before windows 10 boot.

        Until now for Windows 7, Windows 10 1709 this work fine.

        Florent
        Bretagne, FRANCE

        george1421G 1 Reply Last reply Reply Quote 0
        • george1421G
          george1421 Moderator @Florent
          last edited by

          @florent I understand about you can’t use MDT. What I was suggesting is that I can create a deployable Win10 1803 image quickly.

          I have the golden image (FAT Win Image) built already and the name is correct as set by MDT. Now I need to capture and deploy with fog to see if the host is named correctly after FOG imaging.

          Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

          1 Reply Last reply Reply Quote 0
          • george1421G
            george1421 Moderator
            last edited by

            The Win10 1803 image deployed correctly and the name was named correctly without the FOG service being installed on the target system.

            I can not duplicate your error. You might want to confirm that your unattend.xml file is

            1. Installed in the correct location
            2. Your script that renames the system is functioning as expected

            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

            F 1 Reply Last reply Reply Quote 0
            • F
              Florent @george1421
              last edited by

              @george1421
              Thanks for your test.

              1- My xml is ok in C:\Windows\Panther\unattend.xml and C:\Windows\System32\sysprep\sysprep.xml

              2- This is not script that rename the computer. This is sysprep.
              After doing modificiations on my windows image i launch sysprep like this :

              sysprep /generalize /oobe /shutdown /unattend:C:\Windows\System32\sysprep\sysprep.xml
              

              And after cloning the computer i set correct name in the xml (with sed function of linux)

              See my sysprep.xml after cloning (computer have name WIN-XXXX instead of UC0001):

              <?xml version='1.0' encoding='utf-8'?>
              <unattend xmlns="urn:schemas-microsoft-com:unattend">
                  <settings pass="specialize" wasPassProcessed="true">
                      <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">
                          <CopyProfile>false</CopyProfile>
                          <ComputerName>UC0001</ComputerName>
                          <RegisteredOrganization>My Organisation</RegisteredOrganization>
                          <RegisteredOwner>IT</RegisteredOwner>
                          <TimeZone>Romance Standard Time</TimeZone>
                      </component>
                      <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">
                          <ExtendOSPartition>
                              <Extend>true</Extend>
                          </ExtendOSPartition>
                      </component>
                      <component name="Microsoft-Windows-UnattendedJoin" 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">
                          <Identification>
                              <Credentials>
                                  <Domain>mydomain.local</Domain>
                                  <Password>*SENSITIVE*DATA*DELETED*</Password>
                                  <Username>*SENSITIVE*DATA*DELETED*</Username>
                              </Credentials>
                              <DebugJoin>true</DebugJoin>
                              <JoinDomain>mydomain.local</JoinDomain>
                              <MachineObjectOU>OU=XX,OU=XX,OU=XX,OU=XX,DC=mydomain,DC=local</MachineObjectOU>
                          </Identification>
                      </component>
                      <component name="Microsoft-Windows-Security-SPP-UX" 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">
                          <SkipAutoActivation>false</SkipAutoActivation>
                      </component>
                  </settings>
                  <settings pass="generalize">
                      <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">
                          <DuplicatorDescription>IT</DuplicatorDescription>
                      </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>0</SkipRearm>
                      </component>
                  </settings>
                  <settings pass="oobeSystem" wasPassProcessed="true">
                      <component name="Microsoft-Windows-International-Core" 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">
                          <InputLocale>fr-fr</InputLocale>
                          <SystemLocale>fr-fr</SystemLocale>
                          <UILanguage>fr-fr</UILanguage>
                          <UILanguageFallback>fr-fr</UILanguageFallback>
                          <UserLocale>fr-fr</UserLocale>
                      </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">
                          <OOBE>
                              <ProtectYourPC>1</ProtectYourPC>
                              <HideEULAPage>true</HideEULAPage>
                              <HideLocalAccountScreen>true</HideLocalAccountScreen>
                                  <HideOEMRegistrationScreen>true</HideOEMRegistrationScreen>
                              <HideOnlineAccountScreens>true</HideOnlineAccountScreens>
                              <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
                          </OOBE>
                          <UserAccounts>
                              <AdministratorPassword>*SENSITIVE*DATA*DELETED*    </AdministratorPassword>
                              <LocalAccounts>
                                  <LocalAccount wcm:action="add">
                                      <Password>*SENSITIVE*DATA*DELETED*</Password>
                                      <Name>*SENSITIVE*DATA*DELETED*</Name>
                                      <Group>Administrateurs</Group>
                                  </LocalAccount>
                              </LocalAccounts>
                          </UserAccounts>
                      </component>
                  </settings>
                  <cpi:offlineImage cpi:source="wim:c:/users/admin/desktop/install.wim#Windows 10 Pro" xmlns:cpi="urn:schemas-microsoft-com:cpi">    </cpi:offlineImage>
              </unattend>
              

              Florent
              Bretagne, FRANCE

              george1421G 1 Reply Last reply Reply Quote 0
              • george1421G
                george1421 Moderator @Florent
                last edited by george1421

                @florent OK the first issue is that you have 2 unattend.xml file. Only put it in C:\Windows\Panther. That is the first place OOBE looks for the unattend file.

                Your sed script should update the one in c:\windows\panther too.

                and just for reference this is what my sysprep command looks like:

                c:\windows\system32\sysprep\sysprep.exe /quiet /generalize /oobe /shutdown /unattend:C:\Windows\Panther\Unattend.xml
                

                For clarity this is my unattend.xml file. It really hasn’t changed much since the Win7 deployments.

                <?xml version="1.0" encoding="utf-8"?>
                <unattend xmlns="urn:schemas-microsoft-com:unattend">
                    <settings pass="windowsPE">
                        <component name="Microsoft-Windows-International-Core-WinPE" 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">
                            <SetupUILanguage>
                                <UILanguage>en-US</UILanguage>
                            </SetupUILanguage>
                            <InputLocale>0409:00000409</InputLocale>
                            <SystemLocale>en-US</SystemLocale>
                            <UILanguage>en-US</UILanguage>
                            <UILanguageFallback>en-US</UILanguageFallback>
                            <UserLocale>en-US</UserLocale>
                        </component>
                        <component name="Microsoft-Windows-PnpCustomizationsWinPE" 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:\Drivers</Path>
                                </PathAndCredentials>
                            </DriverPaths>
                        </component>
                    </settings>
                    <settings pass="offlineServicing">
                        <component name="Microsoft-Windows-LUA-Settings" 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">
                            <EnableLUA>false</EnableLUA>
                        </component>
                        <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:\Drivers</Path>
                                </PathAndCredentials>
                            </DriverPaths>
                        </component>
                    </settings>
                    <settings pass="generalize">
                        <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-International-Core" 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">
                            <InputLocale>0409:00000409</InputLocale>
                            <SystemLocale>en-US</SystemLocale>
                            <UILanguage>en-US</UILanguage>
                            <UILanguageFallback>en-US</UILanguageFallback>
                            <UserLocale>en-US</UserLocale>
                        </component>
                        <component name="Microsoft-Windows-Security-SPP-UX" 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">
                            <SkipAutoActivation>true</SkipAutoActivation>
                        </component>
                        <component name="Microsoft-Windows-SQMApi" 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">
                            <CEIPEnabled>0</CEIPEnabled>
                        </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">
                            <ComputerName>W10CBB</ComputerName>
                            <CopyProfile>true</CopyProfile>
                            <RegisteredOrganization>**REMOVED BY ME**</RegisteredOrganization>
                            <RegisteredOwner>**REMOVED BY ME**</RegisteredOwner>
                            <TimeZone>Eastern Standard Time</TimeZone>
                        </component>
                        <component name="Microsoft-Windows-UnattendedJoin" 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">
                            <Identification>
                                <Credentials>
                                    <Domain>**REMOVED BY ME**</Domain>
                                    <Password>**REMOVED BY ME**</Password>
                                    <Username>**REMOVED BY ME**</Username>
                                </Credentials>
                                <JoinDomain>**REMOVED BY ME**</JoinDomain>
                                <MachineObjectOU>ou=Domain Transfer,dc=domain,dc=com</MachineObjectOU>
                            </Identification>
                        </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>**REMOVED BY ME**</Value>
                                    <PlainText>false</PlainText>
                                </Password>
                                <Enabled>true</Enabled>
                                <Username>**REMOVED BY ME**</Username>
                                <Domain>**REMOVED BY ME**</Domain>
                                <LogonCount>1</LogonCount>
                            </AutoLogon>
                            <OOBE>
                                <HideEULAPage>true</HideEULAPage>
                                <HideOEMRegistrationScreen>true</HideOEMRegistrationScreen>
                                <HideOnlineAccountScreens>true</HideOnlineAccountScreens>
                                <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
                                <NetworkLocation>Work</NetworkLocation>
                                <SkipUserOOBE>true</SkipUserOOBE>
                                <SkipMachineOOBE>true</SkipMachineOOBE>
                                <ProtectYourPC>1</ProtectYourPC>
                                <HideLocalAccountScreen>true</HideLocalAccountScreen>
                            </OOBE>
                            <UserAccounts>
                                <DomainAccounts>
                                    <DomainAccountList wcm:action="add">
                                        <DomainAccount wcm:action="add">
                                            <Group>Administrators</Group>
                                            <Name>**REMOVED BY ME**</Name>
                                        </DomainAccount>
                                        <Domain>**REMOVED BY ME**</Domain>
                                    </DomainAccountList>
                                </DomainAccounts>
                            </UserAccounts>
                            <RegisteredOrganization>**REMOVED BY ME**</RegisteredOrganization>
                            <RegisteredOwner>**REMOVED BY ME**</RegisteredOwner>
                            <DisableAutoDaylightTimeSet>false</DisableAutoDaylightTimeSet>
                            <FirstLogonCommands>
                                <SynchronousCommand wcm:action="add">
                                    <Description>Move to OU</Description>
                                    <Order>1</Order>
                                    <CommandLine>cscript.exe /B c:\windows\buildscripts\SetOUTo.vbs "some_new_ou"</CommandLine>
                                    <RequiresUserInput>false</RequiresUserInput>
                                </SynchronousCommand>
                                <SynchronousCommand wcm:action="add">
                                    <Order>2</Order>
                                    <Description>Activate Windows</Description>
                                    <RequiresUserInput>false</RequiresUserInput>
                                    <CommandLine>cscript /B C:\windows\system32\_slmgr.vbs /ato</CommandLine>
                                </SynchronousCommand>
                                <SynchronousCommand wcm:action="add">
                                    <Order>3</Order>
                                    <CommandLine>shutdown.exe -r -t 30 /c "The computer will RESTART in 30 seconds"</CommandLine>
                                    <Description>Reboot at end</Description>
                                    <RequiresUserInput>false</RequiresUserInput>
                                </SynchronousCommand>
                            </FirstLogonCommands>
                            <TimeZone>Eastern Standard Time</TimeZone>
                        </component>
                    </settings>
                </unattend>
                
                

                Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                F 2 Replies Last reply Reply Quote 0
                • F
                  Florent @george1421
                  last edited by

                  @george1421 Thanks.
                  Next week i go try with same command line and xml of you.
                  I’m just going to delete rubric that don’t need and adapt my sed

                  Florent
                  Bretagne, FRANCE

                  1 Reply Last reply Reply Quote 0
                  • F
                    Florent @george1421
                    last edited by

                    @george1421 Thanks it’s work with your sysprep.
                    Maybe options what i use are depreciate with W10 1803.

                    I go to create new sysprep from ADK 1803

                    Florent
                    Bretagne, FRANCE

                    george1421G 1 Reply Last reply Reply Quote 0
                    • george1421G
                      george1421 Moderator @Florent
                      last edited by

                      @florent Best of luck on creating a new unattend.xml file.

                      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                      1 Reply Last reply Reply Quote 0
                      • F
                        Florent
                        last edited by

                        Resolve with this :

                        Web FOG Settings :
                        -FOG Client - Hostname Changer was enabled : Now DISABLED
                        -General Settings / Change Hostname early was enabled : Now DISABLED

                        After disable this two settings it’s ok …

                        Problem solved.

                        Florent
                        Bretagne, FRANCE

                        1 Reply Last reply Reply Quote 0
                        • george1421G george1421 referenced this topic on
                        • 1 / 1
                        • First post
                          Last post

                        172

                        Online

                        12.1k

                        Users

                        17.3k

                        Topics

                        155.3k

                        Posts
                        Copyright © 2012-2024 FOG Project