1. Zen IT Technologies
  2. Technical notes
  3. What's on the Windows setup stick?

What's on the Windows setup stick?

Jonny Flaks, Founder & Principal Architect

Technical note in Endpoint Management & MDM

The USB stick in the IT drawer says "LAPTOP SETUP." A technician applies the package to a new Windows machine. Before a user signs in, the device has a name and appears in management. Now the stick is missing. What would you need to know before telling the office manager it is safe to make another one?

Count three things

Windows Configuration Designer can put Wi-Fi settings, certificates and enrollment material into a provisioning package. What matters is what your particular package contains. A package that only applies settings has a different exposure from one that can enroll a machine or create a local administrator.

Start with the source project. The project files can hold sensitive information and stay unencrypted even when you encrypt the exported package. Restrict access to the build folder and its backups. Then count the exported copies, including the one a remote office downloaded when its original stick stopped working.

Inventory behind the setup stick
ItemReview detail
Source project Who can read the project and its backups?
Exported package Where are the copies and who holds the password?
Enrollment identity When does it expire and who can revoke it?
Securing the USB stick covers one copy of one part of the enrollment process.

Finally, identify the credential behind enrollment. For Microsoft's Entra bulk-enrollment flow, associate the package with its expiry date and its package account. Removing the associated package account revokes the package before it expires. A third-party MDM can handle this differently. Record the procedure your package actually uses.

What a stranger's laptop would get

The stick is the smaller worry. The larger one is a device you do not own appearing in your management console as one of yours. What that is worth depends on what your environment hands a device for being enrolled: certificates, Wi-Fi profiles, VPN configuration, a compliant status that conditional access trusts. "Your identity provider and your MDM are two control planes" covers the trust side of that decision.

If enrollment alone earns access, the package is a key to that access. Require a user binding, a compliance check or both before a device receives anything worth having. Then watch new enrollments. An unexpected device is the clearest sign that a package is somewhere it should not be.

Expiry is a feature

Entra bulk enrollment tokens last at most 180 days. A package built today stops working all at once six months from now, which is annoying for a week and useful the rest of the time. Put the expiry date in the calendar and rebuild on purpose.

Third-party MDM secrets vary. Some expire, some last until someone rotates them. If yours does not expire, decide how often you will rotate it anyway, and rotate it when someone who held a copy leaves.

The same thinking applies to a temporary local administrator the package creates. Give it a password unique to the package, have the MDM remove it once a user is bound to the device, and check machines from earlier runs, where it tends to survive. Microsoft notes that a local account created by a provisioning package needs its password changed every 42 days or it may be locked out, which is one more reason not to build anything that depends on it staying around.

One package, one purpose

A single package that does everything for every office is convenient until it leaks. Separate packages for different sites or device roles keep each one smaller, with fewer secrets and a narrower set of devices to review if it goes missing. Name each package for its purpose and its expiry date, so whoever holds a stick can tell whether it is still meant to work.

Follow a new device past enrollment

On a spare, authorized machine, inspect what appears immediately after enrollment. Which profiles arrive? When is a user bound to the machine? When does it meet your compliance policy? At what point can it reach a business service? Those can be four separate events.

Retiring a package closes a route for future enrollments. Review devices already enrolled with it separately. If the package carried other shared credentials, account for those individually as well.

If the stick goes missing

Work from the inventory rather than from the stick. Revoke the enrollment credential. For an Entra bulk token that means deleting its package account. Rotate any third-party MDM secret the package carried, change the password of any local administrator it creates, and change any Wi-Fi key it included.

Then list the devices enrolled since the stick was last seen, and confirm each one is yours. Build the replacement from the source project with new secrets, and write down where each copy goes this time.

The check worth running

Choose one package still in circulation. Ask another administrator to locate its source project, identify the credential and expiry, and find the devices enrolled during its last deployment. If all they can locate is the USB stick, the recovery plan is incomplete.

Product note. Product features change frequently, so always check current features and documentation before acting on this note. It is a starting point rather than a configuration reference.

Explore this expertise: Endpoint Management & MDM

All technical notes