我可以在登录前显示消息框吗gpo 启动脚本?

问题描述

我在计算机启动时运行的 GPO 中有一个 powershell 脚本。这个脚本卸载和安装程序需要很长时间,所以我担心一些不耐烦的用户会在安装过程中关闭机器。 我想在安装过程中弹出一条消息,但在登录前消息框似乎不起作用。

Add-Type -AssemblyName PresentationCore,PresentationFramework
$ButtonType = [System.Windows.MessageBoxButton]::Ok
$MessageBoxTitle = “Avviso Importante”
$MessageBoxbody = “Sto aggiornando. Non spegnere il computer fino al completamento dell'operazione!!!”
$MessageIcon = [System.Windows.MessageBoxImage]::Warning
[System.Windows.MessageBox]::Show($MessageBoxbody,$MessageBoxTitle,$ButtonType,$messageicon)

谢谢

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)