Page 1 of 1 1
Topic Options
#120995 - 2004-06-10 09:23 AM activate 802.1x through kixscript
Blom Offline
Fresh Scripter

Registered: 2004-06-10
Posts: 5
Hi is anyone able to help out on a question regarding activation of the 802.1x through kixscripts? its a registry setting that needs to be changed. more specifically this key
Code:
 HKLM\SOFTWARE\Microsoft\EAPOL\Parameters\Interfaces\{C35D2C93-FEY2-4EB3-A8AD-5C82C5B47077}\1: 

03 00 00 00 00 00 00 00 00 00 00 40 0D 00 00 00 20 00 00 00 11 22 33 11 22 33
11 22 33 11 22 33 11 22 33 11 22 33 11
22 33 11 22 33 11 22 33 11 22 33 11 22
0D 00 00 00 28 00 00 00 00 00 00 00 28
00 00 00 05 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00


if I change the number 40 to be C0 then its activated, changing it back to 40 reverts it. The biggest problem right now is to get through this interface number {C35D2C93-FEB2-4EB2-A8AC-5C82C5B47066} since its a sid its random, and how to locate random numbers? any help is much appreciated.

Regards from

Blom

Top
#120996 - 2004-06-10 04:41 PM Re: activate 802.1x through kixscript
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2127
Loc: Tulsa, OK
Is there more than one Key listed in this registry path? If so are more than one set to 40? If not then you can just use EnumKey to list the key and change it.
Top
#120997 - 2004-06-10 05:19 PM Re: activate 802.1x through kixscript
kasul Offline
Fresh Scripter
*****

Registered: 2001-12-03
Posts: 41
Loc: Hannover / Germany
aargh, how about wrapping your lines a little?

perhaps this little snippet will give some Hints:
Code:
  
Break on
$NETClassKey="HKLM\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}"

$i=0
$SubKey=EnumKey($NETclassKey,$i)
While NOT @ERROR
$NetCfgInst_GUID=ReadValue($NetclassKey+"\"+$Subkey,"NetCfgInstanceId")
$DriverDesc=ReadValue($NetclassKey+"\"+$Subkey,"DriverDesc")
? $NetCfgInst_GUID "=" $DriverDesc
$i=$i+1
$SubKey=EnumKey($NETclasskey,$i)
Loop

Gets $


_________________________
german native-> poor english sysadmin-> poor german...

Top
#120998 - 2004-06-11 09:33 AM Re: activate 802.1x through kixscript
Blom Offline
Fresh Scripter

Registered: 2004-06-10
Posts: 5
Thanks for the replies, but would it be possible for you to outline or specify exactly what your suggestion is taking care of?
Thanks
Blom

Top
#120999 - 2004-06-11 09:37 AM Re: activate 802.1x through kixscript
Blom Offline
Fresh Scripter

Registered: 2004-06-10
Posts: 5
CitrixMan

Yes there is more than one key listed, if, and when you have more than one NIC in your pc.

Top
#121000 - 2004-06-11 03:36 PM Re: activate 802.1x through kixscript
Raceeend Offline
Starting to like KiXtart

Registered: 2002-05-09
Posts: 129
Loc: The Netherlands
If you what to enable 802.1x for authentication purposes (authentication tab with NIC properties) you could also enable the "Wireless Configuration" service. This is what the service is called like on w2k don't know about xp. And yes this is also for non wireless nic's.

But then again i don't know if that's what you want.
_________________________
regards, Martijn

Top
#121001 - 2004-06-11 03:39 PM Re: activate 802.1x through kixscript
kasul Offline
Fresh Scripter
*****

Registered: 2001-12-03
Posts: 41
Loc: Hannover / Germany
to identify the key you need, you can search the registry at the key given in my script above. There you find some Subkeys ("0000", "0001" and so on), one for any possible Networkconnection.
There is a Value "DriverDesc" wich identifies the Device Driver in plain text (e.g. Intel(R) PRO/100 VE Network Connection or something like that).
In the same Subkey, look for the Value "NetcfgInstanceId" wich will give the GUID you search.

my script above just lists all available adapters and their GUIDs.
_________________________
german native-> poor english sysadmin-> poor german...

Top
#121002 - 2004-06-11 05:36 PM Re: activate 802.1x through kixscript
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2127
Loc: Tulsa, OK
Just run the script that Kasul wrote on a test machine to find the name of the device you want to disable. Hopefully the name will be the same on all machines so then you could modify his script to search till it finds that name and modify the GUID that is associated with that name.
Top
#121003 - 2006-01-27 11:06 PM Re: activate 802.1x through kixscript
schieb Offline
Lurker

Registered: 2006-01-27
Posts: 1
I know this post is dead, but I came across it in a search. Here's what I came up with. This is based off a script from: http://perfectisolation.org/smf/index.php/topic,13.msg38.html

Function EAPOL($Parameter)
; $Parameter = 0 = Uncheck 802.1x for all interfaces
; $Parameter = 1 = Check 802.1x for all interfaces
$EAPOLKEY = "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\EAPOL\Parameters\Interfaces"
If $Parameter = 0
$HexParam = "0500000000000000000000400d0000002000000011223311223311223311223311223311223311223311223311223311223311220d000000280000000000000028000000050000000000000000000000000000000000000000000000000000000000000000000000"
EndIf
If $Parameter = 1
$HexParam = "0500000000000000000000C00d0000002000000011223311223311223311223311223311223311223311223311223311223311220d000000280000000000000028000000050000000000000000000000000000000000000000000000000000000000000000000000"
EndIf

$Index = 0
:DNSLOOP
$Adapter = EnumKey($EAPOLKEY,$Index)
If @ERROR = 0
$Write = WriteValue($EAPOLKEY + "\" + $Adapter,"1",$HexParam,"REG_BINARY")
$Index = $Index + 1
Goto DNSLOOP
EndIf
EndFunction

Break On
EAPOL(0)

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 1172 anonymous users online.
Newest Members
StuTheCoder, M_Moore, BeeEm, min_seow, Audio
17884 Registered Users

Generated in 0.056 seconds in which 0.03 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