Table of contents
TOC
Collapse the table of content
Expand the table of content

Remove-AppvServerPackage

jamiejdt|Last Updated: 3/8/2017
|
1 Contributor

SYNOPSIS

Remove a package from the App-V Management Server.

SYNTAX

ByName (Default)

Remove-AppvServerPackage [-Name] <String> [[-Version] <String>] [-WhatIf] [-Confirm] [<CommonParameters>]

ByObject

Remove-AppvServerPackage [-AppvServerPackage] <PackageVersion[]> [-WhatIf] [-Confirm] [<CommonParameters>]

By GUID

Remove-AppvServerPackage [-PackageID] <Guid> [[-VersionID] <Guid>] [-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

The Remove-AppvServerPackage cmdlet removes a package from the Microsoft Application Virtualization (App-V) Management Server.

EXAMPLES

1:

PARAMETERS

-AppvServerPackage

Specifies an array of AppVServerPackage objects.

Type: PackageVersion[]
Parameter Sets: ByObject
Aliases: 

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-Name

Specifies the friendly name of the package given when the package was created. This value is obtained from the package manifest.

Type: String
Parameter Sets: ByName
Aliases: 

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False

-PackageID

Specifies the GUID that uniquely identifies the package. The GUID can be found in the package manifest or by opening the package in the App-V sequencer. The package GUID is shared by all versions of a package.

Type: Guid
Parameter Sets: By GUID
Aliases: 

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False

-Version

Specifies the version of an App-V package in one lineage. If no version is supplied, the operation acts on all versions saved to computer.

Type: String
Parameter Sets: ByName
Aliases: 

Required: False
Position: 2
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False

-VersionID

Specifies a GUID that differentiates a package version from other versions, whether older, newer, or of a completely different lineage. If you do not specify this paramter, the cmdlet operates on all versions of the package.

Type: Guid
Parameter Sets: By GUID
Aliases: 

Required: False
Position: 2
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False

-Confirm

Prompts you for confirmation before running the cmdlet.Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

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.Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

AppvServer.AppvServerPackage

OUTPUTS

NOTES

  • If the packages do not exist, the remove operation fails for those packages. The cmdlet returns the following error: The following packages could not be found on the system <list of packages>.
  • If you do not specify a version, the cmdlet removes all versions of the package.
  • If you do not specify any parameters, the cmdlet removes all packages on the system. The cmdlet returns a warning before it performs this operation.

Get-AppvServerPackage

Grant-AppvServerPackage

Import-AppvServerPackage

Publish-AppvServerPackage

Set-AppvServerPackage

Unpublish-AppvServerPackage

© 2017 Microsoft