Set-CMAppVVirtualEnvironment

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

Syntax

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

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

DisableWildcardHandling treats wildcard characters as literal character values. Cannot be combined with ForceWildcardHandling.

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

ForceWildcardHandling processes wildcard characters and may lead to unexpected behavior (not recommended). Cannot be combined with DisableWildcardHandling.

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

Specifies a new name for a virtual environment.

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

Returns the current working object. By default, this cmdlet does not generate any output.

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