How Can a User give Yes/No Prompt in Powershell

 Command to display popup:
  $a = new-object -comobject
$input = $a.popup("Do u want to quit") //Display ok button
$input = $a.popup("Do u want to quit",0,"TitleName",1) // Display ok,cancel button
$input = $a.popup("Do u want to quit",0,"TitleName",2) // Display abort,retry,ignore button
$input = $a.popup("Do u want to quit",0,"TitleName",3) // Display yes,no,cancel button
$input = $a.popup("Do u want to quit",0,"TitleName",4) // Display Yes,no, button
$input = $a.popup("Do u want to quit",0,"TitleName",5) // Display retry,cancel button
$input = $a.popup("Do u want to quit",0,"TitleName",6) // Display retry,cancel,continue button
  1. Leave a comment

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: