How to configure auto-login to One drive for users on Azure AD joined AVDs

Garima Das 1,021 Reputation points
2023-08-01T13:15:09.2066667+00:00

Hi All,

I and deploying AVD in my environment and I have both personal and pooled typed session hosts. I have received requests from users to sync their files and folders directly to the Onedrive app. The users want that once they log in to the AVD, they automatically get logged in to the Onedrive Application and their files and folder start to sync.

On the AD joined AVD's, I have used GPO to setup the setting "Silently configure Onedrive using Windows 10 or Domain credentials".

I want to achieve the same with AVD's that are Azure AD joined. How can I achieve that?

OneDrive
OneDrive
A Microsoft file hosting and synchronization service.
839 questions
Azure Virtual Desktop
Azure Virtual Desktop
A Microsoft desktop and app virtualization service that runs on Azure. Previously known as Windows Virtual Desktop.
1,375 questions
OneDrive Management
OneDrive Management
OneDrive: A Microsoft file hosting and synchronization service.Management: The act or process of organizing, handling, directing or controlling something.
1,137 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,664 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sina Salam 3,886 Reputation points
    2023-08-01T17:16:55.2333333+00:00

    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.

    1. 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.
    2. 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.
    3. 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.

    1. Also, you can try to speed things up by doing a manual sync from the client if they are not many.
      1. Click start>settings
        1. Accounts
          1. Access Work or school account
            1. Click the Azure AD user then Info
              1. Click Sync
    2. 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

    0 comments No comments