Get-RepositoryConfiguration



Summary

Retrieves the configuration values for a specified setting in the current repository

Syntax

Get-RepositoryConfiguration [-Setting] <String> [<CommonParameters>]

Description

This command retrieves various configuration options that control synchronization behavior. The settings this command can retrieve include:

  • 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 retrieve. The value can be one of the following: 'OnRemoteFileNotFound', 'RepositoryReport', or 'OfflineCacheMode'.

Examples


PS C:\> Get-RepositoryConfiguration -Setting OfflineCacheMode

PS C:\> Get-RepositoryConfiguration -Setting OnRemoteFileNotFound

PS C:\> Get-RepositoryConfiguration -Setting RepositoryReport

See also