description | external help file | Module Name | ms.date | online version | schema | title |
---|---|---|---|---|---|---|
Use this topic to help manage Windows and Windows Server technologies with Windows PowerShell. |
AppVClientCmdlets-help.xml |
AppvClient |
12/20/2016 |
2.0.0 |
Start-AppvVirtualProcess |
Starts a virtual process.
Start-AppvVirtualProcess [-FilePath] <String> [[-ArgumentList] <String[]>] [-Credential <PSCredential>]
[-WorkingDirectory <String>] [-LoadUserProfile] [-NoNewWindow] [-PassThru] [-RedirectStandardError <String>]
[-RedirectStandardInput <String>] [-RedirectStandardOutput <String>] [-Wait] [-UseNewEnvironment]
-AppvClientObject <Object> [<CommonParameters>]
Start-AppvVirtualProcess [-FilePath] <String> [[-ArgumentList] <String[]>] [-WorkingDirectory <String>]
[-PassThru] [-Verb <String>] [-Wait] [-WindowStyle <ProcessWindowStyle>] -AppvClientObject <Object>
[<CommonParameters>]
The Start-AppvVirtualProcess cmdlet starts a new virtual process.
PS C:\> $AppVObj = Get-AppvClientPackage -Name "MyPackage"
PS C:\> Start-AppvVirtualProcess -FilePath "C:\Calc.exe" -AppvClientObject $AppVObj
The first command gets the client package named MyPackage by using the Get-AppvClientPackage cmdlet. The command stores the result in the $AppVObj variable.
The second command starts a new virtual process for Calc.exe in virtual environment of in $AppVObj.
PS C:\> $AppVObj = Get-AppvClientConnectionGroup -Name MyConnectionGroup
PS C:\> Start-AppvVirtualProcess -FilePath "C:\Calc.exe" -AppvClientObject $AppVObj
The first command gets the client package named MyPackage by using the Get-AppvClientConnectionGroup cmdlet. The command stores the result in the $AppVObj variable.
The second command starts a new virtual process for Calc.exe in the virtual environment of in $AppVObj.
Specifies an AppvClientPackage or AppvClientConnectionGroup object.
Type: Object
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies the arguments to be passed into the virtual process.
Type: String[]
Parameter Sets: (All)
Aliases: Args
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies the credential to start this process.
Type: PSCredential
Parameter Sets: Default
Aliases: RunAs
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies a file path.
Type: String
Parameter Sets: (All)
Aliases: PSPath
Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Indicates that the cmdlet loads a user profile for use with the process.
Type: SwitchParameter
Parameter Sets: Default
Aliases: Lup
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Indicates that the cmdlet attempts to keep the process in the same window instead of opening a new window.
Type: SwitchParameter
Parameter Sets: Default
Aliases: nnw
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Redirects the stderr to the file specified.
Type: String
Parameter Sets: Default
Aliases: RSE
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Takes the stdinput from the file specified.
Type: String
Parameter Sets: Default
Aliases: RSI
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Redirects the stdout to the file specified.
Type: String
Parameter Sets: Default
Aliases: RSO
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Indicates that this cmdlet uses a new environment for the process.
Type: SwitchParameter
Parameter Sets: Default
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies a verb for the process.
Type: String
Parameter Sets: UseShellExecute
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Indicates that the cmdlet uses synchronous operation of the virtual process. The cmdlet waits to exit until the virtual process exits.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies what to do without a Process Window Style. The acceptable values for this parameter 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: UseShellExecute
Aliases:
Accepted values: Normal, Hidden, Minimized, Maximized
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies working directory of the process.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.