New-RASGateway
SYNOPSIS
Adds a RAS Secure Gateway server to a site.
SYNTAX
New-RASGateway [-Server] <string> [[-SiteId] <uint>] [-EnableUserPortal <bool>]
[-NoFireWallRules <SwitchParameter>] [-NoInstall <SwitchParameter>] [-NoRestart <SwitchParameter>]
[<CommonParameters>]New-RASGateway [-Server] <string> [[-SiteId] <uint>] -Password <SecureString> -Username <string>
[-EnableUserPortal <bool>] [-NoFireWallRules <SwitchParameter>] [-NoRestart <SwitchParameter>]
[<CommonParameters>]DESCRIPTION
Adds a RAS Secure Gateway server to a site.
By default, the cmdlet will install the necessary RAS Secure Gateway software on the server.
If the software is already installed, you can skip the installation by including the -NoInstall parameter.
EXAMPLES
Example 1
Adds the specified RAS Secure Gateway server to the Licensing Server site (default).
The Gateway software will be push installed on the server by default using your RAS admin credentials (default).
Example 2
Adds the specified RAS Secure Gateway server to the Licensing Server site (default).
The Gateway software will be installed on the server by default.
-Username and -Password parameters specify credentials to log in to the server to push install the Gateway software.
You only need to specify credentials if you cannot log in to the target server using your RAS admin credentials (see example above).
Example 3
Adds a RAS Secure Gateway server specified by FQDN to the specified site.
The -SiteId parameter specifies the site ID. To obtain the ID of a desired site, use the Get-RASSites cmdlet.
The -NoInstall parameter specifies not to install the Gateway software on the server (assuming it's already installed).
PARAMETERS
-Server
FQDN or IP address of the server to be added to a site as a RAS Secure Gateway.
-SiteId
The site ID to which the Secure Gateway should be added.
To obtain the ID of a desired site, use the appropriate command to Get Sites.
If the parameter is omitted, the site ID of the Licensing Server will be used.
-Username
An administrator account to push install the Secure Gateway software on the target server.
If this parameter is omitted, your RAS admin username (and password) will be used.
-Password
The password of the account specified in the Username parameter.
-NoInstall
If this parameter is included, the Secure Gateway software will not be installed on the target server.
The parameter should only be included if the server already has the software installed.
If you need to install the software, omit this parameter.
When installing the Gateway software, your RAS admin credentials will be used to push install the software. These are the credentials you used to connect to the RAS farm.
If needed, you can specify different credentials using the Username and Password parameters.
-NoRestart
Specifies not to restart the server after the RAS Secure Gateway is installed.
If this parameter is omitted, the server will be restarted if required.
-NoFireWallRules
Specifies not to add firewall rules to allow the RDS Agent to communicate.
If this parameter is omitted, the firewall rules will not be added.
-EnableUserPortal
Enable or disable User Portal connectivity on the Secure Gateway.
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS
None
OUTPUTS
Gateway
RELATED LINKS
Last updated