Skip to main content

Set-ASProperty

AdminStudio 2025 | 29.0 | AdminStudio PowerShell Cmdlets

Powershell cmdlets are enabled with AdminStudio Enterprise Edition and with Workflow Manager.

You can use the Set-ASProperty cmdlet to set the application model properties of a package. You can use new -SystemConnectionName switch 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.

note

Starting in AdminStudio 2021 R2, Set-ASDistributionProperty is obsolete and Set-ASProperty should used instead.

Example

To set application model properties using the Set-ASProperty cmdlet, use the following syntax:

Set-ASProperty -PackageID n -SystemConnectionName "Connection Name" -PropertyName "Name"-PropertyValue "Value" 

where:

  • Name—Name of application model property.
  • Value—Value of application model property.
  • n—Package ID number.
  • Connection Name—Name of the Distribution Connection.

For example, you would use the following code to set the PrestagedDPSetting property to ManualCopy:

Set-ASDistributionProperty -PackageId 10 -SystemConnectionName 'Altiris' -PropertyName 'PackageName' -PropertyValue 'PackageABC'

Set-ASProperty -PropertyName "PrestagedDPSetting" -PropertyValue "ManualCopy" -PackageID 1

To set multiple properties simultaneously, you should create a PowerShell script file containing multiple Set-ASProperty cmdlets, such as:

Set-ASProperty -PropertyName "PrestagedDPSetting" -PropertyValue "ManualCopy" -PackageID 1

Parameters

The Set-ASProperty cmdlet includes the following parameters:

ParameterDescription
PropertyNameUse to specify the name of the application model property that you want to set. 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.
PropertyValueUse to specify the value of the application model property that you want to set.
SystemConnectionNameUse to specify a named connection to a deployment system. For more information, see Creating Multiple Named Connections to Distribution Systems.

Available Application Properties

The following application properties that appear on the Application View can also be set using the Set‑ASProperty cmdlet:

General Information Tab

The following application properties can be set using the Set-ASProperty cmdlet. These properties are also displayed on the General Information tab of the Application Catalog Application View .

Name Displayed in Application CatalogProperty NamePossible Values
Administrator commentsDescriptionAny string value
ManufacturerPublisherAny string value
Install from Install Application task sequenceAutoInstallTrue False
Distribution priorityDistributionPriorityHigh Medium Low
Distribute to preferred DPPreferredDistributeTrue False
Prestaged DP settingsPrestagedDPSettingAuto OnlyContentChange ManualCopy
Display supersedes information to userDisplaySupersedesTrue False
Distribution point groupsDistributionPointGroupsAny string value
Localized descriptionLocalizedDescriptionAny string value
User documentationUserDocumentationAny string value
Icon fileIconName of \.ico file
ClassificationClassificationUnknown Desktop Server
Flexera IdentifierFIDFlexera ID not found Not connected to Flexera Service Gateway Multiple applications detected Error while fetching Flexera ID Not synchronized with FlexNet Manager Platform
Optional ReferenceOptionalReferenceAny string value
OwnersOwnersAny string value
Supported ContactsSupportedContactsAny string value

App Portal Information Tab

The following application properties can be set using the Set-ASProperty cmdlet. These properties are also displayed on the App Portal Information tab of the Application Catalog Application View .

Name Displayed in Application CatalogProperty NamePossible Values
CategoriesCategoriesString value of path to existing category. For example: Set-ASProperty -PackageID 1 ‑PropertyName "Categories" ‑PropertyValue "HR/Office/Excel 2007" Set-ASProperty -PackageID 1 ‑PropertyName "Categories" ‑PropertyValue "HR/Office/Excel 2007,IT/Software/Excel" Multiple categories can be set by separating them by a comma. Categories must already exist in App Portal. If you attempt to use Set-ASProperty to assign an application to a non-existent category, the cmdlet will fail.
KeywordsKeywordsSingle or comma-delimited list of keywords. For example: Set-ASProperty -PackageID 1 ‑PropertyName "Keywords" ‑PropertyValue "Admin" Set-ASProperty -PackageID 1 ‑PropertyName "Keywords" ‑PropertyValue "Admin,IT,HR" When using the Set-ASProperty cmdlet to assign keywords to an application, follow these rules: Until you create a keyword using either the Add-ASKeywords cmdlet or the Edit Keywords dialog box, you cannot use the Set-ASProperty cmdlet to assign it to an application. If you attempt to do so, an error will be returned. If you attempt to assign multiple keywords (in a comma-delimited list) to an application, if one of them has not yet been created, the cmdlet will fail and no keywords will be assigned. If you attempt to assign a duplicate keyword to an application using the Set-ASProperty cmdlet, the cmdlet will fail. Do not use the single-quote character ( ' ) in a keyword.

Available Deployment Type Properties

The following deployment type properties that appear on the Home Deployment Type View can also be set using the Set-ASProperty cmdlet.

Package Information Tab

The following deployment type properties can be set using the Set-ASProperty cmdlet. These properties are also displayed on the Package Information tab of the Application Catalog Home Deployment Type View .

Name Displayed in Application CatalogProperty NamePossible Values
ManufacturerManufacturerAny string value
Administrator CommentsAdministratorCommentsAny string value
Original FileOriginalMsiFileNameAny string value
Original name of packageSoftwareProductNameAny string value
If package name was modified, the modified name is stored in this propertyDisplayedProductNameAny string value

Deployment Data Tab

In Application Catalog, deployment type properties are displayed on the Deployment Data tab of the Application Catalog Home Deployment Type View on the following subtabs:

Content Subtab

The following properties, which are displayed on the Content subtab of the Deployment Type tab, can be set using the Set-ASProperty cmdlet of the AdminStudio PowerShell Cmdlets.

note

Class can be of ASCMMSIContent, ASCMScriptContent, or ASCMAppvContent.

Name Displayed in Application CatalogProperty NamePossible Values
Use fallback source location for contentFallbackToUnprotectedDPTrue False
Content locationLocationAny string value
Deployment option when client is on fast (LAN) network App-V packages only.OnFastNetworkDownload DownloadContentForStreaming
Deployment option when client is on slow networkOnSlowNetworkDoNothing Download DownloadContentForStreaming The DownloadContentForStreaming option only applies to App-V packages.
Enable peer-to-peer content distribution App-V packages only.PeerCacheTrue False
Allow client to share content on same subnet MSI and EXE packages only.PeerCacheTrue False
Persist content in the client cachePinOnClientTrue False
Load content to App-V cache App-V packages only.RequireLoadTrue False
Uninstall content settingsUnInstallContentSettingsSameAsInstall NoneRequired Different
Uninstall content locationUnInstallContentLocationAny String Value (based on Uninstall Content settings)

Programs Subtab

The following properties, which are displayed on the Programs subtab of the Deployment Type tab, can be set using the Set-ASProperty cmdlet of the AdminStudio PowerShell Cmdlets.

note

Class can be of ASCMMsiInstaller or ASCMScriptInstaller. This subtab is only visible for MSI and EXE (script installer only) packages.

Name Displayed in Application CatalogProperty NamePossible Values
Install command lineInstallCommandLineAny string value
Install folderInstallFolderAny string value
Uninstall command lineUninstallCommandLineAny string value
Uninstall folderUninstallFolderAny string value
Run installation as 32-bit process on 64-bit clientRunAs32True False
Installation source management product codeSourceUpdateProductCodeAny valid GUID
Repair command lineRepairCommandLineAny String Value
Repair folderRepairFolderAny String Value

User Experience Subtab

The following properties, which are displayed on the User Experience subtab of the Deployment Type tab, can be set using the Set-ASProperty cmdlet of the AdminStudio PowerShell Cmdlets.

note

Class can be of ASCMMsiUserExperience or ASCMScriptUserExperience. This subtab is only visible for MSI and EXE (script installer only) packages.

Name Displayed in Application CatalogProperty NamePossible Values
Installation behaviorInstallBehaviourUser System Any
Logon requirementLogonRequirementTrue Null False
Installation program visibilityProgramVisibilityMaximized Normal Minimized Hidden
Enforce specific behaviorEnforceBehaviourBasedOnExitCode NoAction ProgramReboot ForceReboot
Maximum allowed run time (min)MaxExecuteTimeAny integer value
Estimated installation time (min)ExecuteTimeAny integer value
Provision this application for all users on the deviceProvisionForAllUsersTrue False

Return Values

One of the following values is returned:

  • True —Property value was successfully set.
  • False —Property value was not set.

See Also

Get-ASProperty

Set-ASDistributionProperty

Get-ASDistributionProperty