Public/Functions/Catalogs/Child/Get-DellApplicationCatalog.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<#
.SYNOPSIS
Returns the Application Component of the Dell System Catalog
 
.DESCRIPTION
Returns the Application Component of the Dell System Catalog
 
.LINK
https://github.com/OSDeploy/OSD/tree/master/Docs
 
.NOTES
#>

function Get-DellApplicationCatalog {
    [CmdletBinding()]
    param (
        #Limits the results to match the current system
        [System.Management.Automation.SwitchParameter]
        $Compatible
    )
    
    if ($PSBoundParameters.ContainsKey('Compatible')) {
        Get-DellSystemCatalog -Component Application -Compatible | Sort-Object -Property ReleaseDate -Descending
    }
    else {
        Get-DellSystemCatalog -Component Application | Sort-Object -Property ReleaseDate -Descending
    }
}