惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

爱范儿
爱范儿
博客园_首页
W
WeLiveSecurity
S
Secure Thoughts
S
Security @ Cisco Blogs
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Hugging Face - Blog
Hugging Face - Blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
H
Hacker News: Front Page
Project Zero
Project Zero
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
U
Unit 42
N
News and Events Feed by Topic
N
News and Events Feed by Topic
Hacker News - Newest:
Hacker News - Newest: "LLM"
Forbes - Security
Forbes - Security
T
Tor Project blog
I
Intezer
B
Blog
F
Full Disclosure
Security Archives - TechRepublic
Security Archives - TechRepublic
F
Fortinet All Blogs
Schneier on Security
Schneier on Security
T
Threat Research - Cisco Blogs
AI
AI
Google DeepMind News
Google DeepMind News
L
LINUX DO - 最新话题
Cloudbric
Cloudbric
L
Lohrmann on Cybersecurity
WordPress大学
WordPress大学
博客园 - 聂微东
雷峰网
雷峰网
P
Privacy International News Feed
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
PCI Perspectives
PCI Perspectives
Y
Y Combinator Blog
Spread Privacy
Spread Privacy
Simon Willison's Weblog
Simon Willison's Weblog
罗磊的独立博客
Vercel News
Vercel News
A
Arctic Wolf
The Register - Security
The Register - Security
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Microsoft Azure Blog
Microsoft Azure Blog
H
Heimdal Security Blog
Know Your Adversary
Know Your Adversary
P
Proofpoint News Feed
C
Cybersecurity and Infrastructure Security Agency CISA
P
Proofpoint News Feed

博客园 - Seer Lin

自己开发的ERP系统,有需要的联系 MSCRM2016 取消邮箱强制SSL 不听话的下属辞职记 海蜘蛛去广告 [转]SQL2008链接服务器数据同步 asp.net 在IE8 导出excel时的问题 [转]mssql链接服务器 win2008 R2 64位系统下配置DCOM权限 [转]excel 操作类 在excel中,将 长*宽*高 这样的格式列,拆分成3列 将没有产品图片的产品设置为不在前台显示SQL实现 [转]在Reporting Services报表中引用FTP站点上的图片 mscrm js webservic 常用功能 mscrm4.0 判断当前用户角色_示例 mscrm 4.0 获取当前用户角色 mscrm4.0 获取当前登录的用户名 mscrm4.0 用js调用Webservice vs2010 js 代码折叠插件 MSCRM 删除客户数据 MSCRM offline plugin开发注意事项
Windows 7下,巧让家用UPS也支持电脑自动关机
Seer Lin · 2012-04-03 · via 博客园 - Seer Lin

Windows 7下,巧让家用UPS也支持电脑自动关机


    家用UPS由于价格低廉,往往不像数千元UPS那样能够与电脑的串口或USB通信,也就无法在停电时通知电脑运行关机程序,无人值守的情况下,往往起不到安全关机的效果,下面我们利用 Windows 7 强大的计划任务功能,帮助家用UPS像高端UPS那样有自动关闭电脑的功能。
    要求:一台运行 Windows 7 的电脑,必须带网卡,且连接交换机或路由器或ADSL等设备。
    实现原理:电脑通过UPS供电,而交换机不通过UPS供电。一旦市电故障,电脑立即转入UPS供电,而交换机则断电,Windows 触发网络电缆被拔出的硬件事件,捕捉到这个硬件事件后立即运行关机程序经过分析,网卡断开连接时,Service Control Manager 会触发 7042 事件,让计划任务捕捉到这个事件后,运行 shutdown.exe /f /s 关机,需要特别注意的是运行shutdown.exe的帐号要有关机的权限,用SYSTEM帐号也可以,钩选“使用最高权限运行”。当然shutdown.exe也可以在加上参数 /c 进行一下相关提示,如我的就是 “/c "网络电缆被拔出,可能是因为市电故障。系统即将关闭。"” 这样的提示语。成功后可以自己拔掉网线测试一下。
    如果突然市电正常,也可以在默认的30秒内运行 shutdown /a 取消关机。具备一定的灵活性。
    缺点:电脑是关闭了,但是UPS不会自动关闭。UPS自身损耗加上显示器和主机软关机,UPS仍然在轻载运行,缺市电的情况下长时间轻载运行UPS可能会造成UPS过渡放电而损坏取决与你UPS有没有这方面的自我保护能力了