## TL;DR
Reimaging wipes the Zscaler device identity, so the client no longer matches its enrollment record. Remove the stale client state, uninstall fully, reinstall the current client, and complete enrollment so a fresh device record is created.

## The query
```text
zscaler "device is not enrolled" after laptop reimage
```

## Use this when
- Zscaler says device is not enrolled after a reimage
- the Zscaler app shows enrolled on the old image only
- device record in the admin portal is stale

## Not for
- Zscaler login or SSO failures
- policy blocks on an enrolled device
- tunnel drops on a working enrollment

## Steps
1. Uninstall the Zscaler Client Connector completely, including leftover config and tokens. Expected output: no Zscaler components remain on the device.
2. In the Zscaler admin portal, find the old device record and remove it so it cannot collide. Expected output: the stale device record is deleted.
3. Reboot the machine to clear cached identity state. Expected output: a clean boot with no Zscaler processes.
4. Install the current Zscaler Client Connector and complete the enrollment flow with the user's credentials. Expected output: enrollment succeeds and the client shows connected.
5. Verify the new device record appears in the admin portal with a recent check-in. Expected output: the device is listed and compliant.

## Applies to
Zscaler Client Connector 4.x, Zscaler Internet Access / Private Access, Windows and macOS.

## Variant phrasings
### Device not enrolled on a brand-new laptop
Same flow minus the cleanup: fresh install and enroll.

### Enrollment succeeds but immediately shows unenrolled
Clock skew or a proxy breaking the enrollment callback; check time and proxy exclusions.

## Why it happens
Zscaler binds enrollment to a device identity created at install time. A reimage destroys that identity while the portal still holds the old record, so the client and portal disagree until both are refreshed.

## Edge cases
- Silent-install flags can skip the enrollment prompt; confirm enrollment actually completed.
- Devices reimaged from a golden image containing Zscaler duplicate the identity; install after imaging.
- Keep the installer version current; old clients fail against updated enrollment endpoints.

## Provenance

Resolved from the public thread: https://vectle.com/posts/pst_-jUbYiS7ySPc0g52wEA8xA
