If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Rate Thread | Display Modes |
#1
|
|||
|
|||
Expert help requested for removing UAC user account control task scheduler syntax
My question is how to get removal of UAC to work for ANY VPN config file?
o openvpn.exe anyfile.ovpn == I want this to run without UAC popups What I simply want is any command below to run without the UAC popup: a. openvpn.exe file1.ovpn b. openvpn.exe file2.ovpn c. openvpn.exe file3.ovpn etc. (where the only difference is in the configuration file name) This is what happens if you do NOT turn off UAC popups: 1. I doubleclick on any of six thousand openvpn config files 2. The *.ovpn default file type is set to open using openvpn.exe 3. Openvpn.exe is set to [x]Run this program as an administrator But the UAC account control form always pops up first. All I want is for that UAC popup to go away when I connect to VPN. o These are experiments I've made, all of which remove the UAC popup: A. I can turn UAC off globally which, of course, is the easy way out: Win+R UserAccountControlSettings.exe Never notify me Then I just doubleclick on any one of six thousand openvpn files, each of which opens in openvpn.exe, which is set to [x]Run this program as an administrator (which is required to work) and then I'm connected to VPN. But in that case, UAC is completely turned off for everything. So there must be a better way. B. I can turn off UAC for just one command in the task scheduler: Win+R taskschd.msc /s Create Task OpenVPN Daemon [x]Run with highest privileges == this is what bypasses the UAC prompt Actions New Start a program C:\app\network\openvpn\bin\openvpn.exe Arguments = C:\app\network\openvpn\config\file_1.ovpn But that task circumvents UAC for only that one vpn configuration file. C. I can create a link to run that one VPN config file without UAC C:\path\file_1.lnk TARGET = C:\Windows\System32\schtasks.exe /run /TN "OpenVPN Daemon" Where I can then create a new "StartVPN" command in the AppPaths key: Win+R StartVPN Which connects to VPN without UAC if the following key is created: HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\StartVPN.exe Default = C:\path\file_1.lnk (Note there is never an executable of that name; it's just a keyword.) Notice all this works just fine but it only works for one VPN config file. o My question is how to get removal of UAC to work for ANY VPN config file? What I simply want is any command below to run without the UAC popup: a. openvpn.exe file1.ovpn b. openvpn.exe file2.ovpn c. openvpn.exe file3.ovpn etc. -- Usenet allows people to find solutions that aren't generally on the net. |
Thread Tools | |
Display Modes | Rate This Thread |
|
|