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 Porvider 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.

        Required?                    true
        Position?                    0
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

- SiteId <uint>
Site ID from which to retrieve the server.

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

        Required?                    false
        Position?                    1
        Default value                0
        Accept pipeline input?       false
        Accept wildcard characters?  false

- ProviderId <uint>
The ID of a Provider hosting the Session.

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

        Required?                    true
        Position?                    0
        Default value                0
        Accept pipeline input?       false
        Accept wildcard characters?  false

- VDIHostId <string>
VDI Host ID.

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

        Required?                    true
        Position?                    named
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

- Id <uint>
Process ID.

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

        Required?                    true
        Position?                    named
        Default value                0
        Accept pipeline input?       false
        Accept wildcard characters?  false

- 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."

        Required?                    true
        Position?                    0
        Default value                
        Accept pipeline input?       true (ByValue)
        Accept wildcard characters?  false

- Command < VDIProcessCmd >
Process command.

Accepted values: Kill.

Possible values: Kill

        Required?                    true
        Position?                    named
        Default value                0
        Accept pipeline input?       false
        Accept wildcard characters?  false

< CommonParameters >
        This cmdlet supports the common parameters: Verbose, Debug,
        ErrorAction, ErrorVariable, WarningAction, WarningVariable,
        OutBuffer, PipelineVariable, and OutVariable. For more information, see 
        about_CommonParameters documentation. 

INPUTS

VDIServerAppInfo

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