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…


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 Division Advanced Date of Event 4/15/2011 12:15 AM Due Date 4/22/2011 12:15 AM Event scenario You find yourself frequently writing data to a text file. Often, you delete these text files…

1

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…

4

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…

13

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…

3

Learn How to Run PowerShell Scripts Against Multiple Computers

   Summary: Microsoft Scripting Guy Ed Wilson teaches you how to run Windows PowerShell Scripts against multiple computers in this step-by-step article.   Hey, Scripting Guy! I am wondering on the best way to cause my script to work against multiple computers. — LS   Hello LS, Microsoft Scripting Guy Ed Wilson here. I received…

9

Pausing a Windows PowerShell Script to Receive Keyboard Input

  Summary: Pausing execution of a Windows PowerShell script to receive keyboard input can be as simple as using the Read-Host cmdlet. But other methods are available.   Hey, Scripting Guy! I would like to pause a Windows PowerShell script and wait for user input. When the user types a particular key on the keyboard,…

4

Hey, Scripting Guy! Quick-Hits Friday: The Scripting Guys Respond to a Bunch of Questions (10/2/09)

In this post: Troubleshooting a VBScript That Uses Systems Management Server 2003 Can I Prompt a User to Determine Which Network Card to Enable or Disable? Working with Domain Admin Privileges and Embedded Passwords How Can I List Available WMI Namespaces? How Can I Change Passwords for All Scheduled Tasks on a System? How Can…

0

Hey, Scripting Guy! How Can I Verify Input Received from the Command Line?

  I am the script writer at my company, and I have really been enjoying your articles on Windows PowerShell. I have begun the process of converting some of our old VBScripts to Windows PowerShell, and all of my new scripts are written in Windows PowerShell. Because I am the only one who writes scripts…

2