Export (0) Print
Expand All
Expand Minimize

New-CMAppVVirtualEnvironment

Updated: September 1, 2013

Applies To: System Center 2012 Configuration Manager SP1

New-CMAppVVirtualEnvironment

Creates an App-V virtual environment.

Syntax

Parameter Set: New
New-CMAppVVirtualEnvironment -ApplicationGroup <VirtualEnvironmentGroup[]> -Name <String> [-Description <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]




Detailed Description

The New-CMAppVVirtualEnvironment cmdlet creates an Microsoft Application Virtualization (App-V) virtual environment in Microsoft System Center 2012 Configuration Manager. Microsoft Application Virtualization (App-V) virtual environments in System Center 2012 Configuration Manager enable deployed virtual applications to share the same file system and registry on client computers.

Parameters

-ApplicationGroup<VirtualEnvironmentGroup[]>

Specifies an array of application groups to add to the App-V virtual environment. To obtain an application group, use the New-CMVirtualEnvironmentGroup cmdlet.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Description<String>

Specifies a description for the App-V virtual environment.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Name<String>

Specifies a name for the App-V virtual environment.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Confirm

Prompts you for confirmation before executing the command.


Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WhatIf

Describes what would happen if you executed the command without actually executing the command.


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.

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 an App-V virtual environment

This example creates an App-V virtual environment in Configuration Manager.

This first command uses the Get-CMAppV5XDeploymentTypeItem cmdlet gets the deployment type named 7Zip - Microsoft Application Virtualization 5 in the application named App01d2012. The command stores the result in the $Dti variable.

This second command creates an application group named Venvgroup01 for the deployment type stored in $Dti. The command stores the result in the $Veg variable.

This third command creates an App-V virtual environment named CMAppVenv01 for the application group stored in $Veg.


PS C:\> $Dti = Get-CMAppV5XDeploymentTypeItem -ApplicationName "App01d2012" -DeploymentTypeName "7Zip - Microsoft Application Virtualization 5"
PS C:\> $Veg = New-CMVirtualEnvironmentGroup -Name "Venvgroup01" -DeploymentType $Dti
PS C:\> New-CMAppVVirtualEnvironment -Name "CMAppVenv01" -Description "App-V virtual environment" -ApplicationGroup $Veg

Related topics

 
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft