Skip to content

Getting error whiling setting up WVD apps #1

Description

@Jeffreycho

Hi thanks for posting and all the great info about WVD, I have an issue whiling setting up the remote apps here.

This is what i am trying to run
$RemoteApps = @(
@{AppGroupName = 'MeltwaterdevWDV-WVD'; FilePath = 'mw-dev-eus-rad.rdp'}
@{AppGroupName = 'MeltwaterdevWDV-WVD'; FilePath = 'mw-dev-eus-ad1.rdp'}
)
foreach ($App in $RemoteApps) {
Get-RdsStartMenuApp -TenantName $WVDTenantName
-HostPoolName $WVDHostPoolName -AppGroupName $App.AppGroupName
| ? FilePath -Match $App.FilePath `
-OutVariable NewApp

New-RdsRemoteApp `
    -TenantName $WVDTenantName `
    -HostPoolName $WVDHostPoolName `
    -AppGroupName $App.AppGroupName `
    -Name $NewApp.FriendlyName `
    -Filepath $NewApp.filepath  `
    -IconPath $NewApp.iconpath `
    -IconIndex $NewApp.iconindex

}

This is an error that I got
New-RdsRemoteApp : Cannot bind argument to parameter 'Name' because it is null.
At line:20 char:15

  •     -Name $NewApp.FriendlyName `
    
  •           ~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidData: (:) [New-RdsRemoteApp], ParameterBindingValidationException
    • FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.RDInfra.RDPowershell.RemoteApp.NewRdsRemoteApp

New-RdsRemoteApp : Cannot bind argument to parameter 'Name' because it is null.
At line:20 char:15

  •     -Name $NewApp.FriendlyName `
    
  •           ~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidData: (:) [New-RdsRemoteApp], ParameterBindingValidationException
    • FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.RDInfra.RDPowershell.RemoteApp.NewRdsRemoteApp

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions