Link to home
Start Free TrialLog in
Avatar of Isaias Perez
Isaias PerezFlag for United States of America

asked on

VPN- Silently Install EXE

I have a VPN file that was created by our former IT group and I have no idea how. Its a windows based VPN. We recently implemented Intune in our environment and I am trying to set it up so that it installs the EXE as part of the base software configuration. Problem is i dont know the silent switch. I have tried the a few like .exe /Silent. I have attached the results of TP-VPN.exe /?. Is there a way i can find the silent switch of the VPN or create a powershell script that will just run the VPN even if its not silent. I just need it to install. If i just run the executable the first thing that pops up is a message stating " Do you wish to install Contonso VPN? Wondering how i can bypass that message. If i extract the contents of the exe. I see an executable named cmstp.exe. There also config files that might be able to examine.

 

User generated imageexe-switch.jpg
Avatar of oBdA
oBdA

The first option, /Q, might do the trick.
Avatar of Isaias Perez

ASKER

I tried all of the options. they all yield the error message above
Just to make sure: did you try it with a capital Q? Command line arguments can be case sensitive.
yes I did
Try running strings on the installer: https://docs.microsoft.com/en-us/sysinternals/downloads/strings

You might get lucky and find the command line option that way.  I used that trick to find Velaro's silent command line switch: http://leinss.com/blog/?m=201502
OK, that is something home-grown that was done using iexpress.exe.
There aren't indeed any other relevant command line options than that, and /Q doesn't work because whoever created the package didn't seem to have added an "install" command.
What exactly happens after you confirm the dialog?
Sorry it took me long to respond. So when you initiate the exe first thing it asks is if you are sure you want to install? Then it asks if for the current user or all users and a check mark if you want to put the short cut on the desktop.If you select all users (which is what i want by default) a UAC window pops up asking for admin priv.  Please see attached pictures.

User generated image
User generated image
Then the VPN installs

User generated image
ASKER CERTIFIED SOLUTION
Avatar of oBdA
oBdA

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank you so much ODBA. This worked flawlessly.

TP-VPN.exe /Q /C:"cmstp.exe /s /au TP-VPN.inf"
The crazy thing now is finding a detection method. I literally cant find any. When this installs it does leave any trace of an install in the Programs and Features. I cant tell what folder or registry file it has created. I tried using procmon but man thats tough as its moving a million miles an hour.I tried using another utility and all it gave me was the following:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce]
"wextract_cleanup0"="rundll32.exe C:\\Windows\\system32\\advpack.dll,DelNodeRunDLL32 \"C:\\Users\\Admin\\AppData\\Local\\Temp\\IXP000.TMP\\\""

Can i use any of that ODBA?
That won't help you any, that's just temporary files that will be cleaned up during the next reboot,
Can't test it, but try it with Get-VpnConnection:
https://docs.microsoft.com/en-us/powershell/module/vpnclient/get-vpnconnection