Showing archive results for January 2016

Jan 23, 2016
Post comments count0
Post likes count0

PowerTip: Create list of approved PowerShell verbs

Doctor Scripto
Doctor Scripto

Summary: Learn how to easily produce a list of approved Windows PowerShell verbs.  How can I find what verbs are approved for use in a Windows PowerShell function?  Use the Get-Verb cmdlet, and to make it easy to peruse, send the output to the Out-GridView cmdlet: get-verb | Out-GridView

Scripting Guy!Windows PowerShellscripting techniques
Jan 22, 2016
Post comments count0
Post likes count0

PowerTip: Find single-name PowerShell functions

Doctor Scripto
Doctor Scripto

Summary: Learn how to find Windows PowerShell functions that do not have a hyphen in the name.  How can I easily find Windows PowerShell functions that do not have a hyphen in the name, but instead are single words, such as the Prompt function?  Use the Get-Command cmdlet and return only functions. Filter out function ...

Scripting Guy!Windows PowerShellPowerTip
Jan 21, 2016
Post comments count0
Post likes count0

PowerTip: Find top PowerShell cmdlet nouns

Doctor Scripto
Doctor Scripto

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

Jan 20, 2016
Post comments count0
Post likes count0

PowerTip: Use PowerShell to return first two lines of file

Doctor Scripto
Doctor Scripto

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

Jan 20, 2016
Post comments count0
Post likes count0

PowerTip: Use PowerShell to return first two lines of file

Doctor Scripto
Doctor Scripto

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

Scripting Guy!Windows PowerShellscripting techniques