You need to use the API such as shown in the following GitHub repository which does not fulfill your current requirements but provides a base to work with.
Save Remote Desktop Connection Settings to RDP File using Winform
Mustafa Tuncel
1
Reputation point
Im trying to doing portable client generator as windows remote desktop connection. RDP Client Generator.
When the create button is clicked, from the client whose information is entered, How can a connect type icon be created on the desktop that will enable the client to log in?
I would be very grateful if you could write a code sample. thanks for the answers in advance