In PowerShell 3 if you are searching for a command you could use both, both Get-Help Get-* and Get-Command Get-* work?
So whats the major difference ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
Both commands share a lot of information in common but the main difference is that
Get-Helpoutputs MAML objects (which are “text based”, error prone and even can be out dated) whileGet-Commandgets you real objects (metadata), that you can further investigate.For most help parts,
Get-Helpis displaying pre-made help, contained in XML files.For other parts,
Get-Help“is using”Get-Commandto generate the information, like the SYNTAX section.Get-Commandalso gets you information that Get-Help doesn’t, like the module of the command, , it’s DLL path (in case of a compiled cmdlet), parameter sets, and so on.One is not a replacement for the other, you use both under different circumstances.