Page 1 of 1 1
Topic Options
#203151 - 2011-09-27 05:56 PM adding URL to local intranet sites
cymba Offline
Fresh Scripter

Registered: 2011-04-27
Posts: 10
Loc: CA
Hi, I trying to add commands to my kix script which places the specified URL to the local intranet zone, however it comes up in trusted sites not local intranet. it is also using 443 not 80, I dont know if that has any bearing on the problem. Any help is greatly appreciated.

:Modify_Internet_Explorer_zones
? "Checking Internet Explorer settings."
$temp = READVALUE ("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\mediaweb.janedoe.com","*") <> "1"


Edited by cymba (2011-09-27 05:58 PM)

Top
#203156 - 2011-09-27 09:55 PM Re: adding URL to local intranet sites [Re: cymba]
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2125
Loc: Tulsa, OK
This addes a site to the local intranet zone for me...

 Code:
$nul = WriteValue("HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\janedoe.com\*.mediaweb","*","1","REG_DWORD")

Top
#203169 - 2011-09-28 10:28 PM Re: adding URL to local intranet sites [Re: cymba]
cymba Offline
Fresh Scripter

Registered: 2011-04-27
Posts: 10
Loc: CA
thanks for the response, I appreciate it. However that didnt work for me.
Here is a configuration that I see applied to the local intranet, but when I try to apply it to the other URL it doesn't apply. is it because the URL in question is https: ? Any help is greatly appreciated.


$temp = $temp + WRITEVALUE ("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\johndoe.com","*","1","REG_DWORD")

Top
#203170 - 2011-09-28 10:36 PM Re: adding URL to local intranet sites [Re: cymba]
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2125
Loc: Tulsa, OK
What shows in the registry if you manually add it?

Edited by ShaneEP (2011-09-28 10:37 PM)

Top
#203171 - 2011-09-28 10:46 PM Re: adding URL to local intranet sites [Re: ShaneEP]
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2125
Loc: Tulsa, OK
You can try manually adding the https: as well...

 Code:
$temp = $temp + WRITEVALUE ("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\johndoe.com","*","1","REG_DWORD") 
$temp = $temp + WRITEVALUE ("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\johndoe.com","http","1","REG_DWORD") 
$temp = $temp + WRITEVALUE ("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\johndoe.com","https","1","REG_DWORD")


What exactly is not working? Is it not showing up in the list at all? Anything with a 1 as the value should be added to Local Intranet...a 2 is added to trusted...etc..

Top
#203182 - 2011-09-29 08:28 PM Re: adding URL to local intranet sites [Re: ShaneEP]
cymba Offline
Fresh Scripter

Registered: 2011-04-27
Posts: 10
Loc: CA
Its crazy, it constantly shows up in trusted sites not local intranet. very weird. I check to make sure I didnt have any weird GPO's laying around.
Top
#203183 - 2011-09-29 09:11 PM Re: adding URL to local intranet sites [Re: cymba]
cymba Offline
Fresh Scripter

Registered: 2011-04-27
Posts: 10
Loc: CA
I wonder if the issue is that the URL is my homepage which automatically adds it to the trusted sites zone
Top
#203184 - 2011-09-30 01:58 AM Re: adding URL to local intranet sites [Re: cymba]
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2125
Loc: Tulsa, OK
Maybe try the same method...but with a different site and see if you get different results. I've tried the three lines I posted above on two different computers (XP and Win7) and it shows up in the local intranet list, and not in the trusted sites list.
Top
#203189 - 2011-09-30 07:42 PM Re: adding URL to local intranet sites [Re: ShaneEP]
cymba Offline
Fresh Scripter

Registered: 2011-04-27
Posts: 10
Loc: CA
Thanks Shane, I did it exactly like you said and if finally worked!! Thanks you!

one more question if you dont mind. I have another entry which reads like this in the script.
$temp = $temp + WRITEVALUE ("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\supportrequest8\trackit01","*","1","REG_DWORD")

However in my local intranet sites it reads like.

trackit01.supportrequest8

I would like it to read:

trackit01/supportrequest8

Can you help? I greatly appeciate it.

Top
#203190 - 2011-09-30 10:41 PM Re: adding URL to local intranet sites [Re: cymba]
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2125
Loc: Tulsa, OK
It appears that IE just strips everything off that follows a "/". So this should work...

 Code:
$temp = $temp + WRITEVALUE ("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\trackit01","*","1","REG_DWORD")

Top
#203191 - 2011-10-01 12:46 AM Re: adding URL to local intranet sites [Re: ShaneEP]
cymba Offline
Fresh Scripter

Registered: 2011-04-27
Posts: 10
Loc: CA
but where do I apply the path supportrequest8? show is shows trackit01\supportrequest8 ?
Thanks in advance.

Top
#203192 - 2011-10-01 04:30 PM Re: adding URL to local intranet sites [Re: cymba]
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2125
Loc: Tulsa, OK
I don't think you can. Try adding it like that through the IE options. You'll notice the next time you open it, it changes it.

And obviously if you add the *trackit01, then any directory under that should be included. For example if you add http://www.google.com to local intranet, you can see that http://www.google.com/news will also appear as local intranet.


Edited by ShaneEP (2011-10-01 04:33 PM)

Top
#203204 - 2011-10-03 05:37 PM Re: adding URL to local intranet sites [Re: ShaneEP]
cymba Offline
Fresh Scripter

Registered: 2011-04-27
Posts: 10
Loc: CA
Okay, I appreciate all of your help!
Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 152 anonymous users online.
Newest Members
rrosell, PatrickPinto, Raoul, Timothy, Jojo67
17877 Registered Users

Generated in 0.069 seconds in which 0.027 seconds were spent on a total of 14 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org