trying to sysprep windows 10 to upload to fog. PLEASE HELP



  • Server
    • FOG Version: 1.3.1
    • OS: windows10
      after I run sysprep and capture the image the computer goes through the process the I get the computer restarted unexpectedly error and I have found that if I hit shift + F10 I can change the child completion from 1 to 3 but on the image it captured it is still set to 1 and will give me the same error after I deploy the image. Am I going to have to do this every time I deploy this image? I am working on a Dell Optiplex 5040 and injected the drivers for that model only but have tried it several different ways from editing the answer file to injecting the dell family cab drivers… I am lost please help.
    Client
    • Service Version:
    • OS:
    Description


  • Here is the file I used.

    0_1486506949560_SetupComplete.cmd

    Place your SetupComplete.cmd in %windir%\Setup\Scripts
    (you will nedd to create the scripts folder.)

    Copy your unattend.xml to %windir%\system32\sysprep\

    hit windows key and S, type service, click on services, find FOG and right click and select propereties, select disable click apply.

    hit the Windows key and R to open the run box, type in sysprep.
    double click the sysprep icon.

    Hope it works for you.



  • ok, for anyone following this thread, I have finally got everything to work correctly. I was trying to run everything from a USb that had a reseal.cmd, SetupComplete.cmd, and my unattend file. For some reason I could not get FOGService to be called to restart after sysprep. So I placed all the commands where they were supposed to go in the C:\ and ran sysprep by typing “sysprep” in the run box after getting all the cmd files where they needed to be and it worked like a charm. Make sure you disable FOGService then put the FOGService command in the SetupComplete.cmd and it should call it. The FOG command you should use is

    sc config FOGService start= auto
    shutdown -t 0 -r

    The only thing I ran from the USB was the drivers when I injected them.



  • one more issue. FOG is not restarting after I disable it to run sysprep. I have a disable command in my reseal.cmd file and a re-enable command in my SetupComplete.cmd. If I go in and manually turn it on it joins to AD and does everything it is suppose to do. Any ideals on how to get FOG to restart after the image capture?

    1_1486047432473_SetupComplete.cmd

    0_1486047432473_reseal.cmd



  • @x23piracy Thank you I appreciate it! I am still going to look into this to see if I can find the root problem.



  • @george1421 I am assuming that my file had fields left blank where your file didn’t even have these fields. That’s the only thing I can see that was very different. So honestly I don’t know why it didn’t like my file.



  • Hi,

    i can also upload mine unattend.xml file, i use it with windows 10 but this may gives conclusion what is wrong with yours.

    <?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>de-DE</UILanguage>
    </SetupUILanguage>
    <InputLocale>0407:00000407</InputLocale>
    <SystemLocale>de-DE</SystemLocale>
    <UILanguage>de-DE</UILanguage>
    <UILanguageFallback>de-DE</UILanguageFallback>
    <UserLocale>de-DE</UserLocale>
    </component>
    <component name="Microsoft-Windows-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">
    <DiskConfiguration>
    <Disk wcm:action="add">
    <CreatePartitions>
    <CreatePartition wcm:action="add">
    <Order>1</Order>
    <Type>Primary</Type>
    <Size>100</Size>
    </CreatePartition>
    <CreatePartition wcm:action="add">
    <Extend>true</Extend>
    <Order>2</Order>
    <Type>Primary</Type>
    </CreatePartition>
    </CreatePartitions>
    <ModifyPartitions>
    <ModifyPartition wcm:action="add">
    <Active>true</Active>
    <Format>NTFS</Format>
    <Label>System Reserved</Label>
    <Order>1</Order>
    <PartitionID>1</PartitionID>
    <TypeID>0x27</TypeID>
    </ModifyPartition>
    <ModifyPartition wcm:action="add">
    <Active>true</Active>
    <Format>NTFS</Format>
    <Label>OS</Label>
    <Letter>C</Letter>
    <Order>2</Order>
    <PartitionID>2</PartitionID>
    </ModifyPartition>
    </ModifyPartitions>
    <DiskID>0</DiskID>
    <WillWipeDisk>true</WillWipeDisk>
    </Disk>
    </DiskConfiguration>
    <ImageInstall>
    <OSImage>
    <InstallTo>
    <DiskID>0</DiskID>
    <PartitionID>2</PartitionID>
    </InstallTo>
    <InstallToAvailablePartition>false</InstallToAvailablePartition>
    </OSImage>
    </ImageInstall>
    <UserData>
    <AcceptEula>true</AcceptEula>
    <FullName>admin</FullName>
    <Organization>organization</Organization>
    </UserData>
    <EnableFirewall>true</EnableFirewall>
    </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>
    </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>0407:00000407</InputLocale>
    <SystemLocale>de-DE</SystemLocale>
    <UILanguage>de-DE</UILanguage>
    <UILanguageFallback>de-DE</UILanguageFallback>
    <UserLocale>de-DE</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">
    <WindowsFeatures>
    <ShowMediaCenter>false</ShowMediaCenter>
    <ShowWindowsMail>false</ShowWindowsMail>
    </WindowsFeatures>
    <ShowWindowsLive>false</ShowWindowsLive>
    <DoNotCleanTaskBar>true</DoNotCleanTaskBar>
    <BluetoothTaskbarIconEnabled>false</BluetoothTaskbarIconEnabled>
    <ComputerName>ORGANIZATION-PC</ComputerName>
    <CopyProfile>true</CopyProfile>
    </component>
    <component name="Microsoft-Windows-IE-InternetExplorer" 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">
    <BlockPopups>yes</BlockPopups>
    <CompanyName>organization</CompanyName>
    <Home_Page>http://www.google.com</Home_Page>
    <DisableFirstRunWizard>true</DisableFirstRunWizard>
    </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>password</Value>
    <PlainText>true</PlainText>
    </Password>
    <Enabled>true</Enabled>
    <LogonCount>1</LogonCount>
    <Username>retsch</Username>
    </AutoLogon>
    <OOBE>
    <HideEULAPage>true</HideEULAPage>
    <HideOEMRegistrationScreen>true</HideOEMRegistrationScreen>
    <HideOnlineAccountScreens>true</HideOnlineAccountScreens>
    <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
    <NetworkLocation>Work</NetworkLocation>
    <SkipUserOOBE>true</SkipUserOOBE>
    <SkipMachineOOBE>true</SkipMachineOOBE>
    <ProtectYourPC>3</ProtectYourPC>
    </OOBE>
    <UserAccounts>
    <LocalAccounts>
    <LocalAccount wcm:action="add">
    <Password>
    <Value>password</Value>
    <PlainText>true</PlainText>
    </Password>
    <Description></Description>
    <DisplayName>retsch</DisplayName>
    <Group>Administrators</Group>
    <Name>retsch</Name>
    </LocalAccount>
    </LocalAccounts>
    </UserAccounts>
    <RegisteredOrganization>organization</RegisteredOrganization>
    <RegisteredOwner>admin</RegisteredOwner>
    <DisableAutoDaylightTimeSet>false</DisableAutoDaylightTimeSet>
    <FirstLogonCommands>
    <SynchronousCommand wcm:action="add">
    <Description>SetupComplete</Description>
    <Order>1</Order>
    <CommandLine>C:\Windows\Setup\Scripts\SetupComplete.cmd</CommandLine>
    <RequiresUserInput>false</RequiresUserInput>
    </SynchronousCommand>
    <SynchronousCommand wcm:action="add">
    <Description>Control Panel View</Description>
    <Order>2</Order>
    <CommandLine>reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel" /v StartupPage /t REG_DWORD /d 1 /f</CommandLine>
    <RequiresUserInput>false</RequiresUserInput>
    </SynchronousCommand>
    <SynchronousCommand wcm:action="add">
    <Description>Control Panel Icon Size</Description>
    <Order>3</Order>
    <CommandLine>reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel" /v AllItemsIconView /t REG_DWORD /d 1 /f</CommandLine>
    <RequiresUserInput>false</RequiresUserInput>
    </SynchronousCommand>
    </FirstLogonCommands>
    <TimeZone>W. Europe Standard Time</TimeZone>
    </component>
    </settings>
    </unattend>
    

    I am using Windows 10 OEM where SetupComplete.cmd doesn’t work, this is the reason for first logon command where i trigger that file and todo this i need 1 auto logon within unattend.xml ;)

    After that FOG will do the rest, rename reboot, join ad reboot.

    Regards X23


  • Moderator

    @ryan.mckenzie Yes that is true, we basically used our win7 unattend.xml file with a few tweaks for Win10.

    What did you find as the root of your problem? Your unattend.xml file “looked” ok as it were except for the blank fields.



  • @george1421 YOU ARE DA MAN!!! It finally worked! so it was in the unattend file that was causing my issues… yours looks like a windows 7 to me edited for windows 10… is this true?



  • @george1421 ok thank you. i appreciate it


  • Moderator

    @ryan.mckenzie Me personally, no. We use MDT to build our reference image using the lite touch method (i.e. unattended setup once MDT starts).

    We use MDT so we get a consistent reference image each time we rebuild the reference image (once a quarter). All of the common software is installed by MDT. When the system is ready for sysprep, we run sysprep and then capture and deploy with fog. Also by using MDT to build the reference image each time from the start we don’t have to worry about the rearm count or having to reset it each time we make a change.



  • @george1421 ok just making sure thank you. One more question do you set up in audit mode or not?


  • Moderator

    @ryan.mckenzie You probably want that set to true to copy the profile from the admin user to the default user.



  • @Scott-Adams CopyProfile is set to false is this correct?

    0_1485985519321_upload-5a4b5c8c-4737-4007-b2b2-86845a9a5f9e



  • @Scott-Adams ok thank you I will take a gander at it



  • I have attached a copy of my unattend.xml that I use with Windows 10 (edited to take out our private info). I can image Windows 10 without issues.0_1485985103092_unattend.xml





  • @george1421 Failed with the same error after changing answer file to look like yours



  • @george1421 ok thank you! I will try it out


  • Moderator

    @ryan.mckenzie said in trying to sysprep windows 10 to upload to fog. PLEASE HELP:

    @george1421 ok next question. Some of these questions are in the pass 7 settings. Isn’t it redundant to have these answers in Pass 4 and 7?
    That’s why I left blank in pass 4

    I can’t honestly answer that. I can say that your error (from screen shot) is in the section I quoted, and the example I provided is very similar to what I deploy today, but that code was copied from the internet. So the decision is yours… I’m only looking for footprints in the snow.


Log in to reply
 

436
Online

38999
Users

10717
Topics

101757
Posts

Looks like your connection to FOG Project was lost, please wait while we try to reconnect.