Created
August 26, 2019 21:46
-
-
Save jbaker10/b359bb3bfd0302bd0fabc5da38c5c4fd to your computer and use it in GitHub Desktop.
Show prompt in Windows 10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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