Tuesday, December 8, 2015

Recreate Remote App Collection - Export-Import published programs

Following PowerShell scripts helped me when I had to recreate RDS Session Collection for certain reasons and save published programs list.

Export Remote Apps to CSV file command:

Get-RDRemoteApp | Export-CSV myapps.csv

Import Remote Apps from CSV to RDS Session Collection command:

Import-CSV .\myapps.csv | foreach {New-RDRemoteApp -CollectionName "New Collection Name" -Alias $_.Alias -FolderName $_.FolderName -CommandLineSetting $_.CommandLineSetting -RequiredCommandLine $_.RequireCommandLine -DisplayName $_.DisplayName -FilePath $_.FilePath -ConnectionBroker activebroker.com}