Invoke-RASVDIProcessCmd
NAME
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.
PARAMETERS
-VDIServer <string> 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 <uint> Site ID from which to retrieve the server.
If the parameter is omitted, the Licensing Server site ID will be used.
-ProviderId <uint> The ID of a Provider hosting the Session.
To obtain the ID, use the Get-RASProvider cmdlet.
-VDIHostId <string> VDI Host ID.
To obtain the VDIHostID, use the Get-RASVDIHost command.
-Id <uint> Process ID.
To obtain the VDI Process ID, use the Get-RASProviderStatus command with StatusLevel as Level3.
-InputObject <VDIServerAppInfo> 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."
-Command <VDIProcessCmd> Process command.
Accepted values: Kill.
Possible values: Kill
<CommonParameters>
INPUTS
OUTPUTS
-none-
EXAMPLES
---------- EXAMPLE 1 ----------
Invoke-RASVDIProcessCmd "server.company.dom" -VDIDesktopId 42311235-09c5-ca15-337d-b9723015edf0 -Id 2536 -Command Kill
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-RASVDIProcessCmd -ProviderId 10 -VDIDesktopId 42311235-09c5-ca15-337d-b9723015edf0 -Id 2536 -Command Kill
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 ----------
$VDISessionApp | Invoke-RASVDIProcessCmd -Command Kill
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.
RELATED LINKS
Last updated