Skip to content

Instantly share code, notes, and snippets.

@jbaker10
Created August 26, 2019 21:46
Show Gist options
  • Save jbaker10/b359bb3bfd0302bd0fabc5da38c5c4fd to your computer and use it in GitHub Desktop.
Save jbaker10/b359bb3bfd0302bd0fabc5da38c5c4fd to your computer and use it in GitHub Desktop.
Show prompt in Windows 10
Add-Type -AssemblyName PresentationCore,PresentationFramework
$ButtonType = [System.Windows.MessageBoxButton]::YesNo
$MessageboxTitle = “AppGate Upgrade Notice”
$Messageboxbody = “Corp IT needs to upgrade the AppGate client on your device. This upgrade will quit any running sessions of AppGate and may take a few minutes to complete. Are you ready to proceed?”
$MessageIcon = [System.Windows.MessageBoxImage]::Warning
$decision = [System.Windows.MessageBox]::Show($Messageboxbody,$MessageboxTitle,$ButtonType,$messageicon)
$decision
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment