Forum Discussion
Windows 10 start menu problems and copyprofile
- Jun 08, 2017You can still use CopyProfile, but it's not required if all you want is a custom start menu layout - you can import that using the PowerShell "Import-StartLayout" command prior to a user logging onto the system, then they will pick up that layout as default.
UPDATE - WORKAROUND:
Adding these lines to the SetupComplete script for Sysprep fixed the CopyProfile issues for us in 1703:
Add these to: %WINDIR%\Setup\Scripts\SetupComplete.cmd
del /F /Q C:\Users\Default\AppData\Local\Microsoft\Windows\WebCacheLock.dat del /F /Q C:\Users\Default\AppData\Local\Microsoft\Windows\WebCache\*.* del /F /Q C:\Users\Default\AppData\Local\Microsoft\Windows\INetCache\*.*
How did you get the command to run. Are you able to add this to the unattended answer file from WDS?Hannah Walters
- Luis YoungOct 22, 2019Copper Contributor
I was able to get CopyProfile working the way I wanted in Windows 10 (including the latest Win10 Enterprise v1903) with the following steps...
1. Manually did a clean install of Windows 10 (as a VM) and only used the local account that was initially created during install to configure the OS.
2. Using this account, I applied updates, installed and configured apps, and configured Win 10 (such as settings, background color, desktop icons, etc) the way I wanted it to look for all future domain users who would eventually log into computers running this image.
3. Once finished configuring, I then sysprep the system using one unattend.xml file that contains basic settings such as language and locale, specialize settings for domain join and product key, oobe settings, etc.
4. After capturing the image and adding it to my WDS server as an install image, I then have a second unattend.xml file that I apply to the properties of the image under the Unattend File checkbox "Allow image to install in unattended mode". In this second file I have many of the same settings as the first file, including the CopyProfile setting. It's this second unattend file that performs the Copy Profile at imaging time, saving all of my setup work done from the local account into the default profile.
I'm currently not deleting those webcache files using the SetupComplete.cmd as described by Hannah, although that might still be a good option to include, but so far the Copy Profile has been working for me using those above steps. I've also been building my image in a VM for the last couple of years, as the ability to create multiple snapshots and revert back to correct any mistakes or make changes has proven to be extremely useful.
Hope this helps.- fhughesOct 22, 2019Copper ContributorThank you Luis for this information. I will give it a shot and report back.