Customize Windows 10 Image in Audit Mode with Sysprep  

Page 22 of 70 FirstFirst ... 12202122232432 ... LastLast

  1. Posts : 17,661
    Windows 10 Pro
    Thread Starter
       #210

    Coke Robot said:
    Hmmm.... In my Windows 8.1 images, I had app settings from Office to VLC to IE and everything copy over just fine on the target machine. The only remnants were some Admin directories in Office in the Recent list. VLC settings copied just fine... Odd.
    Please notice the below only applies to build 10240. All later builds of Windows 10 have serious sysprep issues.

    If you install applications in Audit Mode before sysprepping and don't launch them, the app settings will be just fine for the end user, as you mentioned you had them in Windows 8.1.

    If you for some reason launch the apps while in Audit Mode signed in as the built-in administrator, the appdata needs to be modified as in the video in your quote. In the video I only do it for the VLC Player but as an example that is valid. The only purpose of that video is to show what to do if the apps were launched before sysprepping and copying the default user profile with CopyProfile=true.

    Usually you have no need for this, no need to launch the apps before sysprepping. However, if certain appdata / configuration changes are needed, the application needs to be launched in order for it to create the configuration files, and Appdata (and / or ProgramData) needs to be modified before sysprepping to get the correct data copied to the default user profile.

    Kari
      My Computer


  2. Posts : 5
    Window 10 Pro
       #211

    Thanks for such a detailed post. However, in my experience it has never worked. I have using sysprep for years, but I cannot make it work in Window 10 Pro. Any ideas? I have search the web and not found anything that works. I am currently build machine in audit mode, make customization's, and run sysprep. And none of setting stick. I still get default wallpaper, default windows explorer settings.

    Can you help?
      My Computer


  3. Posts : 5
    Window 10 Pro
       #212

    I've done a little digging and it seems the cpi offline data is only used for a reference when building the unattended.xml file see post: Unattend.xml - Question about offlineImage source. Is that correct? I've not seen anything about ding sysprep with RTM version.
      My Computer


  4. Posts : 302
    Windows 10 10586
       #213

    So I did some digging around the interweb gardens and found a possible solution to the CopyProfile issue in regards to Start Screen customization.

    OS|DC: Windows 10 : Deploying a customized start menu

    Basic gist is that like in 8.1 Pro and Enterprise, you can set up a locked Start Screen through the Start Layout xml file. Through a PowerShell script, you can export the Start layout and then import it into an image. Except the catch is that you have to apparently capture the wim file with the CopyProfile set to true, mount it, then plop it into the image, save it, then deploy onto the target machine. Importing the Start layout has be to be done on offline wim. In theory, you can use PowerShell to also import the customized xml file onto a live machine, but I haven't gotten it to work just yet. EDIT: After some further reading, the reason why I never got the xml import to work in 10 and 8.1 even in Enterprise was the fact the PowerShell command doesn't import xml files...... It has to be imported as a bin file. For the love of husked corn!
    Last edited by Coke Robot; 22 Oct 2015 at 00:28.
      My Computer


  5. Posts : 302
    Windows 10 10586
       #214

    pualumni said:
    Thanks for such a detailed post. However, in my experience it has never worked. I have using sysprep for years, but I cannot make it work in Window 10 Pro. Any ideas? I have search the web and not found anything that works. I am currently build machine in audit mode, make customization's, and run sysprep. And none of setting stick. I still get default wallpaper, default windows explorer settings.

    Can you help?
    Are you using the RTM build 10240? What's your xml code for your unattend file? Are you making sure you're pointing the sysprep command to use the xml file?
      My Computer


  6. Posts : 17,661
    Windows 10 Pro
    Thread Starter
       #215

    Coke Robot said:
    Are you making sure you're pointing the sysprep command to use the xml file?
    Just to add something, clarifying this.

    There are two ways to sysprep with an answer file.

    Method 1:
    • Save the answer file in C:\Windows\System32\Sysprep folder as unattend.xml (you must use this name!)
    • Run the sysprep command without /unattend switch, the answer file will be automatically read and used, machine is automatically shut down after the sysprep if /quit or /reboot switches are not used
    • Example commands:
      • sysprep /generalize /oobe (sysprep with unattend.xml, shutdown when ready)
      • sysprep /generalize /oobe /quit (sysprep with unattend.xml,, quit to desktop when ready)
      • sysprep /generalize /oobe /reboot (sysprep with unattend.xml, reboot to OOBE when ready)

    Method 2:
    • Save the answer file anywhere you want to naming it as you wish with the extension .xml
    • Run the sysprep command with /unattend switch giving the name and location of the answer file you want to be read and used
    • Example command:
      • sysprep /generalize /oobe /shutdown /unattend:X:\MyAnswerFile.xml
      My Computer


  7. Posts : 5
    Window 10 Pro
       #216

    Coke Robot said:
    Are you using the RTM build 10240? What's your xml code for your unattend file? Are you making sure you're pointing the sysprep command to use the xml file?
    Build number is 10240. I'm using media created from the MS site to download media and created a USB install. I'm loading the system with an autounattended.xml file which puts the machine in audit mode, then I run my sysprep from a batch file.

    Here's my autounattend:
    <?xml version="1.0" encoding="utf-8"?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend">
    <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>
    <Enabled>false</Enabled>
    </AutoLogon>
    <FolderLocations>
    <ProfilesDirectory>D:\Users</ProfilesDirectory>
    </FolderLocations>
    <OEMInformation>
    <Logo>C:\Windows\System32\oemlogo.bmp</Logo>
    <Manufacturer>xxx.</Manufacturer>
    <Model>xxx</Model>
    <SupportHours>8 am to 6 pm</SupportHours>
    <SupportPhone>xxx-xxx-xxxx</SupportPhone>
    <SupportURL>https://www.google.com</SupportURL>
    </OEMInformation>
    <OOBE>
    <HideEULAPage>true</HideEULAPage>
    <HideOnlineAccountScreens>true</HideOnlineAccountScreens>
    <NetworkLocation>Work</NetworkLocation>
    <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
    <SkipMachineOOBE>true</SkipMachineOOBE>
    <SkipUserOOBE>true</SkipUserOOBE>
    </OOBE>
    <UserAccounts>
    <LocalAccounts>
    <LocalAccount wcm:action="add">
    <Password>
    <Value>dQBzADMAcgBQAGEAcwBzAHcAbwByAGQA</Value>
    <PlainText>false</PlainText>
    </Password>
    <DisplayName>User</DisplayName>
    <Name>User</Name>
    </LocalAccount>
    </LocalAccounts>
    </UserAccounts>
    <TimeZone>Eastern Standard Time</TimeZone>
    <RegisteredOwner>End User</RegisteredOwner>
    <RegisteredOrganization>End User</RegisteredOrganization>
    </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">
    <Reseal>
    <Mode>Audit</Mode>
    </Reseal>
    </component>
    </settings>
    <settings pass="specialize">
    <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">
    <RunSynchronous>
    <RunSynchronousCommand wcm:action="add">
    <Order>1</Order>
    <Path>net user administrator /active:Yes</Path>
    </RunSynchronousCommand>
    <RunSynchronousCommand wcm:action="add">
    <Order>2</Order>
    <Path>reg.exe add &amp;quot;HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon&amp;quot; /v EnableFirstLogonAnimation /d 0 /t REG_DWORD /f</Path>
    </RunSynchronousCommand>
    </RunSynchronous>
    </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">
    <FavoritesList>
    <FavoriteItem wcm:action="add">
    <FavID>1</FavID>
    <FavTitle>Google</FavTitle>
    <FavURL>http://www.google.com</FavURL>
    </FavoriteItem>
    <FavoriteItem wcm:action="add">
    <FavID>2</FavID>
    <FavTitle>Google</FavTitle>
    <FavURL>https://help.google.com</FavURL>
    </FavoriteItem>
    <FavoriteItem wcm:action="add">
    <FavID>3</FavID>
    <FavTitle>IP Chicken</FavTitle>
    <FavURL>http://www.IPChicken.com</FavURL>
    </FavoriteItem>
    </FavoritesList>
    <Home_Page>https://www.Google.com</Home_Page>
    </component>
    </settings>
    <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>
    </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">
    <UserData>
    <ProductKey>
    <WillShowUI>OnError</WillShowUI>
    </ProductKey>
    </UserData>
    </component>
    </settings>
    <cpifflineImage cpi:source="wim:d:/win10pro/sources/install.wim#Windows 10 Pro" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
    </unattend>

    This works fine, I'm able to load drivers ect. When I'm finished I runa sysprep batch file for d:\Install that looks like this:
    net stop wmpnetworksvc
    %windir%\system32\sysprep\sysprep.exe /generalize /oobe /reboot /unattend:d:\install\unattend.xml

    And my unattend it readeds looks like this:
    <?xml version="1.0" encoding="utf-8"?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend">
    <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>
    <Enabled>false</Enabled>
    </AutoLogon>
    <FolderLocations>
    <ProfilesDirectory>D:\Users</ProfilesDirectory>
    </FolderLocations>
    <OEMInformation>
    <Logo>C:\Windows\System32\oemlogo.bmp</Logo>
    <Manufacturer>Google Consulting, Inc.</Manufacturer>
    <Model>Lenovo E550/2015-xxx</Model>
    <SupportHours>8 am to 6 pm</SupportHours>
    <SupportPhone>317-555-1212</SupportPhone>
    <SupportURL>https://help.Google.com</SupportURL>
    </OEMInformation>
    <OOBE>
    <HideEULAPage>true</HideEULAPage>
    <HideOnlineAccountScreens>true</HideOnlineAccountScreens>
    <NetworkLocation>Work</NetworkLocation>
    <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
    <SkipMachineOOBE>true</SkipMachineOOBE>
    <SkipUserOOBE>true</SkipUserOOBE>
    </OOBE>
    <UserAccounts>
    <LocalAccounts>
    <LocalAccount wcm:action="add">
    <Password>
    <Value>dQBzADMAcgBQAGEAcwBzAHcAbwByAGQA</Value>
    <PlainText>false</PlainText>
    </Password>
    <DisplayName>User</DisplayName>
    <Name>User</Name>
    </LocalAccount>
    </LocalAccounts>
    </UserAccounts>
    <ComputerName>Win10Pro</ComputerName>
    <TimeZone>Eastern Standard Time</TimeZone>
    <RegisteredOwner>End User</RegisteredOwner>
    <RegisteredOrganization>End User</RegisteredOrganization>
    <CopyProfile>true</CopyProfile>
    </component>
    </settings>
    <settings pass="specialize">
    <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">
    <RunSynchronous>
    <RunSynchronousCommand wcm:action="add">
    <Order>1</Order>
    <Path>net user administrator /active:Yes</Path>
    </RunSynchronousCommand>
    <RunSynchronousCommand wcm:action="add">
    <Order>2</Order>
    <Path>reg.exe add &amp;quot;HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon&amp;quot; /v EnableFirstLogonAnimation /d 0 /t REG_DWORD /f</Path>
    </RunSynchronousCommand>
    </RunSynchronous>
    </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">
    <Home_Page>https://www.Google.com</Home_Page>
    </component>
    </settings>
    <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>
    </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">
    <UserData>
    <ProductKey>
    <WillShowUI>OnError</WillShowUI>
    </ProductKey>
    </UserData>
    </component>
    </settings>
    <cpifflineImage cpi:source="wim:f:/x64/sources/install.wim#Windows 10 Pro" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
    </unattend>

    What do you think I have wrong?
      My Computer


  8. Posts : 13
    Windows 8.1
       #217

    Coke Robot said:
    So I did some digging around the interweb gardens and found a possible solution to the CopyProfile issue in regards to Start Screen customization.

    OS|DC: Windows 10 : Deploying a customized start menu

    Basic gist is that like in 8.1 Pro and Enterprise, you can set up a locked Start Screen through the Start Layout xml file. Through a PowerShell script, you can export the Start layout and then import it into an image. Except the catch is that you have to apparently capture the wim file with the CopyProfile set to true, mount it, then plop it into the image, save it, then deploy onto the target machine. Importing the Start layout has be to be done on offline wim. In theory, you can use PowerShell to also import the customized xml file onto a live machine, but I haven't gotten it to work just yet. EDIT: After some further reading, the reason why I never got the xml import to work in 10 and 8.1 even in Enterprise was the fact the PowerShell command doesn't import xml files...... It has to be imported as a bin file. For the love of husked corn!
    This is a bug and will be fixed in the end of November release.
      My Computer


  9. Posts : 8
    WIndow 10
       #218

    Coke Robot said:
    So I did some digging around the interweb gardens and found a possible solution to the CopyProfile issue in regards to Start Screen customization.

    OS|DC: Windows 10 : Deploying a customized start menu

    Basic gist is that like in 8.1 Pro and Enterprise, you can set up a locked Start Screen through the Start Layout xml file. Through a PowerShell script, you can export the Start layout and then import it into an image. Except the catch is that you have to apparently capture the wim file with the CopyProfile set to true, mount it, then plop it into the image, save it, then deploy onto the target machine. Importing the Start layout has be to be done on offline wim. In theory, you can use PowerShell to also import the customized xml file onto a live machine, but I haven't gotten it to work just yet. EDIT: After some further reading, the reason why I never got the xml import to work in 10 and 8.1 even in Enterprise was the fact the PowerShell command doesn't import xml files...... It has to be imported as a bin file. For the love of husked corn!

    I also cannot get the LayoutModification.xml to apply to my new user Start Menu. I have tried the powershell command and copying it into C:\Users\Default\AppData\Local\Microsoft\Windows\Shell\LayoutModification.xml. My XML works fine a machine that was installed via ISO. But on my imaged machines the changes are not applied. Any ideas? Another copyprofile bug?
      My Computer


  10. Posts : 13
    Windows 8.1
       #219

    ws2000 said:
    Any ideas? Another copyprofile bug?
    Yes, see my previous posts in this thread.
      My Computer


 

Tutorial Categories

Customize Windows 10 Image in Audit Mode with Sysprep Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Mixed Reality Phone


  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 16:04.
Find Us




Windows 10 Forums