Issue : Use-WindowsUnattend cmdlet seems to freeze on Windows Server 2025 and Windows 11
Version : mslab_v25.03.3
File : Deploy.ps1
line number: 539
#Use-WindowsUnattend -Path $mountdir -UnattendPath $unattendFile # <-- THIS LINE FREEZES
Workaround :
Comment out Use-WindowsUnattend -Path $mountdir -UnattendPath $unattendFile
Keep the Copy-Item -Path $unattendfile -Destination "$mountdir\Windows\Panther\unattend.xml" line - this is the alternative method that works
The Copy-Item to the Panther folder should be sufficient because Windows Setup automatically looks for unattend.xml in the C:\Windows\Panther directory during boot.