06-28-2023 02:55 AM - edited 06-28-2023 06:19 AM
Hello everyone,
I am using the vpncli.exe to programmatically connect to a CISCO VPN. The VPN has MFA enabled. And since it is possible to have two devices registered per user, I need to select which device should be used for MFA when connecting to the VPN.
When I use the Windows Client, I get a pop up windows asking me if I want to use 1st or 2nd device for the MFA.
Now, when I use vpncli.exe, I would like to specify on the command line or in my script, that I would like to use device 1 (or device 2) for the MFA. So that the user ONLY needs to confirm the login attempt on his/her device and DOES NOT need to select which device shall be used.
I had hoped to be able to write on the command line something like "vpncli.exe connect domain.com user myuser pass mypassword category 2". I had guessed this command "category" command since the prompt on the command line, asking the user to select between two devices, is asking for category 1 or category 2. But it does not work this way and I did not find any hint towards selecting between devices in the docs.
How do I do that? Thank you very much in advance!
07-03-2023 03:52 AM
07-03-2023 10:18 AM
Thank you for your response. I found an alternative way using the response file. I simply placed the number of the device I want to use as second factor in the third row of the response file. Works pretty nice. And thank you for pointing out the possible weakening of the security measures. I will consider that!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide