PowerTip: Use PowerShell to Display Pop-Up Window

Doctor Scripto

Summary: Learn how to display a pop-up window by using Windows PowerShell.

Hey, Scripting Guy! Question How can I use Windows PowerShell to display a pop-up window to a user when a script or function has completed?

Hey, Scripting Guy! Answer There are several ways to display a pop-up window, but the following command doesn’t require
          loading assemblies prior to creating the window:

$wshell = New-Object -ComObject Wscript.Shell

$wshell.Popup("Operation Completed",0,"Done",0x1)

Note  For more information, see Popup Method.

1 comment

Discussion is closed. Login to edit/delete existing comments.

  • Alberto Emmanuel Santillan Lizalde 1

    hello thank you for posting this, is there a way to modify the format of this pop up, maybe font name, size, colors etc.?

    thanks in advance

Feedback usabilla icon