Set-ASOptionProperty

AdminStudio 2024 | 27.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]

Set-ASOptionProperty -OptionType PowerShellWrapOptions -PropertyName 'PSOutputLocation' -PropertyValue 'C:\Users\Administrator\Desktop\Test\[ProductName]\[SetupType]\[Language]\[Platform]\[Version]\[Vendor]\Folder1'

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
RetainAdditionalSwitches

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
RetainAdditionalSwitches
True
False

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

PSTemplateLocation
Folder path
PSOutputLocation
Folder path
Valid Place Holders
PSWrapOnImport
True
False

Return value

A success or failure message is returned.

See Also