随笔分类 -  PowerShell

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

posted @ 2019-04-13 16:05 遠離塵世の方舟 阅读(566) 评论(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 遠離塵世の方舟 阅读(684) 评论(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 遠離塵世の方舟 阅读(815) 评论(0) 推荐(0)

< 2025年5月 >
27 28 29 30 1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
1 2 3 4 5 6 7

导航

统计

点击右上角即可分享
微信分享提示