Jump to content

stylez2k3

Members
  • Posts

    8
  • Joined

  • Last visited

Everything posted by stylez2k3

  1. ; ---------------------------------------------------------------------------- ; Setting the programs needed options ; ---------------------------------------------------------------------------- #include <GUIConstants.au3> #include <Date.au3> #Include <process.au3> Opt("GUIOnEventMode", 1) AutoItSetOption("TrayIconDebug", 1) ; ---------------------------------------------------------------------------- ; Set the user options here ; ---------------------------------------------------------------------------- Global $SSID = 'resnetruba'; <<----- SSID Goes HERE !! ; Setting the advanced setting in Network Properties Run(@ComSpec & " /c " & 'ncpa.cpl', "C:\WINDOWS\system32\dllcache", @SW_HIDE) sleep (1000) WinWait ( 'Network Connections' ) if NOT WinActive ( 'Network Connections', '' ) then WinActivate ( 'Network Connections' ) endif WinWaitActive ( 'Network Connections' ) sleep ( 1000 ) Send ( 'wireless' ) sleep ( 1000 ) send ('{Appskey}') sleep ( 1000 ) send ( 'r' ) sleep (1000) Here's a small snippet of code that I found that access the advanced settings in Network properties, but for Vista it's not the same location. I've read that it's still the ncpa.cpl file but when I try to execute the start of this script, it throws an error saying it's an unknown command. I was wondering if anyone knew the Run command to access the Adv. settings in network properties
  2. ; ---------------------------------------------------------------------------- ; Setting the programs needed options ; ---------------------------------------------------------------------------- #include <GUIConstants.au3> #include <Date.au3> #Include <process.au3> Opt("GUIOnEventMode", 1) AutoItSetOption("TrayIconDebug", 1) ; ---------------------------------------------------------------------------- ; Set the user options here ; ---------------------------------------------------------------------------- Global $SSID = 'resnetruba'; <<----- SSID Goes HERE !! ; Setting the advanced setting in Network Properties Run(@ComSpec & " /c " & 'ncpa.cpl', "C:\WINDOWS\system32\dllcache", @SW_HIDE) sleep (1000) WinWait ( 'Network Connections' ) if NOT WinActive ( 'Network Connections', '' ) then WinActivate ( 'Network Connections' ) endif WinWaitActive ( 'Network Connections' ) sleep ( 1000 ) Send ( 'wireless' ) sleep ( 1000 ) send ('{Appskey}') sleep ( 1000 ) send ( 'r' ) sleep (1000) Here's a small snippet of code that I found that access the advanced settings in Network properties, but for Vista it's not the same location. I've read that it's still the ncpa.cpl file but when I try to execute the start of this script, it throws an error saying it's an unknown command. I was wondering if anyone knew the Run command to access the Adv. settings in network properties
  3. ; ---------------------------------------------------------------------------- ; Setting the programs needed options ; ---------------------------------------------------------------------------- #include <GUIConstants.au3> #include <Date.au3> #Include <process.au3> Opt("GUIOnEventMode", 1) AutoItSetOption("TrayIconDebug", 1) ; ---------------------------------------------------------------------------- ; Set the user options here ; ---------------------------------------------------------------------------- Global $SSID = 'resnetruba'; <<----- SSID Goes HERE !! ; Setting the advanced setting in Network Properties Run(@ComSpec & " /c " & 'ncpa.cpl', "C:\WINDOWS\system32\dllcache", @SW_HIDE) sleep (1000) WinWait ( 'Network Connections' ) if NOT WinActive ( 'Network Connections', '' ) then WinActivate ( 'Network Connections' ) endif WinWaitActive ( 'Network Connections' ) sleep ( 1000 ) Send ( 'wireless' ) sleep ( 1000 ) send ('{Appskey}') sleep ( 1000 ) send ( 'r' ) sleep (1000) Here's a small snippet of code that I found that access the advanced settings in Network properties, but for Vista it's not the same location. I've read that it's still the ncpa.cpl file but when I try to execute the start of this script, it throws an error saying it's an unknown command. I was wondering if anyone knew the Run command to access the Adv. settings in network properties
  4. Yea I think theres a pretty high learning curve on learning this new API. I'll try to look at some more examples and try to figure it out. I'm actually looking into some other utilities : secureW2 or Aruba WiFi Config. Though if anyone has seen a complete script that can help me with this that would be great as well.
  5. Hi, Thanks for all your input. Though some may not know but we're using the default wireless client on windows for both XP/Vista. My original goal was again, to verify that student machines have the WPA2 hotfix, from there it would be scripted to our wireless APs with our name and configure the following settings: SSID: name-xx Authentication: WPA2 IEEE802xEnabled: TRUE EAPType: PEAP InnerAuthentication: MSCHAPv2 UseWindowsLoginInfo: FALSE The link that was posted and the one I have found has gotten to the point of opening the Wireless Network Connection Properties where you can select perferred network. I can't find out how to select the specific network based on a common word and then click on properties, to continue configuring the rest of the setup. Here is what I have so far, which is how far the other poster had: ; Setting the advanced setting in Network Properties Run(@ComSpec & " /c " & 'ncpa.cpl', "C:\WINDOWS\system32\dllcache", @SW_HIDE) sleep (1000) WinWait ( 'Network Connections' ) if NOT WinActive ( 'Network Connections', '' ) then WinActivate ( 'Network Connections' ) endif WinWaitActive ( 'Network Connections' ) ;sleep ( 1000 ) Send ( 'wireless' ) ;sleep ( 1000 ) send ('{Appskey}') ;sleep ( 1000 ) send ( 'r' ) ;sleep (1000) WinWait ( 'Wireless Network Connection Properties', 'Connect using:' ) if NOT WinActive ( 'Wireless Network Connection Properties', 'Connect using:' ) then WinActivate ( 'Wireless Network Connection Properties', 'Connect using:' ) endif WinWaitActive ( 'Wireless Network Connection Properties', 'Connect using:' ) sleep ( 1000 ) Send ( '+{Tab}' ) sleep ( 1000 ) send ( '+{Tab}' ) sleep ( 1000 ) send ('{Right}' ) sleep (1000) WinWait ( 'Wireless Network Connection Properties', 'Wireless Networks' ) if NOT WinActive ( 'Wireless Network Connection Properties', 'Wireless Networks' ) then WinActivate ( 'Wireless Network Connection Properties', 'Wireless Networks' ) endif WinWaitActive ( 'Wireless Network Connection Properties', 'Wireless Networks' ) sleep ( 1000 ) After this it should be in a tab where it's given some choices of perferred networks, and i just need to highlet our network AP with a common name and then click on "Properties". Once in the "AP properties", I'll be at the Association tabl I have 2 drop down boxes: Network Authentication: WPA2 Data encryption: AES I need to make sure those drop down boxes verify those settings Then, moving to the next tab "Authentication" There is one drop down box: EAP type: Protected EAP (PEAP) I need to have this verified to be set and then click on properties box Once in Properties Page, there is 1 drop down menu: Select Authentication Method: Secured password (EAP-MSCHAP v2) and then click on configure This is the LAST step, from configure, i need to uncheck the box, there's only one option Click okay on all the previous pages until you get back to the beginning. I'm pretty new to autoit and i'm trying to learn but haven't gotten to far with this. I also have to make one for Vista. If anyone could take the time to help me with this project, that would be great.
  6. So no one has ever seen any simple script that I could customize to configure and deploy WPA2 settings for wireless on windows XP or Vista? This can't be, I've read so much about AutoIt and it's capabilities, but still very new to this program/language. There aren't any sample scripts that people have seen or used before that I could build on?
  7. So basically we're just updating the registry keys, in both XP/Vista? I just hope this method doesn't conflict with any settings that clients may have on their machine. I still would like to try to find a method of automating configuration through a script of some sort. Though thanks for your option, I'll give that a try and see how that works out.
  8. Hi, I saw a reference to auto-it while trying to do research in a clean/scalable method of mass configuration of WPA2 PEAP-MS-CHAP Wireless configuration specifically on Windows XP/Vista. We're looking for a simple approach for students to use and would be as efficient as possible. I know that MS has some recommendations from GPO deployment to WPS but we have a special setup with our network that both of those would not be possible and would equate to more complicated setups. I was wondering if anyone had done or know of any GUI/Script that can auto configure wireless access cards with WPA2 settings. I'm knew to this application and I'm trying to see if this solution would be the best since it says that a GUI can be compiled and that would be the easiest for students to launch to configure their card to use our wireless securely. Thank you for your time in advanced. -Will
×
×
  • Create New...