Hello Emilia Weber,
What you’re seeing is a common behavior when Group Policy Preferences set environment variables at the computer level. The registry entry is written correctly, but user processes don’t immediately pick up the new variable until a full logon cycle refreshes the environment block. That’s why your apps only discover the variable after multiple restarts.
To address this, you can:
- Configure the GPO to apply the environment variable under User Configuration instead of Computer Configuration, so it propagates directly into the user session.
- Use a logoff/logon cycle or a scheduled task to refresh the environment variables without requiring multiple reboots.
- Consider deploying the variable via a startup script that calls
setxor updates the environment block, which forces recognition in active sessions. - Check the Intune or GPO refresh interval—sometimes forcing a
gpupdate /forcehelps confirm the variable is available sooner.
I hope this guidance helps you streamline your deployment. If you find this answer useful, please hit “accept answer” so I know it addressed your concern.
Jason.