Solved

Script - Add site to Local intranet list in IE

Posted on 2006-11-23
4
3,180 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 

Author Comment

by:kuay23
ID: 18006590
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
ID: 18006835
>>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
ID: 18010476
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
ID: 18017019
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

Threat Trends for MSPs to Watch

See the findings.
Despite its humble beginnings, phishing has come a long way since those first crudely constructed emails. Today, phishing sites can appear and disappear in the length of a coffee break, and it takes more than a little know-how to keep your clients secure.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The term "Bad USB" is a buzz word that is usually used when talking about attacks on computer systems that involve USB devices. In this article, I will show what possibilities modern windows systems (win8.x and win10) offer to fight these attacks wi…
Users of Windows 10 Professional can disable automatic reboots using the policy editor. This tool is not included in the Windows home edition. But don't worry! Follow the instructions below to install (a Win7) policy editor on your Windows 10 Home e…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

705 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