Get-CMAppVVirtualEnvironment

Gets an App-V virtual environment.

Syntax

Get-CMAppVVirtualEnvironment
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   -Id <Int32[]>
   [<CommonParameters>]
Get-CMAppVVirtualEnvironment [-DisableWildcardHandling] [-ForceWildcardHandling] [-Name ]
 []

Description

The Get-CMAppVVirtualEnvironment cmdlet gets one or more Microsoft Application Virtualization (App-V) virtual environment objects from Microsoft System Center Configuration Manager. You can specify App-V environments by name or ID.

Examples

Example 1: Get all virtual environments

PS C:\> Get-CMAppVVirtualEnvironment

This command gets all App-V virtual environments.

Example 2: Get virtual environments by using a wildcard

PS C:\> 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 C:\> Get-CMAppVVirtualEnvironment -Id "16781806"

This command gets an App-V virtual environment that has the ID 16781806.

Required Parameters

-Id

Specifies an array of IDs of virtual environments.

Type:Int32[]
Aliases:CIId, CI_ID
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-DisableWildcardHandling
Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ForceWildcardHandling
Type:SwitchParameter
Required:False
Position:Named
Default value:None
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
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False