rodneyviana / ODSyncUtil

MIT License
14 stars 5 forks source link

Additional Details From ODSyncUtil #14

Closed aakash-shah closed 6 months ago

aakash-shah commented 6 months ago

Hello! I have a few team sites connected to my primary OD4B account, and I have 2-3 separate OD4B accounts on separate tenants. Since there is more than 1 account/site, it is difficult to determine which returned object corresponds to which folder path/site.

While looking further into the returned SyncRootId I found some related information at 2 locations:

The key below appears to reveal both the folder path, the SPO URL, and also appears to indicate whether it's the primary site or a Team Site. HKEY_CURRENT_USER\Software\SyncEngines\Providers\OneDrive

I found another key, which corresponds to the SyncRootId, although it appears to have fewer useful attributes (from what I can tell) at this location: HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\SyncRootManager

I wasn't sure if your code perhaps references either of these registry locations. Do you have any plans to include this additional information in the output of ODSyncUtil.exe or perhaps Get-ODStatus.ps1?

Thanks!

aakash-shah commented 6 months ago

FYI I added some PowerShell code on a local copy of Get-ODStatus.ps1 to help extract information from these 2 registry locations. If you would be interested, let me know and I'll try to figure out how to contribute this in GitHub. I recognize this would split the extraction functionality from the exe file though since the rest of the logic is in there.

rodneyviana commented 6 months ago

It’s an important detail to add and it would be better implemented in the C++ portion. I will make the change.

Get Outlook for iOShttps://aka.ms/o0ukef


From: aakash-shah @.> Sent: Thursday, March 21, 2024 3:14:11 AM To: rodneyviana/ODSyncUtil @.> Cc: Subscribed @.***> Subject: Re: [rodneyviana/ODSyncUtil] Additional Details From ODSyncUtil (Issue #14)

FYI I added some PowerShell code on a local copy of Get-ODStatus.ps1 to help extract information from these 2 registry locations. If you would be interested, let me know and I'll try to figure out how to contribute this in GitHub. I recognize this would split the extraction functionality from the exe file though since the rest of the logic is in there.

— Reply to this email directly, view it on GitHubhttps://github.com/rodneyviana/ODSyncUtil/issues/14#issuecomment-2011597561 or unsubscribehttps://github.com/notifications/unsubscribe-auth/AGT5MAWHOORG7MFJGHJSVWLYZKJFHBFKMF2HI4TJMJ2XIZLTSOBKK5TBNR2WLJDUOJ2WLJDOMFWWLO3UNBZGKYLEL5YGC4TUNFRWS4DBNZ2F6YLDORUXM2LUPGBKK5TBNR2WLJDUOJ2WLJDOMFWWLLTXMF2GG2C7MFRXI2LWNF2HTAVFOZQWY5LFUVUXG43VMWSG4YLNMWVXI2DSMVQWIX3UPFYGLLDTOVRGUZLDORPXI6LQMWWES43TOVSUG33NNVSW45FGORXXA2LDOOJIFJDUPFYGLKTSMVYG643JORXXE6NFOZQWY5LFVE3TKMBQGM3TOMZUQKSHI6LQMWSWS43TOVS2K5TBNR2WLKRSGE4TSMRQGU2DCNNHORZGSZ3HMVZKMY3SMVQXIZI. You are receiving this email because you are subscribed to this thread.

Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

aakash-shah commented 6 months ago

Sounds good, thanks!

Here are the fields I thought were interesting to consider: HKCU\Software\SyncEngines\Providers\OneDrive: MountPoint LibraryType UrlNamespace WebUrl LastModifiedTime (figured would be better as DateTime)

HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\SyncRootManager: DisplayNameResource TenantName

Perhaps you may have more info, but I was unclear how LastModifiedTime worked since the date/times don't seem to make sense to me. But I figured it would be nice to include it so that we could leverage it when we do figure out how it works.

I look forward to whatever fields you decide to add into the C code!

Thanks!

rodneyviana commented 6 months ago

The initial request plus the status string (I could find the exact names in the API enum). Those latest fields are not so universal as you think, but I believe UrlNamespace is useful but I will not implement now as it requires matching the OneDrive type to the key.

aakash-shah commented 6 months ago

Ok thanks. I can add the additional information on my end if I need - appreciate your help with this!