win10自动连接WIFI的批处理文件

win10⾃动连接WIFI的批处理⽂件
大理石测量平台环景:
联想计算机
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⾏看看能不能正常连接电缆架空支架

本文发布于:2024-09-23 01:19:22,感谢您对本站的认可!

本文链接:https://www.17tex.com/tex/2/339997.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:连接   批处理   环景   计算机   车间   胶囊   默认
留言与评论(共有 0 条评论)
   
验证码:
Copyright ©2019-2024 Comsenz Inc.Powered by © 易纺专利技术学习网 豫ICP备2022007602号 豫公网安备41160202000603 站长QQ:729038198 关于我们 投诉建议