Search

Language:  

Available article translations:

How to move all Published Items to a different RDS Group using PowerShell

APPLIES TO:
  • Parallels Remote Application Server 16.2

Information

Execute the following script.

NOTE: RD Session Hosts group must exist. Script doesn't creates it.

############## Please change the following variables#########################
$SecretPassword = ConvertTo-SecureString "Your_RASAdmin_Password" -AsPlainText -Force
$Username = 'Your_RASAdmin_Username'
$NewGroup = Name_of_RDS_Group_you_would_like_to_use
$Server = 'IP_address_of_the_Publishing_Agent'
##############################################################################
Import-Module PSAdmin
New-RASSession -Username $Username -Password $SecretPassword -Server $Server
$Group = Get-RDSGroup -Name $NewGroup
$apps = Get-PubRDSApp
$desk = Get-PubRDSDesktop
 foreach ( $app in $apps)
{
 Set-PubRDSApp -Id $app.Id -PublishFrom Group -PublishFromGroup $Group
 
 }
  foreach ( $app in $Desk)
{
 Set-PubRDSDesktop -Id $app.Id -PublishFrom Group -PublishFromGroup $Group
 
 }
 
 Invoke-Apply

 




8c1bd7ac0efc8c4ffbb530ad3ab16fae 1d70d1f9c41d01c5f7202a4290e434e1

FEEDBACK
Was this article helpful?
Tell us how we may improve it.
Yes No