When I create and delete remote app (because there is no cmdlet to change alias...) I show many errors like that when I call "Remove-RDRemoteApp":
Remove-RDRemoteApp : Error retrieving the RemoteApp programs: System.Runtime.InteropServices.COMException (0x80070490) at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo) at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() at Microsoft.PowerShell.Commands.GetWmiObjectCommand.BeginProcessing()
or (yes, it's happened with a Remove call)
Unable to publish the remote desktop
or
Unable to retrieve the session collection properties.+ CategoryInfo : InvalidResult: (:) [], WorkflowTerminatedException+ FullyQualifiedErrorId : JobStateFailed+ PSComputerName : localhost
We have a big organization with more than a hundred of RDS Host and cmdlet execution take more than 4 minute...
Any idea to improve stability of RDS 2012 and allow me to delete app without problem ? (Server manager is not an option, it not works too and it is too much slow to be usable (~20min to load RDS service and take more than 2GB of RAM 🤮))
Thank you by advance