大理石测量平台环景:
win10专业版
电脑之前从未连接过这个WIFI
无菌
车间批处理⽂件内容如下(不全):
@echo off
powershell -c “Get-Content -LiteralPath ‘%~0’ | Select-Object -Skip 3 | Out-String | Invoke-Expression”
pause&exit
wifi文件传输set-ExecutionPolicy RemoteSigned
爆震弹
$wifiName=“你的ssid”; # WIFI NAME
$wifiKey=“你的password”; # WIFI PASSWORD
$xml_Template=@"
<?xml version="1.0"?> WIFI_NAME WIFI_NAME_HEX WIFI_NAME ESS manual WPA2PSK AES false passPhrase false
胶囊模具WIFI_KEY false 634562794 "@ $wifiNameHex=""; foreach ($each in [System.Text.Encoding]::UTF8.GetBytes($wifiName)) { $wifiNameHex+=("{0:x}" -f $each).ToUpper();} $xmlFile="WLAN-{0}.xml" -f $wifiName $xml=$xml_Template -replace "WIFI_NAME_HEX",$wifiNameHex -replace "WIFI_NAME",$wifiName -replace "WIFI_KEY",$wifiKey $xml | Out-File $xmlFile -Encoding utf8 netsh wlan delete profile $wifiName 2>$null netsh wlan add profile $xmlFile netsh wlan connect $wifiName Remove-Item -LiteralPath $xmlFile 默认加密⽅式WPA2PSK,如果是其它的,改⼀下21⾏看看能不能正常连接电缆架空支架