在 Windows 中设置 802.1X PEAP 身份验证的用户和密码的命令

问题描述 投票:0回答:1

你们好可爱的人们,

我正在尝试在一组嵌入 Win7 和 XP 的 HP 瘦客户端上推出 802.1X PEAP 身份验证, 无需手动单独设置每一个。

我遇到的问题是用户名和密码。 (见图) PEAP 登录掩码 我正在寻找可以输入数据的批处理或 powershell 等命令。 或者也许还有另一种我还不知道的解决方案。

这是我已有的代码:

@echo off
echo .
echo .
cls

IF EXIST "%PROGRAMFILES(X86)%" (GOTO 64BIT) ELSE (GOTO 32BIT)

:: starts the service to enable 802.1X
:32BIT
sc start dot3svc
sc config dot3svc start= auto

goto 86BIT

:: install the certificate only on 64 bit TCs
:64BIT
certutil -f -addstore "Root" "C:\Temp\myrootCA.p7b"

goto 86BIT

:: overwrites the network profile with the wanted settings
:86BIT
netsh lan add profile filename=C:\Temp\LAN.xml interface=*
netsh lan reconnect interface=*

:: fill me with the missing code <3

pause

exit

期待您的评论。

谨致问候

windows powershell batch-file exe lan
1个回答
0
投票

你解决过这个问题吗?我正在通过 VpnModule 尝试使用 powershell 进行非常类似的操作,但遇到了死胡同。目前,我正在查看执行大部分操作的 GPO,以了解它们操作哪些注册表项。

© www.soinside.com 2019 - 2024. All rights reserved.