Recommended Posts

Hi guys. I got a quick question for anyone that has more experience with openvpn. I'm trying to have the damn thing run at startup and I used the "scheduled task" method to do it. It runs fine, but my problem is that there's no tray icon. Without it, if something is wrong with the network connection, there's no way to reconnect the vpn, unless the user ends the task/process and open the gui manually. And that is another problem, because the logged in user does not have admin privileges. 

 

I've set a delay of 2 minutes in the Triggers section of the task, to let everything else load first, but the tray icon still doesn't show. 

 

Is there anything else I can do?

 

Thank you!

Link to comment
https://www.neowin.net/forum/topic/1288614-openvpn-gui-issue-at-startup/
Share on other sites

why not just put it in the startup folder instead of running it as a scheduled task?  This way when the user logs on it will run and it will be interactive with the user.   You can even do it in the all users section so that it applies to anyone who logs in, not just the individual user.

  On 11/02/2016 at 21:32, sc302 said:

why not just put it in the startup folder instead of running it as a scheduled task?  This way when the user logs on it will run and it will be interactive with the user.   You can even do it in the all users section so that it applies to anyone who logs in, not just the individual user.

Expand  

I already tried that, it does run BUT it asks for the admin password and I don't want that, since the user doesn't have the rights.

  On 11/02/2016 at 22:27, BudMan said:

do your users have admin rights?? 

 

If not is this the way you set it up?

https://community.openvpn.net/openvpn/wiki/Nonprivileged

 

This starts the gui for the user..

Expand  

As I said, the user doesn't have admin rights. I used the method here: https://help.my-private-network.co.uk/support/solutions/articles/8464-windows-openvpn-auto-start

  On 11/02/2016 at 21:20, John Teacake said:

Why are you trying to run it as a Scheduled Task? Presumably there would be no icon as its not running as the logged in user. 

Expand  

Because there's no other way other than the openvpn windows service set to automatic, but that method still doesn't show the tray icon...

That method is missing quite a bit... Take a look at the article I posted..

 

Also you can give the vpn service start stop permissions to normal user...  Been a coons age since I have done anything like this but I know you can grant non users rights to start and stop service with
 subinacl, there use to be a way to change the gui via a reg key so that it started and stopped the service..

 

Google is your friend, found the old article

http://openvpn.se/files/howto/openvpn-howto_run_openvpn_as_nonadmin.html

 

That goes over the way to change the service and the reg keys... Have not had to do this in years.. But might still work, if I get a chance latter I will test it..  Also int he article I linked to it links to 2 other gui options that can be used without admin rights.  Maybe either of those would suit your needs??  So you don't have to use the scheduled task method at all.

  On 11/02/2016 at 22:50, BudMan said:

That method is missing quite a bit... Take a look at the article I posted..

 

Also you can give the vpn service start stop permissions to normal user...  Been a coons age since I have done anything like this but I know you can grant non users rights to start and stop service with
 subinacl, there use to be a way to change the gui via a reg key so that it started and stopped the service..

 

Google is your friend, found the old article

http://openvpn.se/files/howto/openvpn-howto_run_openvpn_as_nonadmin.html

 

That goes over the way to change the service and the reg keys... Have not had to do this in years.. But might still work, if I get a chance latter I will test it..  Also int he article I linked to it links to 2 other gui options that can be used without admin rights.  Maybe either of those would suit your needs??  So you don't have to use the scheduled task method at all.

Expand  

I think you're missing the point (but please correct me if I'm wrong). The issue is NOT that a normal user cannot run openvpn, it's the tray icon that's missing. The connection runs fine as a scheduled task, with admin rights (the .exe is in the processes list in task manager), but my concern is that if the internet connection drops the vpn will not reconnect automatically. So the user needs to have a manual way of reconnecting, via the tray icon, since re-opening the main exe file requires admin password.

 

That script + scheduled task method you posted basically does the same thing, the app runs but there's no icon. Maybe I should add an explorer restart, so that the tray icon gets registered properly?

If you read the article I Linked too it gives them the gui so they can restart the connection.  Or the other guis in the article do not have to have admin rights and they can restart the connection.  They have a GUI!!

 

That is your whole point right - if the connection dies the users can't restart it... That is what I am showing you how to do - the article gives you the gui to see if the connection is up down, restart it, etc..  Same goes with the replacement guis that do not require admin.

 

"the app runs but there's no icon"

There is a icon!!! 

 

This automatically created task will put the user in the group "Network Configuration Operators" and then start OpenVPN GUI automatically at the next logon of this (non privileged) user (with highest privileges).

 

"win7x64_user1_openvpn will then execute openvpn-gui.exe in the users context but with highest privileges."

 

Since the user task win7x64_user1_openvpn was present at logon, it get's executed and starts openvpn-gui.exe. So after the user logged in, he/she has the OpenVPN-GUI running in the system tray and is ready to establish connections without administrative privileges"

 

Clearly you did NOT read it???

 

 

  On 11/02/2016 at 22:31, TDT said:

I already tried that, it does run BUT it asks for the admin password and I don't want that, since the user doesn't have the rights.

Expand  

then use proc mon to find out what is being called and give the user admin rights over those areas either in the registry or the file location.  If the file location is in program files move the folder or install it to the root of c or a folder outside of one of the restricted folders (windows, program files, or programdata).  This is how I have made programs that normally need admin access accessible to end users without admin access.  I could remote in with teamviewer and help you with a test box if you would like me to show you what to do...I will probably need a break at some point today while watching airwatch videos (blech). 

 

https://technet.microsoft.com/en-us/sysinternals/processmonitor.aspx

 

  On 12/02/2016 at 09:47, BudMan said:

If you read the article I Linked too it gives them the gui so they can restart the connection.  Or the other guis in the article do not have to have admin rights and they can restart the connection.  They have a GUI!!

 

That is your whole point right - if the connection dies the users can't restart it... That is what I am showing you how to do - the article gives you the gui to see if the connection is up down, restart it, etc..  Same goes with the replacement guis that do not require admin.

 

"the app runs but there's no icon"

There is a icon!!! 

 

This automatically created task will put the user in the group "Network Configuration Operators" and then start OpenVPN GUI automatically at the next logon of this (non privileged) user (with highest privileges).

 

"win7x64_user1_openvpn will then execute openvpn-gui.exe in the users context but with highest privileges."

 

Since the user task win7x64_user1_openvpn was present at logon, it get's executed and starts openvpn-gui.exe. So after the user logged in, he/she has the OpenVPN-GUI running in the system tray and is ready to establish connections without administrative privileges"

 

Clearly you did NOT read it???

 

 

Expand  

I did read it and tried, but it didn't work then, I think I missed a step or something. I tried again today and it does indeed work as expected, but there's still a minor issue (I really don't care about it, just mentioning): the tray icon is always green, even if the vpn gets disconnected. 

Anyway, thanks! This is a much better solution than the others that I found so far. :)

  • 5 months later...
  On 12/02/2016 at 09:47, BudMan said:

If you read the article I Linked too it gives them the gui so they can restart the connection.  Or the other guis in the article do not have to have admin rights and they can restart the connection.  They have a GUI!!

 

That is your whole point right - if the connection dies the users can't restart it... That is what I am showing you how to do - the article gives you the gui to see if the connection is up down, restart it, etc..  Same goes with the replacement guis that do not require admin.

 

"the app runs but there's no icon"

There is a icon!!! 

 

This automatically created task will put the user in the group "Network Configuration Operators" and then start OpenVPN GUI automatically at the next logon of this (non privileged) user (with highest privileges).

 

"win7x64_user1_openvpn will then execute openvpn-gui.exe in the users context but with highest privileges."

 

Since the user task win7x64_user1_openvpn was present at logon, it get's executed and starts openvpn-gui.exe. So after the user logged in, he/she has the OpenVPN-GUI running in the system tray and is ready to establish connections without administrative privileges"

 

Clearly you did NOT read it???

 

 

Expand  

thanks for the tip this might be just what im looking for, one question, in the article it mentions accessing a "hidden" menu. I fixed the value in the registry but I don’t know where to look for it, nothing has SEEMED to change. If you have any advice it would be much appreciated

 

- I'm running Windows 10 and am also having trouble with the system tray icon showing up

  On 20/07/2016 at 11:21, BudMan said:

I have not tested this with windows 10. 

Expand  

Thanks for fast reply. I have Win 7 computers as well and i wanted to see this. I changed the value but I am unsure where the extra menu pops up. i.e. do I right click the GUI or maybe the system tray icon? Thanks.

 

"If you are running as administrator, and just want a convenient way to control the OpenVPN Service, you can enable a hidden menu for this."

 

You enable this by setting the following registry value to "1":  HKEY_LOCAL_MACHINE\SOFTWARE\OpenVPN-GUI\allow_service

 

I changed the value but I am unsure where the extra menu pops up. i.e. do I right click the GUI or maybe the system tray icon? Thanks.

 

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Mobapad Huben2 review, one of the first capacitive joystick controllers to release by Robbie Khan In 2024, I was lucky enough to have had early hands on with the world's first Tunnel magnetoresistance (TMR) stick controller, the PB Tails Crush Defender. TMR promised better precision than hall-effect, better resolution and better polling rates. Both technologies use magnetism to relay the stick position with high levels of accuracy and no stick drift. Hall-effect is still the dominant technology, but TMR is fast taking its place. In the console world, first party controllers still use traditional potentiometers for the sticks, but a growing trend in the modding community has seen people replacing those sticks with TMR or hall-effect modules. These mods require soldering and calibration, so not a job for the average gamer. Since then, many other brands have released their TMR stick implementations into new controller models, my personal view, having seen what's out there now, is that TMR has matured into something quite excellent. I still game with the Defender, for example. Today I bring an early look at one of the first capacitive stick controllers to hit the market, the Huben2 by Mobapad. What is a capacitive joystick? What surprised me most about the Huben2 package was just how good everything looks and feels. I don't think photos do it justice, in the hands, the quality of the plastic and grips are all very good. There will be frequent comparisons to the GameSir Tarantula Pro here, since it has long been my personal benchmark thanks to it being an excellent all-round package with bags of customisation and very high quality construction. Let's check out the Huben2 in a bit more detail. Specifications Platforms Switch, iOS, Android, Windows, Steam Input modes Bluetooth, dongle, wired Polling rates Up to 1000Hz Sticks KSilver capacitive analogue Stick caps Removable silicone with metal necks for anti-friction Deadzones 0% Raw sensors Yes, activated via desktop/mobile app Triggers Hall-effect triggers with Omron microswitches in lockout mode D-Pad Omron mechanical switches with swappable cross/circle button face Shoulder buttons Tactile switches Accessory buttons Tactile switches ABXY buttons Omron mechanical switches Back buttons M1-M4, tactile switches Motion control 6-axis gyro control for PC and Switch Connections USB-C Macro/Turbo Yes Vibration ALPS HD Rumble RGB Power LED can be customised Construction ABS plastic Battery 1000mAh, 15 hours playtime eManual Link Release date July 2025 Price $79.99 (special offer) / £58.74 (special offer) Unboxing The packaging is quite nice, not that this matters much, but from the box to the contents inside, everything has a premium feel about the whole presentation and material quality. The protective hard shell case is very nice quality, the best I have laid hands on to date in fact, these must cost a fair bit to produce to this standard. Mobapad Huben2 carry case It's nice to see that both types of d-pad cap included, I never liked the circular cap found on other controllers, but here, with the Omron mech switches, this cap feels rather nice to the point I prefer how it operates compared to the traditional cross-type. The wireless dongle is 1000Hz and it is already paired to the controller out of the box, although manual pairing is quick and easy. The USB cable is high quality and braided, should you ever need to use it, though thankfully unlike some other controllers, the port on the controller is flush with the surface and not recessed, so any third party USB cable will work just fine. both grips have a rubberised layer that's comfortable and grippy, I am unsure as to how long these will last as in the past I have seen similar things start to peel away after a year of use: Mobapad Huben2 details gallery You may have noticed the switch toggles on the backside near each trigger. These lock the triggers into hair trigger mode which then actuates a mechanical microswitch under each trigger. Activating the lockout is easy and satisfying, but to revert back to analogue trigger mode requires quite a bit of finger force, more than I feel happy about as it requires more concentration and energy which means attention drawn away mid-gameplay. The top faceplate is swappable, though there are no alternative options to buy, yet, the included cover is double glazed with a top layer that's clear. The whole piece feels rigid and high quality again, though some may find the glossy top finish a bit annoying depending on how oily your hands get during heated gaming, because during those situations a matte textured surface offers better comfort and grip. You may have noticed that there are pogo pins on the underside of the controller, it is not clear if these are for charging or an attachment accessory as there is no documentation clarifying. We will have to wait and see what Mobapad has in store for this. Here is a video showcasing the sounds of the Omron mechanical microswitches, and let me just say, these switches are amongst the nicest feeling and sounding in combo that I have used on a controller yet. Performance & measurements I handed the pink one to my brother since he just got the Switch 2, he's pleased with the Huben2, everything seems to work fine, although it has to be said the HD Rumble is the weakest part of this controller. Whether on Switch or PC, the rumble feedback is not anywhere close to the HD Rumble rebound and depth of the motors featured on the GameSir Tarantula Pro. The Huben2's rumble feels and sounds more like a buzzing bee than nuanced haptics that can rumble low enough to satisfy the hiring action of a shotgun in Doom or Resident Evil. Even the act of running in a game feels a bit weak on the haptics front, meanwhile, the Tarantula Pro convincingly reacts to the patter of heavy running feet or jostling through rough surfaces in a game world. The capacitive sticks seem to react with precision, and the zero dead zone can really be felt in most games as even gentle touches to the stick result in movement, assuming the game being played has no developer implemented fixed-dead zones for controllers. Some games offer up the options to change this in the game settings, but most do not. I played extended sessions of GTA V Enhanced with no stick performance issues, though the trigger did prove to be a bit troublesome, more on this after the measurements... Mobapad Huben2 measurements (0% deadzone, raw sensor mode enabled) ... The triggers also come with zero dead zone out of the box, but internally the actuation doesn't register until the trigger has travelled quite a distance. This means that driving can feel a bit dead until the trigger has been pressed in further than you may be used to. Here is a GIF showing how much the trigger has to travel before the screen register an input of even 0.02% Other tests showed that whilst the capacitive sticks are largely excellent, there is processing/filtering going on when the sticks are moved very quickly or allowed to bounce back, a test I do with all controllers to check for filtering, take a look at this comparison versus the Tarantula Pro: Huben2 Tarantula Pro Notice how the indicator on the screen bounces back much slower on the Huben2, these clips were recorded on a 240Hz OLED monitor at 240fps, the final clip was slowed to 1/4x which then makes the differences clear. For the record, the Tarantula Pro has no noticeable filtering in in real-time, and the indicator overshoots to the opposite axis when the stick is let go, exactly as the physical stick is doing. This is something that Mobapad can fix with a firmware update, and i have passed my findings over to the team. At present, there is no way to turn off stick filtering in the apps or via button combos like you can on some other controllers. Software Configuration options are limited on the controller directly, so the phone or desktop app must be used to tweak things to preference. Mobapad's app is laid out nicely and I found no issues with connectivity, even over wireless on Windows. Here is a look at all of the tabs within it: The desktop app can be found on the Windows Store, or by searching Mobapad in your phone's app store. Conclusion The Huben2 is a good controller, its normal RRP is a little high for my liking having experienced all manner of controllers these past 18 months, but if you grab one at the discounted price, then it could be a suitable controller for you. Where it is missing some features, these could be added with a firmware update, such as button combos to disable the stick filtering which removes the latency on bounce back and snap-stick movements. Sadly, one area which I do not think can be fixed with an update is the trigger travel distance before actuation, it feels like this is part of the physical build rather than a sensor register in the controller firmware. Clarification from Mobapad is required to confirm this. The build quality is very good, the app on both mobile and desktop work well, the Omron switches sound and feel superb, and the accessories included are a welcome addition that competes the package. But package alone doesn't make a controller great, everything has to gel, and that includes features like customisation. I only have one small nitpick to make, and that is the silicone quality on the joystick caps. They are OK, but GameSir controllers have much better grip on the sticks thanks to adopting Sony's cap shape and near-identical quality of silicone. It is a shame that the Huben2 cannot remap the back buttons to keyboard buttons on PC, GameSir allows this in all recent releases from the past year, customisations are saved directly onto the controller so remaps are usable on other computers. The Huben2 only allows remapping the four back buttons to existing face buttons, and in my opinion, this is quite pointless. I never quite understood why this was so common with brands when these are PC controllers primarily. If a good discounted price is not possible, then a GameSir Cyclone 2 or later model would be a more suitable option offering more features, excellent TMR sticks which perform just as well as these capacitive sticks, and have no filtering applied to them, should this be an important deciding factor for you.
    • I had a G2 and it was a pretty good phone. I was disappointed to see LG exit the smartphone business.
    • Its a good price but the ideapads are pieces of garbage. We bought 3 for employees 2 years back. Within 6 months trackpad issues, screen issues, usb port issues and wifi issues on all machines. Lenovo's customer service basically told us with the ideapads, you are on your own and good luck. Their business computers are really good.
    • >Interestingly, the rings came off without any physical damage to the device. With a HUGE amount of effort. The video OP makes it clear he doesn't think they'd ever come off in normal use.
    • Samsung Galaxy Z Fold7 may not come with Galaxy S25 Ultra's camera rings by Sagar Naresh Bhavsar When Samsung launched the Galaxy S25 Ultra earlier this year, it remained in the news for its top-of-the-line premium features, but also for a couple of drawbacks. Firstly, it made headlines because Samsung removed the Bluetooth functionality from the S-Pen on the Galaxy S25 Ultra, removing one of the key features: taking remote pictures and videos. But then a jarring issue came to light. The Galaxy S25 Ultra drew attention for its camera rings falling off. Yes, the $1,300 phone featured thick camera rings that were simply glued on top of the cameras. Interestingly, the rings came off without any physical damage to the device. Now, some interesting details about the camera rings on the upcoming Galaxy Z Fold7 have popped up. According to reliable leaker IceUniverse, Samsung was quite keen on keeping the Galaxy S25 Ultra-like camera rings on the upcoming premium Galaxy Z Fold7. However, after facing a strong backlash, the company has supposedly decided to scrap them. In fact, the leaker added that the cheap-looking Saturn rings design was urgently removed from the Galaxy Z Fold7, and instead, the company is bringing back the cleaner look of the Galaxy Z Fold5. Recently, multiple images of the Galaxy Z Fold7 were leaked, which seemingly suggest the same. The foldable is expected to come in three colors: blue, silver, and black. This year's Galaxy Z Fold7 is expected to be much thinner and lighter as compared to last year's foldable. We are just a few days away from the official unveiling. The pre-reserve window is already open, and if you are interested, you can get $50 credit and up to $1,150 additional savings.
  • Recent Achievements

    • Reacting Well
      Gromvar earned a badge
      Reacting Well
    • Dedicated
      BreakingBenjamin earned a badge
      Dedicated
    • Week One Done
      Hartej earned a badge
      Week One Done
    • One Year In
      TsunadeMama earned a badge
      One Year In
    • Week One Done
      shaheen earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      541
    2. 2
      +FloatingFatMan
      180
    3. 3
      ATLien_0
      164
    4. 4
      Skyfrog
      108
    5. 5
      Som
      102
  • Tell a friend

    Love Neowin? Tell a friend!