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 an example of using the trap statement in a…

1

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…

1

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…

1

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…

1