当前位置:网站首页>Win:使用 PowerShell 检查无线信号的强弱
Win:使用 PowerShell 检查无线信号的强弱
2022-07-05 01:30:00 【生活在香樟园里】
1、确认正在连接到无线信号的强弱:
netsh wlan show interfaces
在 PowerShell 中,直接显示信号的强弱:
(netsh wlan show interfaces) -Match '^\s+Signal' -Replace '^\s+Signal\s+:\s+',''
2、当连接信号小于等于 30%,则在通知栏中显示弹出窗口:
$cur_strength=(netsh wlan show interfaces) -Match '^\s+Signal' -Replace '^\s+Signal\s+:\s+','' | Out-String
If ($cur_strength.replace('%','') –le 30)
{
Add-Type -AssemblyName System.Windows.Forms
$global:balmsg = New-Object System.Windows.Forms.NotifyIcon
$path = (Get-Process -id $pid).Path
$balmsg.Icon = [System.Drawing.Icon]::ExtractAssociatedIcon($path)
边栏推荐
- es使用collapseBuilder去重和只返回某个字段
- C basic knowledge review (Part 3 of 4)
- 142. Circular linked list II
- Wechat applet: exclusive applet version of the whole network, independent wechat community contacts
- What is the current situation and Prospect of the software testing industry in 2022?
- 无心剑英译席慕容《无怨的青春》
- [wave modeling 3] three dimensional random real wave modeling and wave generator modeling matlab simulation
- batchnorm. Py this file single GPU operation error solution
- [OpenGL learning notes 8] texture
- [CTF] AWDP summary (WEB)
猜你喜欢
【海浪建模3】三维随机真实海浪建模以及海浪发电机建模matlab仿真
MySQL regexp: Regular Expression Query
Nebula Importer 数据导入实践
微信小程序:星宿UI V1.5 wordpress系统资讯资源博客下载小程序微信QQ双端源码支持wordpress二级分类 加载动画优化
To sort out messy header files, I use include what you use
Roads and routes -- dfs+topsort+dijkstra+ mapping
小程序容器技术与物联网 IoT 可以碰撞出什么样的火花
Wechat applet; Gibberish generator
PHP wechat official account development
Take you ten days to easily complete the go micro service series (IX. link tracking)
随机推荐
FEG founder rox:smartdefi will be the benchmark of the entire decentralized financial market
Global and Chinese markets of radiation linear accelerators 2022-2028: Research Report on technology, participants, trends, market size and share
MATLB|多微电网及分布式能源交易
Common bit operation skills of C speech
Great God developed the new H5 version of arXiv, saying goodbye to formula typography errors in one step, and mobile phones can also easily read literature
Kibana installation and configuration
Hedhat firewall
Jcenter () cannot find Alibaba cloud proxy address
Robley's global and Chinese markets 2022-2028: technology, participants, trends, market size and share Research Report
Analysis and comparison of leetcode weekly race + acwing weekly race (t4/t3)
Main window in QT application
Async/await you can use it, but do you know how to deal with errors?
【海浪建模3】三维随机真实海浪建模以及海浪发电机建模matlab仿真
Database postragesq BSD authentication
Basic operation of database and table ----- the concept of index
Research Report on the overall scale, major producers, major regions, products and application segmentation of agricultural automatic steering system in the global market in 2022
[OpenGL learning notes 8] texture
If the consumer Internet is compared to a "Lake", the industrial Internet is a vast "ocean"
142. Circular linked list II
PHP 约瑟夫环问题