Scripting Blog

A place to learn about PowerShell and share stories of automation

How Can I Change the Last Modified Timestamp for All the Files in a Folder?

Hey, Scripting Guy! How can I change the last modified timestamp for all the files in a folder? I’d like the first file to have a specified timestamp, then each subsequent file to have a timestamp one minute later than the previous file.-- AF Hey, AF; glad to see that you’re taking a break from the 2007 Winter Scripting Games. Is that ...

Hey, Scripting Guy! How Can I Configure Office Excel to Autosave Every 5 Minutes?

Hey, Scripting Guy! How can I configure Office Excel to autosave every 5 minutes?-- KK Hey, KK. You know, that’s a good question. As it turns out, the autosave capability in Microsoft Excel – hey, wait a minute: do you realize what day it is? Today is the first day of the 2007 Winter Scripting Games; why in the world are you ...

Hey, Scripting Guy! How Can I Log a User Off After 5 Minutes of Inactivity?

Hey, Scripting Guy! How can I force a user to log off after 5 minutes of inactivity?-- CS Hey, CS. You know, no doubt at least some of you are wondering why we Scripting Guys are so excited about the Winter Scripting Games (coming February 12-23, 2007 to a Script Center near you). What’s the deal here: do the Scripting Guys get a ...

Hey, Scripting Guy! How Can I Save an Office Excel Chart as a Picture?

Hey, Scripting Guy! How can I save an Office Excel chart as a picture?-- JB Hey, JB. You know, yesterday was a good day for the Scripting Guy who writes this column. If the phone rings at the Scripting House and if it’s for the Scripting Guy who writes this column, well, it’s never really for the Scripting Guy who writes this ...

Hey, Scripting Guy! How Can I Prompt a User for Information and Then Pass That Information to a Command-Line Tool?

Hey, Scripting Guy! How can I prompt a user for information and then pass that information to a command-line tool?-- SD Hey, SD. efh;r9d/fjwf Sorry; let’s try that again. j ewewrj 2gr CX # 2kkkkw Sorry; the Scripting Guy who writes this column is having a little difficulty moving his arms today. Last night the Scripting Son thought it ...