Set-ASDistributionProperty
Edition:Powershell cmdlets are enabled with AdminStudio Enterprise Edition and with Workflow Manager.
You can use the Set-ASDistributionProperty cmdlet to set the property value of the distribution system for a package. The property name is obtained from the Property_PluginId table for the corresponding distribution system. The property value should be the display text that is displayed in the AdminStudio user interface.
Example
The following is an example of the Set-ASDistributionProperty cmdlet:
Set-ASDistributionProperty-PackageId 10-SystemConnectionName 'Altiris'-PropertyName 'PackageName'‑PropertyValue 'PackageABC'
Important:All parameters are mandatory.
Parameters
The Set-ASDistributionProperty cmdlet has the following parameters:
Parameter |
Description |
PackageId |
(Required) Use to specify the ID number of the package that you want to set distribution properties for. The ID number is obtained from the cstblPackage table. |
-SystemConnectionName |
(Required) Use to specify a named connection to a deployment system. See Creating Multiple Named Connections to Distribution Systems for more information. |
PropertyName |
(Required) Use to specify the name of the property that you want to set. The name of the property is fetched from the Property_PluginId table for the corresponding distribution system. |
PropertyValue |
(Required) Use to specify the value of the distribution property that you want to set. For enum values, specify the display text of the drop down selection that is displayed in the AdminStudio user interface. |
Return Value
One of the following values is returned:
• | True—Property value is set. |
• | False—Property value is not set. |
See Also