String Input Validation With Powershell

Pavol Kutaj
Mar 17, 2021

--

The aim of this explainer💡 is to check how can I validate input for powershell’s [string]parameter.

* T (task/tutorial)
* E (explainer)
* H (howto)
* R (reference)
* CH (checklist)

1. steps/?

  • answer: you need to use [ValidateSet] property of a parameter

2. example

3. sources

--

--

No responses yet