Skip to main content

Microsoft Script Center

Welcome to the Microsoft Script Center. We are dedicated to the system administrator scripters of the world. At the Microsoft Script Center, we focus on teaching people how to use Windows PowerShell to reduce time spent performing mundane tasks.

 

What's new?

Check out the Hey, Scripting Guy! blog to catch all the latest news, events, and, of course, scripts!

 

Join the conversation

The Scripting Guys forum is the place to share your knowledge and get help from other scripting fanatics.

 

Learn

Visit our learning center to start scripting or hone your skills.

 

Get scripts

Find scripting resources in the vast Script Center repository.

 

 

2013 Scripting Games Wrap-Up

The 2013 Scripting Games have ended, and it was a Games to remember! Read all about it in Ed's wrap-up blog article.

Events

There are currently no events scheduled.

Please check back frequently for information about new events.

About the Script Center

Who We Are

FAQ

Today's Hey, Scripting Guy! blog article

Script Center Home Page

PowerTip: Counting Characters with PowerShell
Summary: Use Windows PowerShell to count characters, words, and lines in a file. How can I count the number of characters, words, and lines in a text file by using Windows PowerShell? Use the Measure-Object cmdlet; specify the -Line, -Character, and -Word switched parameters; and use the Get-Content cmdlet to read the text file: PS C:\> Get-Content C:\fso\ab.txt | measure -Line -Character -Word Lines Words ... More >
Saturday, Jul 6

 

 

 

Follow Us

Hey, Scripting Guy! @ScriptingGuys