|
bapala
初级用户
 
积分 28
发帖 11
注册 2006-7-11
状态 离线
|
『楼 主』:
[win2k]如何用脚本(最好用vbs或wmi)实现802.1x客户端设置
使用 LLM 解释/回答一下
最近我们公司在做802.1x验证,想用脚本实现客户端设置,但在用脚本启动服务:
Wireless Configuration,并更改启动类型后,无法实现下一步:
打开本地连接的属性对话框,将验证由智能卡改成PEAP如附件一所示:
然后点击属性,如附件二所示,将验证服务器证书前面的选择取消,然后选择启用快速连接.
请高手不吝赐教,谢谢
Recently our company is doing 802.1x authentication and wants to use a script to implement client settings. But after using the script to start the service: Wireless Configuration and change the startup type, it cannot proceed to the next step: Open the properties dialog of the local connection, change the authentication from smart card to PEAP as shown in Attachment 1: Then click properties, as shown in Attachment 2, cancel the selection in front of the verify server certificate, then select to enable fast connection.
Please experts give advice, thank you
附件
1: net_auth001.JPG (2006-10-21 12:08, 26.4 KiB, 下载附件所需积分 1 点
,下载次数: 3)
附件
2: net_auth002.JPG (2006-10-21 12:08, 34.9 KiB, 下载附件所需积分 1 点
,下载次数: 3)
|
|
2006-10-21 12:08 |
|
|
electronixtar
铂金会员
      
积分 7493
发帖 2672
注册 2005-9-2
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
没弄过。可能在注册表里。或者是一个配置文件。试试 netsh
Not done. Maybe in the registry. Or a configuration file. Try netsh
|

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>" |
|
2006-10-21 21:41 |
|
|
bapala
初级用户
 
积分 28
发帖 11
注册 2006-7-11
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
netsh ras 没有用,到technet查过,说到vista才有netsh wlan配置命令,xp&2003没有此命令,2k提都没提,晕,怎么办呢?
Originally posted by electronixtar at 2006-10-21 21:41:
没弄过。可能在注册表里。或者是一个配置文件。试试 netsh
Last edited by bapala on 2006-10-21 at 23:49 ]
netsh ras is not working. I checked on technet and found that the netsh wlan configuration command is only available in Vista. There is no such command in XP & 2003, and 2K doesn't even mention it. Oh, what should I do?
Originally posted by electronixtar at 2006-10-21 21:41:
Haven't done it. Maybe in the registry. Or a configuration file. Try netsh
Last edited by bapala on 2006-10-21 at 23:49 ]
|
|
2006-10-21 23:24 |
|
|
electronixtar
铂金会员
      
积分 7493
发帖 2672
注册 2005-9-2
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
那就在注册表里了。用 RegMon/RegSnap 仔细分析。
Then it's in the registry. Analyze carefully with RegMon/RegSnap.
|

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>" |
|
2006-10-22 04:06 |
|
|
bapala
初级用户
 
积分 28
发帖 11
注册 2006-7-11
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
早就試過了,寫入一個鍵傎,network,但到technet上說,不能夠手工編輯,暈,大概是每台電腦不一樣吧
Originally posted by electronixtar at 2006-10-22 04:06:
那就在注册表里了。用 RegMon/RegSnap 仔细分析。
I've tried it long ago. Write a key-value, network, but on technet it says can't be edited manually. Oh, probably each computer is different.
Originally posted by electronixtar at 2006-10-22 04:06:
Then it's in the registry. Use RegMon/RegSnap to analyze carefully.
|
|
2006-10-23 02:56 |
|
|
3742668
荣誉版主
      
积分 2013
发帖 718
注册 2006-2-18
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
Originally posted by bapala at 2006-10-23 03:08:
早就試過了,寫入一個鍵傎,network,但到technet上說,不能夠手工編輯,暈,大概是每台電腦不一樣吧
你可以观察修改前后注册表值变化的规律来编写脚本,理论上应该是行得通的。
如果脚本的工作环境相对较好的话,可以尝试用vbs的sendkeys:
Set objShell = CreateObject("Shell.Application")
Set objFolder = objShell.Namespace(49)
Set objFolderItem = objFolder.Self
objShell.Open objFolderItem.Path
With CreateObject("Wscript.Shell")
Do
WScript.Sleep 100
Loop Until .AppActivate("网络连接")
WScript.Sleep 500
.SendKeys "{DOWN}{UP}"
WScript.Sleep 500
.SendKeys "+{F10}r"
Do
WScript.Sleep 100
Loop Until .AppActivate("本地连接 属性")
WScript.Sleep 500
.SendKeys "+{TAB}+{TAB}{RIGHT}{TAB 2}{DOWN 3}{UP}%R"
Do
WScript.Sleep 100
Loop Until .AppActivate("受保护的 EAP 属性")
WScript.Sleep 500
.SendKeys "%E%V"
End With
'后面只需要发送一个回车,一个tab,一个回车和ALT+F4就行了。
'回车需发送 {ENTER} 或 ~
Originally posted by bapala at 2006-10-23 03:08:
I've already tried it. I wrote a key value, network, but on technet it says that manual editing is not possible. Oh, maybe each computer is different.
You can observe the pattern of changes in registry values before and after modification to write a script, which should theoretically work.
If the working environment of the script is relatively good, you can try using vbs's sendkeys:
Set objShell = CreateObject("Shell.Application")
Set objFolder = objShell.Namespace(49)
Set objFolderItem = objFolder.Self
objShell.Open objFolderItem.Path
With CreateObject("Wscript.Shell")
Do
WScript.Sleep 100
Loop Until .AppActivate("Network Connections")
WScript.Sleep 500
.SendKeys "{DOWN}{UP}"
WScript.Sleep 500
.SendKeys "+{F10}r"
Do
WScript.Sleep 100
Loop Until .AppActivate("Local Area Connection Properties")
WScript.Sleep 500
.SendKeys "+{TAB}+{TAB}{RIGHT}{TAB 2}{DOWN 3}{UP}%R"
Do
WScript.Sleep 100
Loop Until .AppActivate("Protected EAP Properties")
WScript.Sleep 500
.SendKeys "%E%V"
End With
'Only need to send a carriage return, a tab, a carriage return, and ALT+F4 later.
'Carriage return needs to send {ENTER} or ~
|
|
2006-10-23 04:59 |
|
|
lxmxn
版主
       
积分 11386
发帖 4938
注册 2006-7-23
状态 离线
|
|
2006-10-23 05:34 |
|
|
alashan
新手上路

积分 9
发帖 4
注册 2006-10-24
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
确实不错,可是好像注册表上的变化不是特别大
It's really good, but it seems that the changes in the registry aren't particularly significant
|
|
2006-10-24 23:18 |
|
|
kaidi
新手上路

积分 16
发帖 8
注册 2006-11-4
状态 离线
|
|
2007-1-27 11:07 |
|