Windows 10: Powershell: Add-VpnConnectionTriggerDnsConfiguration missing -AllUserConnection parameter

Discus and support Powershell: Add-VpnConnectionTriggerDnsConfiguration missing -AllUserConnection parameter in Windows 10 Network and Sharing to solve the problem; I've set up a split-tunnel VPN connection, and am trying to force that connection to use the remote connection's DNS server. To do this, I'm trying... Discussion in 'Windows 10 Network and Sharing' started by GBITGlenn, Sep 13, 2018.

  1. GBITGlenn Win User

    Powershell: Add-VpnConnectionTriggerDnsConfiguration missing -AllUserConnection parameter


    I've set up a split-tunnel VPN connection, and am trying to force that connection to use the remote connection's DNS server.


    To do this, I'm trying to use Add-VpnConnectionTriggerDnsConfiguration in PowerShell. However, the VPN connection is in the Global Phone Book. (Created using the -AllUserConnection parameter).


    When I run the Add-VpnConnectionTriggerDnsConfiguration command, it comes back telling me it cannot find the ConnectionName in the phone book. That's because it's a GLOBAL phone book connection, and there's no parameter in Add-VpnConnectionTriggerDnsConfiguration to tell it to use that phone book.


    So, how do I tell Add-VpnConnectionTriggerDnsConfiguration to set the DNS IP for a connection in the global phone book?

    :)
     
    GBITGlenn, Sep 13, 2018
    #1
  2. ryanly Win User

    GPU-Z what command line parameter ?

    Current /? (-?) or / help (-help) parameter is invalid
     
    ryanly, Sep 13, 2018
    #2
  3. Mark Isi Win User
    PowerShell randomly poping-up in tool bar

    Hello,

    Just to verify, do you have any scheduled tasks that uses Powershell? Scheduled tasks makes Powershell window appear periodically on your computer, therefore we suggest that you check the Task Scheduler. Here are the steps:

    • Click on Start.
    • In the search bar, type Task Scheduler and click on

      Task Scheduler
      in the results.
    • Under Active Tasks, check for any tasks that use Powershell and the scheduled time.

    If the issue still persist, we suggest that you run a Windows Defender scan to see if it will pick up any malware that the first scan missed.

    Let us know the outcome.
     
    Mark Isi, Sep 13, 2018
    #3
  4. Kursah Win User

    Powershell: Add-VpnConnectionTriggerDnsConfiguration missing -AllUserConnection parameter

    PowerShell instead of Commandline in Creators Update

    Interestingly enough my personal laptop just got the update...and still has Command Prompt listed, not PowerShell...

    Edit: Not that it matters...I use both regularly. *Toast :toast:
     
    Kursah, Sep 13, 2018
    #4
Thema:

Powershell: Add-VpnConnectionTriggerDnsConfiguration missing -AllUserConnection parameter

Loading...
  1. Powershell: Add-VpnConnectionTriggerDnsConfiguration missing -AllUserConnection parameter - Similar Threads - Powershell Add VpnConnectionTriggerDnsConfiguration

  2. Add to Favourites - The Parameter is incorrect.

    in Windows 10 Gaming
    Add to Favourites - The Parameter is incorrect.: Right Click > Add to Quick Access - The Parameter is incorrect.Right Click > Add to Favourites - The Parameter is incorrect.This is with any File or Folder, in any location. I can get around the Quick Access problem by simply dragging and dropping the folder into position...
  3. Add to Favourites - The Parameter is incorrect.

    in Windows 10 Software and Apps
    Add to Favourites - The Parameter is incorrect.: Right Click > Add to Quick Access - The Parameter is incorrect.Right Click > Add to Favourites - The Parameter is incorrect.This is with any File or Folder, in any location. I can get around the Quick Access problem by simply dragging and dropping the folder into position...
  4. Powershell docker image, Restart-Computer cmd missing 'ComputerName' parameter

    in Windows 10 Software and Apps
    Powershell docker image, Restart-Computer cmd missing 'ComputerName' parameter: Trying to remotely restart a windows computer with powershell and Restart-Computer command. Powershell is running from a docker container with mcr.microsoft.com/powershell image, and from within the docker container i am running a powerhell script. The script is also tested...
  5. Powershell docker image, Restart-Computer cmd missing 'ComputerName' parameter

    in Windows 10 Gaming
    Powershell docker image, Restart-Computer cmd missing 'ComputerName' parameter: Trying to remotely restart a windows computer with powershell and Restart-Computer command. Powershell is running from a docker container with mcr.microsoft.com/powershell image, and from within the docker container i am running a powerhell script. The script is also tested...
  6. Cannot Remove "AllUserConnection" Profile

    in Windows 10 Network and Sharing
    Cannot Remove "AllUserConnection" Profile: From what I understand, you need to only add "AllUserConnection" VPN Profiles while operating as "nt authority\system". No doing so seems to put the profile in la-la-land. As an elevated user you can get the cim-instance with: $session = New-CimSession $className =...
  7. Powershell with CMD/c to run external command with Parameters

    in Windows 10 Customization
    Powershell with CMD/c to run external command with Parameters: Greeting, I have an old command line application call Commandline.exe. it run with a parameter to check then show the result. but it need extra "Enter" to confirm like: commandline.exe -s 4567890 So I preparing the an answer file which is on an "Enter" crlf...
  8. Powershell/Powershell admin missing

    in Windows 10 BSOD Crashes and Debugging
    Powershell/Powershell admin missing: When finding a solution to remove skype today I came across a post here where the solution was found to use a powershell command. So I went to open it up and found out it was missing. I looked into it and found some other people with a similar problem, and they went to check...
  9. Fix: Cannot run Executables with parameters using PowerShell

    in Windows 10 Tutorials
    Fix: Cannot run Executables with parameters using PowerShell: When running a command in-line PowerShell with parameters usually you would do this like & "ipconfig.exe /all". When you run it like that you will get the error saying that it is not recognized. & : The term 'ipconfig.exe /all' is not recognized as the name of a cmdlet,...
  10. Shortcut won't add to right side (with parameters)!

    in Windows 10 Customization
    Shortcut won't add to right side (with parameters)!: Hi I've found that I can't add a shortcut to the area on the right of the Start menu, designed for adding apps, if it has parameters. e.g. "...\xxxxx.exe" /p I need to add a parameter for this app to run correctly. I added the parameter to the shortcut in the usual way...

Users found this page by searching for:

  1. add-vpnconnectiontriggerdnsconfiguration

    ,
  2. Add-VpnConnectionTrigger

    ,
  3. set-vpnconnectiontriggerdnsconfiguration global system vpn