PowerShell creating a GUI – Part 1

Reading Time: < 1 minute

In this section we are going to talk about how to create a GUI using PowerShell.

Add-Type -assembly System.Windows.Forms
$main_form = New-Object System.Windows.Forms.form
$main_form.Text = 'GUI for'
$main_form.Width = 600
$main_form.Height = 400
$main_form.AutoSize = $true
$main_form.ShowDialog()

This entry was posted in PowerShell. Bookmark the permalink.