Windows 10 Auto sign-in to a "work or school account" on Windows 10

  • Thread starter Thread starter Tony MCP
  • Start date Start date
T

Tony MCP

Guest
Office 365, the Windows private store, and other apps want a "work or school" account connected to Windows. So, I need to connect the user's organizational account to their desktop account.

Simple through the GUI: Settings --> Accounts --> Access work or school --> click the Connect button. The user enters their email address and clicks Next. A few seconds later, "You're all set!" message appears, and the account is added to the list.

I want to automate this!

Automating this should be trivial. I really though it would as easy as:
Connect-OrgAccount -User "$Env:USERNAME@<mydomain>.com"

I've been searching for weeks and haven't found a way to do this.

Notes:

  • All our computers are on-premises AD joined.
  • Most PCs are Windows 10 v1607 Enterprise (some are still v1511 Ent)
  • We have AD Federated Services installed and syncing the user accounts so that O365 licenses can be assigned.
  • We do not use any other Azure services (ADFS was installed only for O365 licensing).
  • The user is not prompted for a password (probably because of ADFS)
  • The user can type anything before the @ for the email address, and as long as the domain is correct, the user's correct account will be connected (probably because of ADFS)

Help, please :)


-Tony

More...
 
Back
Top