Install-WssVpnServer

Install-WssVpnServer

Installs a VPN server.

Syntax

Parameter Set: auto
Install-WssVpnServer [-ApplyToExistingUsers] [-AutoDetect] [-DenyAccessByDefault] [-NoSkip] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: dhcp
Install-WssVpnServer [-ApplyToExistingUsers] [-DenyAccessByDefault] [-NoSkip] [-UseDhcp] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: pool
Install-WssVpnServer [[-IPv4AddressRange] <IPAddress[]> ] [[-IPv6AddressPrefix] <IPAddress> ] [-ApplyToExistingUsers] [-DenyAccessByDefault] [-NoSkip] [-Confirm] [-WhatIf] [ <CommonParameters>]

Detailed Description

The Install-WssVpnServer cmdlet installs a VPN server on .

Parameters

-ApplyToExistingUsers

Indicates that access is granted to existing users.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-AutoDetect

Indicates that the VPN server automatically detect best-fit settings, regardless of previous settings.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-DenyAccessByDefault

Indicates that the VPN server deny access by default.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-IPv4AddressRange<IPAddress[]>

Specifies an array of IPv4 addresses for the static IP address pool.

Aliases

none

Required?

false

Position?

1

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-IPv6AddressPrefix<IPAddress>

Specifies the prefix of IPv6 addresses for the static IP address pool.

Aliases

none

Required?

false

Position?

2

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-NoSkip

Indicates that the VPN server installation runs, even if there are no changes to the previous installation.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-UseDhcp

Indicates that DHCP assigns IP addresses to VPN clients.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Confirm

Prompts you for confirmation before running the cmdlet.

Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

Example 1: Install a VPN server

This command installs a VPN server.

PS C:\> Install-WssVpnServer -AutoDetect 

Test-WssVpnServerInstallation

Uninstall-WssVpnServer