Sync-AppvPublishingServer
Sync-AppvPublishingServer is accessible with the help of AppVClient module. To configure AppVClient, go through this link.
Synopsis
Initiates the App-V Publishing Refresh operation.
Description
The Sync-AppvPublishingServer cmdlet initiates the Microsoft Application Virtualization (App-V) publishing refresh operation in the context of the current user. The publishing refresh connects to all added servers on the client and expose new App-V packages and their respective extension points to the user.
Parameters
-Force
Indicates that the cmdlet forces all publishes and unpublishes of packages.
The Force switch specifies whether to suppress warning and confirmation messages. It can be useful in scripting to suppress interactive prompts. If the Force switch isn’t provided in the command, you’re prompted for administrative input if required.
Type: | SwitchParameter |
Position: | 2 |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Global
Indicates that the cmdlet synchronizes packages from the App-V publishing server that are provisioned to the computer and are published to all users on the computer.
Type: | SwitchParameter |
Position: | 1 |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-HidePublishingRefreshUI
Indicates that the cmdlet suppresses the Publishing Refresh Progress bar.
Type: | SwitchParameter |
Position: | 4 |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
Specifies the friendly name of the server.
Type: | String |
Position: | 0 |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-NetworkCostAware
Indicates that this cmdlet is network cost aware.
Type: | SwitchParameter |
Position: | 3 |
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 identifier for the App-V Publishing Server. This can be queried using the Get-AppvPublishingServer cmdlet.
Type: | UInt32 |
Position: | 0 |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-URL
Specifies the URL path of the server.
Type: | String |
Position: | 1 |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Syntax
Sync-AppvPublishingServer [-ServerId] <UInt32> [-Global] [-Force] [-NetworkCostAware] [-HidePublishingRefreshUI] [<CommonParameters>]
Sync-AppvPublishingServer [-Server] <AppvPublishingServer> [-Global] [-Force] [-NetworkCostAware] [-HidePublishingRefreshUI] [<CommonParameters>]
Sync-AppvPublishingServer [[-Name] <String>] [[-URL] <String>] [-Global] [-Force] [-NetworkCostAware] [-HidePublishingRefreshUI] [<CommonParameters>]
——————-Example 1——————-
Start publishing refresh
PS C:\> Sync-AppvPublishingServer -Name “vServer”
This command starts publishing refresh for the current user for the server named vServer.
You can check the Version, CommandType and Source of this cmdlet by giving below command.
Get-Command Sync-AppvPublishingServer
You can also read about
- Add-AppvPublishingServer
- Get-AppvPublishingServer
- Remove-AppvPublishingServer
- Set-AppvPublishingServer