Let me start with the popular example:
Here, unless I already know the different "values" of the Parameter "_Logname", I can't use this command. What if I don't know that -Logname can ONLY take on values "System, Application, Security etc" and not *any* type like the Get-Member suggests for Logname? How do I find out what the legit value list is?
Another example: New-Item -type directory MyDirectory
Any help appreciated.
There's not a single answer to this question; it will depend on the command and how it's written or documented. In this specific case (the -LogName parameter of Get-EventLog), tab completion / intellisense works fine for me in PowerShell 4.0, and you can also run (Get-EventLog -List) in order to see all of the options.
In general, I would try tab completion first, and then look at the help file for a command.
You must be logged in to reply to this topic.