Set-ASScopeTags
Edition:Powershell cmdlets are enabled with AdminStudio Enterprise Edition and with Workflow Manager.
Use this cmdlet Set-ASScopeTags to add scope tags to specified package present in application catalog.
Example
Set-ASScopeTags -ConnectionName 'Intune' -PackageId 5 -ScopeTagId 210
Parameters
The Set-ASScopeTags has the following parameters:
|
Parameter |
Description |
|
ConnectionName |
Use to specify named connection to Intune deployment system. |
|
PackageId |
Specify the PackageID of the package. |
|
ScopeTagId |
Specify the ID of the scope tag present in the Intune portal. To fetch the IDs, see Get-ASIntuneScopeTags. |
Return Values
| • | Success— Scope Tag has been Added successfully. |
| • | Failure cases |
| • | Invalid Connection Name |
| • | Invalid package Id. |
| • | Invalid ScopeTag Id: 1555 |
| • | 1 is not intunewin/msi/msix package |