New-RDS

NAME

New-RDS

SYNOPSIS

Adds an RD Session Host server to a site.

SYNTAX

New-RDS [-Server] <string> [[-SiteId] <uint>] [-NoInstall <SwitchParameter>] [-NoRestart <SwitchParameter>] [<CommonParameters>]

New-RDS [-Server] <string> [[-SiteId] <uint>] -Password <SecureString> -Username <string> [-NoRestart <SwitchParameter>] [<CommonParameters>]

DESCRIPTION

The New-RDS cmdlet is used to add an RD Session Host server to a site.

The RD Session Host agent will be installed on the server by default. You can optionally skip the agent installation by including the -NoInstall parameter.

PARAMETERS


-Server <string>
An RD Session Host server FQDN or IP address.

        Required?                    true
        Position?                    0
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

-SiteId <uint>
The site ID to which to add the specified server.

If the parameter is omitted, the Licensing Server site ID will be used.

        Required?                    false
        Position?                    1
        Default value                0
        Accept pipeline input?       false
        Accept wildcard characters?  false

-NoInstall <SwitchParameter>
Specifies NOT to install the RD Session Host agent on the server.

If this parameter is omitted, the agent will be push installed on the server using your RAS admin credentials.

To specify different credentials for push installation, specify -Username and -Password parameters.

        Required?                    false
        Position?                    named
        Default value                False
        Accept pipeline input?       false
        Accept wildcard characters?  false

-Username <string>
An administrator account for push installing the RD Session Host agent on the server.

If this parameter is omitted, your RAS admin username (and password) will be used.

        Required?                    true
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

-Password <SecureString>
The password of the account specified in the -Username parameter.

        Required?                    true
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

-NoRestart <SwitchParameter>
Specifies NOT to restart the server after the RD Session Host agent is installed.

If this parameter is omitted, the server will be restarted if required.

        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, WarningAction, WarningVariable,
        OutBuffer, PipelineVariable, and OutVariable. For more information, see 
        about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216). 

INPUTS



OUTPUTS

PSAdmin.RDS

EXAMPLES


---------- EXAMPLE 1 ----------

New-RDS "server.company.dom"

Adds the specified RD Sessions Host server to the Licensing Server site (default).

The RD Session Host agent will be installed on the server using your RAS admin credentials (default).

---------- EXAMPLE 2 ----------

New-RDS -Server "server.company.dom" -SiteId 2 -Username "myname" -Password $pass

Adds the specified RD Session Host server to the specified site.

The -Username and -Password parameters specify credentials, which will be used to push install the RD Session Host agent on the server.

---------- EXAMPLE 3 ----------

New-RDS "server.company.dom" -NoInstall

Adds the specified RD Session Host server to the Licensing Server site (default).

The RD Session Host agent will NOT be installed on the server.

You can skip the agent installation if it's already installed on the server.

RELATED LINKS

Parallels RAS v16.2