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.



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


Get scripts

Find scripting resources in the vast Script Center repository.





Check out Project Siena!

Hey scripters, check out the new Windows app building tool from Microsoft - project Siena - that will help you build custom Windows apps in a flash!

About the Script Center

Who We Are


Today's Hey, Scripting Guy! Blog post

Script Center Home Page

PowerTip: Use PowerShell to Pause Execution
Summary: Use Windows PowerShell to pause execution for a specific time to wait for a process to exit. I have a process that normally exits within four seconds, and I want to pause the execution of my script to wait for this process to exit. If it does not exit in time, I want an error to occur. How can I easily do this? Use the Wait-Process cmdlet and specify the name of the process and the wait time: Wait-Process -Timeout 4 -Name not... More >
Saturday, Apr 19


Follow Us

Hey, Scripting Guy! @ScriptingGuys