Powershell - Prompt user then expire prompt after xx seconds Powershell - Prompt user then expire prompt after xx seconds powershell powershell

Powershell - Prompt user then expire prompt after xx seconds


Here you go...dug this out of one of my old scripts

#Value  Description   #0 Show OK button. #1 Show OK and Cancel buttons. #2 Show Abort, Retry, and Ignore buttons. #3 Show Yes, No, and Cancel buttons. #4 Show Yes and No buttons. #5 Show Retry and Cancel buttons. #http://msdn.microsoft.com/en-us/library/x83z1d9f(v=vs.84).aspx$a = new-object -comobject wscript.shell $intAnswer = $a.popup("Question?",2,"Title",4) #first number is timeout, second is display.#7 = no , 6 = yes, -1 = timeout