Create the following registry script in a location they have access to, let's say c:\windows\system32 (or in \servername\netlogon) and name it AddIPLocalIntranet.reg
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Ranges\Range10000]
"https"=dword:00000001
":Range"="199.198.197.196"
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Ranges\Range10001]
"https"=dword:00000001
":Range"="199.198.197.197"
I choose a number for the range that was very high, so it would not interfere with any ones you may already have. Use 10000 and 10001. Just edit the IP addresses in the example.
Then create the following batch file to run that registry script in the C:\Windows\system32 directory (or again, the netlogon share) and name it AddIPLocalIntranet.bat
regedit /s C:\ Windows\system32\AddIPLocalIntranet.reg
Add that batch file to any place you want to run it from...logon script, group policy, etc.
I tested this, but in case I typed anything wrong, and it does not work, post back.
I am not sure about the command line thing, but why don't you tell us more about the underlying problem. I might be able to answer that easier than the actual question. – KCotreau – 2011-07-15T20:07:31.030
Hi KCotreau and thanks for your interesting. You're always very kind. My company has developed a web application that requires to add the ip of two servers to local intranet and to activate some activex. We don't have any chance to work on the policies of the company that uses our application. Unluckily some pcs of this o.u. take the policy in the correct way, while others take just one of the two ips and others no one. This is the reason why I was looking for a way to run a batch at logon in order to add those two ip to every computer that runs our app. Thanks. – nick rulez – 2011-07-15T20:18:58.833
2Hi @eric, please mention users with @ in order to have them get notifications, secondly, please use the [edit] functionality to rewrite/add information to your question rather than have people reading through the comments. – slhck – 2011-07-15T20:35:25.373
@slhck. Hi. I'll follow your advice from the next time. Please forgive me. Bye. :) – nick rulez – 2011-07-16T10:25:07.503
Don't worry about it! @eric – slhck – 2011-07-16T10:35:51.610