In PowerShell, it is possible to use GUI elements to allow for user input during scripts. Although it is possible to create your own forms from scratch, there are also many useful pre-built dialogs available. In this tip, we will see how the System.Windows.Forms.FolderBrowserDialog can be used to select a folder or path that can be used within a script.
↧