Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8975109
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T18:48:01+00:00 2026-06-15T18:48:01+00:00

Is there a way to get the parameters for a Method MemberType when using

  • 0

Is there a way to get the parameters for a Method MemberType when using Get-Member?

Example:

Get-Process | Get-Member -MemberType Method

What I need from this example is the parameters and parameter types of each member in the list.

The purpose of this is to get the members, parameters, and parameter types of a COM+ object I have to create documentation for. So an example can’t be .net specific.

I will be piping the member and parameter info into a razor template to generate the appropriate html.

Edit:
A better example would be this…

$comObj = New-Object -ComObject COMAdmin.COMAdminCatalog
$comObj | Get-Member -MemberType Method

In this example I need to get the parameter names (if there are any) for each method returned.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T18:48:02+00:00Added an answer on June 15, 2026 at 6:48 pm

    Get-Member is meant more for exploring .NET types than PowerShell Commands. For a simple “view” of a command’s parameters try this:

    Get-Command Get-Process -Syntax
    

    For details on the parameters try this:

    Get-Command Get-Process | Select -Expand ParameterSets
    

    If you’re looking for more detail on a .NET type member’s parameters then try this:

    C:\PS> Get-Process | Get-Member -Name WaitForExit
    
       TypeName: System.Diagnostics.Process
    
    Name        MemberType Definition
    ----        ---------- ----------
    WaitForExit Method     bool WaitForExit(int milliseconds), void WaitForExit()
    

    As for COM objects, that is likely to be a bit more hit or miss. PowerShell doesn’t always get type metadata for COM objects. BTW I do get parameter info (the parameter types) for the COM object you list in your question:

    C:\PS> $comObj = New-Object -ComObject COMAdmin.COMAdminCatalog
    C:\PS> $comObj | gm QueryApplicationFile
    
    
       TypeName: System.__ComObject#{790c6e0b-9194-4cc9-9426-a48a63185696}
    
    Name                 MemberType Definition
    ----                 ---------- ----------
    QueryApplicationFile Method     void QueryApplicationFile (string, string, string, bool, bool, SAFEARRAY(Variant))
    

    I’m afraid that is all the info PowerShell will give you in this case.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a way to get HTML contents from TinyMCE editor using jQuery so
coming from my other question is there a way to get by-name-parameters for constructors
Is there a way to get the value of the WTSSessionID parameter in a
Is there way to get file from windows xp command prompt? I tried to
is there way how to get name ov event from Lambda expression like with
Is there any way to get the previous hash using the history object ?I
Is there any way to get direct URL to a JSF bean action method?
having the method public void foo(){ //.. } Is there a way to get
Is there a way to access all request parameters, regardless of HTTP method? I
I'm writing a servlet, and need to get all parameters from the request. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.