Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $DailyNums = Get-DailyMajorReleaseNumberINS;Get-DailyServicePackNumberINS
- $ButtonType = [System.Windows.MessageBoxButton]::YesNoCancel
- $MessageIcon = [System.Windows.MessageBoxImage]::Warning
- $MSGBodyOne = 'Is this the correct build number?'
- $MSGBodyTwo = $DailyNums
- $MSGTitle = "Confirmation"
- $msgBoxInput =
- [System.Windows.MessageBox]::Show ($MSGBodyTwo,$MSGBodyOne,$ButtonType,$MessageIcon, 'Yes')
- switch ($msgBoxInput) {
- 'Yes' {
- ## Do something
- }
- 'No' {
- ## Do something
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement