当前位置:网站首页>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)
边栏推荐
- BGP comprehensive experiment
- Actual combat simulation │ JWT login authentication
- Wechat applet: wechat applet source code download new community system optimized version support agent member system function super high income
- 19. Delete the penultimate node of the linked list
- PHP wechat official account development
- Complex, complicated and numerous: illustration of seven types of code coupling
- Kibana installation and configuration
- How to use words to describe breaking change in Spartacus UI of SAP e-commerce cloud
- 微信小程序:最新wordpress黑金壁纸微信小程序 二开修复版源码下载支持流量主收益
- Arbitrum: two-dimensional cost
猜你喜欢
【大型电商项目开发】性能压测-性能监控-堆内存与垃圾回收-39
【LeetCode】88. Merge two ordered arrays
Express routing, express middleware, using express write interface
"2022" is a must know web security interview question for job hopping
Poap: the adoption entrance of NFT?
Logstash、Fluentd、Fluent Bit、Vector? How to choose the appropriate open source log collector
How to safely eat apples on the edge of a cliff? Deepmind & openai gives the answer of 3D security reinforcement learning
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
Phpstrom setting function annotation description
微信小程序:微群人脉微信小程序源码下载全新社群系统优化版支持代理会员系统功能超高收益
随机推荐
Remote control service
"2022" is a must know web security interview question for job hopping
JS implementation determines whether the point is within the polygon range
Introduction to redis (1)
微信小程序:最新wordpress黑金壁纸微信小程序 二开修复版源码下载支持流量主收益
Nebula Importer 数据导入实践
PHP 约瑟夫环问题
Complex, complicated and numerous: illustration of seven types of code coupling
Exploration and practice of integration of streaming and wholesale in jd.com
Database postragesql client authentication
[microprocessor] VHDL development of microprocessor based on FPGA
C语音常用的位运算技巧
微信小程序:微群人脉微信小程序源码下载全新社群系统优化版支持代理会员系统功能超高收益
Redis master-slave replication cluster and recovery ideas for abnormal data loss # yyds dry goods inventory #
Global and Chinese markets of emergency rescue vessels (errv) 2022-2028: Research Report on technology, participants, trends, market size and share
[pure tone hearing test] pure tone hearing test system based on MATLAB
[flutter topic] 64 illustration basic textfield text input box (I) # yyds dry goods inventory #
Analysis and comparison of leetcode weekly race + acwing weekly race (t4/t3)
dotnet-exec 0.6.0 released
ROS command line tool