Set-CMAppVVirtualEnvironment

Changes settings for virtual applications that you have deployed by using Configuration Manager.

Syntax

Set-CMAppVVirtualEnvironment
   [-Id] <Int32[]>
   [-AddApplicationGroup <VirtualEnvironmentGroup[]>]
   [-Confirm]
   [-Description <String>]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-NewName <String>]
   [-PassThru]
   [-RemoveApplicationGroup <VirtualEnvironmentGroup[]>]
   [-WhatIf]
   [<CommonParameters>]
Set-CMAppVVirtualEnvironment [-InputObject]  [-AddApplicationGroup ]
 [-Confirm] [-Description ] [-DisableWildcardHandling] [-ForceWildcardHandling] [-NewName ]
 [-PassThru] [-RemoveApplicationGroup ] [-WhatIf] []
Set-CMAppVVirtualEnvironment [-Name]  [-AddApplicationGroup ] [-Confirm]
 [-Description ] [-DisableWildcardHandling] [-ForceWildcardHandling] [-NewName ] [-PassThru]
 [-RemoveApplicationGroup ] [-WhatIf] []

Description

The Set-CMAppVVirtualEnvironment cmdlet changes settings for 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: Change virtual environment settings by using a name

PS C:\> Set-CMAppVVirtualEnvironment -Name "VMWin03" -SecurityScopeAction RemoveMembership -SecurityScopeName "ClientSecGroup01"

This command removes the virtual environment named VMWin03 from the security scope named ClientSecGroup01.

Required Parameters

-Id

Specifies an array of IDs of virtual environments.

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

Specifies a virtual environment object for Configuration Manager. To obtain a virtual environment object, use the Get-CMAppVVirtualEnvironment cmdlet.

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

Specifies an array of names of virtual environments.

Type:String
Aliases:LocalizedDisplayName
Required:True
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-AddApplicationGroup

Specifies an array of application groups to add. Application groups contain multiple App-V deployment types that run in the same environment.

Type:VirtualEnvironmentGroup[]
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-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
-Description

Specifies a description for the App-V virtual environment.

Type:String
Required:False
Position:Named
Default value:None
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
-NewName

Specifies a new name for a virtual environment.

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

Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output.

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

Specifies an array of application groups to remove. Application groups contain multiple App-V deployment types that run in the same environment.

Type:VirtualEnvironmentGroup[]
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