There are several ways to push a registry key to a Windows client via Intune, but after several attempts the following way is the easiest:
- 👨💻 Create a MSI via Advanced Installer
MSI files are easiest to import into Intune and deploy to all Windows devices.
Free Windows Installer – MSI Installer Tool – Advanced Installer
- ⬇️ Upload as Windows App in Intune
Add a Windows line-of-business app to Microsoft Intune | Microsoft Learn
- 📄 Definition of Detection Methods
Basically, the product code is checked by the MSI, but in addition to the product code, the registry path must also be specified.
Add and assign Win32 apps to Microsoft Intune | Microsoft Learn
- 🚀 Distribution as App
If it is an entry in the HKEY_LOCAL_MACHINE, then the MSI must be deployed to device groups only and not to users.
The advantage, of course, is the ease of adjusting the entries created or performing an update. The uninstallation of the registry keys can easily pushed via Intune.
Have fun trying it out!