Private/OSDDriver/Get-OSDDriverAmdDisplay.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
function Get-OSDDriverAmdDisplay {
    [CmdletBinding()]
    param ()

    $ModuleAmdDisplay = @()
    $ModuleAmdDisplay = Get-ChildItem "$($MyInvocation.MyCommand.Module.ModuleBase)\Resources\OSDDriver\AmdDisplay" *.drvpack -Recurse | Select-Object FullName

    $AmdDisplay = @()
    $AmdDisplay = foreach ($item in $ModuleAmdDisplay) {
        Get-Content $item.FullName | ConvertFrom-Json
    }
    $AmdDisplay = $AmdDisplay | Sort-Object -Property LastUpdate -Descending
    Return $AmdDisplay
}