Message Box issue with PS EXE file

I am creating a simple PowerShell message box to give the user error information but when I build my script to an EXE file, the prompt does not show.

I can replicate the problem with a simple script here. I verified that this works but when I use PowerShell Studio to Build an EXE file…the prompt does not show.

Anyone know what I am missing?

$Computer = $env:COMPUTERNAME
[System.Windows.Forms.MessageBox]::Show($Computer, ‘title’,‘OK’)

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.