Scripting Blog

A place to learn about PowerShell and share stories of automation

How Can I Rename a User Account in a Windows NT 4.0 Domain?

Hey, Scripting Guy! How can I rename a user account in a Windows NT 4.0 domain?-- JK Hey, JK. You know, as this column is being written it’s a Monday here in Seattle, and it’s raining. And yes, we know what you’re thinking: when isn’t it raining in Seattle? Unfortunately, though, our weather is much crueler than that. After all, if it...

How Can I Get a List of All the .dll Files in a Folder, Along with Their Version Numbers?

Hey, Scripting Guy! How can I get a list of all the .dll files in a folder, along with their version numbers?-- DD Hey, DD. You know, when we sit down to write this column we usually try to start off with an amusing and at least semi-relevant anecdote. In this case, that would mean a cute story about file versions. Unfortunately, none of ...

How Can I Hide the Command Window When Executing a Command Like net Localgroup Administrators?

Hey, Scripting Guy! How can I hide the command window when executing a command like net localgroup Administrators?-- AA Hey, AA. You know, before we begin we’d like to take a few minutes to recognize all those faithful readers who read the Hey, Scripting Guy! column each and every day. Hey, June; how’s it going? No, that’s pretty much...

How Can I Create a New Excel Spreadsheet at Midnight Each Night?

Hey, Scripting Guy! How can I create a new Excel spreadsheet at midnight each night? I’d like each spreadsheet to have a file name similar to this: 6-1-06.xls.-- DH Hey, DH. You know, often-times the simplest approach is also the best approach. For example, the other night the Scripting Son was having a frustrating baseball game: in his ...

How Can I Rename a Local User Account on a Windows XP Computer?

Hey, Scripting Guy! How can I rename a local user account on a Windows XP computer?-- TY Hey, TY. You know, nowadays the “in” thing is to poke fun at Microsoft and Windows XP. We know: we’ve seen the new commercials from that one computer company. (Remember, the computer company that used to be good, a long time ago?) But as much as ...