New
#11
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
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?
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.
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
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.
Test it again with this: Create Elevated Shortcut without UAC prompt in Windows 10