UAC & standard users with additional privileges  

Page 3 of 3 FirstFirst 123

  1. Posts : 14,876
    Windows 10 Home x64 Version 22H2 Build 19045.2965
       #21

    Matthew,

    In this particular case,
    1 You have provided the script for the OP already so that aspect has been taken care of.
    2 Elevated Shortcut without UAC - TenForumsTutorials provides the explanation of how to set up the task in Task scheduler so that the script can be called without an admin prompt being provoked.
    3 My article Make Task scheduler run a batch file minimised and with a specific icon - TenForums can therefore focus on the matter of running minimised & with a specific icon - if, that is, the OP wants to have these enhancements [the OP might be happy to tolerate the brief flash of the script's command window appearing].

    If you or the OP have any problems working through my article then you can post your queries here and I'll deal with them.

    All the best,
    Denis
      My Computer


  2. Posts : 8
    Windows 10
    Thread Starter
       #22

    I am marking this problem as solved. The problem was:

    Allow a standard user to enable/disable a network without having to enter a password every time.

    My solution for Windows 7 was:

    1. Add the standard user to the "Network Configuration Operators" group.
    2. Login as the standard user.
    3. Create a shortcut to the network adapter.
    4. Right-click on the shortcut to see or change the state of the network adapter.

    I have received many useful and instructive suggestions on Tenforums. Based on those suggestions,
    here's my solution for Windows 10:

    1. Add the standard user to the "Network Configuration Operators" group.
    2. Login as the standard user.
    3. In a cmd window, run this command
    netsh interface show interface
    to learn the name of the network adapter.
    4. Run Task Scheduler using the password of the standard user.
    5. Create two shortcuts in accordance with Option 2 in this tutorial:
    Elevated Shortcut without UAC - TenForumsTutorials
    -- at Step 3, name the shortcuts something like “EnableLAN” and “DisableLAN”
    -- at Step 7, in the Program/script field, type netsh
    -- at Step 8, into the Add arguments field, type
    interface set interface "name of network adapter" admin=enable
    (Make the last element “disable” for the second task.)
    -- at Step 14, name the shortcuts something like “Turn LAN On” and “Turn LAN Off”
    6. Press the Win + R keys to open the Run dialog, type ncpa.cpl into Run, and click OK to open the Network Connections window. Keep this window open on your desktop to see the state of the network adapter. The color of the icon reflects the state of the adapter.
    7. Click on one or the other of the two newly-created shortcuts to change the state of the network adapter. A cmd window briefly flashes on the screen. This can be eliminated using the procedure mentioned by Try3 in a previous post, if desired.

    The solution for Windows 10 is much more cumbersome than the solution for Windows 7. I have to stop using Windows 7 due to the end of Microsoft support, and this is not the first time that I find Windows 10 to be less user friendly than Windows 7.

    Thanks, again, to all who have kindly given me help and advice
    Last edited by gvannucci; 19 Feb 2020 at 11:48.
      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 03:03.
Find Us




Windows 10 Forums