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

Windows 10 unattend.xml (sysprep answer file) challenge

Scheduled Pinned Locked Moved
Windows Problems
11
35
86.8k
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.
  • M
    MRCUR Testers @Psycholiquid
    last edited by Feb 18, 2016, 1:59 PM

    @Psycholiquid Ah, so the pieces you’re doing in “FirstLogonCommands” I’m doing in the SetupComplete.cmd script.

    del /Q /F C:\Windows\system32\sysprep\unattend.xml
    del /Q /F C:\Windows\panther\unattend.xml
    net start FOGService
    
    P 1 Reply Last reply Feb 18, 2016, 2:37 PM Reply Quote 1
    • P
      Psycholiquid Testers @MRCUR
      last edited by Feb 18, 2016, 2:37 PM

      @MRCUR Yeah I figured why add another file when I can just do it all in one motion.

      1 Reply Last reply Reply Quote 1
      • J
        JJ Fullmer Testers
        last edited by Apr 12, 2016, 5:22 PM

        @Psycholiquid You are a beautiful person and I love you.
        You may have just ended my 5 year hate war against sysprep.

        Maybe I wasn’t looking hard enough, but everytime I tried sysprep or tried to customize it to my needs it failed miserably. Destroying customizations, getting stuck at oobe screens, just overall breaking everything. However, I just used your xml as a template and was able to successfully run sysprep on my windows 10 image and it worked pretty well and now I think I will be able to better search for the bits of the unattend.xml I need.

        Also, a problem I ran into in windows 10 with sysprep is it sometimes gives an error about a metro app (movies and tv aka Microsoft.ZuneVideo for example) not being provisioned for each user or something. I had to run this powershell script I found in a microsoft tech forum (that I can’t seem to find again right now, but I saved the script for future use) on each user and it worked.

        $AppsList = "Microsoft.Bing" , "Microsoft.BingFinance" , "Microsoft.BingMaps" , "Microsoft.BingNews"`
                    , "Microsoft.BingSports" , "Microsoft.BingTravel" , "Microsoft.BingWeather" , "Microsoft.Camera"`
                    , "microsoft.microsoftskydrive" , "Microsoft.Reader" , "microsoft.windowscommunicationsapps"`
                    , "microsoft.windowsphotos" , "Microsoft.XboxLIVEGames" , "Microsoft.ZuneMusic"`
                    , "Microsoft.ZuneVideo" , "Microsoft.Media.PlayReadyClient"
        
        ForEach ($App in $AppsList)
        {
            $PackageFullName = (Get-AppxPackage $App).PackageFullName
            if ((Get-AppxPackage $App).PackageFullName)
            {
                Write-Host "Removing Package: $App"
                remove-AppxProvisionedPackage -online -packagename $PackageFullName
                remove-AppxPackage -package $PackageFullName
            }
            else
            {
                Write-Host "Unable to find package: $App"
            }
        }
        

        Save that guy as a .ps1 file and run it on each user if you’re getting an error when trying to run sysprep on windows 10 (or 8/8.1 for that matter)

        Have you tried the FogApi powershell module? It's pretty cool IMHO
        https://github.com/darksidemilk/FogApi
        https://fogapi.readthedocs.io/en/latest/
        https://www.powershellgallery.com/packages/FogApi
        https://forums.fogproject.org/topic/12026/powershell-api-module

        M 1 Reply Last reply Apr 12, 2016, 7:00 PM Reply Quote 1
        • M
          MRCUR Testers @JJ Fullmer
          last edited by Apr 12, 2016, 7:00 PM

          @Arrowhead-IT You can remove the “Modern” apps in audit mode so you don’t run into any issues. See here: https://forums.fogproject.org/topic/6720/image-windows-10-upgrade/5

          J 1 Reply Last reply Apr 12, 2016, 7:50 PM Reply Quote 1
          • J
            JJ Fullmer Testers @MRCUR
            last edited by Apr 12, 2016, 7:50 PM

            @MRCUR Oooh, cool. However it wouldn’t let me enter audit mode either until I found this script. I did read something about using audit mode to get rid of modern apps, but I had to remove them to get to audit mode.

            Have you tried the FogApi powershell module? It's pretty cool IMHO
            https://github.com/darksidemilk/FogApi
            https://fogapi.readthedocs.io/en/latest/
            https://www.powershellgallery.com/packages/FogApi
            https://forums.fogproject.org/topic/12026/powershell-api-module

            M Q 2 Replies Last reply Apr 12, 2016, 8:03 PM Reply Quote 0
            • M
              MRCUR Testers @JJ Fullmer
              last edited by Apr 12, 2016, 8:03 PM

              @Arrowhead-IT You have to be on the network selection screen in OOBE to get into audit mode. (I know this is completely non-obvious - it’s a very MS thing to do.)

              W 1 Reply Last reply Apr 12, 2016, 9:54 PM Reply Quote 1
              • Q
                Quazz Moderator @JJ Fullmer
                last edited by Apr 12, 2016, 8:21 PM

                @Arrowhead-IT That’s because Audit mode is triggered by sysprep which only runs if the apps make it past the checks, it’s stupid, but hey.

                1 Reply Last reply Reply Quote 1
                • W
                  Wayne Workman @MRCUR
                  last edited by Wayne Workman Apr 12, 2016, 3:55 PM Apr 12, 2016, 9:54 PM

                  @MRCUR said in Windows 10 unattend.xml (sysprep answer file) challenge:

                  @Arrowhead-IT You have to be on the network selection screen in OOBE to get into audit mode. (I know this is completely non-obvious - it’s a very MS thing to do.)

                  MS should watch themselves… If they keep making things more and more difficult, and Linux distros keep making things more and more easy… well then… You know. 🙂

                  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!
                  Daily Clean Installation Results:
                  https://fogtesting.fogproject.us/
                  FOG Reporting:
                  https://fog-external-reporting-results.fogproject.us/

                  1 Reply Last reply Reply Quote 1
                  • B
                    boeleke
                    last edited by Apr 14, 2016, 8:39 AM

                    Hi there all,

                    i tried a couple of times a sysprep on w10.
                    Sysprep on w10 is taking so long… Longer then w7 , how is this with you guys?

                    G 1 Reply Last reply Apr 14, 2016, 11:47 AM Reply Quote 0
                    • G
                      george1421 Moderator @boeleke
                      last edited by Apr 14, 2016, 11:47 AM

                      @boeleke said in Windows 10 unattend.xml (sysprep answer file) challenge:

                      Sysprep on w10 is taking so long… Longer then w7 , how is this with you guys?

                      I know it does take quite a while, but I’ve never timed it. I will typically start sysprep and then go do something else while it runs. When I come back the vm is powered off. I can say the speed of sysprep is dependant on if you are running on a vm vs physical hardware (phy hardware has more drivers) and if you are deploying all of the bloat ware vs a clean image.

                      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 1
                      • P
                        Psycholiquid Testers
                        last edited by Apr 14, 2016, 1:41 PM

                        My sysprep on Windows 10 LTSB is around 3 mins max. But it is a very clean image.

                        B 1 Reply Last reply Apr 18, 2016, 9:07 AM Reply Quote 1
                        • B
                          boeleke @Psycholiquid
                          last edited by Apr 18, 2016, 9:07 AM

                          @Psycholiquid

                          You did it with Audit-Mode?

                          1 Reply Last reply Reply Quote 0
                          • B
                            Boyan Biandov @MRCUR
                            last edited by Jul 9, 2016, 4:45 AM

                            @MRCUR Thanks for the XML, it does open up in SIM but produces this when tested in the real world:

                            0_1468039541208_SIM.png

                            P 1 Reply Last reply Jul 9, 2016, 12:24 PM Reply Quote 0
                            • P
                              Psycholiquid Testers @Boyan Biandov
                              last edited by Jul 9, 2016, 12:24 PM

                              @Boyan-Biandov Your image has a driver it doesn’t like if you are getting that, for the most part I don’t really audit mode anymore. I do what I need to do in Windows and go straight to OOBE from there makes it cleaner and easier to deal with. I am still using the same XML I have posted here and it still works so you might want to check your drivers.

                              Always keep in mind that you can get past that by hitting Shift F10 sometimes and running Explorer. Then you can check the Setup,log in the Panther folder to see what is happening.

                              B 1 Reply Last reply Jul 9, 2016, 3:24 PM Reply Quote 1
                              • B
                                Boyan Biandov @Psycholiquid
                                last edited by Boyan Biandov Jul 9, 2016, 10:02 AM Jul 9, 2016, 3:24 PM

                                @Psycholiquid

                                Thanks, driver I don’t know about but there’s definitely something that baffles me: why would it look for the xml in this directory? I’m stumped on this one…Do you all have to copy the xml file to both locations before running sysprep against one of the copies?

                                2016-07-09 08:11:52, Error                        [oobeldr.exe] User input error was detected in unattend file. Error: [0x0]
                                2016-07-09 08:11:52, Info                  IBS    UnattendErrorFromResults: Hit an unattend error; dumping any info we have about the failure...
                                2016-07-09 08:11:52, Info                  IBS    UnattendDumpSetting: ------Unattend setting error / warning------
                                2016-07-09 08:11:52, Info                  IBS    UnattendDumpSetting: Error code = 0x8030000b
                                2016-07-09 08:11:52, Info                  IBS    UnattendDumpSetting: Pass = oobeSystem
                                2016-07-09 08:11:52, Info                  IBS    UnattendDumpSetting: Component name = [Microsoft-Windows-Shell-Setup]
                                2016-07-09 08:11:52, Info                  IBS    UnattendDumpSetting: --------------------------------------------
                                2016-07-09 08:11:52, Info                  IBS    UnattendErrorFromResults: Error text = Windows could not parse or process unattend answer file [C:\Windows\Panther\unattend.xml] for pass [oobeSystem]. The settings specified in the answer file cannot be applied. The error was detected while processing settings for component [Microsoft-Windows-Shell-Setup].
                                

                                0_1468078294086_fog3.png

                                M G 2 Replies Last reply Jul 9, 2016, 3:39 PM Reply Quote 0
                                • M
                                  MRCUR Testers @Boyan Biandov
                                  last edited by Jul 9, 2016, 3:39 PM

                                  @Boyan-Biandov That’s the directory that sysprep is actually run from & where logs are sent. I don’t believe the directory location is your issue.

                                  B 1 Reply Last reply Jul 9, 2016, 4:08 PM Reply Quote 0
                                  • B
                                    Boyan Biandov @MRCUR
                                    last edited by Boyan Biandov Jul 9, 2016, 10:10 AM Jul 9, 2016, 4:08 PM

                                    @MRCUR said in Windows 10 unattend.xml (sysprep answer file) challenge:

                                    @Boyan-Biandov That’s the directory that sysprep is actually run from & where logs are sent. I don’t believe the directory location is your issue.

                                    You’ve been super patient so I really want to thank you for that and I don’t mean to contradict every post, I mean it. So it was exactly that, I had to copy my xml file to BOTH locations and then everything worked. Either I’m nuts or nobody had tested the November build of Windows 10 Pro ISO (the one that comes with SP1 integrated so to speak; version 1511 build 10586.420) to discover all those regularities. The ISO is MAK license specific (not retail) straight off eOpen under an EA (same key, few thousand activation allowed). I’ve monkeyed with sysprep for a decades and this is the first I see crazy crap like this 🙂

                                    M 1 Reply Last reply Jul 9, 2016, 4:12 PM Reply Quote 0
                                    • M
                                      MRCUR Testers @Boyan Biandov
                                      last edited by Jul 9, 2016, 4:12 PM

                                      @Boyan-Biandov Hmm, that’s really odd. The unattend file I posted is what I still use today on brand new installs of 10586 (the Nov update) and I place the file (named unattend.xml) in C:\Windows\system32\sysprep - that’s it, nowhere else. Below is the sysprep command I execute (I run this from C:\Windows\system32\sysprep):

                                      sysprep.exe /generalize /oobe /shutdown /unattend:unattend.xml
                                      
                                      P 1 Reply Last reply Jul 9, 2016, 4:14 PM Reply Quote 1
                                      • P
                                        Psycholiquid Testers @MRCUR
                                        last edited by Jul 9, 2016, 4:14 PM

                                        @MRCUR I actually put it in both out of habit, if you look at my scripts, (I think I have them posted) I delete the xml from both locations. But again this is habit form doing it for so many years.

                                        B 1 Reply Last reply Jul 9, 2016, 4:15 PM Reply Quote 1
                                        • B
                                          Boyan Biandov @Psycholiquid
                                          last edited by Jul 9, 2016, 4:15 PM

                                          @Psycholiquid I did see it in your script but I have NEVER put it in \panther just the \sysprep as you posted your command so maybe your habit saved you from facing my “challenges” lol

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

                                          290

                                          Online

                                          12.0k

                                          Users

                                          17.3k

                                          Topics

                                          155.2k

                                          Posts
                                          Copyright © 2012-2024 FOG Project