Get-CMAppVVirtualEnvironment
Gets an App-V virtual environment.
Syntax
Get-CMAppVVirtualEnvironment
[-Name <String>]
[-DisableWildcardHandling]
[-ForceWildcardHandling]
[<CommonParameters>]
Get-CMAppVVirtualEnvironment
-Id <Int32[]>
[-DisableWildcardHandling]
[-ForceWildcardHandling]
[<CommonParameters>]
Description
The Get-CMAppVVirtualEnvironment cmdlet gets one or more Microsoft Application Virtualization (App-V) virtual environment objects from Configuration Manager. You can specify App-V environments by name or ID.
Note
Run Configuration Manager cmdlets from the Configuration Manager site drive, for example PS XYZ:\>
. For more information, see getting started.
Examples
Example 1: Get all virtual environments
PS XYZ:\> Get-CMAppVVirtualEnvironment
This command gets all App-V virtual environments.
Example 2: Get virtual environments by using a wildcard
PS XYZ:\> Get-CMAppVVirtualEnvironment -Name "T*"
This command gets all App-V virtual environments that have names that begin with the letter T.
Example 3: Get virtual environment by an ID
PS XYZ:\> Get-CMAppVVirtualEnvironment -Id "16781806"
This command gets an App-V virtual environment that has the ID 16781806.
Parameters
-DisableWildcardHandling
This parameter treats wildcard characters as literal character values. You can't combine it with ForceWildcardHandling.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ForceWildcardHandling
This parameter processes wildcard characters and may lead to unexpected behavior (not recommended). You can't combine it with DisableWildcardHandling.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Id
Specifies an array of IDs of virtual environments.
Type: | Int32[] |
Aliases: | CIId, CI_ID |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
Specifies an array of names of App-V virtual environment objects. You can use a wildcard.
Type: | String |
Aliases: | LocalizedDisplayName |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | True |
Inputs
None
Outputs
IResultObject[]
IResultObject