New
#1
Problems with CopyProfile
Hi,
I'm trying to capture and deploy a custom Windows 10 64-bit Education 1903 (build 18362.449) image for a client and, amongst others, have followed some of the brilliant guides on this forum. I've succeeded in building the reference computer and an autounattend.xml file to process a light-tough OOBE - this is all fine.
I also want to capture settings on the reference computer to the default profile - they are:
Default apps (mail, PDF & browser)
Firewall exception to allow ping inbound
Make the search bar an icon
Enable remote desktop (secure)
Put screen to sleep after 1 hour
Remove desktop icons
Therefore I'm running the below command on the reference machine at the point of sysprepping it:
The file copyprofile.xml was created in Windows AIK and contains the following:Code:c:\windows\system32\sysprep\sysprep.exe /oobe /generalize /shutdown /unattend:C:\Windows\System32\Sysprep\copyprofile.xml
Unfortunately I'm seeing very mixed results when deploying images with the above.Code:<?xml version="1.0" encoding="utf-8"?> <unattend xmlns="urn:schemas-microsoft-com:unattend"> <settings pass="specialize"> <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"> <CopyProfile>true</CopyProfile> <RegisteredOwner /> </component> </settings> <cpi:offlineImage cpi:source="wim:c:/users/robert/desktop/install.wim#windows10_custom" xmlns:cpi="urn:schemas-microsoft-com:cpi" /> </unattend>
I've tried deploying to a machine and applying an autounattend.xml to run through the OOBE and join the computer to the domain - all the answer file settings work fine, but only half of the settings from the image are being retained - the firewall rule, the screen sleep setting and the remote desktop setting.
I then thought that maybe the domain might be applying some settings which are overriding the image, so I removed the setting to join the domain from the answer file - but this produced the same result as the above, with only 3 settings being retained.
I finally decided to try sysprepping the reference machine with /reboot instead of /shutdown, to see what would happen if I ran through the OOBE manually, without capturing and deploying it elsewhere. Inexplicably, almost all settings have been retained on this occasion - everything except the default apps, but even they show some evidence of having been changed, then changed back, because the action center throws up 12 errors saying "An app default was reset", and a few saying "The default browser was reset".
I guess my first question is - why are the app defaults not being retained on the sysprepped reference image? (For the client, this is the most important setting to capture)
My second question is - why am I losing so many settings when capturing the image (which I know has 5/6 changes committed) and deploying it to another machine? Is there something wrong with my answer file, which might be overwriting things?
For reference, my answer file can be found here.
One other question - is there a way, either on the reference image or on the answer file, to force the login screen to ask for username and password every time? The default behaviour is to remember the last login, but the client has users who move from machine to machine frequently and this could be an annoyance.
Many thanks in advance.
Regards,
Robert