Invoke-RASRDSHostProcessCmd
Sends an RDS Process command.
Invoke-RASRDSHostProcessCmd [-InputObject] <ServerAppInfo> -Command {Kill} [<CommonParameters>]
Invoke-RASRDSHostProcessCmd [-RDSId] <uint> -Command {Kill} -Id <uint> [<CommonParameters>]
Invoke-RASRDSHostProcessCmd [-RDSServer] <string> [[-SiteId] <uint>] -Command {Kill} -Id <uint> [<CommonParameters>]
Sends an RDS session process command.
It will only fail with an error if the name or ID of the target RD Session Host server is invalid or command does not reach the destination.
If the process ID is invalid, the command will not fail.
Kill: sends an RDS kill process command.
-RDSServer <string> The name of a RD Session Host 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.
If the parameter is omitted, the Licensing Server site ID will be used.
-RDSId <uint> The ID of a RD Session Host server.
To obtain the ID, use the Get-RDS cmdlet.
-Id <uint> Process ID.
To obtain the RDS Process ID, use the Get-RDSStatus command with StatusLevel as Level3.
-InputObject <ServerAppInfo> The RDS Server Application info object.
To obtain an ServerAppInfo object representing a RD Session application info, use the Get-RDSStatus command with StatusLevel as Level 3."
-Command <RDSProcessCmd> Process command.
Accepted values: Kill.
Possible values: Kill
<CommonParameters>
-none-
---------- EXAMPLE 1 ----------
Invoke-RASRDSHostProcessCmd "server.company.dom" -Id 2536 -Command Kill
Invoke the RDS kill process command in the Licensing Server site (default) for the process with ID '2536'.
To obtain the Process ID, use the Get-RASRDSHostStatus cmdlet with StatusLevel as Level3. ---------- EXAMPLE 2 ----------
Invoke-RASRDSHostProcessCmd -RDSId 10 -Id 2536 -Command Kill
Invoke the RDS kill process command for the process with ID '2536' of the RDS Server with ID '10'.
To obtain the ID, use the Get-RASRDSHost cmdlet.
To obtain the process ID, use the Get-RASRDSHostStatus cmdlet with StatusLevel as Level3. ---------- EXAMPLE 3 ----------
$RDPSessionApp | Invoke-RASRDSHostProcessCmd -Command Kill
Invoke the RDS kill process command for the process, which is identified by an object obtained from the pipeline output.
To obtain the $RDPSessionApp object, use the Get-RASRDSHostStatus cmdlet with StatusLevel as Level3.