PowerTip: Use PowerShell to Display Pop-Up Window

Doctor Scripto

Dr 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.

Doctor Scripto
Dr Scripto

Scripter, PowerShell, vbScript, BAT, CMD

Follow Dr Scripto   

1 comment

  • Avatar
    Alberto Emmanuel Santillan Lizalde

    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

Leave a comment