Remove-Appv Publishing Server

Removes an App-V publishing server.

Syntax

Remove-AppvPublishingServer
      [-ServerId] <UInt32>
      [<CommonParameters>]
Remove-AppvPublishingServer
      [-Server] <AppvPublishingServer>
      [<CommonParameters>]
Remove-AppvPublishingServer
      [[-Name] <String>]
      [[-URL] <String>]
      [<CommonParameters>]

Description

The Remove-AppvPublishingServer cmdlet removes the Microsoft Application Virtualization (App-V) publishing server from the App-V client list.

Examples

Example 1: Remove a publishing server

PS C:\> Remove-AppvPublishingServer -Name "Server01"

This command removes the publishing server named Server01.

Example 2: Remove multiple publishing servers

PS C:\> Remove-AppvPublishingServer -Name "Server*"

This command removes all publishing servers that have names that start with the string Server.

Required Parameters

-Server

Specifies an AppvPublishingServer object. To obtain an AppvPublishingServer object, use the Get-AppvPublishingServer cmdlet.

Type: AppvPublishingServer
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
-ServerId

Specifies the ID for the publishing server.

Type: UInt32
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Optional Parameters

-Name

Specifies the name of the composition.

Type: String
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-URL

Specifies the URL path of the publishing server.

Type: String
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

Inputs

Microsoft.AppvAgent.AppvMgmtServer

Notes

  • If an operation is being done between the server and targeted App-V agent, the cmdlet deletes the App-V server object, but any operation that had already been initiated finishes. Subsequent actions that may have been queued up fail.
  • The cmdlet checks that you have permissions to perform the specific action. If not, the cmdlet returns the following error: The action could not be performed due to current App-V permissions. Please modify the permissions and try the operation again.