Creating GUI

Ask your PowerShell-related questions, including questions on cmdlet development!
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Post Reply
User avatar
ITEngineer
Posts: 211
Last visit: Sun Jun 19, 2022 6:35 pm
Has voted: 2 times

Creating GUI

Post by ITEngineer »

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.

Thanks,
by jvierra » Fri Jun 17, 2022 9:32 am
PowerShell cannot build Web forms.

Your question is impossible to answer because you have not shown any code that does anything.

It is necessary to learn at least the basics of PowerShell and Windows. With some basics you will find it easier to ask a question.

I recommend two ways to get started learning and understanding PowerShell.

https://www.sapien.com/books_training/W ... werShell-4

https://info.sapien.com/

The second link has hundreds of fully working examples.
Go to full post
/* IT Engineer */
jvierra
Posts: 15221
Last visit: Wed Jun 29, 2022 5:42 pm
Answers: 23
Has voted: 4 times
Been upvoted: 21 times

Re: Creating GUI

Post by jvierra »

PowerShell cannot build Web forms.

Your question is impossible to answer because you have not shown any code that does anything.

It is necessary to learn at least the basics of PowerShell and Windows. With some basics you will find it easier to ask a question.

I recommend two ways to get started learning and understanding PowerShell.

https://www.sapien.com/books_training/W ... werShell-4

https://info.sapien.com/

The second link has hundreds of fully working examples.
Post Reply