Create a new object in PowerShell by referring to Wscript.Shell component. Here's the code to display a pop-up message using PowerShell via VBScript components. #create Wscript.Shell object to $WshShell variable $WshShell = New-Object -ComObject WScript.Shell #This will display the members of WshShell #$WshShell | Get-Member #This will display the message for 5 seconds, even if the user does not click ok" $WshShell.Popup("Hello, remember to shutdown your PC! Long holiday is around the corner.", 5 , "A Gentle Reminder") #Sample image of the output above: Code below will display a warning sign and the message will stay until the OK button is clicked. #create Wscript.Shell object to $WshShell variable $WshShell = New-Object -ComObject WScript.Shell #This will display the message until the OK button is clicked and also display the warning sign $WshShell.Popup("Hello, remember to shutdown your PC! Long holiday is around the corner.", 0 , "A Gentl...
Make the world a better place by sharing knowledge, ideas and anything that you can give that comes from the heart.