Based on some user feedback, I’ve made the following modifications to the OneDrive for Business Admin Tool:
- Fixed a reference to the original function name for FolderToDelete
- Added verbiage referencing the -Confirm parameter when using FolderToDelete parameter
- Tidied up code indentations to make it more readable
I’ve got some additional feedback that I will incorporate as well (once I figure out how to do it). 🙂
It really is the small things.


Hello! Thanks for the great site and information! Very helpful. I run
.\OneDriveForBusinessAdmin.ps1 -DeleteFilePattern “\test.txt$” -Identity sample@company.onmicrosoft.com -Credential $cred -tenant company.onmicrosoft.com -GrantPermissions
And get the “found… components” and “Existing log file found” then it just does nothing (returns to prompt). Am I missing anything? I have verified credentials and permissions (I can view in browser using this credential). Thanks!