Remove-RASEnrollmentServer
NAME
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.
PARAMETERS
-Server <string> The name of the enrollment server to remove from a site.
-SiteId <uint> Site ID from which to remove the enrollment server.
-Id <uint> The ID of the enrollment server. To obtain the ID, use the Get-RASEnrollmentServer server cmdlet.
-NoUninstall <SwitchParameter> 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 <string> 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 <SecureString> The password of the account specified in the Username parameter.
-InputObject <EnrollmentServer> The enrollment server to remove from a site. To obtain an object of type enrollment server, use the Get-RASEnrollment Server cmdlet.
<CommonParameters>
INPUTS
OUTPUTS
-none-
EXAMPLES
---------- EXAMPLE 1 ---------- Remove-RASEnrollmentServer -Id 10 Removes an Enrollment server by specifying its ID
Last updated