Checking if folders are redirected to onedrive or to different location

Just checking if anyone knows if syncro support on checking whether the computer folder is redirected to onedrive or any other location? Do you guys have any scripts to do this?


Monitoring with PowerShell: Monitoring Onedrive Known Folder Move if you want to monitor OneDrive KFM.
For windows redirection (or if you just want to detect any redirection including onedrive) you could monitor HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell