Solved

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

Posted on 2011-03-03
4
1,402 Views
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, _
                                 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, _
                                 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
     Next
 End Sub
picture1.JPG
0
Comment
Question by:Shankar3003
4 Comments
 
LVL 11

Accepted Solution

by:
TheGorby earned 250 total points
Comment Utility
I think this article might have the answer to your problem:

http://support.microsoft.com/kb/950725
0
 

Author Comment

by:Shankar3003
Comment Utility
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.
0
 
LVL 14

Assisted Solution

by:canali
canali earned 250 total points
Comment Utility
to disable Wired AutoConfig

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

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Set OWA language and time zone in Exchange for individuals, all users or per database.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

744 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now