Invoke-RepositorySync



Summary

Synchronizes the current repository and generates a report that includes information about the repository

Syntax

Invoke-RepositorySync [[-Quiet]] [[-ReferenceUrl] <String>] [<CommonParameters>]

Description

This command performs a synchronization on the current repository by downloading the latest SoftPaqs associated with the repository filters and creates a repository report in a format (default .CSV) set via the Set-RepositoryConfiguration command.

This command may be scheduled via task manager to run on a schedule. You can define a notification email via the Set-RepositoryNotificationConfiguration command to receive any failure notifications during unattended operation.

This command may be followed by the Invoke-RepositoryCleanup command to remove any obsolete SoftPaqs from the repository.

Please note that the Invoke-RepositorySync command is not supported in WinPE.

Parameters

Name Argument Description
Quiet If specified, this command will suppress progress messages during execution.
ReferenceUrl <String> Specifies an alternate location for the HP Image Assistant (HPIA) Reference files. This URL must be HTTPS. The Reference files are expected to be at the location pointed to by this URL inside a directory named after the platform ID you want a SoftPaq list for.
Using system ID 83b2, OS Win10, and OSVer 2009 reference files as an example, this command will call the Get-SoftpaqList command to find the corresponding files in: $ReferenceUrl/83b2/83b2_64_10.0.2009.cab.
If not specified, 'https://hpia.hpcloud.hp.com/ref/' is used by default, and fallback is set to 'https://ftp.hp.com/pub/caps-softpaq/cmit/imagepal/ref/'.

Examples


PS C:\> Invoke-RepositorySync -Quiet

See also