Set-RepositoryConfiguration



Summary

Sets repository configuration values

Syntax

Set-RepositoryConfiguration [-Setting] <String> [-Format] <String> [<CommonParameters>]

Set-RepositoryConfiguration [-Setting] <String> [-CacheValue] <String> [<CommonParameters>]

Set-RepositoryConfiguration [-Setting] <String> [-Value] {Fail | LogAndContinue} [<CommonParameters>]

Description

This command is used to configure different settings of the repository synchronization:

  • OnRemoteFileNotFound: Indicates the behavior for when the SoftPaq is not found on the remote site. 'Fail' stops the execution. 'LogAndContinue' logs the errors and continues the execution.
  • RepositoryReport: Indicates the format of the report generated at repository synchronization. The default format is 'CSV' and other options available are 'JSON,' 'XML,' and 'ExcelCSV.'
  • OfflineCacheMode: Indicates that all repository files are required for offline use. Repository synchronization will include platform list, advisory, and knowledge base files. The default value is 'Disable' and the other option is 'Enable.'

Parameters

Name Argument Description
Setting <String> Specifies the setting to configure. The value must be one of the following values: 'OnRemoteFileNotFound', 'OfflineCacheMode', or 'RepositoryReport'.
Value <ErrorHandling> Specifies the new value for the OnRemoteFileNotFound setting. The value must be either: 'Fail' (default), or 'LogAndContinue'.
CacheValue <String> Specifies the new value for the OfflineCacheMode setting. The value must be either: 'Disable' (default), or 'Enable'.
Format <String> Specifies the new value for the RepositoryReport setting. The value must be one of the following: 'CSV' (default), 'JSon', 'XML', or 'ExcelCSV'.

Notes

  • When using HP Image Assistant and offline mode, use: Set-RepositoryConfiguration -Setting OfflineCacheMode -CacheValue Enable
  • More information on using HPIA with CMSL can be found at this blog post.
  • To create a report outside the repository, use the New-RepositoryReport command.

Examples


PS C:\> Set-RepositoryConfiguration -Setting OnRemoteFileNotFound -Value LogAndContinue

PS C:\> Set-RepositoryConfiguration -Setting OfflineCacheMode -CacheValue Enable

PS C:\> Set-RepositoryConfiguration -Setting RepositoryReport -Format CSV

See also