Get-ASProperty
Edition:Powershell cmdlets are enabled with AdminStudio Enterprise Edition and with Workflow Manager.
You can use the Get-ASProperty cmdlet to return the value for a property specified using the -PropertyName parameter associated to a specified package specified using -PackageId parameter. You can use new -SystemConnectionName switch to set the property value of the distribution system for a package. The property name will be fetched from the Property_PluginId table for the corresponding distribution system. For example, for Casper server distribution system, the property will be fetched from [Property_D66C6D178DD549419D129CED61BA4C9E]. The property value should be the display text that is displayed in the AdminStudio user interface.
Note:Starting in AdminStudio 2021 R2, Get-ASDistributionProperty is obsolete and Get-ASProperty should used instead.
Note:The Get-ASProperty cmdlet also supports ASCMPackageData table properties. This is a dynamic table that stores some of the properties of the new package types such as .apk, .ipa, .dmg, etc. These property values can be fetched using this cmdlet.
Example
Get-ASProperty-PackageId 35-PropertyName "AutoInstall"
Get-ASProperty-PackageId 9-SystemConnectionName 'Altiris'-PropertyName 'PackageName'
Parameters
The Get-ASProperty cmdlet has the following parameters:
Parameter |
Description |
PackageId |
ID of the package that will be returned. |
PropertyName |
Name of the property. Note:The name of the property is fetched from the Property_PluginId table for the corresponding distribution system to set properties related to other Distribution System except ConfigMgr. |
SystemConnectionName |
Use to specify a named connection to a deployment system. For more information, see Creating Multiple Named Connections to Distribution Systems. |
Note:For more information on parameters, see Set-ASProperty.
Return Values
The property value for the specified property for the specified package is returned.
See Also