Invoke-RASRDSHostProcessCmd
SYNOPSIS
Sends an RDS Process command.
SYNTAX
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>]DESCRIPTION
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.
EXAMPLES
Example 1
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 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
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.
PARAMETERS
-RDSServer
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
Site ID.
If the parameter is omitted, the Licensing Server site ID will be used.
-RDSId
The ID of a RD Session Host server.
To obtain the ID, use the Get-RASRDSHost cmdlet.
-Id
Process ID.
To obtain the RDS Process ID, use the Get-RASRDSHostStatus command with StatusLevel as Level3.
-InputObject
The RDS Server Application info object.
To obtain an ServerAppInfo object representing a RD Session application info, use the Get-RASRDSHostStatus command with StatusLevel as Level 3."
Type reference: ServerAppInfo
-Command
Process command.
Accepted values: Kill.
Possible values: Kill
Type reference: RDSProcessCmd
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
ServerAppInfo
OUTPUTS
None
RELATED LINKS
Last updated