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

Posted on 2011-03-03
Medium Priority
Last Modified: 2012-05-11
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
Question by:Shankar3003
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 11

Accepted Solution

TheGorby earned 1000 total points
ID: 35027728
I think this article might have the answer to your problem:


Author Comment

ID: 35033066
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.
LVL 14

Assisted Solution

canali earned 1000 total points
ID: 35106958
to disable Wired AutoConfig

REM --- disableWiredAC.cmd
sc stop DOT3SVC
REM --- End

Featured Post

Does Your Cloud Backup Use Blockchain Technology?

Blockchain technology has already revolutionized finance thanks to Bitcoin. Now it's disrupting other areas, including the realm of data protection. Learn how blockchain is now being used to authenticate backup files and keep them safe from hackers.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
My attempt to use PowerShell and other great resources found online to simplify the deployment of Office 365 ProPlus client components to any workstation that needs it, regardless of existing Office components that may be needing attention.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question