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 {
67
67
#>
68
68
[CmdletBinding ()]
69
69
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
+ }
71
81
$Results
72
82
}
73
83
function Save-OSDCloudDriverPack {
You can’t perform that action at this time.
0 commit comments