Solved

Script - Add site to Local intranet list in IE

Posted on 2006-11-23
4
3,159 Views
Last Modified: 2013-12-04
Hi,

How do i do it using kixtart?

Like this?

$chkkey = keyExist("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\xxx.net");

if $chkkey = 0
$rs=addkey"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\xxx.net");               $rs=writevalue("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\InternetSettings\ZoneMap\Domains\xxx.net","https","1","REG_DWORD");
$rs=writevalue("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\InternetSettings\Zones\1\1A00","0x00020000","REG_DWORD");
Endif  

Any better way to do it?
0
Comment
Question by:kuay23
  • 2
4 Comments
 

Author Comment

by:kuay23
Comment Utility
Ok, i think the above works.. except for this

writevalue("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2\1A00","20000","REG_DWORD")

It did not update the key...
0
 
LVL 25

Expert Comment

by:mikeleebrla
Comment Utility
>>Any better way to do it?
are you familar with GPOs?  If you are in a domain you can do this via a GPO and it will me much cleaner.
0
 
LVL 32

Accepted Solution

by:
r-k earned 500 total points
Comment Utility
I'm not familiar with kixtart, but I would guess you have a syntax error there. Try changing:

writevalue("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2\1A00","20000","REG_DWORD")

to

writevalue("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2", "1A00","20000","REG_DWORD")

or perhaps to

writevalue("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1", "1A00","20000","REG_DWORD")


Note that "Zones\2" is for "Trusted Sites" and "Zones\1" is for "Local Intranet"

Also, I am not very familiar with the significance of that entry (1A00) and the value of "20000" so I hope you know why you want to set it that way.
0
 

Author Comment

by:kuay23
Comment Utility
Thanks for the suggestions, seems like it really is a syntax error. the 20000 is for "Automatic logon only in intranet zone" (0x00020000). Anyway its wrong actually.. i tried 131072 and it seems fine.

I tested Group Policy at first too, but it seems using GP is more of importing the DC's settings to the clients..

Anyway i will award the points to r-k. Thanks.  
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

In today's information driven age, entrepreneurs have so many great tools and options at their disposal to help turn good ideas into a thriving business. With cloud-based online services, such as Amazon's Web Services (AWS) or Microsoft's Azure, bus…
No security measures warrant 100% as a "silver bullet". The truth is we also cannot assume anything but a defensive and vigilance posture. Adopt no trust by default and reveal in assumption. Only assume anonymity or invisibility in the reverse. Safe…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now