Jump to content

How to create GUI pop up message via Power Shell..


Denis

Recommended Posts

I am looking to create an automated pop up message via powershell to alert users in a certain scope.

Example: Systems will be under going maintenance, please ensure you leave the system on.

However, I noticed due to powershell being in 'session 0' it won't show the pop up box for the user.

How can I get around this or does anybody have another method?

Side note: I did notice you can send group messages via Pulseway Group section, but I don't think I could automate that?

Link to comment
Share on other sites

  • 2 years later...

Can the msg command do anything else?  Yes / No etc etc. If so, can you provide a link with full syntax for this command?  I want to push out software that requires several applications to be closed before proceeding, so Id preferably like to ask the user to close before proceeding, also giving them the option to pass on the install.  I don't want to abruptly kill these apps either (Word, Excel, Outlook etc.)

I've tried using [System.Windows.MessageBox] and [System.Windows.Forms.MessageBox] which doesn't seem to work due to PS user impersonation requirements to install with admin rights. 

Any advice is appreciated.

Thank You.

Edited by JonasB
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...