随笔分类 -  PowerShell

Windows PowerShell
PowerShe 消息提示框测试
摘要:1. 使用powerShell 弹出一个简单的消息框,代码如下,创建test.ps1脚本文件。 执行test1.ps1后,电脑右下角会弹出该消息提示框。 2. 使用VM脚本来提示用户重启电脑,保存脚本为test.bvs, 运行后就可以看到弹出提示框,点yes时,电脑会自动重启: 阅读全文

posted @ 2019-04-13 16:05 遠離塵世の方舟 阅读(596) 评论(0) 推荐(0)

PowerShell 显示气球提示框 2
摘要:https://www.itninja.com/blog/view/reboot-required-toast-notifications-for-windows-machines it prompts every 2 hours for 6 hours. The highlighted 360 i 阅读全文

posted @ 2019-04-13 16:00 遠離塵世の方舟 阅读(702) 评论(0) 推荐(0)

PowerShell 显示气球提示框 1
摘要:#加载 Winform 程序集,使用Out-Null抑制输出 [system.Reflection.Assembly]::LoadWithPartialName('System.Windows.Forms') | Out-Null #创建 NotifyIcon 对象 $balloon = New-O 阅读全文

posted @ 2019-04-10 15:10 遠離塵世の方舟 阅读(831) 评论(0) 推荐(0)

导航