Update-MSApplications
Update MS Applications. This function update one or many whole objects at a time, or update lists of specific properties.
Syntax
Update-MSApplications -Updates (Array) [-CreateIfNotFound] [-MatchOnCustomerId] [-MatchOnCurrentName] [-MatchOnOriginalName] [-MatchOnLegacyId] [-MatchOnIntuneId] [-DontParseDropdownsByName] [-BatchSize (Int32)]
Examples
## Update One
$oneApp = Get-MSApplications -AppIds 1000
$oneApp.CustomProperty1 = "Green"
$oneApp.CustomInt1 = 99
$oneApp.IsCoreApp = $true
Update-MSApplications -Updates $oneApp
## Update Many
$manyUsers = Get-MSApplications -All -Take 2
foreach($app in $manyApps)
{
$app.CustomProperty1 = "Blue"
$app.CustomInt1 = 99
}
Update-MSApplications -Updates $manyApps
## Update via Hash
$updates = @()
$updates += @{ Id = 1002; CustomProperty1 = "Red"; CustomInt1 = 99 }
$updates += @{ Id = 1004; CustomProperty1 = "Green"; CustomInt1 = 66 }
Update-MSApplications -Updates $updates