Disable of the icon "Network sign-in" on Logon Screen

SergiiMol 1 Reputation point
2021-06-28T10:42:56.603+00:00

Hello.
I need to disable the icon "Network sign-in" for VPN connection on Logon screen (Windows 10) for all users programmatically (C++). I know that the user can hide this screen by unchecking the checkbox “Allow other people to use this connection” (VPN settings in Network and Sharing Center), and I need to do this without tasking the user to go through the checkboxes for all VPN connections.

Is there a registry key corresponding to this checkbox “Allow other people to use this connection” that I can change?

I tried creating the registry key DontDisplayNetworkSelectionUI (HKEY_LOCAL_MACHINE \ SOFTWARE \ Policies \ Microsoft \ Windows \ System) and setting its value to 1 and it partially works, but that hides only the Network icon and only if the PC is not inside the domain.

Windows for business | Windows Client for IT Pros | Networking | Network connectivity and file sharing
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Anonymous
    2021-06-29T03:16:32.097+00:00

    Hi ,

    You might try to run following command to disable "Network sign-in" on Logon Screen.

    E.g.: Set-VpnConnection -Name "Test3" -AllUserConnection $false

    Best Regards,
    Candy

    --------------------------------------------------------------

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. SergiiMol 1 Reputation point
    2021-06-30T08:36:33.187+00:00

    I have found a mention of "AllUserConnection" in the registry here HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\EnterpriseResourceManager\AllowedNodePaths\WMI\MSFT_VpnConnection
    and here
    HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\EnterpriseResourceManager\AllowedNodePaths\WMI\MSFT_VpnConnection

    but the use of this key is very implicit.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.