Scripting Blog [archived]

Formerly known as the "Hey, Scripting Guy!" blog

PowerTip: Find top PowerShell cmdlet nouns

Summary: Learn how to find the top five nouns in Windows PowerShell cmdlets. (image)  How can I find which nouns are the most prevalent in Windows PowerShell cmdlets? (image)  You need to find all of the cmdlet names, group them by noun, sort them by count, and then select only           the first ...

PowerTip: Use PowerShell to return first two lines of file

Summary: Learn how to use Windows PowerShell to return the first two lines of a text file.(image)  How can I use Windows PowerShell to easily return the first two lines of a text file?(image)  Use the Get-Content cmdlet and specify the TotalCount parameter. In this example, TotalCount is set   ...