locked
Cmdlet content? RRS feed

  • Question

  • Hi,

    How do I get the content of a cmldet?
    F.e. Get-AdUser, how do I see what the content of the script (the powershell lines) is?

    J.

    Jan Hoedt

    Friday, March 6, 2020 10:05 PM

Answers

  • How do I get the content of a cmldet?
    F.e. Get-AdUser, how do I see what the content of the script (the powershell lines) is?

    The answer is that cmdlets often do not consist of script code. Many cmdlets are binary in DLLs. Get-ADUser is one of these.

    It would be helpful to know what is provoking the question.


    -- Bill Stewart [Bill_Stewart]

    • Marked as answer by Bill_Stewart Monday, April 20, 2020 8:14 PM
    Monday, March 9, 2020 10:06 PM

All replies

  • If you mean, finding what properties are available, I document them in this Wiki:

    https://social.technet.microsoft.com/wiki/contents/articles/12037.active-directory-get-aduser-default-and-extended-properties.aspx

    The default properties are always retrieved. The extended properties are retrieved if you request them with the -Properties parameter of Get-ADUser.


    Richard Mueller - MVP Enterprise Mobility (Identity and Access)


    Friday, March 6, 2020 10:23 PM
  • How do I get the content of a cmldet?
    F.e. Get-AdUser, how do I see what the content of the script (the powershell lines) is?

    The answer is that cmdlets often do not consist of script code. Many cmdlets are binary in DLLs. Get-ADUser is one of these.

    It would be helpful to know what is provoking the question.


    -- Bill Stewart [Bill_Stewart]

    • Marked as answer by Bill_Stewart Monday, April 20, 2020 8:14 PM
    Monday, March 9, 2020 10:06 PM