[英]PowerShell Send Popup Message to users in group
I have this PS code: 我有这个PS代码:
PowerShell -NoProfile -NonInteractive -Command [reflection.assembly]::loadwithpartialname('system.windows.forms'); [system.Windows.Forms.MessageBox]::show('Reminder: Updates)
Wondering if its possible to send this to remote users, particularly ones in a specific AD group. 想知道是否有可能将其发送给远程用户,尤其是特定AD组中的用户。
Any help would be apprecaited. 任何帮助将不胜感激。
Thanks :) 谢谢 :)
As far as I understand. 据我所理解。
You can execute the script on a remote computer, but the user will not see the popup . 您可以在远程计算机上执行脚本, 但是用户不会看到弹出窗口 。 This is because the remote process is not allowed to interact with the user Desktop.
这是因为不允许远程进程与用户桌面进行交互。
PS : have a look to this answer PS:看看这个答案
I think that on XP you can use NET SEND
in upper versions you have MSG.EXE
or third party WinSent . 我认为在XP上可以使用
MSG.EXE
或第三方WinSent在较高版本中使用NET SEND
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.