A laptop
Windows, or a Mac with macOS 12 or newer, connected to the internet.
Fitted a new battery? Plug your laptop into the car, check the battery your BMW has on record, press Register, and about 10 seconds later the car knows it has a new battery and charges it as one. You don't need to book the garage for it.

The short answer
To register a new BMW battery, connect your laptop to the OBD port, open Bimmer UltraTool and go to Diagnostics, then 12V Battery. Press Register a new battery, confirm it is the same size and type as the old one, and press Register battery with the engine off and the ignition on. It takes about 10 seconds.
Your BMW keeps a record of its 12V battery: the type and capacity it is set up for, and the mileage at each replacement. It charges the battery according to that record, and it has no way of seeing that a new one has gone in.
Registering adds the replacement to that record, so the car charges the new battery as new. Skip it and the car carries on charging it as the battery it replaced.
What you need
Windows, or a Mac with macOS 12 or newer, connected to the internet.
An ENET cable for F, G and I-series BMWs, a K+DCAN USB cable for E-series. It plugs into the OBD port under the dashboard. Which one?
Shows the battery your car has on record, registers the new one and tells you whether the car accepted it. £49 once, for your computer. Pricing
How it works
Fit the new battery and connect it. Plug the cable into the OBD port under the dashboard and into your laptop, switch the ignition on with the engine off, and press Connect. The app finds your car by itself.

Open Diagnostics, then 12V Battery. The app reads the battery your car is set up for (a 90 Ah AGM here), its state of charge, and the mileage at the last two replacements. That record is what the car charges by; it can't tell which battery is actually fitted.

Press Register a new battery. The app asks whether the new battery is the same size and type as the one on record. A different capacity, or an AGM in place of a standard battery, has to be coded first, and the app tells you so before anything is sent.

The app lists what your car needs: the engine off and the ignition on. On cars with a Start button, press it twice without touching the brake pedal. Press Register battery and keep the ignition on for the 10 seconds it takes.

The app reads the battery again and tells you what your car reports. Battery registered means the car accepted it and its history now shows the replacement. If the history hasn't changed yet, the app says so and suggests reading it again after the next drive.

Why do it yourself
Register it as soon as it is fitted and the car charges the new battery as a new one from the first drive.
Type, capacity, state of charge and the mileage of the last two changes, before you register and after.
The app reads the battery back and says in plain words whether the registration went through.
Questions
Your BMW keeps a record of its battery and charges it according to that record. Registering tells the car a new battery is fitted, so it charges it as a new one. Without it, the car goes on charging the new battery as if it were the old one.
A battery with a different capacity, or an AGM battery in place of a standard one, has to be coded to the car before it's registered. Bimmer UltraTool registers a battery of the same size and type. If the change has already been coded, you can register it straight away.
About 10 seconds once you press Register battery, plus the minute it takes to connect.
No. The engine has to be off and the ignition on. On cars with a Start button, press it twice without touching the brake pedal, and keep the ignition on until the registration finishes.
The app tells you straight away. If the engine module refuses, it shows the code the car gave and asks you to check the engine is off and the ignition on before trying again. Some cars accept the registration but update their battery history later; the app tells you that too.
E, F and G-series BMWs, on Windows or a Mac.
More guides
To reset the BMW service light: connect your laptop with a cable, open Service and press Reset beside the oil, brakes or other item you have serviced.
To read BMW fault codes: plug a cable into the OBD port and your laptop, press Read and see every module's codes with their meaning. Clear them all in one go.
To code a BMW, plug a cable into the OBD port and your laptop, open a module, switch the settings you want and press Code. Every step, with real app screens.
BMW coding list for E, F, G and I-series: lights, mirrors and locks, the cluster, iDrive, sound and driving modes, with what each setting does and its module.
The same app resets the service light, reads and clears fault codes and codes your BMW. One licence, paid once, for your computer.