Would you like to learn how to create a user menu using Powershell? In this tutorial, we are going to show you how to use Powershell to display a text menu on Scripts.
• Windows 2012 R2
• Windows 2016
• Windows 2019
• Windows 2022
• Windows 10
• Windows 11
Equipment list
Here you can find the list of equipment used to create this tutorial.
This link will also show the software list used to create this tutorial.
Related tutorial – PowerShell
On this page, we offer quick access to a list of tutorials related to PowerShell.
Tutorial Powershell – Creating a user menu
Start a Powershell command-line.
Create a user menu.
Create a Powershell script to display a user menu.
Edit the Powershell script.
Here is the script content.
Execute the Powershell script to display the user menu.
Here is the command output.
Option 1 will request user input to perform a network connectivity test.
Option 2 will request user input to display a message.
Option 3 will exit the Powershell script.
Other options will display the default message.
Congratulations! You are able to display a user menu using Powershell.