Moving ProgramData Folder with Sysprep Command

Beppe Platania 6 Reputation points
2022-11-08T21:05:05.83+00:00

This is the relocate.xml file

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="oobeSystem">
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="wow64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm=http://schemas.microsoft.com/WMIConfig/2002/State xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance>
<FolderLocations>
<ProgramData>D:\ProgramData</ProgramData>
</FolderLocations>
</component>
</settings>
</unattend>

This is the command:
sysprep : %windir%\system32\sysprep\sysprep.exe /oobe /reboot /unattend:c:\relocate.xm

With WIndows LTSC-2019 all works fine, with LTSC-2021 the system reboot with this screen:
258433-image.png

Typing NEXT a second screen:

258425-image.png

And the system will restart . . .

Windows 10 Setup
Windows 10 Setup
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
1,901 questions
0 comments No comments
{count} votes