Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. $DailyNums = Get-DailyMajorReleaseNumberINS;Get-DailyServicePackNumberINS
  2.  
  3.  
  4. $ButtonType = [System.Windows.MessageBoxButton]::YesNoCancel
  5. $MessageIcon = [System.Windows.MessageBoxImage]::Warning
  6. $MSGBodyOne = 'Is this the correct build number?'
  7. $MSGBodyTwo = $DailyNums
  8. $MSGTitle = "Confirmation"
  9.  
  10. $msgBoxInput =
  11. [System.Windows.MessageBox]::Show ($MSGBodyTwo,$MSGBodyOne,$ButtonType,$MessageIcon, 'Yes')
  12.  
  13. switch ($msgBoxInput) {
  14.  
  15. 'Yes' {
  16.  
  17. ## Do something
  18.  
  19. }
  20.  
  21. 'No' {
  22.  
  23. ## Do something
  24.  
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement