File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
Public/OSDCloudDriverPack Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,17 @@ function Get-OSDCloudDriverPacks {
6767 #>
6868 [CmdletBinding ()]
6969 param ()
70- $Results = Import-Clixml - Path " $ ( Get-OSDModulePath ) \cache\driverpack-catalogs\build-driverpacks.xml"
70+ $DriverCatalogXML = Get-PSDrive - PSProvider FileSystem | Where-Object {$_.Name -ne ' C' } | ForEach-Object {
71+ Get-ChildItem " $ ( $_.Root ) OSDCloud\Catalogs" - Include " build-driverpacks.xml" - File - Force - Recurse - ErrorAction Ignore
72+ }
73+ if ($DriverCatalogXML ) {
74+ foreach ($Item in $DriverCatalogXML ) {
75+ Write-Warning " $ ( $Item.FullName ) is imported instead of the cache under $ ( Get-OSDModulePath ) ."
76+ $Results = Import-Clixml - Path $Item.FullName
77+ }
78+ } else {
79+ $Results = Import-Clixml - Path " $ ( Get-OSDModulePath ) \cache\driverpack-catalogs\build-driverpacks.xml"
80+ }
7181 $Results
7282}
7383function Save-OSDCloudDriverPack {
You can’t perform that action at this time.
0 commit comments