Teams Room Deployment Script Error

Dean Gibson 0 Reputation points
2023-02-07T09:38:40.55+00:00
I am trying to create media for a Teams Room Deployment but the script provided by Microsoft keeps failing during a specific part. Any ideas?....error below.

Formatting and partitioning the target drive... done. 

Copying Windows... done. 

Copying the installation image... 

Export-WindowsImage : Either the Name or Index parameter is required 

At C:\teamsroom\CreateSrsMedia.ps1:1439 char:9 

+         Export-WindowsImage -DestinationImagePath "$NewInstallWim" -S ... 

+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 

    + CategoryInfo          : InvalidArgument: (:) [Export-WindowsImage], PSArgumentException 

    + FullyQualifiedErrorId : Export-WindowsImage,Microsoft.Dism.Commands.ExportWindowsImageCommand

Erroring line in PS script:

Export-WindowsImage -DestinationImagePath "$NewInstallWim" -SourceImagePath (Join-Path (Join-Path $WindowsMedia "sources") "install.wim") -SourceName "Windows 10 Enterprise" | Write-Debug
Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,033 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,037 questions
{count} votes