powershell - 更改无线网络安全 key CMD 或 VBScript

标签 powershell vbscript cmd wireless

要查看无线网络安全 key ,我们可以在 cmd 中使用它:

netsh wlan show profile name="WIRELESS NAME"key=clear

并添加配置文件,我们可以使用它:

netsh wlan 添加配置文件文件名=D:\file.xml

我需要一个命令来更改无线网络配置文件的密码

有什么脚本可以做到这一点吗? ( vbsript - cmd - powershell )

最佳答案

您可以使用 netsh命令也用于此目的。

如果您运行以下命令,您可以看到可以使用 netsh 命令设置的配置文件参数:

netsh wlan set profileparameter /?

您将使用名称来识别,就像在您的示例中一样,我想您应该使用 keyMaterial参数来设置密码。

关于powershell - 更改无线网络安全 key CMD 或 VBScript,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21317611/

相关文章:

powershell - 获取Invoke-Command的状态

excel - 当单元格可能不同时,Powershell excel 合并单元格

javascript - 在经典 ASP 中将 VBScript 数组转换为 Javascript 数组

c# - "Persistent"WPF/XAML 中的开关

powershell - 在 powershell DSC 资源声明中,声明的语法元素是什么?

vbscript - 如何抑制 HTA 中的脚本错误?

windows - 如何在链中运行 Windows 命令

Python subprocess.call 与 cwd 不工作

batch-file - 批处理 : what is the pipe | used for?

PowerShell:当 .ctor 只有一个类型为 List<T> 的参数时,无法找到正确的 .ctor