Page 1 of 1 1
Topic Options
#37580 - 2003-03-07 08:41 PM Changing IE home page
kappy51 Offline
Fresh Scripter

Registered: 2003-03-07
Posts: 5
I can't seem to find a code that changes the home page on IE for all users that run the script. I guessing I need to change the HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main and then Start page. Thanks
Top
#37581 - 2003-03-07 08:44 PM Re: Changing IE home page
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Have you tried changing that particular registry value? What was the result? Why does it not work for you?
_________________________
There are two types of vessels, submarines and targets.

Top
#37582 - 2003-03-07 08:46 PM Re: Changing IE home page
kappy51 Offline
Fresh Scripter

Registered: 2003-03-07
Posts: 5
I have changed the Reg value on my local machine, but I can't seem to fimd the syntax to run this on my scripts so all users point at the same home page.
Top
#37583 - 2003-03-07 08:48 PM Re: Changing IE home page
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Look up WRITEVALUE() in the KiXtart Manual and put it into your login script.
_________________________
There are two types of vessels, submarines and targets.

Top
#37584 - 2003-03-07 08:54 PM Re: Changing IE home page
kappy51 Offline
Fresh Scripter

Registered: 2003-03-07
Posts: 5
I did look at the writevalue. I'm not really sure on the syntax WRITEVALUE("subkey, "entry", "expression", data type")

I know the data type is REG_SZ and entry is most likly http://www.whatever.com, but I'm lost on the subkey and expression.

Top
#37585 - 2003-03-07 08:55 PM Re: Changing IE home page
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear,

code:
IF WriteValue("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main", "Start Page", "http://kixtart.org", "REG_SZ") <> 0)
? "Warning KIX: error status @error (@serror)"
ENDIF

greetings.
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
#37586 - 2003-03-07 08:57 PM Re: Changing IE home page
kappy51 Offline
Fresh Scripter

Registered: 2003-03-07
Posts: 5
I thought it was easy, I just didn't understand the syntax. Thanks for your help.
Top
#37587 - 2003-03-07 08:59 PM Re: Changing IE home page
kappy51 Offline
Fresh Scripter

Registered: 2003-03-07
Posts: 5
Why would I write this as an IF and not just a writevalue. And is the ? "Warning KIX: error status @error (@serror)" needed?
Top
#37588 - 2003-03-07 09:24 PM Re: Changing IE home page
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
The reason being, if there is a problem with writing to the registry key, your users would be notified..

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#37589 - 2003-03-08 05:37 AM Re: Changing IE home page
a_non_moose Offline
Fresh Scripter

Registered: 2002-05-03
Posts: 17
Loc: UGA
(Been away from the board for quite a while, hope this is not a thread hijack).

I have a similar question along these lines:

One thing I've been doing (besides searching like mad to find the answer) is trying to beat Internet Explorer into submission.

One thing I *hate* is that (&%&$^%# msn page.
now the url is along the lines of "http://www.microsoft.com/=msnhome"
I did some searching in the registry and the key resides in the HKLM and HKCU (and I *think* the HKU\.default key, I forget).

Now, knowing that a couple of my users *gasp* like the msn page (not redirected, btw) I'd like to specifically test for that condition/key.

I've honestly got enough brain cells left after building a SAMBA box as a PDC/DNS/DHCP/etc to copy and paste code and modify a bit or two (so far my kix scripting attempts have been horrible failures).

So, for instance:
Under HKLM(and HKCU)\software\microsoft\something\internet explorer "start page" ='s http://ms.com/redirect=msnhome
If the key is found, set it to google.com or something.

I'd also like to rip outlook express out by its roots...but that is for another day....

Top
#37590 - 2003-03-08 06:12 AM Re: Changing IE home page
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear,

First we are reading the current value and we are testing "contains this string the MSN value".
We are only using MSN as search key, because it is possible that microsoft is changing the URL
link but mostly MSN will stay an element of any new format.
Secondly we replace it with the defined starting page, when not find.

code:
$start_page="http://www.google.com"
;
IF (Instr("msn",ReadValue("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main", "Start Page")) <> 0)
IF WriteValue("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main", "Start Page", $start_page, "REG_SZ") <> 0)
? "Warning KIX: error status @error (@serror)"
ENDIF
ELSE
? "HKCU value "+ReadValue("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main", "Start Page")
ENDIF
;
IF (Instr("msn",ReadValue("HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\Main", "Start Page")) <> 0)
IF WriteValue("HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\Main", "Start Page", $start_page, "REG_SZ") <> 0)
? "Warning KIX: error status @error (@serror)"
ENDIF
ELSE
? "HKLM value "+ReadValue("HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\Main", "Start Page")
ENDIF

greetings.
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
#37591 - 2003-03-08 06:14 AM Re: Changing IE home page
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
For Outlook take also a look on our site.
On "summary of Site" or "Home - Kix Scripts" you will find our script outlook.kix
for ideas.
greetings.
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
#37592 - 2003-03-08 04:41 PM Re: Changing IE home page
a_non_moose Offline
Fresh Scripter

Registered: 2002-05-03
Posts: 17
Loc: UGA
Yeehaa.

I can't wait to get to work monday and try this out.

Perhaps I'd over complicated it, but it was along the lines of "IF msn home is found in HKCU, replace it. Same for HKLM, if found, replace."

Friday I was admiring the cleanup.kix (comprehending about 1/2 of it thanks to the comments).

Wow.

What about values I know I want replaced/written no matter what?
For instance I've got a Filer that only seems to understand plain text passwords when dealing with workstations directly.

would I just put a writevalue (HKLM\sw\ms\winnt\wkstation\parameters\rdr, "plaintextpassword" = 1)

{yes, I know that looks horrible. My last serious programming effort was '95 while in school}

Top
#37593 - 2003-03-08 08:49 PM Re: Changing IE home page
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear,

Our cleanup.kix scripts deals with all kind of formats, which
requires different solutions.

Some examples
- a fixed key, which can remove easily.
- a serial of keys like "File1", "File2", ..., "File9" requires an additional loop structure
- a serial of keys with different names must first detect
- sometimes all keys lays below a specific section key like "Recent List"
- sometimes you may only remove the value of specific keys
- sometimes you find individual keys and values in an INI file
greetings.

btw: your example must show something like

WriteValue("HKLM\software\microsoft\winnt\wkstation\parameters\rdr", "plaintextpassword", "1", "reg_sz")
instead of
WriteValue(HKLM\sw\ms\winnt\wkstation\parameters\rdr, "plaintextpassword" = 1)

(sw should be software)
(ms should be microsoft)

greetings.

[ 08. March 2003, 22:02: Message edited by: MCA ]
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
#37594 - 2003-03-08 09:53 PM Re: Changing IE home page
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Please use correct KiXtart syntax when posting code!

Otherwise, you'll be confusing both the old-timers and newbies alike.
_________________________
There are two types of vessels, submarines and targets.

Top
#37595 - 2003-03-09 02:35 AM Re: Changing IE home page
a_non_moose Offline
Fresh Scripter

Registered: 2002-05-03
Posts: 17
Loc: UGA
Oops, sorry.

I was working from memory --a very tired, beaten up and short circuted memory-- on those and hadn't quite gotten them burned into the brain cells, yet.

Today is sort of the first time in a month or so that I've actually felt human.

As soon as I try this at work and get it working, I'll post what I have to hopefully tame IE and help anyone who has a filer(NAS box), PDC and NT/2k.

Top
#37596 - 2003-03-10 02:45 PM Re: Changing IE home page
a_non_moose Offline
Fresh Scripter

Registered: 2002-05-03
Posts: 17
Loc: UGA
Ok, now that coherent thought is possible, for anyone who wants to use this reg entry, here goes:
I've put up the actual reg key (pilfered from winguides.com...excellent resource for reg tweaks, btw) and put up the example code.

Correct me if I am wrong, but this is a value I want put in reguardless of condition, so no error checking should be needed, except perhaps for a brief check of OS (NT4/2k) which I'm going through the cleanup.kix and trying to graft the needed code.

code:
Windows 2000 and XP Reg Entry:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanWorkStation\Parameters]

Kix Entry
WriteValue("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanWorkStation\Parameters", "EnablePlainTextPassword ", "1", "REG_DWORD")


Windows NT Reg Entry:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Rdr\Parameters]
EnablePlainTextPassword REG_DWORD 0x00000001 (1)

Kix Entry:
WriteValue("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Rdr\Parameters", "EnablePlainTextPassword ", "1", "REG_DWORD")

On a side note:
How does one get the code in the tags to be color coded and not this ugly 7pt font that is unreadable and non-color coded?

I've see it on occasion and the readability difference is astounding.

[ 10. March 2003, 14:58: Message edited by: a_non_moose ]

Top
#37597 - 2003-03-10 03:14 PM Re: Changing IE home page
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Please post correct KiXtart code, what you posted is not syntactically correct.

For posting color-coded KiXtart code, please use PostPrep, a KiXForms GUI utility to create color-coded syntax-highlighted code.

Use the KiXtart BBS search to find PostPrep.
_________________________
There are two types of vessels, submarines and targets.

Top
#37598 - 2003-03-10 09:26 PM Re: Changing IE home page
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear,

We have restyle your previous post. Preventing misunderstandings

Windows 2000 and XP Reg Entry info:
quote:

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanWorkStation\Parameters]

EnablePlainTextPassword REG_DWORD 0x00000001 (1)

Kix-code:
code:
WriteValue("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanWorkStation\Parameters", "EnablePlainTextPassword ", "1", "REG_DWORD")

Windows NT Reg Entry info:
quote:

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Rdr\Parameters]

EnablePlainTextPassword REG_DWORD 0x00000001 (1)

Kix-code:
code:
WriteValue("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Rdr\Parameters", "EnablePlainTextPassword ", "1", "REG_DWORD")

Good to hear you get it working.
greetings.
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

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
1 registered (Allen) and 1607 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.072 seconds in which 0.026 seconds were spent on a total of 12 queries. Zlib compression enabled.

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