Get-AppvPublishingServer

Returns App-V Server objects.

Syntax

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

Description

The Get-AppvPublishingServer cmdlet returns an Microsoft Application Virtualization (App-V) Server object or set of App-V Server objects based on the criteria provided.

Examples

Example 1

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

Example 2

PS C:\> Get-AppvPublishingServer -ServerId 1

Optional Parameters

-Name

Specifies the name of the App-V publishing server.

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

Specifies the unique identifier of the App-V Publishing Server.

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

Specifies the URL path to the App-V Publishing server

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

Outputs

Microsoft.AppV.AppvClientPowerShell.AppvPublishingServer

Notes

  • 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.
  • If the get operation fails, the cmdlet returns the following error: The get operation could not be completed. An error code is returned.
  • If the cmdlet cannot find the servers, the cmdlet returns the following error: The specified App-V publishing server(s) could not be found. An error code is returned.