Start-AppvVirtualProcess

Starts a virtual process.

Syntax

Start-AppvVirtualProcess
     [-FilePath] <String>
     [[-ArgumentList] <String[]>]
     -AppvClientObject <Object>
     [-Credential <PSCredential>]
     [-LoadUserProfile]
     [-NoNewWindow]
     [-PassThru]
     [-RedirectStandardError <String>]
     [-RedirectStandardInput <String>]
     [-RedirectStandardOutput <String>]
     [-UseNewEnvironment]
     [-Wait]
     [-WorkingDirectory <String>]
     [<CommonParameters>]
Start-AppvVirtualProcess
     [-FilePath] <String>
     [[-ArgumentList] <String[]>]
     -AppvClientObject <Object>
     [-PassThru]
     [-Verb <String>]
     [-Wait]
     [-WindowStyle <ProcessWindowStyle>]
     [-WorkingDirectory <String>]
     [<CommonParameters>]

Description

The Start-AppvVirtualProcess cmdlet starts a new virtual process.

Examples

Example 1: Start a virtual process in a virtual environment of a package

PS C:\>$AppVObj = Get-AppvClientPackage -Name "MyPackage" 
PS C:\> Start-AppvVirtualProcess -FilePath "C:\Calc.exe" -AppvClientObject $AppVObj

This example starts a new virtual process for Calc.exe in virtual environment of MyPackage.

Example 2: Start a virtual process in a virtual environment of a connection group

PS C:\>$AppVObj = Get-AppvClientConnectionGroup -Name MyConnectionGroup
PS C:\> Start-AppvVirtualProcess -FilePath "C:\Calc.exe" -AppvClientObject $AppVObj

This example starts a new virtual process for Calc.exe in the virtual environment of MyConnectionGroup.

Required Parameters

-AppvClientObject

Specifies an AppvClientPackage or AppvClientConnectionGroup object.

Type:Object
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-FilePath
Type:String
Aliases:PSPath
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-ArgumentList

Specifies the arguments to be passed into the virtual process.

Type:String[]
Aliases:Args
Position:1
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Credential

Specifies the credential to start this process.

Type:PSCredential
Aliases:RunAs
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-LoadUserProfile
Type:SwitchParameter
Aliases:Lup
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-NoNewWindow

Indicates that the cmdlet attempts to keep the process in the same window instead of opening a new window.

Type:SwitchParameter
Aliases:nnw
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PassThru
Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RedirectStandardError

Redirects the stderr to the file specified.

Type:String
Aliases:RSE
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RedirectStandardInput

Takes the stdinput from the file specified.

Type:String
Aliases:RSI
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RedirectStandardOutput

Redirects the stdout to the file specified.

Type:String
Aliases:RSO
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-UseNewEnvironment
Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Verb
Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Wait

Indicates that the cmdlet uses synchronous operation of the virtual process. The cmdlet waits to exit until the virtual process exits.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-WindowStyle

Specifies what to do in the absence of a Process Window Style. Valid values are:

  • Normal. Display the normal window.
  • Hidden. Launch a hidden window.
  • Minimized. Launch a minimized window.
  • Maximized. Launch a maximized window.

The default value is Normal.

Type:ProcessWindowStyle
Parameter Sets:Normal, Hidden, Minimized, Maximized
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-WorkingDirectory

Specifies working directory of the process.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False