Scripting Blog [archived]

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

Use PowerShell and WMI to Get Processor Information

Summary: Learn how to get the number of processor cores via WMI and Windows PowerShell. (image) Hey, Scripting Guy! I need to perform an audit of computers on our network. Specifically, I am tasked with obtaining CPU information. I need the processor speed, number of cores, and number of logical processors. I feel like I should be able to use ...

Solve Problems with External Command Lines in PowerShell

Summary: Microsoft Scripting Guy Ed Wilson discusses problems creating external command arguments using Windows PowerShell.   (image) Hey, Scripting Guy! I am using an external program that takes a –o command-line parameter followed by a path location. The program permits no space between the –o parameter and the supplied path...

Clean Up Your PowerShell Environment by Tracking Variable Use

Summary: Guest Blogger Ingo Karstein shares a Windows PowerShell function to track and remove variables from your environment.   Microsoft Scripting Guy Ed Wilson here. Today, we have a guest blog article written by Ingo Karstein. He has a really clever way to clean up your Windows PowerShell environment. I will let Ingo tell you a bit ...

Learn How to Use Sysinternals Ntfsinfo Cmd in PowerShell

Summary: Learn how to use Sysinternals ntfsinfo command in Windows PowerShell.   Weekend Scripter: Windows PowerShell and the Legacy--Hero Worship Microsoft Scripting Guy Ed Wilson here. Sean Kearney writes today more about legacy and Windows PowerShell. See his first blog posts on the topic, as well as yesterday’s blog post.  ...

Working Around Legacy Redirection Issues with PowerShell

Summary: Microsoft MVP Sean Kearney teaches a cool trick to work around legacy redirection issues in Windows PowerShell.   Weekend Scripter: Legacy Man Strikes Again Microsoft Scripting Guy Ed Wilson here. Once again, Microsoft PowerShell MVP Sean Kearney has been writing some guest blog posts. He continues with his thoughts on legacy and...