Skip to content

Instantly share code, notes, and snippets.

@steviecoaster
Created November 19, 2024 18:56
Show Gist options
  • Save steviecoaster/d6f3cb4af5df8a423e1a3a1dd67701d1 to your computer and use it in GitHub Desktop.
Save steviecoaster/d6f3cb4af5df8a423e1a3a1dd67701d1 to your computer and use it in GitHub Desktop.
Demonstrating hidden params
function Hide-Param {
[CmdletBinding()]
Param(
[Parameter(DontShow)]
[String]
$SecretValue
)
end {
Write-Host "Your secret value was: $SecretValue!"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment