PowerShell Cmdlets / REST API Enhancements

The following new PowerShell Cmdlets and REST APIs have been added:

POWERSHELL CMDLETS

REST API

DESCRIPTION

Invoke-ASMigration

http://localhost:8086/catalog/ASMigration/?TargetGroup=Test&DestinationConnectionName=
Intune&MsiToIntuneConversion=false&ApplicationID=16798621&SourceConnectionName=SCCM

When you run this Cmdlets or API, it converts an application to intunewin format, and then publish to Intune distribution system.

Get-ASExtendedAttribute

http://localhost:8086/catalog/ASExtendedAttribute/?PackageId=6&AttributeName=ApplicationType

When you run this Cmdlets or API, it returns the extended attribute value for the package.

Set-ASExtendedAttribute

http://localhost:8086/catalog/ASExtendedAttribute/?PackageId=6&AttributeName=
ApplicationName&AttributeValue=Administrator

When you run this Cmdlets or API, it updates the value of an extended attribute for the package.

Add-ASExtendedAttribute

http://localhost:8086/catalog/ASAddExtendedAttribute/?PackageId=
11&AttributeName=Sample&AttributeValue=Admin

When you run this Cmdlets or API, it adds the new extended attribute to the package.

Remove-ASExtendedattribute

http://localhost:8086/catalog/ASExtendedAttribute/?PackageId=8&AttributeName=Sample

When you run this Cmdlets or API, it removes the newly added extended attribute of the package.

Get-ASAssignments

http://localhost:8086/Catalog/ASAssignments/?

ApplicationID=<ApplicationID>

When you run this Cmdlets or API, it returns all assignments available for the specified application.

Set-ASAssignments

http://localhost:8086/Catalog/ASAssignments/?ApplicationID=

<ApplicationIDincatalog>&InstallIntent=<Required/Availbleforenrolleddevices>&GroupMode=
<Included/Excluded>&AssignmentType=<AddGroup/AllUsers/AllDevices>

 

http://localhost:8086/Catalog/ASAssignments/?ApplicationID=

<ApplicationIDincatalog>&AssignmentID=<ExisitngAssignment>&GroupMode=
<Included/Excluded>&InstallIntent=<Required/Availbleforenrolleddevices>

When you run this Cmdlets or API, it add new assignment or update the existing assignments for the specified application.

Remove-ASAssignments

http://localhost:8086/Catalog/ASAssignments/?AssignmentID=<AssignmentID>

When you run this Cmdlets or API, it delete specified Intune assignment for an Application.

Get-ASIntuneGroups

http://localhost:8086/Catalog/ASIntuneGroups/?ConnectionName=<IntuneConnectionName>

When you run this API, it returns all groups present in Intune, including IntuneGroupId and Group Name.

 

The following existing PowerShell cmdlet has an extended support:

POWERSHELL CMDLETS

REST API

DESCRIPTION

Invoke-ASPublish

http://localhost:8086/catalog/publish/<application Id>?ConnectionName=
<IntuneConnection Name>&PublishAssignment=True/False

The following new input parameter has been added:

PublishAssignment

In PowerShell Cmdlet, if PublishAssignment is set to 1, then it will publish assignments to Intune.

In REST API, if PublishAssignment is set to True, then it will publish assignments to Intune.

Get-ASOptionProperty

Set-ASOptionProperty

http://localhost:8086/Catalog/ASOptionsProperty/?optionType=
PackageFeedOptions&PropertyName=RetainAdditionalSwitches&Value=True

The following new input parameter has been added:

RetainAdditionalSwitches

Invoke-ASConvertPackage

http://localhost:8086/catalog/deploymenttypes/conversions

When you run this Cmdlets or API, it will convert App-V packages to MSIX format.

New-ASDistributionConnectionEx

http://localhost:8086/catalog/distributionconnections

The following new input parameter has been added:

ScriptFile
ScriptParameters