开发者

PowerShell Connect Wirless Adapter

开发者 https://www.devze.com 2023-04-10 07:32 出处:网络
PowerShell 3.0 has several built-in NetAdapter cmdlets / fu开发者_运维问答nctions.Is it possible to connect / disconnect a wireless adapter using this new noun?For example:

PowerShell 3.0 has several built-in NetAdapter cmdlets / fu开发者_运维问答nctions. Is it possible to connect / disconnect a wireless adapter using this new noun? For example:

Enable-NetAdapter or

Set-NetAdapter


You should be able to. I successfully disabled my wired adapter with the following command.

Get-NetAdapter | Disable-NetAdapter 

And then I successfully enabled it using:

Get-NetAdapter | Enable-NetAdapter

I would imagine as long as the Get-NetAdapter cmdlet returns your wireless adapter you will be able to use the Enable\Disable cmdlets.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号