Scripting Blog

A place to learn about PowerShell and share stories of automation

Use PowerShell and WMI to Get Processor Information

Summary: Learn how to get the number of processor cores via WMI and Windows PowerShell. 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 Windows ...

Use the BSonPoSH PowerShell Module to Simplify AD Tasks

Summary: Learn how to use the BSonPoSH Windows PowerShell module to simplify Active Directory management tasks.   Hey, Scripting Guy! I am wondering if there are any modules that can help me with routine, daily administration tasks. I really hate to re-invent the wheel, so if you can point the way to a nice, juicy module, I would be most ...

The 2011 Scripting Games Advanced Event 5: Use PowerShell to Determine Upgrade to Windows 7 Eligibility

Summary: Advanced Event 5 of the 2011 Scripting Games uses Windows PowerShell to determine if a computer is upgradable to the Windows 7 operating system. About this event Event scenario Your company is planning an upgrade from Windows XP to Windows 7, and you get to write a script that will determine if a computer meets the requirements for...

Hey, Scripting Guy! How Can I Hide My Desktop Wallpaper?

I give a lot of presentations, and the background picture of my baby alpaca, while fascinating to me, probably does not have the same level of attraction to my clients. I know I can mouse around and change the desktop picture to some bland color, but I prefer to run a script and make the change because I can have the same script close Office...

Hey, Scripting Guy! How Can I Have Computer Configuration Information Written to an HTML File?

Hey, Scripting Guy! I need to obtain some basic configuration information from my computers on the network. It would be nice if the script would write the output in an HTML file that we could copy to our internal Web server. This would give us easy access to the information. Whadda ya say?- JE Hi JE, This morning, it is really cold, gray, ...