Set-ASOptionProperty

AdminStudio 2023 R2 | 26.0 | AdminStudio PowerShell Cmdlets

Edition:Powershell cmdlets are enabled with AdminStudio Enterprise Edition.

you can use the Set-ASOptionProperty to set the download path for the Package Feed Module.

Example

Set-ASOptionProperty -OptionType ImportOptions -PropertyName 'ApplyNamingFormat' -PropertyValue false

Set-ASOptionProperty -OptionType PackageFeedOptions -PropertyName PackageFeedDownloadPath -PropertyValue D:\AR\AdminStudio Shared\PF\[Vendor]\[Product Name]\[Version]

Parameters

The cmdlet   has the following parameter:

Set-ASOptionProperty Parameters

Parameter

Description

OptionType

Select one of the following option type:

ImportOptions
PackageFeedOptions
PowerShellWrapOptions

PropertyName

Use to specify the below property names that you want to set ImportOptions:

ApplyNamingFormat
ApplicationNameFormat

Use to specify the below property names that you want to set PackageFeedOptions:

PackageFeedDownloadPath

Use to specify the below property names that you want to set PowerShellWrapOptions:

PSTemplateLocation
PSOutputLocation
PSWrapOnImport

PropertyValue

Use to specify the property value that you want to set for ImportOptions:

ApplyNamingFormat
True
False
ApplicationNameFormat
Valid Placeholders

Can provide any of these placeholders separated by underscore.

[Product Name]_[Version]_[Vendor]_[Platform]_[SetupType]_[Language]

Can also provide a valid text without Placeholders

Use to specify the property value that you want to set for PackageFeedOptions:

PackageFeedDownloadPath
Folder path
Valid Place Holders

Use to specify the property value that you want to set for PowerShellWrapOptions:

PSTemplateLocation
Folder path
PSOutputLocation
Folder path
PSWrapOnImport
True
False

Return value

A success or failure message is returned.

See Also