Skip to content

Instantly share code, notes, and snippets.

@bgshacklett
Created March 2, 2017 21:53
Show Gist options
  • Save bgshacklett/40480015f172891fe1375f29c1b19511 to your computer and use it in GitHub Desktop.
Save bgshacklett/40480015f172891fe1375f29c1b19511 to your computer and use it in GitHub Desktop.
Useful PowerShell One-Liners
# Get any command that has $ParameterName as an available parameter:
Get-Command | Where-Object { $_.parametersets.parameters.Name -eq "$ParameterName" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment