Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Invoke-RASVDIProcessCmd

SYNOPSIS

Sends a VDI Process command.

SYNTAX

Invoke-RASVDIProcessCmd [-InputObject] <VDIServerAppInfo> -Command {Kill} [<CommonParameters>]
Invoke-RASVDIProcessCmd [-ProviderId] <uint> -Command {Kill} -Id <uint> -VDIHostId <string>
 [<CommonParameters>]
Invoke-RASVDIProcessCmd [-VDIServer] <string> [[-SiteId] <uint>] -Command {Kill} -Id <uint>
 -VDIHostId <string> [<CommonParameters>]

DESCRIPTION

Sends a VDI session process command.

It will only fail with an error if the name or ID of the target VDIDesktop Provider server is invalid or command does not reach the destination.

If the process ID is invalid, the command will not fail.

Kill: sends a VDI kill application process command.

EXAMPLES

Example 1

Invoke the VDI kill process command in the Licensing Server site (default) for the process with ID '2536'.

To obtain the Desktop ID, use the Get-RASVDIDesktop cmdlet.

To obtain the Process ID, use the Get-RASProviderStatus cmdlet with StatusLevel as Level3.

Example 2

Invoke the VDI kill process command for the process with ID '2536' of the Provider Server with ID '10'.

To obtain the ProviderId, use the Get-RASProvider cmdlet.

To obtain the Desktop ID, use the Get-RASVDIDesktop cmdlet.

To obtain the process ID, use the Get-RASProviderStatus cmdlet with StatusLevel as Level3.

Example 3

Invoke the VDI kill process command for the process, which is identified by an object obtained from the pipeline output.

To obtain the $VDISessionApp object, use the Get-RASProviderStatus cmdlet with StatusLevel as Level3.

PARAMETERS

-VDIServer

The name of the Provider hosting the Session.

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 from which to retrieve the server.

If the parameter is omitted, the Licensing Server site ID will be used.

-ProviderId

The ID of a Provider hosting the Session.

To obtain the ID, use the Get-RASProvider cmdlet.

-VDIHostId

VDI Host ID.

To obtain the VDIHostID, use the Get-RASVDIHost command.

-Id

Process ID.

To obtain the VDI Process ID, use the Get-RASProviderStatus command with StatusLevel as Level3.

-InputObject

The VDIDesktop Application info object.

To obtain a ServerAppInfo object representing a VDI Session application info, use the Get-RASProviderStatus command with StatusLevel as Level 3."

Type reference: VDIServerAppInfo

-Command

Process command.

Accepted values: Kill.

Possible values: Kill

Type reference: VDIProcessCmd

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

VDIServerAppInfo

OUTPUTS

None

Last updated