fleetdm / fleet

Open-source platform for IT, security, and infrastructure teams. (Linux, macOS, Chrome, Windows, cloud, data center)
https://fleetdm.com
Other
2.93k stars 409 forks source link

Migrate Windows hosts #13667

Open noahtalerman opened 1 year ago

noahtalerman commented 1 year ago

An "on" button in Fleet so you have control over when Windows workstations switch.

Edge cases

Goal

User story
As an IT admin,
I want to migrate my Windows hosts from my old MDM solution to Fleet w/o end user action
so that I can use Fleet to enforce configuration on these hosts.

Changes

Product

Engineering

ℹ️  Please read this issue carefully and understand it. Pay special attention to UI wireframes, especially "dev notes".

Context

QA

Risk assessment

Manual testing steps

  1. Step 1
  2. Step 2
  3. Step 3

Testing notes

Confirmation

  1. [ ] Engineer (@____): Added comment to user story confirming succesful completion of QA.
  2. [ ] QA (@____): Added comment to user story confirming succesful completion of QA.
noahtalerman commented 1 year ago

Hey @zhumo taking this off the drafting board because we won't get to it in the next sprint. I added it to FF because I think we want to bring it back.

noahtalerman commented 1 year ago

Marcos: We can do this programmatically. fleetd will do the unenroll from the old MDM and turn on MDM again to talk to Fleet.

zhumo commented 1 year ago

If that’s the case, does this need to be done at all?

On Thu, Sep 14, 2023 at 12:19 PM Noah Talerman @.***> wrote:

Marcos: We can do this programmatically. fleetd will do the unenroll from the old MDM and turn on MDM again to talk to Fleet.

— Reply to this email directly, view it on GitHub https://github.com/fleetdm/fleet/issues/13667#issuecomment-1720009920, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABI4PYRQABT7CZZ7OFDHO6LX2NKCPANCNFSM6AAAAAA4IBL3LU . You are receiving this because you were mentioned.Message ID: @.***>

noahtalerman commented 10 months ago

Marcos: 2 scenarios: 1) device is not connected to Azure and 2) device is connected to Azure

1) Easier: Programmatically unenroll via Windows API => programmatically enroll via API (already do this)

2) Is it possible to do the migrate w/o logging the user out of the device? @marcosd4h can you please leave a comment w/ the Windows APIs we should use to test this?

marcosd4h commented 10 months ago

The MDM programmatic APIS exposed by Windows SDK are detailed here.

We can use UnregisterDeviceWithManagement with an empty argument to unenroll the device from ongoing MDM server.

Then RegisterDeviceWithManagement, RegisterDeviceWithManagementUsingAADCredentials, and RegisterDeviceWithManagementUsingAADDeviceCredentials could be used to enroll the device to a different MDM server.

noahtalerman commented 21 hours ago

Hey @dherder adn @pintomi1989 , we filed a separate user story for this request.

I removed this request from the feature fest board.

cc @rachaelshaw