Scripting Blog

A place to learn about PowerShell and share stories of automation

Hey, Scripting Guy! Can I Sort Files by Creation Date?

Hey, Scripting Guy! I have a number of files that I work with based upon the date the file was created. I need an easy way to sort the listing of the files in a folder by creation date if possible. I am not sure this is even possible. When I look at the files in Windows Explorer, the date the file was created does not even appear. When I use...

Hey, Scripting Guy! How Can I Check for the Presence or Absence of a Text File?

Share this post:   Hey, Scripting Guy! We use text files in special folders to determine if we have performed an operation on a computer. For example, we might install a piece of software on a computer. While it is possible to query the Win32_Product WMI class to determine if the software has been installed or to query ...

Hey, Scripting Guy! How Can I Clean Up File Names?

Hey, Scripting Guy! We have a number of files that were manually created by various people in a common folder. Unfortunately, they did not follow a specific naming convention as well as they should, and as a result they do not sort very well. Some people preceded the file names with the word “File,” and others appended their name to ...

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

Can I Delete All Items in the Deleted Items Folder? Hey, Scripting Guy! I need a VBScript script that will delete all of the e-mails in the Deleted Items folder. I have tried to do this, but I am not able to get it to delete all of the items in the folder. One time it deletes one or two items, and then on another occasion it appears ...

Hey, Scripting Guy! Can I Remove Specific Folder Access Rights on a Per-User Basis?

Share this post: Hey, Scripting Guy! There is this guy at work…well, actually he used to be at work and that is the problem. He left the company. The way security has been implemented at our company, I have to check specific folders, and if a user has been granted explicit access rights to the folders, the entry needs to be ...

Feedback usabilla icon