If you ever wanted to take your Windows PowerShell Toolmaking skills to the next level, then this course is just for you. We will use Sapien's PowerShell Studio 2015, the "Visual Studio" of Windows PowerShell, and use it to build Windows Forms from scratch -- using its drag and drop functionality and your existing knowledge of Windows PowerShell. In this soup-to-nuts PowerShell GUI building course, you will get your feet wet with PoweShell Studio 2015, get comfortable with its interface, and then build an Event Log collector tool from scratch, which you can then share with others either as an EXE or MSI file. You'll be able to do all of this without writing a single line of C# or VB.Net code, thereby giving you, the IT Pro, the ability to build GUIs without the need to learn a new programming language.
With a Bachelor of Engineering (IT) from Mumbai University, Manoj is currently working with Microsoft Australia as a Cloud Solutions Architect. In his current role, he enables Cloud and Enterprise Customers to design, position, sell and deploy and troubleshoot Microsoft Azure Cloud Solutions. Prior to Microsoft, Manoj worked with AWS as an Ecosystem Solutions Architect, as an AWS Senior Technical Trainer, and as Technical Instructor with DDLS, Sydney specializing on Microsoft Infrastructure Solutions.
Course Overview Hello and welcome to my course Creating Graphical User Interfaces using PowerShell Studio 2015 - The Essentials here at Pluralsight. My name is Manoj Ravikumar Nair, and I'm a Microsoft MVP on Cloud and Datacenter Management and specialize in Windows PowerShell. PowerShell toolmaking is a must-have skill for any IT pro these days. And providing a face to the awesome PowerShell script you wrote can really help your script reach a wider audience. Sapien's PowerShell Studio 2015 is the Visual Studio of Windows PowerShell. And to do justice to this amazing product, I have broken its learning path into three courses. And this course is the first installment of the series. I'm sure you might have questions like, Why would you even be interested in creating graphical user interfaces and need to using Windows PowerShell? I address this in the first module, which details the need for the shift in this paradigm. In the next module, we do a quick tour of PowerShell Studio and start designing the user interface of a tool we'll build from scratch. Next, we'll add the necessary event handlers and the million dollar PowerShell code to make our tool respond to the user's action. Finally, we'll package our tool into an EXE or as an MSI so that we can share our tool with others. By the end of this course, you will know the basics of altering single-page Windows from its graphical user interfaces of your own using your PowerShell skills and Sapien's PowerShell Studio 2015. I hope you'll join me in this journey to learn PowerShell GUI toolmaking with the Creating GUIs Using PowerShell Studio 2015 - The Essentials course here at Pluralsight.
Creating the GUI – The Design Designing a graphical user interface using PowerShell Studio 2015 is more often art than coding. Essentially, all that you need to do is to select the Windows Forms controls of your choice and then drag them over to the form, configure their properties, the look and feel, and that's all to it. To be more effective with designing a form, it is a great idea to put ourselves at ease with PowerShell Studio. In this module, we'll begin with a quick tour of PowerShell Studio 2015 and take a look at customizing it to suit our taste. Next, we'll cover some of the fundamentals of Windows Forms controls. If you understand how to work with Windows Forms controls, set their properties, and work with their methods and event handlers, then you can easily find your way with PowerShell Studio 2015. For me, personally this is one of the most important sections of this course. And I would highly recommend that you don't skip it. Next, we'll design the tool we'll be building from scratch in this course. We will try to understand the workflow and the requirement of our tool and use that to create a tool using PowerShell Studio. Excited? Let's dive straight into PowerShell Studio 2015 and explore its interface.
Creating the GUI - The Code Now that we have the user interface designed for our event log collector tool, let's bring our tool to life by adding event handlers and some PowerShell code. In this module, we'll work on adding code and event handlers for step 1 where we prompt the user for a computer name and try to connect to the computer, step 2 where we query the log selected, step 3 where we display the results in a DataGridView, and step 4 where we allow the user to export the results as a CSV or as an HTML file. And, finally, work on the MenuStrip that we added specifically for the About page for our tool. I would recommend that you keep a copy of the Control Reference Guide handy as a ready reference when you start writing the code. With that said, you're all set to get started. See you in the next video where we'll kick-start the coding journey with step 1, accepting computer name input. Thanks for watching.
Creating the GUI - Producing and Sharing Let me start by saying that this module is going to be a short one. The reason being it's simple to export our scripts that we build using PowerShell Studio as an EXE or package it as an MSI file. In this module, we'll focus on exporting the tool we build as a PowerShell script, as an executable, and as an MSI file. As of now, we have the PSF file for our tool. Sharing this PSF file with others will not be useful as a PSF file can only be read by PowerShell Studio. If you plan to distribute this tool using software deployment mechanisms, like group policies or configuration manager, we need to make sure that we can work our tools as an executable or as a Microsoft installer, or MSI. Fortunately, PowerShell Studio makes this extremely simple to do so as we see in the upcoming videos. Thanks for watching, and I'll see you in the next video where we'll work on producing and sharing the tool as a PowerShell script.