Scripting Blog [archived]

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

Hey, Scripting Guy! Can I Use Windows PowerShell to Find the Status of Services on My Computer?

(image) (Portions of this article previously appeared in the Microsoft Press book, Windows PowerShell Scripting Guide.) (image) Hey, Scripting Guy! I would like to use Windows PowerShell to obtain information about the status of services that are configured on my computer. Do you have any hints you could share? -- LB (image) Hello LB...

Hey, Scripting Guy! Can I Determine Which Servers Have Specific Hotfixes Installed?

(image) Hey, Scripting Guy! I have a text file that contains a number of computer names. I would like to read that text file, query each computer in the list, and find out the status of a particular hotfix. If I could write the information to a text file, it would be even better. Here is the deal; there was a recent security update ...

Hey, Scripting Guy! Can I Read a Text File and Use It to Query Servers?

 (image) Hey Scripting Guy! I need to generate a list of hotfixes that are installed on my servers. I have 100 servers on the network for which I am responsible. Each of the server names is listed in a text file called servers.txt. I need a way to read the text file and then query each of the servers. Can you help me?-- GM(image) Hello GM...

Hey, Scripting Guy! Can I List the Program Identifiers That Are on My Computer?

 (image) Hey, Scripting Guy! I am looking for a script that will list program identifiers on my computer. Have one of those?-- CG(image) Hello CG, Microsoft Scripting Guy Ed Wilson here. It is interesting you ask for a script that will list program identifiers on your computer. Program identifiers (PIDs) are the secret word combinations ...

Hey, Scripting Guy! How Can I Run a Script When My Computer Is Idle?

(image) Hey, Scripting Guy! I need to be able to run a script when my computer is idle. But only when it is idle. I have looked in WMI and everywhere else and cannot find anything that will detect when the computer is idle. Can you tell me how to do it?- NM(image) (image) Hi NM, You know, our computers are busy plotting against us every ...