New-RASEnrollmentServer
Creates a new Enrollment server.
New-RASEnrollmentServer [-Server] <string> [[-SiteId] <uint>] [-Description <string>] [-Enabled <bool>] [-NoFireWallRules <SwitchParameter>] [-NoInstall <SwitchParameter>] [<CommonParameters>]
New-RASEnrollmentServer [-Server] <string> [[-SiteId] <uint>] -Password <SecureString> -Username <string> [-Description <string>] [-Enabled <bool>] [-NoFireWallRules <SwitchParameter>] [<CommonParameters>]
To create an Enrollment server from a specific site, specify the -SiteId parameter.
-Server <string> The name of the target enrollment server.
This must be the actual enrollment server name used in the RAS farm.
-SiteId <uint> Site ID in which to create the specified enrollment server.
If the parameter is omitted, the site ID of the Licensing Server will be used.
-Enabled <bool> Enable or disable the enrollment server upon creation.
If the parameter is omitted, the enrollment server is initialised as disabled.
-Description <string> The enrollment server description.
-Username <string> An administrator account for remote installing the enrollment agent on the server.
If this parameter is omitted, the user's RAS admin username and password will be used.
-Password <SecureString> Password of the account specified in the username parameter.
-NoInstall <SwitchParameter> Specifies not to install enrollment agent on the server.
If this parameter is omitted, the enrollment server will be push installed on the server using the user's RAS admin credentials.
To specify different credentials, include the username and password parameters.
-NoFireWallRules <SwitchParameter> If this parameter is omitted, the firewall rules will be added.
<CommonParameters>
-none-
---------- EXAMPLE 1 ----------
New-RASEnrollmentServer -Id 2 -Server "MyServer"
Creates a new Enrollment server with the specified name.