0

I'm seeking to do exactly what is asked here, but from the command line. I'm performing an unattended installation of Windows 10 and wish to be able to execute a command or modify an entry in the registry to rid this:

enter image description here

fredrik
  • 570

1 Answers1

2

You will simply need to add it to the registry. This is an export from a test I did, using 192.168.0.10:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Ranges\Range1]
"*"=dword:00000001
":Range"="192.168.0.10"

I'm not sure if it's possible to use HKLM instead of HKCU, but I presume it's on a per user basis.

In terms of a command line:

reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Ranges\Range1" /v "*" /t REG_DWORD /d "1"
reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Ranges\Range1" /v ":Range" /t REG_SZ /d "192.168.0.10"

Obviously change the IP to suit, and if you need more use Range2, Range3 etc.

Jonno
  • 21,643