I don't know why but at the end it works so I haven't given it much more thought. + FullyQualifiedErrorId : .AddBrokerMachinesToDesktopGroupCommandĪnd then the error message above comes 7 more times. + CategoryInfo : ObjectNotFound: (:), SdkOperationException + Add-BrokerMachinesToDesktopGroup -Catalog "SessionHosts" -DesktopGroup "Sess. + FullyQualifiedErrorId : .NewBrokerMachineCommandĪdd-BrokerMachinesToDesktopGroup : No more available machines in catalogĪt C:\_Temp\AutomaticDeployment_MCS_VZB\UserInput_AutomaticDeployment_MCS_VZB.ps1:42 char:5
+ CategoryInfo : InvalidOperation: (:), SdkOperationException + New-BrokerMachine -CatalogUid 14 -MachineName $provVM.ADAccountName New-BrokerMachine : Machine is already allocatedĪt C:\_Temp\AutomaticDeployment_MCS_VZB\UserInput_AutomaticDeployment_MCS_VZB.ps1:41 char:5 Add_Shown (Īdding new VM(s) to Machine Catalog and Delivery Group. Hi All, I am using Primal Forms to create a GUI for a script that will display the AD Information about the user account. Text = "Automatic Terminal-Server deployment" # window description $Form. StartPosition = "CenterScreen" # loads the window in the center of the screen $Form. TopMost = $false #If true, the folder browse in the search button is displayed behind the form $Form. Powershell #- Start UI - #- Start Form - :: LoadWithPartialName ( "System.Drawing" ) :: LoadWithPartialName ( "" ) Add-Type -AssemblyName System.