Public/Functions/OSDCloud/Find-OSDCloudOfflinePath.ps1
1 2 3 4 5 6 7 8 9 10 |
function Find-OSDCloudOfflinePath { [CmdletBinding()] param () $OSDCloudOfflinePath = @() $OSDCloudOfflinePath = Get-PSDrive -PSProvider FileSystem | Where-Object {$_.Name -ne 'C'} | ForEach-Object { Get-Item "$($_.Name):\OSDCloud" -Force -ErrorAction Ignore } $OSDCloudOfflinePath } |