Skip Ribbon Commands
Skip to main content

Quick Launch

Todd Klindt's home page > Todd Klindt's Office 365 Admin Blog > Posts > Dynamic Parameter Validation in PowerShell
June 22
Dynamic Parameter Validation in PowerShell

Hello, SharePoint and PowerShell enthusiasts! Todd Klindt here, and I've got something exciting to share with you today. I recently had the opportunity to present a developer-focused demo on the Microsoft 365 & Power Platform Community channel. The topic? Dynamic parameter validation in PowerShell.

In this 13-minute demo, I walk you through the process of creating your own PowerShell cmdlet. This cmdlet allows you to pull and tab through information from a site, list, text file, Azure, Graph, etc. within the PowerShell environment.

I utilize the power of ValidateSet, ValidateScript, and ArgumentCompleter. To show off, the demo concludes with an interesting twist. I used ChatGPT to write the same code.

All the code I used in the demo is available on my GitHub repo. You can find it at PoshPnP and PnP PowerShell.

I hope you find this demo useful in your PowerShell journey. Remember, when you're writing PowerShell, try to be the tool maker, not the tool user. Happy coding!

Watch the full video here.

tk

ShortURL: https://www.toddklindt.com/PoshValidation

Comments

Re: Dynamic Parameter Validation in PowerShell

In the realm of online gambling, trust and experience are everything. 카지노매니아 is your trusted companion on your journey to discovering the finest casino sites, experiencing the excitement of 온라인바카라 https://eastbrunswickclub.com/, and diving into the immersive world of 라이브카지노.
 on 10/1/2023 6:23 AM

asa

Unveil the true potential of your fitness goals with Grand Rapids' finest personal trainers at Motive Training. We've reshaped the landscape of personal training, offering fully customized, scientifically-backed programs that ensure real progress. Explore more about our dedication to pain-free movement and personalized success on our website https://movewithpurpose.com/personal-trainer-grand-rapids-mi/
 on 10/1/2023 6:36 AM

Add Comment

Items on this list require content approval. Your submission will not appear in public views until approved by someone with proper rights. More information on content approval.

Title


Body *


Today's date *

Select a date from the calendar.
Please enter today's date so I know you are a real person

Twitter


Want a message when I reply to your comment? Put your Twitter handle here.

Attachments

 

 SysKit