PowerShell Menu Builder Function

I needed a fairly complication menu system in PowerShell so decided to create a PowerShell menu builder function that creates a menu prompt from variables passed to the function. This made the code much easier to read, separating the menu system code from the code that really does stuff.

Here’s the script:

 

 

Andrew Morpethhttps://ucgeek.co/author/amorpeth/
Andrew is a Modern Workplace Consultant specialising in Microsoft technologies based in Auckland, New Zealand; Andrew is a Director and Professional Services Manager at Lucidity Cloud Services and a Microsoft MVP.

Related Articles

Azure Virtual Desktop Review

This Azure Virtual Desktop review reveals a virtual desktop solution ready for the modern workplace. It's modern, fast, and scalable.

Azure Virtual Desktop Classic vs ARM

This article takes you through some of the differences between Azure Virtual Desktop Classic vs ARM, Microsoft's upgrade to AVD.

Manage Azure Virtual Desktop with Endpoint Manager (Intune)

Endpoint Manager (Intune) will support Azure Virtual Desktop & Windows 10 multi-session, a more cost-effective approach to virtual desktops.

2 COMMENTS

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Andrew Morpethhttps://ucgeek.co/author/amorpeth/
Andrew is a Modern Workplace Consultant specialising in Microsoft technologies based in Auckland, New Zealand; Andrew is a Director and Professional Services Manager at Lucidity Cloud Services and a Microsoft MVP.

Latest Articles

Azure Virtual Desktop Review

This Azure Virtual Desktop review reveals a virtual desktop solution ready for the modern workplace. It's modern, fast, and scalable.

Azure Virtual Desktop Classic vs ARM

This article takes you through some of the differences between Azure Virtual Desktop Classic vs ARM, Microsoft's upgrade to AVD.

Manage Azure Virtual Desktop with Endpoint Manager (Intune)

Endpoint Manager (Intune) will support Azure Virtual Desktop & Windows 10 multi-session, a more cost-effective approach to virtual desktops.

Azure Virtual Desktop Domain Join Options

This article summarises your Azure Virtual Desktop Domain join options - ADDS, Azure ADDS, Azure AD (preview).

Active Directory Options Demystified – ADDS, AADDS, AAD

There are several Active Directory options in today's cloud-centric world. This article demystifies and provides guidance on your best option.