Scripting Blog

A place to learn about PowerShell and share stories of automation

Hey, Scripting Guy! How Can I Use Windows PowerShell to Retrieve Information About Computer Hardware?

    Hey, Scripting Guy! I need to use Windows PowerShell to retrieve information about my computer hardware. Specifically I am interested in the make, the model, and the speed of my CPU by using a script. Can this be done? -- DH   Hello DH, Microsoft Scripting Guy Ed Wilson here. The 2010 Scripting Games had an event that ...

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

!-->!--> In this post:   How Can I Get a List of Active Directory Groups in the Local Domain and All the Users Across the Whole Forest? Hey, Scripting Guy! We need to query Active Directory (AD) and populate customer permissions tables in SQL Server. We only assign login rights to groups, so what we need from AD ...

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

In this post:   How Do I Create Shortcuts in Windows PowerShell? Hey, Scripting Guy! How do I create a Windows shortcut in Windows PowerShell? For example, I am installing Windows PowerShell these days on every Windows computer I touch. I would like to have a one-liner that creates the following shortcut: C:...

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

In this post:   Using the Active Directory DirectoryEntry Class Hey, Scripting Guy! I have been writing some scripts for Active Directory, and this past weekend I ran into something that puzzled me. When a search is performed against Active Directory (using the DirectoryEntry class and searcher class), and when ...

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

In this post:   How Can I Change the Internet Explorer Title Bar? Hey, Scripting Guy! In which programming language should I write to change the Internet Explorer title bar? -- NN Hello NN, You can use VBScript, Jscript, Windows PowerShell, or anything you wish. For Internet Explorer, you can add the following...