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 }







https://nonaamspaypal.com came up in my head while reading this, and the export-clixml trick for capturing the app definitions is the part I'll actually try, since rebuilding everything by hand after a controller swap is exactly the headache I've been dreading. The foreach loop recreating each app with New-BrokerApplication makes sense on paper, though I'd double-check that the user filter names carry over cleanly before trusting it on a production farm. Curious whether you've run into any apps that silently drop their associations during the import.
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.