note. this thread doesnt work on Windows 10 Home
To make Wireguard Windows app better for Standard User, you need to make your users a member of the “Network Configuration Operators” group.
This allows you to enableor disable (or choose if you have multiple) the VPN without needing to be a member of the Administrators group.
To do this ypu also need to add a line to the Registry.
Here’s the script
@echo off
REM Add all standard users to the "Network Configuration Operators" group
for /F "skip=1" %%U in ('wmic UserAccount where "LocalAccount=True and Disabled=False" get Name') do (
net localgroup "Network Configuration Operators" "%%U" /add
echo User "%%U" has been added to the "Network Configuration Operators" group.
)
REM Create a registry key and set a DWORD value
reg add "HKLM\SOFTWARE\WireGuard" /v LimitedOperatorUI /t REG_DWORD /d 1 /f > nul
echo Registry key and DWORD value have been created successfully.
save as this script with extension “.bat”
to run just Right Click > Run As Administrator
after that you should to Reboot your PC