New-RDRemoteApp : The virtual desktop collection "Remote Apps" could not be found

J

J Alex Wheeler

I'm at a loss. I'm trying to add a new remote app, and powershell tells me the collection doesn't exist.

The command I am using is: (sanitized)

New-RDRemoteApp -ConnectionBroker "GATE01.TRAIN.EXAMPLE.COM" -CollectionName "Remote Apps" -DisplayName Test -Filepath "C:\folder\an.exe" -VirtualDesktopName test -CommandLineSetting Require -RequiredCommandLine "/ini_file=C:\folder\an.ini" -UserGroups Bob

All simpler forms also fail with the same message.

I'm running from an Admin console etc.

Remote apps can be created using the GUI

when I call get-rdremoteapp -ConnectionBroker train-gate01.train.example.com I get results.


Remote Apps aliastrain APPTEST C:\folder\an.exe True Require /ini_f... {TRAIN\Bob} ETC.


So I know it's seeing the connection broker.

The only thing I can think of is that it's saying "virtual desktop collection" and this is supposed to be a session collection.


Get-RDVirtualDesktopCollection -ConnectionBroker GATE01.TRAIN.EXAMPLE.COM yields no results

Get-RDSessionCollectionConfiguration -CollectionName "Remote Apps" -ConnectionBroker GATE01.TRAIN.EXAMPLE.COM returns:

CollectionName CollectionDescription
-------------- ---------------------
Remote Apps Applications provided through RemoteApp

Anyone have any idea?

Continue reading...
 

Similar threads

Back
Top Bottom