UAC & standard users with additional privileges  

Page 2 of 3 FirstFirst 123 LastLast

  1. Posts : 7,598
    Windows 10 Home 20H2
       #11

    W10 Tweaker said:
    Hi Matthew, I've been following this thread and just have to ask, will these lines of text not confuse my English speaking PC? These are contained in the .bat file.
    The .bat file works perfectly on my English speaking PC because the Chinese text has been commented out.
      My Computer


  2. Posts : 14,939
    Windows 10 Home x64 Version 22H2 Build 19045.2965
       #12

    Matthew Wai said:
    "Everyone" includes a standard user. If everyone can run it with highest privileges, the OP can too.
    I know Everyone includes a standard user. A standard user's highest privileges are those of a standard user.

    The OP needs a standard user to access the highest privileges of an admin user - hence the need to declare an admin user in the TS task definition instead of Everyone & to use the logged on or not property.

    Or have you demonstrated otherwise? I have not tested a standard user with Everyone for at least two years.

    Denis
      My Computer


  3. Posts : 1,807
    Windows 10 Pro 21H1 19043.1348
       #13

    Matthew Wai said:
    The .bat file works perfectly on my English speaking PC because the Chinese text has been commented out.
    Thanks for clarifying that detail.
      My Computer


  4. Posts : 8
    Windows 10
    Thread Starter
       #14

    Thank you for the detailed comments. I have not yet solved my problem, but I have tried various things and I have additional information.

    There is a more fundamental problem that I had not identified earlier. Here's a detailed description:

    In Windows 7, I can do the following:
    -- login as administrator.
    -- press <Window key>+R; type "ncpa.cpl"; press <Enter>.
    -- drag one of the icons to the Desktop (this creates a shortcut).
    -- right-click on the shortcut to get a context menu.

    The context menu that appears is associated with the target of the shortcut, and it reflects the state of the target.

    So, for example, if the target is a network adapter that is disabled, the first item in the context menu is "Enable" and I can select it, to enable the network adapter.

    I can then right-click the shortcut again, and the second item in the context menu will be "Disable".

    In Windows 10, I get a different result:
    The same sequence of steps will also create a shortcut, but the context menu does not reflect the state of the target.

    So, if the network adapter was disabled when the shortcut was created, the first item is "Enable" and will remain so even after the network adapter becomes enabled.

    This makes the shortcut rather useless.

    Any thoughts?
      My Computer


  5. Posts : 7,598
    Windows 10 Home 20H2
       #15

    I can create a script (functioning as a shortcut) that lets you toggle between "Enable" and "Disable".
    The script will work like this one: Turn On or Off Fast Startup in Windows 10
      My Computer


  6. Posts : 8
    Windows 10
    Thread Starter
       #16

    Matthew Wai said:
    I can create a script (functioning as a shortcut) that lets you toggle between "Enable" and "Disable".
    The script will work like this one: Turn On or Off Fast Startup in Windows 10
    Thank you for the kind offer, but I am not sure it will solve my problem. I tested the script you mention, and every time I run the script I have to enter an administrator password, if I am logged in as a standard user. What I am trying to achieve is to quickly disable/enable LAN without having to enter passwords every time. I was able to do it in Windows 7 by giving a standard user membership in the "Network Configuration Operators" group, but it does not work in windows 10.
      My Computer


  7. Posts : 14,939
    Windows 10 Home x64 Version 22H2 Build 19045.2965
       #17

    Then don't run the script itself. Run a TS task that runs the script.
    Elevated Shortcut without UAC - TenForumsTutorials

    Once you have set this up & tested it you might start to dislike the window that flashes up on the screen when it runs. If so you can change it to run minimised using the procedure in
    Make Task scheduler run a batch file minimised and with a specific icon - TenForums

    Denis
      My Computer


  8. Posts : 8
    Windows 10
    Thread Starter
       #18

    I tried something different today:

    -- login as a standard user that is a member of the "Network Configuration Operators" group.
    -- press <Window key>+R; type "ncpa.cpl"; press <Shift><CTRL><Enter>.
    By pressing <Shift><CTRL><Enter> the program is run as administrator and, as expected,
    you get a secure-desktop prompt for an administrative password.
    -- click "More choices".
    -- select an ID that has full administrative privileges.
    -- enter the password.
    Now the "Network Connections" window opens up. Presumably, the associated task is
    running with full administrative privileges, and no additional entering of passwords should
    be needed when doing things in this window.
    -- right-click on the icon of an enabled LAN to get a context menu.
    The first item in the context menu is "Disable".
    -- click "Disable".
    You get a secure-desktop prompt for an administrative password......

    I am resigning myself to entering a password whenever I need to enable or disable a LAN.
      My Computer


  9. Posts : 7,598
    Windows 10 Home 20H2
       #19

    gvannucci said:
    I tested the script you mention, and every time I run the script I have to enter an administrator password
    Test it again with this: Create Elevated Shortcut without UAC prompt in Windows 10
      My Computer


  10. Posts : 7,598
    Windows 10 Home 20H2
       #20

    You wrote "This article assumes sufficient general skills with scripting & Task scheduler so that it can focus on achieving the minimised window & specific icon."

    I am not sure whether the OP and I have such skills.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 02:11.
Find Us




Windows 10 Forums