Skip to content

Use-WindowsUnattend cmdlet seems to freeze on Windows Server 2025 and Windows 11 #648

@kaustubh93-dev

Description

@kaustubh93-dev

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions