Scripting Blog

A place to learn about PowerShell and share stories of automation

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

<?xml:namespace prefix = v ns = "urn:schemas-microsoft-com:vml" /><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />   Does Windows PowerShell Let Me Trap Errors? Hey Scripting Guy! Does Windows PowerShell have the ability to trap errors? -- JP   Hello JP, Yes, it does. Here is ...

Hey, Scripting Guy! How Can I Collect System Restore Information in Windows Vista?

Hey, Scripting Guy! I was looking at System Restore on my Windows Vista computer, and I had an idea. Wouldn’t it be great if I could script the collection of information for System Restore? I would like it to tell me how much disk space is being consumed, as well as when it is scheduled to run. I think you should write a script that will ...

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

Troubleshooting a Script That Uses the TrimStart Method   Hey, Scripting Guy! Greetings from an old VBScript guy. I have a problem with a Windows PowerShell script. It returns the unexpected result of "RANSFER" instead of the desired result of "\TRANSFER". One more thing: How can I use the TrimStart method to cut exactly what was given ...

How Can I Determine Which Version of Windows Vista is Installed on a Computer?

Hey, Scripting Guy! How can I determine which version of Windows Vista is installed on a computer?-- GC Hey, GC. You know, Microsoft is one of the largest and most successful companies the world has ever known. And yet, despite all our successes, we’re really no different than any anyone else: for example, from time-to-time we get a ...

How Can I Execute a Scheduled Task in Windows Vista?

Hey, Scripting Guy! I understand that, in Windows Vista, I can write a script that will cause a scheduled task to immediately execute. How do I do that?-- KW Hey, KW. Before we answer today’s question, we’d like to take a moment to say a few things in memory of our colleague, Scripting Guy Dean Tsaltas. Not that Dean has died or ...

Feedback usabilla icon