Skip to content

Instantly share code, notes, and snippets.

@kayasax kayasax/parameters.ps1

Last active Jun 14, 2017
What would you like to do?
Exemple d'usage de PARAMETER
[CmdletBinding()] #make script react as cmdlet (-verbose etc..)
[Parameter(Position=0, Mandatory=$true,ValueFromPipeline = $true)]
Validation :
[ValidateScript({Test-Path $_ -PathType ‘Container’})]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.