Get-CMAppVVirtualEnvironment

Get-CMAppVVirtualEnvironment

Gets an App-V virtual environment.

Syntax

Parameter Set: SearchByName
Get-CMAppVVirtualEnvironment [-Name <String[]> ] [-SecuredScopeNames <String> ] [ <CommonParameters>]

Parameter Set: SearchByIdMandatory
Get-CMAppVVirtualEnvironment -Id <String[]> [-SecuredScopeNames <String> ] [ <CommonParameters>]

Detailed Description

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

Parameters

-Id<String[]>

Specifies an array of IDs of virtual environments.

Aliases

CIId

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Name<String[]>

Specifies an array of names of App-V virtual environment objects. You can use a wildcard.

Aliases

LocalizedDisplayName

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-SecuredScopeNames<String>

Specifies the name of security scopes. A security scope can be Default or the name of a custom-created security scope.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

Example 1: Get all virtual environments

This command gets all App-V virtual environments.

PS C:\> Get-CMAppVVirtualEnvironment

Example 2: Get virtual environments by using a wildcard

This command gets all App-V virtual environments that have names that begin with the letter T.

PS C:\> Get-CMAppVVirtualEnvironment -Name "T*"

Example 3: Get virtual environment by an ID

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

PS C:\> Get-CMAppVVirtualEnvironment -ID "16781806"

Remove-CMAppVVirtualEnvironment