Update-RASAgent
Updates one or more RAS Agents.
Update-RASAgent [-InputObject] <RASAgentInfo[]> [<CommonParameters>] Update-RASAgent [-InputObject] <RASAgentInfo[]> -Password <SecureString> -Username <string> [<CommonParameters>] Update-RASAgent [-Server] <string> [[-SiteId] <uint>] [-Force <SwitchParameter>] [<CommonParameters>] Update-RASAgent [-Server] <string> [[-SiteId] <uint>] -Password <SecureString> -Username <string> [-Force <SwitchParameter>] [<CommonParameters>]
Updates one or more RAS Agents.
-Server <string> The name of the RAS agent server. The name can be either FQDN or IP address, but you have to enter the actual name this server has in the RAS farm.
-SiteId <uint> Site ID in which to modify the specified server. If the parameter is omitted, the site ID of the Licensing Server will be used.
-Force <SwitchParameter> When 'Force' is passed, only the known info will be used and force the operation. If the parameter is omitted, the RAS Agent info is retrieved with the supplied info.
-Username <string> An administrator account to remotely perform operation on the RAS 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 <RASAgentInfo[]> The RAS agent info. To obtain an RASAgentInfo object representing an RAS agent info list, use the Get-RASAgent command."
<CommonParameters>
-none-
---------- EXAMPLE 1 ---------- Update-RASAgent "server.company.dom" Updates the specified RAS Agent. The RAS agent will be remotely updated using your RAS admin credentials. ---------- EXAMPLE 2 ---------- Update-RASAgent "server.company.dom" -Username "myname" -Password $pass Updates the specified RAS Agent. The RAS agent will be remotely updated using the specified credentials. ---------- EXAMPLE 3 ---------- Get-RASAgent "server.company.dom" | Update-RASAgent Updates the RAS agent represented by the object obtained from the pipeline output.