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