Skip to main content

Set-ASOptionProperty

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 Set-ASOptionProperty has the following parameter:

ParameterDescription
OptionTypeSelect one of the following option type:
  • ImportOptions
  • PackageFeedOptions
  • PowerShellWrapOptions
PropertyNameUse 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
PropertyValueUse 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
Get-ASOptionProperty