Hi everyone.
I would like to create a script to edit the values contained in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkList\DefaultMediaCost - Specifically to change the 3G and 4G values from 2 to 1 so Windows treats them as unmetered connections.
I was able to change this key manually on my test machine by editing the permissions of the key to give myself full access to change the values and it works (Windows no longer restricting data or popping up notification when on a cellular connection which is what I want to achieve).
I need to roll this change out to the entire Azure joined estate, all running Win10. My thoughts were to use a script in Endpoint Manager but I can't seem to get a working PS script to change this key. Can you assist please or is there a smarter way to be achieving this?

