How To Create A GUI For Your PowerShell Script With WinForms

preview_player
Показать описание

We've all written and demonstrated useful scripts for a coworker that, when tasked with running the script themselves, snubbed their nose at the command line requirement. Because you like to challenge yourself, you decide that instead of preaching PowerShell to them, which you do enough of already, you'd rather learn a new skill: Adding a GUI to your scripts.In this video, Anthony will take you down the path of creating a simple .NET based GUI for a simple script using WinForms (System.Windows.Forms). He'll walk you through creating the form, adding controls, and adding script actions.

Рекомендации по теме
Комментарии
Автор

Nice examples. Another cool video idea would be to involve Active Directory in Python/PowerShell, then use 'voice inputs' as a (selection/variable). (For example, you can say "AD unlock user account - Bob", or "AD change user account password for Bob to Password1")

GLABSPC
Автор

"I'm going to pause until these people stop talking, you can probably cut this out" Lol

Jay
Автор

Thanks very much! Great video with clear explination

big_cheese
Автор

Great, simple, effektive and great ideal with the reuse code

phillipsparks
Автор

Great demonstration, thank you that helps alot for a starter like me. A question, how can I use the input given in the GUI text field to store in a variable or object to perform some post input actions in the same script?

theazhar
Автор

1:02 I copies and pasted the lines 31+ 32 and tried to execut them but nothing happend.

benschneider
Автор

great video. can the PS.form be sent-back so if paint or notepad opens up it will be behind them? thanks.

qzorn
Автор

Very nice, great intro to gui, thanks :)

justethom
Автор

if you want a loginscreen instead of a form, what can I use?

Bebba
Автор

Very nice, great intro to gui, thanks :)

justethom