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 (12/05/08)

Deleting Old Folders Programmatically   Hey, Scripting Guy! I need to delete some folders that exist under a root folder based upon how long they have been in existence. I do not need to delete the root folder, only the child folders. What is happening is that our logging routine creates new logs every hour, and creates a new log ...

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

Troubleshooting the “Object Is Required” Error   Hey, Scripting Guy! I am having a problem with my script. It keeps coming back and saying that an object is required. Why does it do that? - KA Hi KA, "Object required" is very generic. It means that (wait for it) an object is required. It happens when you try to use a method or query...

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 ...

Feedback usabilla icon