This project’s purpose is to get the information about the non-removable or fixed disks on the target machine. Query the computer and store the fixed disks information to a variableīelow is the function you’ll use for this project, aptly named Get-FixedDisk.Accept input for the name of the computer to query.Use the techniques you learn in this post to adapt your GUIs to your own scripts.Īs an example script, I’ll create a function that performs the following actions: This is, by no means, necessary to build a GUI though. I’ve chosen to use a script that allows you to provide a computer name and query disk information. You’ll need a script to wrap a GUI around first. In the script, you’ll write code that will pull disk information from a local or remote system by querying the Win32_LogicalDisk WMI class. In this post, you’ll create a simple script named Main.ps1.
A Windows 10 computer with Windows PowerShell 5.1.Some other options are Notepad++ and the built-in PowerShell ISE
In this post, you will learn how to create a PowerShell GUI using the Windows Presentation Framework (WPF). Building PowerShell GUIs may seem complicated, especially if you are a beginner.īut if you have basic experience with PowerShell scripting then there’s no reason for you not to learn and adapt the practice of creating GUI for your scripts. As a result, it is possible to write GUI front ends for the scripts you create.
Expedite user password resets and unlocks with Specops’ Secure Service Desk: no helpdesk calls, secure process, and happy end-users. This is one of those times when it is more appropriate to build graphical tools instead. Building a PowerShell GUI for for your service desk is a great example.
PowerShell is a command-line tool but did you know it can also be used as a base for graphical interfaces? Sometimes command-line isn’t the best kind of interface for a particular instance.