
Learn to build graphical user interfaces for PowerShell scripts, from mailbox permission tools to offboarding workflows, using dropdowns to avoid typing errors and designed for beginners.
Set up a Windows 10 test environment in VirtualBox using a free evaluation copy, then set up an isolated Windows Server 2016 AD lab for testing PowerShell tools.
Set up your client workstation and learn to build graphical interfaces for PowerShell scripts using Admin Script Editor, with installation steps, prerequisites, and practical GUI tool options.
Open the admin script editor, create a new PowerShell blank named Hello world, save it, then open the script form designer to work on the blank form.
Begin from scratch in the form designer, keep the interface simple, and size the canvas. Name the form with a single word and set the title to Hello World.
Design and preview a PowerShell form with the script form designer, bypass execution policy in admin mode, and save the GUI to a PS1 for editing and event handling.
Learn how to name and configure form controls in a PowerShell GUI, including button and label naming conventions, properties, coordinates, tab order, and how the form designer adds controls.
Create the button_test_click event in a PowerShell form to enable a button action. Double-click the button or use the lightning icon in events pane to generate and save the handler.
Learn to trigger PowerShell script execution from a button click, test in admin PowerShell, bypass execution policy in 32-bit and 64-bit shells, and run PS1 files.
Demonstrates updating a label on button click by editing the form in script form designer, wiring the button to change the label text to hello world, then running the form.
Learn to add and configure multiple buttons in a PowerShell script form designer, copying, pasting, renaming, and wiring click events to update labels and button text.
Remove the test button and its leftover function, clean up the form designer and event handlers, and verify live PowerShell console feedback to prevent errors as you refine the interface.
Add and configure a combo box in a PowerShell script GUI, populate items via the strings editor, and choose between dropdown list and dropdown, referencing data sources like Active Directory.
Populate a combo box with real world data using get process to create a processes variable. Bind it as the data source and set the display member to process name.
Populate the combo box with running processes using the get-process commandlet. Add a stop process button to end the selected process, demonstrated with Notepad, using stop-process on the chosen item.
Design a graphical user interface tool to interact with an Active Directory environment using PowerShell, enabling management of users, computers, containers, organizational units, and group policy.
Learn to enable the Active Directory PowerShell module with RSAT on Windows 10, elevate local or domain admin permissions, and manage AD users and computers via PowerShell and GUI.
Populate a combo box with Active Directory users by loading the Active Directory module in PowerShell, querying Get-ADUser, and binding results to the GUI using user principal names.
Design and test a PowerShell GUI that loads AD users into a combo box, retrieves the selected user's title, and displays it in a label for easy viewing.
Learn to convert text box input into a PowerShell variable, validate it with write-host, and pass it to a set user commandlet to update a title in Active Directory.
Verify your domain account using PowerShell, ensure it has least privilege to update employee titles in Active Directory users and computers, and delegate sufficient permissions to perform title updates.
Delegate Active Directory permissions by delegating control to a security group, then test updating a user's title with Get-ADUser and Set-ADUser in PowerShell, validating changes across the OU.
Demonstrates updating a user's manager in PowerShell by selecting subordinate and manager from two combo boxes and clicking update manager to set the manager using distinguished names.
Explore how to add and configure checkboxes and radio buttons in a PowerShell script form, control task execution, output selected data to the host, and handle default states.
Use a checkbox-driven if statement in a PowerShell GUI to fetch a user's manager and display the manager's title and distinguished name via write-host.
Enable or disable a user with radio buttons in a PowerShell form, handling the go button click to apply Active Directory changes for the selected employee.
Convert your PowerShell GUI into an executable with an online utility or the admin script editor, include icon, keep scripts simple, and use version control to manage changes before compiling.
Learn to convert a PowerShell PS1 script into an executable using the script packager, with options for console visibility, icons, system tray behavior, and PS2X as an alternative.
Create a graphical user interface for PowerShell scripts to manage Active Directory with combo boxes, checkboxes, radio buttons, and text boxes, enabling Office 365 or Microsoft Exchange actions.
While GUI's are not the first thing you think of when it comes to Powershell, it is often an overlooked option when it comes to Powershell tools. GUIs can sometimes help you facilitate your script and see all of your tool's options at a high level, while also helping to eliminate human error when it comes to typos (such as typing the correct employee name, or the correct parameter, and so on). Powershell GUI's also allow you to share your tool with delegates on your team or in your business, who may not be as comfortable working in a Powershell console environment.
In this course we look at the basics of GUIs, with recommended tools and concepts advocated by industry leaders and authors such as Don Jones and Jeffery Hicks. You have what it takes to make GUIs, and our aim in this course is to equip you with the basic skills, and inspire you to go forth and make your own GUIs for your awesome Powershell tools!