For the complete documentation index, see llms.txt. This page is also available as Markdown.

Remove-RASEnrollmentServer

SYNOPSIS

Removes an Enrollment server specified by its ID.

SYNTAX

Remove-RASEnrollmentServer [-Id] <uint> [-NoUninstall <SwitchParameter>] [<CommonParameters>]
Remove-RASEnrollmentServer -Password <SecureString> -Username <string> [<CommonParameters>]
Remove-RASEnrollmentServer [-InputObject] <EnrollmentServer> [-NoUninstall <SwitchParameter>]
 [<CommonParameters>]
Remove-RASEnrollmentServer -Password <SecureString> -Username <string> [<CommonParameters>]
Remove-RASEnrollmentServer [-Server] <string> [[-SiteId] <uint>] [-NoUninstall <SwitchParameter>]
 [<CommonParameters>]
Remove-RASEnrollmentServer -Password <SecureString> -Username <string> [<CommonParameters>]

DESCRIPTION

To remove an Enrollment server from a specific site, specify the -SiteId parameter.

EXAMPLES

Example 1

Removes an Enrollment server by specifying its ID

PARAMETERS

-Server

The name of the enrollment server to remove from a site.

-SiteId

Site ID from which to remove the enrollment server.

-Id

The ID of the enrollment server.

To obtain the ID, use the Get-RASEnrollmentServer server cmdlet.

-NoUninstall

If this parameter is included, the RD Session Host agent will not be uninstalled from the server.

To uninstall the agent, omit this parameter.

When uninstalling the agent, your RAS admin credentials will be used by default.

You can specify different credentials if needed using the Username and Password parameters.

-Username

An administrator account to remotely uninstall the RD Session Host agent from the server.

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

-Password

The password of the account specified in the Username parameter.

-InputObject

The enrollment server to remove from a site.

To obtain an object of type enrollment server, use the Get-RASEnrollment Server cmdlet.

Type reference: EnrollmentServer

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

EnrollmentServer

OUTPUTS

None

Last updated