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