It would seem possible to create a credential object and specify it as type "OTP"
$Session.Credentials.CredentialType = "OTP"
And it will generate an entry, but how do I supply a value for the key parameter?
It would appear there are several parameters that can be set, but not key.
Hi,
It's not really intuitive but you can set the OTP key this way:
$Session.Credentials.OTPKey = "key"
Regards
Jonathan Lafontaine
The property doesn't exist though.
You are absolutely right.
This property isn't exposed right now because it's not a real value, it's an accessor doing some encryption stuff for the real, saved field.
I'll fix that and provide you another build.
Jonathan Lafontaine
Awesome thank you. The last piece to my puzzle is to then attach the OTP to a VPN definition for automatic appending, but I think this feature is currently only available on the MacOS version of RDM. Is this something that will be supported to configure through the module?
Could you export an OTP entry with a VPN linked so I can check the resulting xml?
Jonathan Lafontaine
Sure thing have to troubleshoot why on MacOS the right hand side isn't displaying information first though so it might take me a bit.
Looks like you have the dashboard turned off.
From the main ribbon menu, go to View and toggle the Dashboard
Jonathan Lafontaine

I wiped and reinstalled and couldn't get this to work thank you haha.