PowerShell: Showing MsgBox
Ever wanted to display a dialog box from PowerShell rather than spitting out console text? Then try this function: function Show-MsgBox { param ( [Parameter(Mandatory=$true)] [String]$Text, [String]$Title = ‘Message’, [String] $Icon = ‘YesNo,Information’ ) Add-Type -AssemblyName ‘Microsoft.VisualBasic’ [Microsoft.VisualBasic.Interaction]::MsgBox($text, $icon, $title) } It is really easy to use: simply tell it what to display: Show-MsgBox -Text […]