to create a automatci script to uncheck Authentication tab on "Enable IEEE 802.1x authentication".

Hi this script is able to uncheck the authenication tab for windows xp SP2 but it cannot do so for SP3. Please advice is there is any workaround solution, thank you.

Option Explicit
 ' EAPOL "Enable"
  EAPOL "Disable"
 Sub EAPOL(strAction)
     ' define HK Local Machine constant
     Const HKLM = &H80000002
     ' to be used if no values exist already
     Dim arrEnable : arrEnable = Array(05,00,00,00,00,00,00,00,00,00,00,192,13,00,00,00,32, _
                                 00,00,00,17,34,51,17,34,51,17,34,51,17,34,51,17,34,51,17, _
                                 34,51,17,34,51,17,34,51,17,34,51,17,34,51,17,34,13,00,00, _
                                 00,40,00,00,00,00,00,00,00,40,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, _
     Dim arrDisable: arrDisable = Array(05,00,00,00,00,00,00,00,00,00,00,64,13,00,00,00,32, _
                                 00,00,00,17,34,51,17,34,51,17,34,51,17,34,51,17,34,51,17, _
                                 34,51,17,34,51,17,34,51,17,34,51,17,34,51,17,34,13,00,00, _
                                 00,40,00,00,00,00,00,00,00,40,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, _
     ' make WMI connection to modify the registry
     Dim objReg : Set objReg = GetObject("winmgmts:\\.\root\default:StdRegProv")
     ' define path to key that contains the GUIDs for interfaces
     Dim strGenKeyPath : strGenKeyPath = "SOFTWARE\Microsoft\EAPOL\Parameters\General"
     Dim strName : strName = "InterfaceList"
     Dim strValue ' will hold the value retrieve through GetStringValue
     ' retrieve the value of the InterfaceList string
     objReg.GetStringValue HKLM, strGenKeyPath, strName, strValue
     ' split the string into an array to get each individual GUID
     Dim arrDevGUID : arrDevGUID = Split(Mid(strValue, 9), "\DEVICE\")
     Dim strBinName : strBinName = "1"
     Dim strDevGUID, strIntKeyPath, arrBinValue
     ' loop through GUID array to look under the Interfaces key
     For Each strDevGUID In arrDevGUID
         strIntKeyPath = "SOFTWARE\Microsoft\EAPOL\Parameters\Interfaces\" & strDevGUID
         On Error Resume Next
     ' create key if it does not exist
         objReg.CreateKey HKLM, strIntKeyPath
     ' if there is no current value then create it
         Select Case UCase(strAction)
             Case "ENABLE"
                 objReg.SetBinaryValue HKLM, strIntKeyPath, strBinName, arrEnable
             Case "DISABLE"
                 objReg.SetBinaryValue HKLM, strIntKeyPath, strBinName, arrDisable
         End Select
         On Error GoTo 0
 End Sub
Who is Participating?

Improve company productivity with a Business Account.Sign Up

TheGorbyConnect With a Mentor Commented:
I think this article might have the answer to your problem:
Shankar3003Author Commented:
Hi Guru,

           Thank you for the reply. This was what i was looking for. Please advice is there a way we can create a script to disable the wired autoconfig script, thank you.
canaliConnect With a Mentor Commented:
to disable Wired AutoConfig

REM --- disableWiredAC.cmd
sc stop DOT3SVC
REM --- End
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.