Catalogs/Update-MasterCatalogs.ps1
Import-Module -Name OSD -Force #================================================= # DellDriverPackCatalog #================================================= $null = Get-DellDriverPackMasterCatalog -Verbose $Source = Join-Path $env:TEMP (Join-Path 'OSD' 'DellDriverPackMasterCatalog.xml') $Destination = Join-Path (Get-Module OSD).ModuleBase "Catalogs\MASTER\DellDriverPackMasterCatalog.xml" if (Test-Path $Source) { Copy-Item $Source $Destination -Force } #================================================= # DellSystemCatalog #================================================= $null = Get-DellSystemMasterCatalog -Verbose $Source = Join-Path $env:TEMP (Join-Path 'OSD' 'DellSystemMasterCatalog.xml') $Destination = Join-Path (Get-Module OSD).ModuleBase "Catalogs\MASTER\DellSystemMasterCatalog.xml" if (Test-Path $Source) { Copy-Item $Source $Destination -Force } #================================================= # HPPlatformListCatalog #================================================= $null = Get-HPPlatformListMasterCatalog -Verbose $Source = Join-Path $env:TEMP (Join-Path 'OSD' 'HPPlatformListMasterCatalog.xml') $Destination = Join-Path (Get-Module OSD).ModuleBase "Catalogs\MASTER\HPPlatformListMasterCatalog.xml" if (Test-Path $Source) { Copy-Item $Source $Destination -Force } #================================================= # HPSystemCatalog #================================================= $null = Get-HPSystemMasterCatalog -Verbose $Source = Join-Path $env:TEMP (Join-Path 'OSD' 'HPSystemMasterCatalog.xml') $Destination = Join-Path (Get-Module OSD).ModuleBase "Catalogs\MASTER\HPSystemMasterCatalog.xml" if (Test-Path $Source) { Copy-Item $Source $Destination -Force } #================================================= # HPDriverPackCatalog #================================================= $null = Get-HPDriverPackMasterCatalog -Verbose $Source = Join-Path $env:TEMP (Join-Path 'OSD' 'HPDriverPackMasterCatalog.xml') $Destination = Join-Path (Get-Module OSD).ModuleBase "Catalogs\MASTER\HPDriverPackMasterCatalog.xml" if (Test-Path $Source) { Copy-Item $Source $Destination -Force } #================================================= # LenovoBiosCatalog #================================================= $null = Get-LenovoBiosMasterCatalog -Verbose $Source = Join-Path $env:TEMP (Join-Path 'OSD' 'LenovoBiosMasterCatalog.xml') $Destination = Join-Path (Get-Module OSD).ModuleBase "Catalogs\MASTER\LenovoBiosMasterCatalog.xml" if (Test-Path $Source) { Copy-Item $Source $Destination -Force } #================================================= # LenovoDriverPackCatalog #================================================= $null = Get-LenovoDriverPackMasterCatalog -Verbose $Source = Join-Path $env:TEMP (Join-Path 'OSD' 'LenovoDriverPackMasterCatalog.xml') $Destination = Join-Path (Get-Module OSD).ModuleBase "Catalogs\MASTER\LenovoDriverPackMasterCatalog.xml" if (Test-Path $Source) { Copy-Item $Source $Destination -Force } #================================================= # MicrosoftDriverPackCatalog #================================================= $null = Get-MicrosoftDriverPackMasterCatalog -Verbose -UseCatalog Cloud $Source = Join-Path $env:TEMP (Join-Path 'OSD' 'MicrosoftDriverPackMasterCatalog.json') $Destination = Join-Path (Get-Module OSD).ModuleBase "Catalogs\MASTER\MicrosoftDriverPackMasterCatalog.json" if (Test-Path $Source) { Copy-Item $Source $Destination -Force } #================================================= # IntelDisplayDriverMasterCatalog #================================================= $null = Get-IntelDisplayDriverMasterCatalog -Verbose $Source = Join-Path $env:TEMP 'IntelDisplayDriverMasterCatalog.json' $Destination = Join-Path (Get-Module OSD).ModuleBase "Catalogs\MASTER\IntelDisplayDriverMasterCatalog.json" if (Test-Path $Source) { Copy-Item $Source $Destination -Force } #================================================= # IntelRadeonDisplayDriverMasterCatalog #================================================= $null = Get-IntelRadeonDisplayDriverMasterCatalog -Verbose $Source = Join-Path $env:TEMP 'IntelRadeonDisplayDriverMasterCatalog.json' $Destination = Join-Path (Get-Module OSD).ModuleBase "Catalogs\MASTER\IntelRadeonDisplayDriverMasterCatalog.json" if (Test-Path $Source) { Copy-Item $Source $Destination -Force } #================================================= # IntelWirelessDriverMasterCatalog #================================================= $null = Get-IntelWirelessDriverMasterCatalog -Verbose $Source = Join-Path $env:TEMP 'IntelWirelessDriverMasterCatalog.json' $Destination = Join-Path (Get-Module OSD).ModuleBase "Catalogs\MASTER\IntelWirelessDriverMasterCatalog.json" if (Test-Path $Source) { Copy-Item $Source $Destination -Force } #================================================= |