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.

Start Powershell

Create a user menu.

Copy to Clipboard

Create a Powershell script to display a user menu.

Copy to Clipboard

Edit the Powershell script.

Copy to Clipboard

Here is the script content.

Copy to Clipboard

Execute the Powershell script to display the user menu.

Copy to Clipboard

Here is the command output.

Copy to Clipboard

Option 1 will request user input to perform a network connectivity test.

Copy to Clipboard

Option 2 will request user input to display a message.

Copy to Clipboard

Option 3 will exit the Powershell script.

Copy to Clipboard

Other options will display the default message.

Copy to Clipboard

Congratulations! You are able to display a user menu using Powershell.