Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting error whiling setting up WVD apps #1

Open
Jeffreycho opened this issue Aug 9, 2019 · 0 comments
Open

Getting error whiling setting up WVD apps #1

Jeffreycho opened this issue Aug 9, 2019 · 0 comments

Comments

@Jeffreycho
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant