• Where did Microsoft hide the Run this program as an administrator?

    From Nick Cine@21:1/5 to All on Sun Aug 11 23:49:26 2024
    I'm the only user and I set myself with admin privileges long ago.

    Today I updated to the latest openvpn.exe due to the recent bug which
    Microsoft informed the OpenVPN folks of and which they patched but then
    OpenVPN stopped working because I run it from scripts, not from the GUI.

    It used to be in Windows 10 you could set the executable permissions for OpenVPN/bin/*.exe to run as the administrator for the batch files to work.

    Rightclick on openvpn.exe > Properties > Compatibility >
    [x]Run this program as an administrator
    [Change settings for all users]
    [x]Run this program as an administrator
    [OK][OK]

    But in my current version of Microsoft Windows [Version 10.0.19045.4651]
    as the only user (who also has admin rights), when I rightclick on
    openvpn.exe > Properties > Compatibility, I don't get the option to
    run this program as an administrator anymore.

    Where did the selection to run as admin go? https://i.postimg.cc/nrnW3LWR/compatibility.jpg

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Paul@21:1/5 to Nick Cine on Mon Aug 12 03:41:16 2024
    On Mon, 8/12/2024 1:49 AM, Nick Cine wrote:
    I'm the only user and I set myself with admin privileges long ago.

    Today I updated to the latest openvpn.exe due to the recent bug which Microsoft informed the OpenVPN folks of and which they patched but then OpenVPN stopped working because I run it from scripts, not from the GUI.

    It used to be in Windows 10 you could set the executable permissions for OpenVPN/bin/*.exe to run as the administrator for the batch files to work.

    Rightclick on openvpn.exe > Properties > Compatibility >
    [x]Run this program as an administrator
    [Change settings for all users]
    [x]Run this program as an administrator
    [OK][OK]

    But in my current version of Microsoft Windows [Version 10.0.19045.4651]
    as the only user (who also has admin rights), when I rightclick on openvpn.exe > Properties > Compatibility, I don't get the option to
    run this program as an administrator anymore.

    Where did the selection to run as admin go? https://i.postimg.cc/nrnW3LWR/compatibility.jpg


    It's in your picture.

    Below "Disable Fullscreen optimizations".

    It is both ticked, and grayed out, suggesting "openvpn.exe"
    is already set via some means, to run as Administrator, and
    the compatibility dialog is not the place to correct that.

    [Picture]

    https://i.postimg.cc/2SjFVByK/win10-compatibility-administrator.gif

    My picture is just to show what a "naive" case looks like.
    It's not grayed. But running Firefox as an Administrator,
    is not a smart thing to do. Ticking the box in the picture,
    is an unnecessary risk for me.

    Paul

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Big Al@21:1/5 to Paul on Mon Aug 12 09:00:29 2024
    On 8/12/24 03:41 AM, Paul wrote:
    On Mon, 8/12/2024 1:49 AM, Nick Cine wrote:
    I'm the only user and I set myself with admin privileges long ago.

    Today I updated to the latest openvpn.exe due to the recent bug which
    Microsoft informed the OpenVPN folks of and which they patched but then
    OpenVPN stopped working because I run it from scripts, not from the GUI.

    It used to be in Windows 10 you could set the executable permissions for
    OpenVPN/bin/*.exe to run as the administrator for the batch files to work. >>
    Rightclick on openvpn.exe > Properties > Compatibility >
    [x]Run this program as an administrator
    [Change settings for all users]
    [x]Run this program as an administrator
    [OK][OK]

    But in my current version of Microsoft Windows [Version 10.0.19045.4651]
    as the only user (who also has admin rights), when I rightclick on
    openvpn.exe > Properties > Compatibility, I don't get the option to
    run this program as an administrator anymore.

    Where did the selection to run as admin go?
    https://i.postimg.cc/nrnW3LWR/compatibility.jpg


    It's in your picture.

    Below "Disable Fullscreen optimizations".

    It is both ticked, and grayed out, suggesting "openvpn.exe"
    is already set via some means, to run as Administrator, and
    the compatibility dialog is not the place to correct that.

    [Picture]

    https://i.postimg.cc/2SjFVByK/win10-compatibility-administrator.gif

    My picture is just to show what a "naive" case looks like.
    It's not grayed. But running Firefox as an Administrator,
    is not a smart thing to do. Ticking the box in the picture,
    is an unnecessary risk for me.

    Paul
    What do you use to make the red box highlight in your images? It's way too good for hand drawn.
    I got the screen capture part down pat, as most of us do.
    --
    Linux Mint 21.3, Cinnamon 6.0.4, Kernel 5.15.0-118-generic
    Al

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Paul@21:1/5 to Big Al on Mon Aug 12 13:30:12 2024
    On Mon, 8/12/2024 9:00 AM, Big Al wrote:
    On 8/12/24 03:41 AM, Paul wrote:
    On Mon, 8/12/2024 1:49 AM, Nick Cine wrote:
    I'm the only user and I set myself with admin privileges long ago.

    Today I updated to the latest openvpn.exe due to the recent bug which
    Microsoft informed the OpenVPN folks of and which they patched but then
    OpenVPN stopped working because I run it from scripts, not from the GUI. >>>
    It used to be in Windows 10 you could set the executable permissions for >>> OpenVPN/bin/*.exe to run as the administrator for the batch files to work. >>>
         Rightclick on openvpn.exe > Properties > Compatibility >
         [x]Run this program as an administrator
            [Change settings for all users]
         [x]Run this program as an administrator
            [OK][OK]

    But in my current version of Microsoft Windows [Version 10.0.19045.4651] >>> as the only user (who also has admin rights), when I rightclick on
    openvpn.exe > Properties > Compatibility, I don't get the option to
    run this program as an administrator anymore.

    Where did the selection to run as admin go?
    https://i.postimg.cc/nrnW3LWR/compatibility.jpg


    It's in your picture.

    Below "Disable Fullscreen optimizations".

    It is both ticked, and grayed out, suggesting "openvpn.exe"
    is already set via some means, to run as Administrator, and
    the compatibility dialog is not the place to correct that.

        [Picture]

         https://i.postimg.cc/2SjFVByK/win10-compatibility-administrator.gif >>
    My picture is just to show what a "naive" case looks like.
    It's not grayed. But running Firefox as an Administrator,
    is not a smart thing to do. Ticking the box in the picture,
    is an unnecessary risk for me.

        Paul
    What do you use to make the red box highlight in your images?  It's way too good for hand drawn.
    I got the screen capture part down pat, as most of us do.

    I use an older version of GIMP (where SaveAs does not correct you and tell you to Export instead).
    Modern versions of GIMP are more of a PITA.

    Create a new drawing somehow. Select the Pencil tool. Change the color to Red using the foreground/background color control (foreground color is the top one).
    Change the pencil size to "Circle (03)".

    Place a dot for the starting point. Now, hold down Shift-Control.
    This compass-locks the pencil to fixed compass points so it
    cannot wander. The presumption is, a line drawn under that modifier,
    should have fewer jaggies if it was on a diagonal. But it also locks
    to horizontal or vertical for you. Now, draw the four lines to make
    a box. Drawing the last line is more of a chore (getting the endpoint right). You could be off-grid due to the third line being the wrong length.
    Thus, closing the box "requires a bit of eyeball". There is no automation making rectangles, and it does take a bit of eye at the appropriate moment.

    Not all the rectangles are closed properly. Lazy :-) You can certainly
    do an Undo, and undo the lines one at a time then redo them until
    the rectangle is closed properly. GIMP has infinite undo, and you
    can walk changes back to "none".

    It's not Photoshop, but it's good enough for cropping and marking.

    Paul

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Big Al@21:1/5 to Paul on Mon Aug 12 13:40:49 2024
    On 8/12/24 01:30 PM, Paul wrote:


    I use an older version of GIMP (where SaveAs does not correct you and tell you to Export instead).
    Modern versions of GIMP are more of a PITA.

    Create a new drawing somehow. Select the Pencil tool. Change the color to Red using the foreground/background color control (foreground color is the top one).
    Change the pencil size to "Circle (03)".

    Place a dot for the starting point. Now, hold down Shift-Control.
    This compass-locks the pencil to fixed compass points so it
    cannot wander. The presumption is, a line drawn under that modifier,
    should have fewer jaggies if it was on a diagonal. But it also locks
    to horizontal or vertical for you. Now, draw the four lines to make
    a box. Drawing the last line is more of a chore (getting the endpoint right). You could be off-grid due to the third line being the wrong length.
    Thus, closing the box "requires a bit of eyeball". There is no automation making rectangles, and it does take a bit of eye at the appropriate moment.

    Not all the rectangles are closed properly. Lazy :-) You can certainly
    do an Undo, and undo the lines one at a time then redo them until
    the rectangle is closed properly. GIMP has infinite undo, and you
    can walk changes back to "none".

    It's not Photoshop, but it's good enough for cropping and marking.

    Paul

    Thanks. The "closing the square" gets me too.
    --
    Linux Mint 21.3, Cinnamon 6.0.4, Kernel 5.15.0-118-generic
    Al

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Stan Brown@21:1/5 to Nick Cine on Mon Aug 12 12:35:47 2024
    On Sun, 11 Aug 2024 23:49:26 -0600, Nick Cine wrote:
    Where did the selection to run as admin go? https://i.postimg.cc/nrnW3LWR/compatibility.jpg

    It's right there, about 3/4 of the way down the dialog, between
    "Disable fullscreen optimizations" and "Register this program for
    restart". And it's even ticked already!

    Those of us who have the facility for looking at something and not
    seeing it should really form some sort of club!

    --
    Stan Brown, Tehachapi, California, USA https://BrownMath.com/
    Shikata ga nai...

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From sticks@21:1/5 to ...winston on Mon Aug 12 22:56:18 2024
    On 8/12/2024 10:26 PM, ...winston wrote:


    Way too much effort.
    Just use an application that can draw a select-able color rectangle
    without 'fill'. Windows has two of them, Irfanview and other installable graphic editor do too, or for a free online app, consider LunaPic.

    Just looked at Paint 3D, and it is easy to figure out and works pretty
    darn good.

    --
    Stand With Israel!

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Nick Cine@21:1/5 to sticks on Mon Aug 12 23:28:39 2024
    On Mon, 12 Aug 2024 22:56:18 -0500, sticks wrote:

    Way too much effort.
    Just use an application that can draw a select-able color rectangle
    without 'fill'. Windows has two of them, Irfanview and other installable
    graphic editor do too, or for a free online app, consider LunaPic.

    Just looked at Paint 3D, and it is easy to figure out and works pretty
    darn good.

    For this image just now, I used Paint.NET, which requires NET Framework. https://i.postimg.cc/vm8zPxmx/openasadmin.jpg

    You can get Paint.NET off the Microsoft Store but it's free open source. https://www.dotpdn.com/downloads/pdn.html

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Nick Cine@21:1/5 to Paul on Mon Aug 12 23:57:43 2024
    On Mon, 12 Aug 2024 03:41:16 -0400, Paul wrote:

    Where did the selection to run as admin go?
    https://i.postimg.cc/nrnW3LWR/compatibility.jpg


    It's in your picture.
    Below "Disable Fullscreen optimizations".
    It is both ticked, and grayed out, suggesting "openvpn.exe"
    is already set via some means, to run as Administrator, and
    the compatibility dialog is not the place to correct that.

    Oh. I see. That's confirmation bias on my part. I had already done it. https://i.postimg.cc/vm8zPxmx/openasadmin.jpg

    Lesson learned. I should never have installed the latest OpenVPN client. Installing the latest openvpn client ruined my carefully crafted setup.

    https://i.postimg.cc/2SjFVByK/win10-compatibility-administrator.gif

    My picture is just to show what a "naive" case looks like.
    It's not grayed. But running Firefox as an Administrator,
    is not a smart thing to do. Ticking the box in the picture,
    is an unnecessary risk for me.

    What happened was I've had OpenVPN working out of batch scripts for years.
    I got this command file from this ng many years ago & it worked since then.

    set configcmd=C:\pathto\openvpn\bin\openvpn.exe
    set configdir=C:\openvpn\config\
    cd %configdir%
    set configfile=86.104.72.83.ovpn
    c:\windows\system32\runas.exe /user:administrator /savecred "%configcmd% %configdir%%configfile%"

    It worked perfectly (until yesterday anyways).
    It doesn't bring up the UAC prompt. It doesn't bring up the silly GUI.
    I just doubleclick on the openvpn.bat file and it just runs it perfect.
    Until now.

    When I updated OpenVPN to the latest version of the client, a popup which I didn't save said it was going to mess with the permissions - & that it did.

    Now nothing works.

    I should have screenshotted the warning that the OpenVPN installer was
    going to reset everything I did prior to get a doubleclick on that batch
    file to connect without asking silly and quite unnecessary questions.

    It has been years since I messed with those permissions so I'm not sure
    exactly how I got OpenVPN.exe to work without bringing up the silly GUI.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Charlie@21:1/5 to ...winston on Tue Aug 13 00:02:22 2024
    On this Tue, 13 Aug 2024 01:46:52 -0400, ...winston wrote:

    You can get Paint.NET off the Microsoft Store but it's free open source.
    https://www.dotpdn.com/downloads/pdn.html


    Thanks. Paint.net is also a decent choice.
    Not in my installed programs, only have the Portable version.
    - A few more steps to draw a border-only colored rectangle than Paint
    or Irfanview.

    I don't think there is any free Windows program with FEWER steps than
    Paint.NET for drawing an open rectangle of a default color & width.

    Once you have the defaults set (e.g., rounded corners, ellipse, dashed
    lines, etc.), it's a SINGLE step clicking on two points to draw a box.

    Click on one corner and drag out to click on the other corner & that's it.
    You can resize at will, and change the color or fill or line shape too.

    I doubt you'll ever find a Windows free editor with fewer steps than that.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Nick Cine@21:1/5 to Stan Brown on Tue Aug 13 00:16:13 2024
    On Mon, 12 Aug 2024 12:35:47 -0700, Stan Brown wrote:

    Where did the selection to run as admin go?
    https://i.postimg.cc/nrnW3LWR/compatibility.jpg

    It's right there, about 3/4 of the way down the dialog, between
    "Disable fullscreen optimizations" and "Register this program for
    restart". And it's even ticked already!

    Those of us who have the facility for looking at something and not
    seeing it should really form some sort of club!

    Thanks for pointing out that my confirmation bias made me blind.
    I see that it was there all along - but it wasn't selectable.
    So I missed it.
    My fault.

    I apologize.

    After figuring out that wasn't why openvpn stopped working, suddenly
    I found out what the problem was, and it had nothing to do with the permissions, but just to explain, most people use the OpenVPN client in the default GUI mode, but I don't. I dispense with the GUI altogether.

    When I doubleclick on an openvpn batch file, the batch file (which Herbert Kleebauer helped write) sets the openvpn config file and then it calls the openvpn.exe daemon as admin (because it has to mess with the routing table which requires admin permission) - which is why I needed it to run as
    admin.

    But it turns out that wasn't the problem after all.
    The problem was the latest OpenVPN has a new bug in it which screws up all
    your existing openvpn configuration files to the point they no longer work.

    Before OpenVPN 2.6.12, your config only needed the "cipher" line, e.g.,
    cipher AES-128-CBC
    But as of OpenVPN 2.6.12, you have to also add a copy data-ciphers line:
    data-ciphers AES-128-CBC

    This extra line has to be added to all your openvpn configuration files.
    for %f in (*.ovpn) do type C:\pathto\data-cipher.txt >> %f

    Some day someone is going to show me how to add that line, instead of to
    the end of the configuration text file, just after the "cipher" line
    (which is always line 88 of every openvpn configuration file I have).

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)