powershell command/script

Jacques Strydom 1 Reputation point
2021-07-05T08:41:41.507+00:00

Good Day. I am looking for a power shell command string/script that will do the following.
I have 3 Microsoft accounts signed in on a pc in this order
account 1: local machine account
account 2: personal Microsoft account
account 3: business Microsoft account

what i want to happen:
1.take the local machine account and make that the default sing-in(log on) account for the pc.
2.use the personal Microsoft account to be the only account used for one drive
3. use the business Microsoft account to be the only account used for office 365 and Microsoft teams.

Microsoft 365 and Office | Development | Microsoft 365 Publishing
Windows for business | Windows Server | User experience | PowerShell
Community Center | Not monitored
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Germán López Castañeda 21 Reputation points
    2021-07-07T00:16:50.03+00:00

    Hi.

    Is it the PC in a home environment or domain joined.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.