< Back

Remove-AppvPublishingServer

Tue Jan 29, 2019 9:25 pm

NAME Remove-AppvPublishingServer



SYNOPSIS

Removes an App-V publishing server.





SYNTAX

Remove-AppvPublishingServer [[-Name] <String>] [[-URL] <String>] [<CommonParameters>]



Remove-AppvPublishingServer [-Server] <AppvPublishingServer> [<CommonParameters>]



Remove-AppvPublishingServer [-ServerId] <UInt32> [<CommonParameters>]





DESCRIPTION

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





PARAMETERS

-Name [<String>]

Specifies the name of the composition.



Required? false

Position? 1

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-Server <AppvPublishingServer>

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



Required? true

Position? 1

Default value none

Accept pipeline input? true(ByValue)

Accept wildcard characters? false



-ServerId <UInt32>

Specifies the ID for the publishing server.



Required? true

Position? 1

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-URL [<String>]

Specifies the URL path of the publishing server.



Required? false

Position? 2

Default value none

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

Microsoft.AppvAgent.AppvMgmtServer







OUTPUTS









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.



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.







RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkId=827718

Add-AppvPublishingServer

Get-AppvPublishingServer

Set-AppvPublishingServer

Sync-AppvPublishingServer