Hello @Garima Das
Welcome to Microsoft Q&A and thank you for posting your questions here.
You were asking how to configure auto-login to OneDrive for users on Azure AD joined via Azure Virtual Desktops (AVDs).
There are many options through your existing GPOs.
- To configure OneDrive auto login for Azure AVD client, you can use the OneDrive for Business Auto Sign In feature. This feature allows you to sign in automatically to OneDrive for Business on Windows 10 OneDrive client auto sign in.
- You can also use the OneDrive sync app on virtual desktops that persist between sessions or non-persistent virtual desktops that use Azure Virtual Desktop.
- You can also push a registry change through Intune with a PowerShell script. Using this code as an example:
Set-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\OneDrive' -Name 'DisableFileSyncNGSC' -Value 0
In Intune go to Scripts. Make a new Script and choose Windows 10 and upload the PS1 file. You can then assign it to your groups as needed.
- Also, you can try to speed things up by doing a manual sync from the client if they are not many.
- Click start>settings
- Accounts
- Access Work or school account
- Click the Azure AD user then Info
- Click Sync
- Click the Azure AD user then Info
- Access Work or school account
- Accounts
- Click start>settings
- You can configure the OneDrive sync client to automatically sign in users with their Windows credentials. To do so, you can assign a Configuration Policy to the device to configure the OneDrive agent to use your company Tenant and auto-sign-in using the same account used to log in to Windows.
I strongly believe any of these options will be suitable for your need. NOTE: Option number 3 can be used in your Azure AD as a GPO script using PowerShell.
I hope this is helpful! Do not hesitate to let me know if you have any other questions.
Please remember to "Accept Answer" if answer helped, so that others in the community facing similar issues can easily find the solution.
Best Regards,
Sina Salam