Public/OSDCloud/Find-OSDCloud.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
}
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
}
function Find-OSDCloudFile {
    [CmdletBinding()]
    param (
        [string]$Name = '*.*',
        [string]$Path = '\OSDCloud\'
    )
    $Results = @()
    $Results = Get-PSDrive -PSProvider FileSystem | ForEach-Object {
        Get-ChildItem "$($_.Name):$Path" -Include "$Name" -File -Recurse -Force -ErrorAction Ignore
    }
    $Results
}
<#
.SYNOPSIS
Searches all PSDrives for Office Configuration Files [PSDrive]:\OSDCloud\ODT
 
.Description
Searches all PSDrives for Office Configuration Files [PSDrive]:\OSDCloud\ODT
 
.LINK
https://osdcloud.osdeploy.com
 
.NOTES
#>

function Find-OSDCloudODTFile {
    [CmdletBinding()]
    param ()
    #=======================================================================
    # Create the Array
    #=======================================================================
    $Results = @()
    #=======================================================================
    # Search for Autopilot Profiles
    #=======================================================================
    $Results = Get-PSDrive -PSProvider FileSystem | ForEach-Object {
        Get-ChildItem "$($_.Name):\OSDCloud\ODT\*\*\*.xml" -File -Force -ErrorAction Ignore
    }
    #=======================================================================
    # Results
    #=======================================================================
    $Results | Sort-Object -Property Name -Descending -Unique
    #=======================================================================
}