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

XDGDRFEH

In the world of customization and personalization, sublimation has become a game-changer. Whether you're an established business or a hobbyist looking to add a personal touch to your creations, finding reliable  is crucial. FastSub, your one-stop shop for all things sublimation, is here to cater to your every need.30 oz sublimation tumbler https://fastsubsupply.com/products/sublimation-tumbler-wholesale-30oz-stainless-steel-tumbler
 on 10/2/2023 12:35 AM

Re: Dynamic Parameter Validation in PowerShell

Quality Septic Tank specializes in septic tank pumping near me https://qualityseptictank.com/ and cleaning near Atlanta, GA. Our experienced team ensures your septic system operates efficiently. Contact us today for reliable septic service near me.
 on 10/2/2023 7:56 AM

Re: Dynamic Parameter Validation in PowerShell

Zahnarzt am Schwanenplatz, the premier Zahnarztpraxis Luzern https://zasch.ch/, offers a wide range of services, from oral hygiene to reconstructive operations. Our experienced team specializes in treating anxious patients and children, ensuring your visit leaves you with a satisfied smile. Discover the highest standards of dental care in Lucerne!
 on 10/2/2023 8:13 AM

XDGDRFEH

A faulty oven can hamper your cooking endeavors and ruin mealtime plans. Profixx Appliance Repair provides reliable Ontario. Whether it's a malfunctioning heating element, a faulty thermostat, or an ignition problem, our technicians can identify the issue and repair it promptly. Don't let a malfunctioning oven affect your culinary adventures – explore more about our oven repair services today.Oven Repair London Ontario https://profixx.ca/appliance-repair/oven/
 on 10/2/2023 8:36 AM

Re: Dynamic Parameter Validation in PowerShell

Vacation Zone best travel company based in the USA The USA, Canada, India, Asia Europe, Caribbean, and Dubai Trips as you want!Indian tours in USA https://vacationzone.net
 on 10/3/2023 1:42 AM

Re: Dynamic Parameter Validation in PowerShell

Many thanks for that publish as well as excellent ideas.. actually We additionally believe that effort is actually the most crucial facet of obtaining achievement.เว็บแทงหวย ไม่มีขั้นต่ำ https://100larn.com
 on 10/3/2023 1:58 AM

Re: Dynamic Parameter Validation in PowerShell

Poptunic: Your destination for premium t-shirts that celebrate pop culture. Join our community of like-minded individuals and indulge in your geeky passions. Click here https://poptunic.com/ to make your fashion truly pop!
 on 10/4/2023 8:20 AM

Re: Dynamic Parameter Validation in PowerShell

Discover a world of laughter and charm at Chicks 'n Giggles! Explore chicken gifts and farmhouse decor that will add a touch of whimsy to your life. Click here https://chicksngiggles.shop/ to shop now!
 on 10/4/2023 8:33 AM
1 - 10Next

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