New-DSVirtualGateway
Synopsis
Syntax
__AllParameterSets
New-DSVirtualGateway [-LinkedGatewayID] <guid> [-Name] <string> [[-Description] <string>]
[[-Rule] <PSGatewayAccessRule[]>] [-IsDefault] [<CommonParameters>]Description
Examples
Example 1
PS C:\> $rules = @(
New-DSVirtualGatewayAccessRule -Access Deny -Type IP -Value '1.2.3.4'
New-DSVirtualGatewayAccessRule -Access Deny -Type DNS 'a.com'
)
PS C:\> $gatewayId = Get-DSGateway -Name 'GatewayA' | Select-Object -ExpandProperty ID
PS C:\> New-DSVirtualGateway -LinkedGatewayID $gatewayId -Name 'My virtual gateway' -Description 'A little description' -Rule $rulesParameters
-Description
-IsDefault
-LinkedGatewayID
-Name
-Rule
CommonParameters
Notes
Last updated
Was this helpful?