How do you create a Session with PowerShell with Detailed Information.
I need to know how to fill in items like the Information tab (Host name, IP) independently of the "General" Host name, etc. I need to be able to enable and fill the "Run this program" and provide a custom "Program path and filename"
Hello,
Thanks for reaching ou to us.
I recommend you take a look here: https://help.remotedesktopmanager.com/pstipsandtricks.html?zoom_highlightsub=powershell+clipboard
You will find how to see the engineering behind the structure.
This will allow you to see how to address almost all the fields.
For instance, to set the "Run this program" and some information :
$nS = New-RDMSession -Name "<name of the entry>" -Type RDPConfigured
$nS.MetaInformation.IP = "172.2.1.3"
$nS.MetaInformation.MachineName = "Host"
$nS.AlternateShell = "SomeProgramToRun"
Set-RDMSession $nS
I hope this helps!
Best regards,
Alex Belisle
Thank you this is very helpful, one thing I can't seem to find is how to add the sessions to a particular Vault.
Hello,
To create sessions in a specific vault, you must first set the vault as the current one in your script using the Set-RDMCurrentRepository cmdlet like the following sample.
$vault = Get-RDMRepository -Name "MyVault" Set-RDMCurrentRepository -Repository $vault
Best regards,
Érica Poirier
Great thank you and I'd only do this once correct. So if I was using a loop to create a bunch of accounts off a CSV, I would not need to include this in the loop thereby specifying it every time. Just do it once before the loop?
Hello,
That's correct. You just have to set it once, just before the loop to create the entries.
Best regards,
Érica Poirier