Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Am I using it wrong? I realize a large majority of those aren't used frequently, but there are ~250 cmdlets, each of which attempts to have a unique-but-also-generic name.

https://technet.microsoft.com/en-us/library/ff714569.aspx

Let's say I didn't know ForEach-Object existed (trivial example, but generalizes), how do I find out there is a cmdlet that does what I'm looking for?



`Get-Command` lists all the cmdlets in the current sesion. You can also alternatively hit `help -category cmdlet` which lists all cmdlets with their short alias and long name. You can do `man -category cmdlet` if you wish to page through. The first thing in powershell you should do is `help help` :).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: