#121003 - 2006-01-27 11:06 PM
Re: activate 802.1x through kixscript
|
schieb
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
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 1737 anonymous users online.
|
|
|