Remove-AppvPublishingServer is accessible with the help of AppVClient module. To configure AppVClient, go through this link.
Synopsis
Removes an App-V publishing server.
Description
The Remove-AppvPublishingServer cmdlet removes the Microsoft Application Virtualization (App-V) publishing server from the App-V client list.
Parameters
-Name
Specifies the name of the composition.
Type: | String |
Position: | 0 |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-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 |
-URL
Specifies the URL path of the publishing server.
Type: | String |
Position: | 1 |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Syntax
Remove-AppvPublishingServer [-ServerId] <UInt32> [<CommonParameters>]
Remove-AppvPublishingServer [-Server] <AppvPublishingServer> [<CommonParameters>]
Remove-AppvPublishingServer [[-Name] <String>] [[-URL] <String>] [<CommonParameters>]
——————-Example 1——————-
Remove a publishing server
PS C:\> Remove-AppvPublishingServer -Name “PSvr01”
This command removes the publishing server named PSvr01.
——————-Example 2——————-
Remove multiple publishing servers
PS C:\> Remove-AppvPublishingServer -Name “PSvr*”
This command removes all publishing servers that have names that start with the string PSvr.
You can check the Version, CommandType and Source of this cmdlet by giving below command.
Get-Command Remove-AppvPublishingServer
You can also read about
- Add-AppvPublishingServer
- Get-AppvPublishingServer
- Set-AppvPublishingServer
- Sync-AppvPublishingServer