Repository navigation
Backlog
Description
Related user story
Task
This sub-issue makes fleetd run zero-touch setup on the device, from its first start during Windows setup to the end user's desktop. On any other device, fleetd works as it does today.
What changes:
- fleetd asks for zero-touch only if it came from the zero-touch package and Windows setup was running at its first start. It decides once and remembers it.
- fleetd installs the sign-in screen components, shows the IdP sign-in, and then runs the setup experience there. The password step appears once software and scripts are finished and no device profile is pending.
- If a software install fails and the fleet requires all software, the device stays at the sign-in screen and tells the end user to contact IT.
- Ctrl+Shift+X brings back the normal Windows sign-in screen after a restart, so the managed local admin can sign in. It works at every step, also offline. It doesn't change anything in Fleet, so a held host stays held.
- Windows setup needs a local account in
unattend.xml. fleetd changes that account's password to a random one it doesn't save, then deletes the account when the sign-in screen appears. - fleetd moves the MDM enrollment to SYSTEM and reports it.
- After the end user's first sign-in, fleetd removes the sign-in screen components and the hidden account, and reports setup as completed.
Out of scope:
- Turning on BitLocker before the IdP sign-in.
- Signing in to Windows with the IdP password (Windows: sync the local account password with the end user's IdP password #57799).
- Starting zero-touch again after Reset this PC.
- The troubleshooting mode (Windows zero-touch: troubleshooting mode #59615).
Open questions
- Windows Hello PIN. Nothing asks the end user to set one up. Either Fleet Desktop opens the Windows sign-in options once after setup, or it's left out of the first release. Product decides.
Implementation notes: the windows-zero-touch OpenSpec change (#60856). Reference implementation: draft PR #60106.
Condition of satisfaction
- A new device goes from Windows setup to the desktop with one IdP sign-in and one password choice. MDM is still on afterward.
- The zero-touch package on a device that's already set up, and a regular package during Windows setup, both enroll as usual.
- Restarting the device at any step continues from that step.
- A pending device profile delays the password step, and a failed one doesn't.
- A failed install blocks the device only if the fleet requires all software.
- Ctrl+Shift+X works before the IdP sign-in, during setup, after a failed install, and at the password step, online and offline.
- The password from
unattend.xmlstops working within seconds of fleetd starting, also after a restart during Windows setup. The account is gone once the sign-in screen appears, and failed attempts are retried. - fleetd doesn't touch an account that has the expected name but a different description.
- The normal sign-in screen comes back if the server is too old for zero-touch, fleetd's saved state can't be read, or WebView2 is missing. It doesn't come back only because Fleet can't be reached.
- After setup, or if setup ended early, no sign-in screen components or hidden account are left, and Shift+F10 works again.
- Unit tests cover each step, and an orbit changes file is added.
Metadata
Metadata
Assignees
Labels
~sub-taskA technical sub-task that is part of a story. (Not QA'd. Not estimated.)
Type
Projects
- StatusShow more project fields📨 Inbox
Activity