![]() ![]() Otherwise, if you try to add an application that already exists, youâll get âMicrosoft Word_1â. Add an application to multiple delivery groups Add-BrokerApplication -Name "AppNameHere" -DesktopGroup "NewDesktopGroupHere"Īdding an application to multiple desktop groups is 100% supported, itâs just not exposed in the GUI as of XenApp 7.5. I always sort by BrokeringTime because the order appears to be odd otherwise because the log is updated with the initial brokering time as well as the EndTime. Get a list of all brokered connections Get-BrokerConnectionLog | Sort BrokeringTime $CatalogUID_Z = (Get-BrokerCatalog -Name "Replace with new Catalog Name").Hereâs a quick list of Powershell commands I find myself using frequently. ![]() $CatalogUID_C = (Get-BrokerCatalog -Name "Replace with new Catalog Name").Uid $HypervisorConnectionUid = (Get-BrokerHypervisorConnection -Name ).UidThe script gather several variables and pass them to the logic to complete the workĬreated by: Amir Joseph Sayes - Twitter .uk ![]() Script to migrate Citrix XenDesktop VDAs Between Catalogs on the fly with Powershell If you have more than one geo location and want to separate your catalogs accordingly you may grab the UID of each Catalog you create â in my case I needed to create 2 catalogs, one for each data center site $CatalogUID = (Get-BrokerCatalog -Name "Replace with new Catalog Name").Uid $HypervisorConnectionUid = (Get-BrokerHypervisorConnection -Name ).UidĪlso, grab the name of the new catalog(s) you just created and feed it into the following command In Studio, go to Hosting and find the connection name that connects your machines to the Hypervisor then feed that name into the following command ![]() Set your variables for the Hypervisor Connection ID and the New Catalog ID â those are needed for the script to work Providing you installed the SDKs above on the machine you are running the code from, add all the snap-ins to your PoSH sessionĪdd-PSSnapin * -ErrorAction Silentlåontinue Using your favourite editor (VSCode, PoSH ISE, etc) open up Powershell as Admin
0 Comments
Leave a Reply. |