Hi @Prabhjot Singh
So far, I do not find the related OneDrive registry key to help you.
Thanks for your understanding.
The following link is about script that checks OneDrive status:
Hope it could be helpful to you.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.