New-CMVirtualEnvironmentGroup

New-CMVirtualEnvironmentGroup

Creates a virtual environment group.

Syntax

Parameter Set: New
New-CMVirtualEnvironmentGroup -DeploymentType <DeploymentTypeItem[]> -Name <String> [-Confirm] [-WhatIf] [ <CommonParameters>]

Detailed Description

The New-CMVirtualEnvironmentGroup cmdlet creates a virtual environment group that specifies deployment type items.

A virtual environment allows two or more Microsoft Application Virtualization (App-V) deployment types to share the same file system and registry on client computers. When multiple virtual applications modify the same file system or registry values on a client computer, the application with the highest order takes precedence. When an application is installed or when a client evaluates installed applications, the virtual environment is added or modified on client computers.

Parameters

-DeploymentType<DeploymentTypeItem[]>

Specifies an array of deployment type items.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Name<String>

Specifies a name for the virtual environment group.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Confirm

Prompts you for confirmation before running the cmdlet.

Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

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: Create a virtual environment group

This command creates a virtual environment group named Office Remote Apps for the deployment type Office_Standard.

PS C:\> New-CMVirtualEnvironmentGroup -DeploymentType "Office_Standard" -Name "Office Remote Apps""