PowerTip: Find PowerShell Cmdlets that Accept Hash Table Input

PowerTip: Find PowerShell Cmdlets that Accept Hash Table Input

  • Comments 4
  • Likes

Summary: Find Windows PowerShell cmdlets that accept a hash table for input.

Hey, Scripting Guy! Question How can I find what Windows PowerShell cmdlets accept a hash table for input?

Hey, Scripting Guy! Answer Use the Get-Command cmdlet, use the ParameterName parameter, and search for HashTable information:

Get-Command -ParameterName *hashtable* 

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment
  • Ed,

    Did you mean to use -ParameterType instead of -ParameterName to show parameters which accept a hashtable as input?

    Boe

  • @Boe Prox yes that is what I mean (it was a tab completion error) :-(

  • Dont wanna be a booger, but, could u at least fix your blog post regarding -ParameterType instead of -ParameterName.

  • @DJ

    PS C:\scripts> Get-Command -ParameterName *hashtable*

    CommandType     Name                                               ModuleName

    -----------     ----                                               ----------

    Cmdlet          Group-Object                                       Microsoft.PowerShell.Utility