Public/Functions/OSDCloud/Find-OSDCloudOfflineFile.ps1
function Find-OSDCloudOfflineFile { [CmdletBinding()] param ( [string]$Name ) $OSDCloudOfflineFile = @() $OSDCloudOfflineFile = Get-PSDrive -PSProvider FileSystem | ForEach-Object { Get-ChildItem "$($_.Name):\OSDCloud\" -Include "$Name" -File -Recurse -Force -ErrorAction Ignore } $OSDCloudOfflineFile } |