dloudon96 Posted February 14, 2017 Posted February 14, 2017 Hello, I need some help quite quick.. basically, I've setup a FOG server, got all that working... I've created an unattend.xml file and that appears to work on the machine, i.e, i've tested it numerous times on the same machine, and it does what it's supposed to... My issue is, I've uploaded the image to the FOG server on Friday, and it downloads to machines, but on some machines it works, but they have to be imaged one at a time - the machine that I created the image from is exactly the same as the others, we've just bought a whole batch of them - DELL 3040's, they work fine, but the image isn't working properly, I'm slightly worried as I've got X3 IT suites to image and have ready for next week. Just to clear that above up... I've setup FOG, machines are all registered, image name and ID is assigned to the group for the classroom number, if I image X5, or 10, they fail at the sysprep part, the problem is, I get different errors on multiple machines, even though they're exactly the same... One of the errors are: 'Setup is starting services' - with the white animated bar at the bottom, the message says: Install Windows 'Windows could not complete the installation. To install Windows on this computer, restart the installation'. The other error is: 'Setup is preparing your computer for first use' - again, same animated bar, the message says: 'The computer restarted unexpectedly or encountered an unexpected error, Windows installation cannot proceed. To install Windows, click 'OK' to restart the computer, and then restart the installation'... Please help me, if I re-download the image a few times, it'll work, but then on most of them it fails. Thanks, Dan
mrwoberts Posted February 14, 2017 Posted February 14, 2017 (edited) Dan Just for testing purposes, could you try imaging a 'failing laptop' using the install.wim that the FOG server is attempting to use. You'd do that just by creating a Windows Installer USB and replace the install.wim file, and add the unattend.xml file you are using. The reason for this is I'm curious to know if there is some corruption in communication between the FOG and clients. Because when it works sometimes that usually means a temperamental fault, like a dodgy switch of NIC. Test how reliable the network connectivity is from the FOG server to various points on the network - test for lost packets with this... ping -4 -f -l 1472 -n 100 10.0.0.1 Replace 10.0.0.1 with a 'pingable' address; you'll issue this ping from a command prompt/terminal on the FOG server. edit: If the above gives the right response, I'd still do some digging with how well your switch(es) are handling multi-casts and high demand... Edited February 14, 2017 by mrwoberts
dloudon96 Posted February 28, 2017 Author Posted February 28, 2017 Dan Just for testing purposes, could you try imaging a 'failing laptop' using the install.wim that the FOG server is attempting to use. You'd do that just by creating a Windows Installer USB and replace the install.wim file, and add the unattend.xml file you are using. The reason for this is I'm curious to know if there is some corruption in communication between the FOG and clients. Because when it works sometimes that usually means a temperamental fault, like a dodgy switch of NIC. Test how reliable the network connectivity is from the FOG server to various points on the network - test for lost packets with this... ping -4 -f -l 1472 -n 100 10.0.0.1 Replace 10.0.0.1 with a 'pingable' address; you'll issue this ping from a command prompt/terminal on the FOG server. edit: If the above gives the right response, I'd still do some digging with how well your switch(es) are handling multi-casts and high demand... Hello, Where on the FOG server is the install.wim file located? Thanks, Dan
mrwoberts Posted February 28, 2017 Posted February 28, 2017 Where on the FOG server is the install.wim file located? Good question. You could potentially find it by searching the FOG server, looking for install.wim, unless of course it is relying on an .ISO file... in which case you'd need to create the USB installer using that .ISO (with something like Rufus) I'm no expert on FOG, but I'm sure a little Googling will turn up the info you need.
Michael Posted February 28, 2017 Posted February 28, 2017 Did you definitely 'generalize' the Sysprep image? It's irrelevant if the devices are the same or not. Each device is still unique.
dloudon96 Posted February 28, 2017 Author Posted February 28, 2017 Hello, Yes, I created the unattend.xml file via the WAIK - Windows Automated Installation Kit, and then put that in the c:\Windows\System 32\Sysprep\ folder, and then run the script... @echo offcd c:\windows\system32\sysprepsysprep /oobe /generalize /unattend:c:\windows\system32\sysprep\unattend.xml Not sure if anyone wants to check my .xml file to make sure it's OK? It works fine whenever I run it from the machine itsself, before uploading it to FOG... Once I upload the image to FOG, then it's when I'm downloading it, that's when it fails, even though, it works fine normally. XML FILE IS BELOW: NgAxADUAMABrADgAbQBkAFAAYQBzAHMAdwBvAHIAZAA= false true 2 administrator Enable Administartor account 1 net user administrator /active:yes en-UK en-UK en-UK en-UK en-UK true true Work 1 true true NgAxADUAMABrADgAbQBkAEEAZABtAGkAbgBpAHMAdAByAGEAdABvAHIAUABhAHMAcwB3AG8AcgBkAA== false
Arthur Posted February 28, 2017 Posted February 28, 2017 @dloudon96. Does this work? I noticed a few errors/typos inc. the locale you set (en-UK isn't valid). @echo off cd c:\windows\system32\sysprep sysprep /oobe /generalize /unattend:c:\windows\system32\sysprep\unattend.xml NgAxADUAMABrADgAbQBkAFAAYQBzAHMAdwBvAHIAZAA= false true 2 administrator Enable Administrator account 1 net user administrator /active:yes 0809:00000809 en-GB en-US en-GB true true Work 1 true true NgAxADUAMABrADgAbQBkAEEAZABtAGkAbgBpAHMAdAByAGEAdABvAHIAUABhAHMAcwB3AG8AcgBkAA== false Btw, use CODE tags to format the XML and batch files properly.
dloudon96 Posted March 1, 2017 Author Posted March 1, 2017 Hello, Thanks for that, sorry, I wasn't sure how to do it. I'm new to using an unattend file and even using sysprep is new. I've sysprep'd it now, the machine has turned off, I'll turn it back on and see if it loads, I'll then re-sysprep it and then upload the image to FOG, download it and then see if that works. It usually fails the sysprep part when it downloads from FOG, yet it works everywhere else, on Lenovo machines, but just not our Dell Optiplex 3040's. I'll keep you updated. Thanks, Dan
dloudon96 Posted March 1, 2017 Author Posted March 1, 2017 If anyone else is looking at this post and has any other ideas... I've ran the sysprep with the unattend.xml file that Arthur edited for me, it worked fine, ran thorough the config as it should, missed all the other rubbish about setting up the machine etc, and went straight to the desktop... So i've re-captured the image but this time done it via FOG, and just uploaded the image, now it's downloaded the image, and failed. Does anyone have any ideas as to why it's failing?? Thanks, Dan
dloudon96 Posted March 1, 2017 Author Posted March 1, 2017 setuperr.txt Please see the attached. I managed to get into the log file located under the C:\windows\system 32\sysprep\panther\... Can anyone spot anything. It does have the file which says 'Sysprep_sucsedded.tag'. Thanks, Dan
Arthur Posted March 1, 2017 Posted March 1, 2017 Please see the attached. There are a lot of errors to do with drivers in that log file. Perhaps it would be worth creating the image in a VM?
dloudon96 Posted March 1, 2017 Author Posted March 1, 2017 It's strange though as it works when it's not uploaded to FOG, yet as soon as it's uploaded to fog and it downloads the image etc, that's when it fails.
davido38 Posted March 2, 2017 Posted March 2, 2017 Is the fog client installed ? If yes the service must be disable and stop before the sysprep. In your setupcomplete just add this : sc config fogservice start= auto and net start fogservice
dloudon96 Posted March 3, 2017 Author Posted March 3, 2017 Hello, Thank you!! I think you are right with what you're saying, so far so good, I've downloaded a fresh image, before sysprep, and that's downloaded as it should. I've removed the FOG client, and sysprep'd it, uploaded it, and then downloaded it from the FOG server and it's worked fine... My next question is, where do I add the line that you've said in the previous post ': sc config fogservice start= auto and net start fogservice'? Please can you let me know exactly how I type it too? is it with the colon? Does that go into the unattend.xml file? Thank you for your help so far...
davido38 Posted March 3, 2017 Posted March 3, 2017 (edited) After the last boot in the Windows sysprep Windows will check for the existence of %WINDIR%\Setup\Scripts\SetupComplete.cmd. If it's found the script is executed. If not, the installation “continues”. Create the file : C:\Windows\Setup\scripts\SetupComplete.cmd Place these lines within the file, and then save. sc config FOGService start= auto net start fogservice Before you run the sysprep you have to Disable FOGService : Windows Control Pannel -> View by Small Icons -> Administrative Tools -> Services -> Right click FOGService -> Properties -> Startup Type -> Disabled and stop it too Are you using fog to add computers in a domain ? Edited March 3, 2017 by davido38
dloudon96 Posted March 3, 2017 Author Posted March 3, 2017 Hello, Thanks for the reply, I've copied the below into the script folder sc config FOGService start= auto net start fogservice I've also went into the Services and stopped and disabled the 'FOGService' service. I've done a test sysprep and it works, however, the FOGService is still disabled, is this right? Ideally, I'd want it to re-enable so that it would enable automatically and then re-name, and join the domain. Thanks, Dan
davido38 Posted March 3, 2017 Posted March 3, 2017 no the service have to start. Is it an oem version of windows ?
dloudon96 Posted March 3, 2017 Author Posted March 3, 2017 Nope, it's just Windows 7 Enterprise, X64 bit which has been downloaded from the Volume License Service Centre. Is this right... The service has been stopped and then disabled... Thanks, Dan
davido38 Posted March 3, 2017 Posted March 3, 2017 so you have that folder : C:\Windows\Setup\scripts\ inside a file SetupComplete.cmd with sc config FOGService start= auto and net start FOGService can you add this at the end of the SetupComplete.cmd echo setup ok > c:\logsetup.txt run sysprep and see if you have the logsetup.txt in c:\
dloudon96 Posted March 3, 2017 Author Posted March 3, 2017 Hello, Yes, that's correct... I've downloaded the image with the FOG Service disabled, it's still disabled in the Services, if i then run the SetupComplete.cmd from the folder C:\Windows\Setup\script manually, the service starts. It's as though the command file isn't being read by the last restart. At least I feel like I'm getting somewhere now, rather than going round in circles pulling my hair out. Thank you for your help so far David, I really do appreciate it! Thanks, Dan
davido38 Posted March 3, 2017 Posted March 3, 2017 In your sysprep unattend.xml do you use FirstLogonCommands ?
davido38 Posted March 3, 2017 Posted March 3, 2017 you said : if i then run the SetupComplete.cmd from the folder C:\Windows\Setup\script manually, the service starts the folder script is with an S at the end : scripts
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now