Page 1 of 1 1
Topic Options
#58189 - 2001-08-11 05:54 AM Quick config for IE...
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Don't know if this has been done yet..

But if you write to this value in the Registry, you do not have to go through the Internet Explorer Setup Wizard. No IEAK needed, if your users are on LAN/WAN.

If you want to get PSGETSID - http://sysinternals.com/ntw2k/freeware/psgetsid.shtml

Check it out (untested with PSGETSID).

code:

$sid = SHELL"psgetsid \\@WKSTA -u @USERID"

$RC = WriteValue("HKEY_USERS\"+$sid+"\Software\Microsoft\Internet Connection Wizard","Completed","01,00,00,00","REG_BINARY")



If using KIX 4.00 or 3.63 with AD Support, you should be able to simply do -
code:

$RC = WriteValue("HKEY_USERS\@SID\Software\Microsoft\Internet Connection Wizard","Completed","01,00,00,00","REG_BINARY")

What do you think?

- Kent

[ 11 August 2001: Message edited by: kdyer ]

[ 13 August 2001: Message edited by: kdyer ]

[ 13 August 2001: Message edited by: kdyer ]

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

Top
#58190 - 2001-08-11 06:35 AM Re: Quick config for IE...
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Yea, it should work... but then again there are lots of ways to skin a cat. In Win2k you can do it with group policies. My favorite way however, is to preconfigure one profile and then from System Properties | User Profiles, copy that profile to Default user.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#58191 - 2001-08-13 01:43 PM Re: Quick config for IE...
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
I added it right away to my logonscript
_________________________
!

download KiXnet

Top
#58192 - 2001-08-13 07:49 PM Re: Quick config for IE...
bleonard Offline
Seasoned Scripter
*****

Registered: 2001-01-19
Posts: 581
Loc: Chicago, IL
Kyder - glad to incorporate into my script. A couple things:

+ Why not use HKCU and avoid the @SID step?
+ Reg Type is BINARY for my Win2K Pro system,
REG_DWORD for WinNT 4.

Bill

Top
#58193 - 2001-08-13 08:16 PM Re: Quick config for IE...
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
I know there is room for improvement for this.. I was working on this about 16:55 Hrs and was wanting to get out of the office on Friday.

Thanks for the feedback!

- Kent

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

Top
#58194 - 2001-08-13 09:30 PM Re: Quick config for IE...
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Bill,

I updated the script to reflect the REG_BINARY type. It is Binary on W2k as well as NT.

Here is the script as it sits now..

code:

;*************************************************************************************
; Pre-Configure Internet Explorer
;*************************************************************************************
$HKCUS = 'HKEY_CURRENT_USER\SOFTWARE'
$IESetup = ReadValue($HKCUS+"\Microsoft\Internet Connection Wizard","Completed")
?$IESetup
If $IESetup <> "01000000"
$RC = WriteValue($HKCUS+"\Microsoft\Internet Connection Wizard","Completed","01,00,00,00","REG_BINARY")
If Exist("%userprofile%"+"\desktop\"+"Connect to the Internet.LNK") Del "%userprofile%"+"\desktop\"+"Connect to the Internet.LNK" EndIf
EndIf

Thanks!

- Kent

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

Top
#58195 - 2001-08-14 12:15 AM Re: Quick config for IE...
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Had to revert back to @SID...

Here it is:

code:

Break ON Cls
;*************************************************************************************
; Pre-Configure Internet Explorer
;*************************************************************************************
$IESetup = ReadValue("HKEY_USERS\@SID\Software\Microsoft\Internet Connection Wizard","Completed")
If $IESetup <> "01000000"
$ICW=EXISTKEY("HKEY_USERS\@SID\Software\Microsoft\Internet Connection Wizard")
If $ICW <> 0
$RC=ADDKEY("HKEY_USERS\@SID\Software\Microsoft\Internet Connection Wizard")
endif
$RC = WriteValue("HKEY_USERS\@SID\Software\Microsoft\Internet Connection Wizard","Completed","01","REG_BINARY")
If Exist("%userprofile%"+"\desktop\"+"Connect to the Internet.LNK") Del "%userprofile%"+"\desktop\"+"Connect to the Internet.LNK" EndIf
EndIf

Thanks!

- Kent

[ 14 August 2001: Message edited by: kdyer ]

[ 14 August 2001: Message edited by: kdyer ]

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

Top
#58196 - 2001-08-14 11:14 AM Re: Quick config for IE...
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
your syntax "rendering" is allmost as weird as mine, but I could read it thou...

so, I checked it and ofcourse I had to edit it
I had in mind the speed and most of all, the length of the script part, if needed to add it to existing scripts.

code:

;*************************************************************************************
; Pre-Configure Internet Explorer by KDYER
;*************************************************************************************
If "01000000" <> ReadValue("HKEY_USERS\@SID\Software\Microsoft\Internet Connection Wizard","Completed")
If 0 <> ExistKey("HKEY_USERS\@SID\Software\Microsoft\Internet Connection Wizard")
$ = AddKey("HKEY_USERS\@SID\Software\Microsoft\Internet Connection Wizard")
EndIf
$ = WriteValue("HKEY_USERS\@SID\Software\Microsoft\Internet Connection Wizard","Completed","01","REG_BINARY")
If Exist("%userprofile%\desktop\Connect to the Internet.LNK")
Del "%userprofile%\desktop\Connect to the Internet.LNK"
EndIf
EndIf
;*************************************************************************************

_________________________
!

download KiXnet

Top
#58197 - 2001-08-14 05:01 PM Re: Quick config for IE...
masken Offline
MM club member
*****

Registered: 2000-11-27
Posts: 1222
Loc: Gothenburg, Sweden
hmm... interesting

Isn't the same value for this stored under HKCU in Win9x? I believe so...? anyways, a complete Win32 solution could look something like this then:

code:

;===============================================================================
;=== Exremely annoying IE stuff fixed by the guys and gals @
;=== http://kixtart.org/cgi-bin/ultimatebb.cgi?

IF @INWIN = 1
$IEregKey = "HKEY_USERS\@SID\Software\Microsoft\Internet Connection Wizard"
$ShortCut = "%USERPROFILE%"
ELSE
$IEregKey = "HKEY_CURRENT_USER\Software\Microsoft\Internet Connection Wizard"
$ShortCut = "%WINDIR%"
ENDIF

IF "01000000" <> READVALUE("$IEregKey", "Completed")
IF 0 <> EXISTKEY("$IEregKey")
$ = ADDKEY("$IEregKey")
ENDIF
$ = WRITEVALUE("$IEregKey", "Completed", "01", "REG_BINARY")

IF EXIST("$ShortCut\Desktop\Connect to the Internet.LNK")
DEL "$ShortCut\Desktop\Connect to the Internet.LNK"
ENDIF
IF EXIST("$ShortCut\Skrivbord\Anslut till Internet.LNK") ; only necessary if u know the true
DEL "$ShortCut\Skrivbord\Anslut till Internet.LNK" ; meaning of the word "smörgåsbord"
ENDIF
ENDIF


?

_________________________
The tart is out there

Top
#58198 - 2001-08-14 05:10 PM Re: Quick config for IE...
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
hmm... looks better. still there is the name of the link.
it should somewhere in the reg. like there is the name of desktop:
HKEY_USERS\@sid\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
and
HKEY_USERS\@sid\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
_________________________
!

download KiXnet

Top
#58199 - 2001-08-14 06:10 PM Re: Quick config for IE...
masken Offline
MM club member
*****

Registered: 2000-11-27
Posts: 1222
Loc: Gothenburg, Sweden
Lonkero, u mean the "Anslut till Internet.LNK" or the English "Connect to the Internet.LNK"? It's not in the registry (not on Win9x anyways).

Cj programmed a special little program for me (nice!) that extracts the contents of *.lnk, making them searchable (so u can find the target string, for example). But this would only slow things up... It's better to make a SELECT CASE if you've got several different OS/IE languages installed, I believe...?

[ 14 August 2001: Message edited by: masken ]

_________________________
The tart is out there

Top
#58200 - 2001-08-15 04:29 PM Re: Quick config for IE...
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Lonkero,

Sweet! Thanks for the insight to the IF Statement..

Mine

code:

$IESetup = ReadValue ...

Yours

code:

If "01000000" <> ReadValue ...


Much, much cleaner..

Thanks for pointing this out.

I was trying to figure out this methodology using EXISTKEY or KEYEXIST under 2001.. Hmmm..

Maybe something like -

code:

IF 1 <> EXISTKEY....

Doh!!

- Kent

[ 15 August 2001: Message edited by: kdyer ]

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

Top
#58201 - 2001-08-16 01:49 AM Re: Quick config for IE...
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Doc,

It looks like I was asleep here.

code:

$hkcus = 'HKEY_CURRENT_USER\SOFTWARE'
IF "01000000" <> ReadValue($hkcus+"\Microsoft\Internet Connection Wizard","Completed")
IF 0 <> EXISTKEY($hkcus+"\Microsoft\Internet Connection Wizard")
$ = ADDKEY($hkcus+"\Microsoft\Internet Connection Wizard")
ENDIF
$ = WriteValue($hkcus+"\Microsoft\Internet Connection Wizard","Completed","01","REG_BINARY")
IF Exist("%userprofile%"+"\desktop\"+"Connect to the Internet.LNK")
DEL "%userprofile%"+"\desktop\"+"Connect to the Internet.LNK"
ENDIF
ENDIF

Thanks!

- Kent

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

Top
Page 1 of 1 1


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

Who's Online
0 registered and 696 anonymous users online.
Newest Members
ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder, M_Moore
17887 Registered Users

Generated in 0.136 seconds in which 0.029 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