Moving application definitions between farms
Came across this little script for dumping application definitions and then being able to add them to a new farm. Helps when you need to upgrade but don't want/can't upgrade controllers in place
First you Export your apps on the XDC:
get-brokerapplication | export-clixml C:\apps.xml
Copy this file to DC2 and run the following:
$dg = Get-BrokerDesktopGroup "<desktop group name>" $apps = Import-Clixml C:\apps.xml foreach ($app in $apps) { New-BrokerApplication -ApplicationType HostedOnDesktop -BrowserName $app.Name -CommandLineExecutable -$app.CommandLineExecutable -Enabled $app.Enabled -Name $app.Name -UserFilterEnabled $app.UserFilterEnabled -DesktopGroup $dg $user = $app.AssociatedUserNames Add-BrokerUser -Name "$user" -Application $app.name }







While sorting through migration options on https://casinoprelievoimmediato.com, this script came at the right time. The manual step for re-associating users is exactly what I was dreading to script myself. I'll definitely be testing the Clixml dump against a test farm first, since my current environment has some tricky app name conventions that might not carry over cleanly.