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

    FOG + Sysprep + Windows 10 1803

    Scheduled Pinned Locked Moved Solved
    General
    2
    26
    7.6k
    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 @Florent
      last edited by george1421

      @florent said in FOG + Sysprep + Windows 10 1803:

      /mnt/win/Windows/Panther/unattend.xml

      well of course you know the lower case unattend.xml is wrong, correct?

      Can you post what your post install scripts look like? I’m mainly interested in the script that renames the computer.

      HINT: Your english is better than mine 😉

      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
      • george1421G
        george1421 Moderator @Florent
        last edited by

        @florent said in FOG + Sysprep + Windows 10 1803:

        Reboot => computer join domain correctly in the correct OU but always named is WIN-XXXXX

        Just a minute. I remember reading something about this. I seem to remember it was a windows 10 feature not a bug.

        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 @george1421
          last edited by Florent

          @george1421
          Sorry i don’t understand, what do you mean by :
          well of course you know the lower case unattend.xml is wrong, correct?

          For this test, i took this post install script, just putting commands in debug mode (shell) :

          #!/bin/sh
          #  
          
          . /usr/share/fog/lib/funcs.sh
          
          hd=""
          getHardDisk
          
          sysproduct=""
          
          doInventory
          
          modele=$(echo $sysproduct|tr 'A-Z' 'a-z')
          
          modele=$(echo $modele|sed -e 's/ //g')
          
          # Récupération des infos du host a partir de FOG
          wget -q  -U '' -O /tmp/hinfo.txt "${web}service/hostinfo.php?mac=$mac"
          chmod +x /tmp/hinfo.txt
          . /tmp/hinfo.txt
          
          if [ "$mode_r2" = "debug" ] ; then
          	bash
          fi
          
          if [ -n "$hd" ]; then	
          		partsys=$hd'1'
          		partdata=$hd'2'
          
          	echo "* Using disk device : $hd"
          	echo "* Partition système : $partsys"
          	echo "* Partition de données : $partdata"
          		
          	if [ "$mode_r2" = "debug" ] ; then
                  # Here i put my command for sysprep
                  bash
              fi 
          
          	echo "=> Copy Drivers"
          	cd /mnt/win/
          
          	if [ -e "/mnt/win/drivers" ] ; then
                          rm -r /mnt/win/drivers
              fi
           
          	cp -a /mnt/clonages/pilotes/${modele}/${osid}/drivers /mnt/win  
          	cd
          	umount /mnt/win	
          	rm -f /tmp/hinfo.txt
          fi
          

          Florent
          Bretagne, FRANCE

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

            @florent If you want FOG to do this automatically these command should be in a script that is called every time the system is imaged.

            I would think YOUR post install script would look similar to my scripts here:
            https://forums.fogproject.org/topic/8889/fog-post-install-script-for-win-driver-injection/6

            I would guess that you don’t need the fog.drivers and the fog.log scripts only fog.postdownload and fog.ad scripts. Then you would update the fog.postdownload script to only call the fog.ad script.

                    echo "Done"
                    debugPause
                    # . ${postdownpath}fog.log
                    # . ${postdownpath}fog.drivers
                    . ${postdownpath}fog.ad
                    umount /ntfs
                    ;;
            

            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
            • george1421G
              george1421 Moderator
              last edited by

              I’m currently deploying a Win10 1803 image to a computer in my office. I want to make sure I don’t speak wrong about it working like I say. I don’t deploy every day so I would to check to be sure.

              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!

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

                @george1421 Yes the scripts are still working with 1803 to rename the host.

                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 @george1421
                  last edited by Florent

                  @george1421
                  Yes i added what i have in my postinstall script (remember finally not empty)
                  You see bad things in this ?

                  Florent
                  Bretagne, FRANCE

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

                    @florent Not if it works you can do what ever you want. My plan was to provide people with scripts they can copy and paste into their FOG server so its easy.

                    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
                      Ok i hope problem comes from my postinstall scripts.
                      I will try this likes yours

                      Thanks for runway

                      Florent
                      Bretagne, FRANCE

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

                        @george1421
                        Hi George,
                        I advanced on the problem and i am very confused…
                        I identify problem is just after post download scripts.
                        I say that because in my multiple tests if i shutdown computer just after sed, cancel fog tasks and boot on Windows 10 1803 the name is correct !

                        See screenshot of step where i ientify problem occurs :
                        In tests where windows computer name is correct i shutdown computer just before this screen.

                        text alternatif

                        As i saw rubric “Changing hostname” i search in my 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 …
                        2 months to identify this !
                        Problem solved.

                        Very thanks for your helps and guidance to post download scripts.
                        I was convinced that it was coming from Windows/Sysprep.

                        Don’t know why that did not bother Windows 10 1709.

                        Thanks again 🙂

                        Florent
                        Bretagne, FRANCE

                        1 Reply Last reply Reply Quote 1
                        • 1
                        • 2
                        • 2 / 2
                        • First post
                          Last post

                        176

                        Online

                        12.1k

                        Users

                        17.3k

                        Topics

                        155.4k

                        Posts
                        Copyright © 2012-2024 FOG Project