Creating GUI based form interface for Powershell data entry ?

EnterpriseArchitect 6,041 Reputation points
2022-06-17T15:26:47.903+00:00

Hi Everyone,

Is there any way to use a Web-based GUI form to input and display entries with the Powershell cmdlet?

The script is mostly utilizing Read-Host & WriteHost command, rather than using the typical cmd prompt window and also combining the Windows form:

Add-Type -AssemblyName 'System.Windows.Forms'  
Add-Type -AssemblyName 'Microsoft.VisualBasic'  
[System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms")  

I need some examples I can use so the user experience is not switching back from Console, to the Visual basic Pop Up [Microsoft.VisualBasic.Interaction]::InputBox back and forth.

Any other Microsoft 365 product suggestions will be appreciated.

Thanks,

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,542 questions
Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,366 questions
Windows for business Windows Server User experience PowerShell
0 comments No comments
{count} votes

Accepted answer
  1. MotoX80 36,291 Reputation points
    2022-06-17T15:57:24.21+00:00

    If you need a web based solution, then use Visual Studio and build a C# ASPX web site. With VS you would get s full blown IDE which would make it easier to write the code behind object events.

    If you want to write a Powershell GUI, just do an internet search for examples.

    https://www.bing.com/search?q=powershell+winform+examples
    https://www.bing.com/search?q=powershell+winforms+tutorial

    https://thedavecarroll.com/powershell/windows-forms/
    https://nordic.hashnode.dev/winforms-in-powershell

    Or sign up for PoshGUI and use their interface to design your own.

    https://poshgui.com/

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.