New-CMVirtualEnvironmentGroup

Creates a virtual environment group.

Syntax

New-CMVirtualEnvironmentGroup
   [-Confirm]
   -DeploymentTypeItem <DeploymentTypeItem[]>
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   -Name <String>
   [-WhatIf]
   [<CommonParameters>]
New-CMVirtualEnvironmentGroup [-Confirm] [-DisableWildcardHandling] [-ForceWildcardHandling]
 -InputObject  -Name  [-WhatIf] []

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 on client computers is added or modified.

Examples

Example 1: Create a virtual environment group

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

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

Required Parameters

-DeploymentTypeItem
Type:DeploymentTypeItem[]
Aliases:DeploymentType
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InputObject

Specifies the input to this cmdlet. You can use this parameter, or you can pipe the input to this cmdlet.

Type:IResultObject[]
Required:True
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-Name

Specifies a name for the virtual environment group.

Type:String
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-DisableWildcardHandling

Indicates that wildcard handling is disabled.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ForceWildcardHandling

Indicates that wildcard handling is enabled.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-WhatIf

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

Type:SwitchParameter
Aliases:wi
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False