Hi. Thank you for your question and reaching out. I’d be more than happy to help you with your query.
Sure, that is actually possible. You just have to use OneDrive API so the file can be accessed. I will show you an example on how to do this in Powershell:
$files = Get-ChildItem -Path "\\OneDrive\Files"
foreach ($file in $files) {
$filePath = "\\OneDrive\Files\$file"
$destinationPath = "C:\MyFiles\$file"
DownloadFile($filePath, $destinationPath)
}
If the reply was helpful, please don’t forget to upvote or accept as answer, thank you.