Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Framework for GUI on top of Powershell?

The Powershell team preaches using GUI on top of Powershell (GUI actions translated into Powershell commands in the background and executed).

I love the idea, specially b/c it would make my GUI scriptable (it's nice to click click and then see a trace window with all the cmdlets that I've executed).

My question is, do they provide some kind of framework/library to implement such GUI over Powershell architecture?

like image 892
Nestor Avatar asked Nov 10 '09 04:11

Nestor


People also ask

Is there a GUI for PowerShell?

You can use Visual Studio with a WPF (Windows Presentation Foundation) as a simple PowerShell GUI builder. Download and install Visual Studio Community 2019 version. WPF is a part of the . NET Framework that can be used to visualize user interfaces in Windows apps.

How do I create a GUI in PowerShell?

To start creating the GUI, open up Visual Studio and create a new project. Once Visual Studio is open, click on File (1) –> New (2) –> Project (3). Under the New Project window, choose Visual C# (1), select WPF App (. NET Framework) (2), change the name to PoshGUI-sample (3) and click OK.

Which is the front end of GUI of PowerShell?

GUI for Microsoft Windows PowerShellFireCMD provides a graphical user interface (i.e. a front end) to Microsoft Windows PowerShell. PowerShell is Microsoft's latest command-line shell and associated scripting language built on . NET Framework.

What is the best IDE for PowerShell?

Visual Studio Code with the PowerShell extension is the recommended editor for writing PowerShell scripts. It supports the following PowerShell versions: PowerShell 7.0 and higher (Windows, macOS, and Linux)


1 Answers

Well the idea is that you build a traditional GUI-based management application and host PowerShell to do the real work via your cmdlets. MMC snapins are one way to go if you don't want to implement an entire application. These days you can use .NET/WinForms to build MMC snapins. That is the model the Exchange server uses. MMC 3.0 supports managed snapins - this MSDN article discusses how to do this. After that it should be pretty simple to take information from the GUI and translate that into the appropriate calls to your cmdlets.

like image 133
Keith Hill Avatar answered Sep 29 '22 06:09

Keith Hill