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 ...

The 2011 Scripting Games Advanced Event 10: Use PowerShell to Create a Function to Create Temp Files

Summary: Advanced Event 10 in the 2011 Scripting Games uses Windows PowerShell to create an advanced function to create temporary files. About this event Event scenario You find yourself frequently writing data to a text file. Often, you delete these text files later. You decide that an advanced function that will accept piped content to ...

Schedule PowerShell Scripts that Require Input Values

  Summary: Learn how to use the Windows Task Scheduler to run Windows PowerShell scripts that require input values.   Hey, Scripting Guy! I have a Windows PowerShell script that collects information from a computer and writes the results to a text file. I would like to be able to schedule the running of this Windows PowerShell script...

Use Scheduled Tasks to Run PowerShell Commands on Windows

   Summary: Learn how to use the Windows Task Scheduler to run Windows PowerShell commands automatically.   Hey, Scripting Guy! One of the things that is a bit frustrating about reading the Hey, Scripting Guy! Blog is that it seems as if you expect network administrators to sit in front of their computer screens manually ...

Validate PowerShell Parameters Before Running the Script

   Summary: Learn how to use Windows PowerShell parameter validation attributes to check parameters before running the script.   Hey, Scripting Guy! I have a problem that I think that you can help me with. I have created a Windows PowerShell script that allows Help Desk people to enter information about users such as the user&...

Feedback usabilla icon