OneDrive personal vs business

Ronald Mertens 1 Reputation point
2021-01-09T19:14:04.143+00:00

Hi,

I've got a question.

I have users that started using OneDrive with the "personal" OneDrive. But I need them to use the business side of it.

Is it possible to add the tenant by e.g. GPO? So that they will get the white and blue cloud in the system taskbar?

I know it can be done by the user by "adding an account" from the GUI.

But I don't want the user to do that, I want to be able to do this by script of command line (so without user interaction).

I searched, but can not find any OneDrive parameters that would allow me to do so.

Restarting OneDriveSetup.exe again isn't a solution, as it stops withe the popup that the current version is newer.

So I am looking for something like OneDrive.Exe /silent /signon %username%.

Who has any experience with this?

Any help is appreciated.

with regards,

Ronald

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,185 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Erin Ding-MSFT 4,461 Reputation points
    2021-01-11T06:56:35.09+00:00

    @Ronald Mertens

    If you would like to add the tenant, you could try to navigate to Computer Configuration\Policies\Administrative Templates\OneDrive, Enable Allow syncing OneDrive accounts for only specific organizations.
    To enter a tenant ID, in the Options box, select Show.
    Then you could enter the tenant ID like 1111-2222-3333-4444.
    55134-1.png
    More information about this issue, you could refer to “Allow syncing OneDrive accounts for only specific organizations”.

    If needed, you may also Prevent users from syncing personal OneDrive accounts.

    Besides, do you need to configure the user account to log in silently?
    As far as I know, the feature “Silently configure user accounts” maybe meet your requirement.
    However, it requires computers to be joined to Azure Active Directory (Azure AD).

    Any misunderstandings or updates, please let me know.


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    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.


  2. Ronald Mertens 1 Reputation point
    2021-01-15T10:52:58.353+00:00

    Hi,

    The mentioned setting just limits the number of tenants you can connect with.
    Not how the computer/user is silently connected to a specific tenant.
    The same settings in the GPOs that I use for Windows 7 (but also with file on-demand) run perfectly fine on Windows 10.

    The setting that seems to be causing the problems is:

    "Silently sign in users to the OneDrive sync app with their Windows Credentials" (which is a computer setting - regkey SilentAccountConfig).

    If set the popup for OneDrive will appear (should not to) and if you put in your credentials a screen will appear stating you have Internet Connection problems.
    After you cancel that, the next time OneDrive is started (OneDrive.Exe in the user profile) you ARE connected to the tenant (silently).

    I had this running 6 months ago. Now it won't work anymore.
    And yes, in the user configuration I use EnableADAL=1

    So, I have it running on Windows 10 now, but stil have problems with silent install of OneDrive on Windows 7

    0 comments No comments