Scripting Blog

A place to learn about PowerShell and share stories of automation

How Can I List All the Access Database Files on a Computer?

Hey, Scripting Guy! How can I list all the Access database files (.mdb and .ldb files) on a computer?-- MG Hey, MG. You know, in this day and age most people don’t believe in Santa Claus. Well, we happen to know that these people are wrong: Santa Claus really is real. How do we know that? Because he’s spent the past couple days spamming ...

How Can I Set a User’s Password and Then Require Them to Change That Password the Next Time They Log on?

Hey, Scripting Guy! In our school, how can I enable teachers to change a student’s password to their logon name, then force those students to change their password the next time they log on?-- DS Hey, DS. Boy, did you pick the wrong person to ask. After all, the Scripting Guy who writes this column used to be a teacher; if he knew how to ...

How Can I Create a Shortcut That Opens Internet Explorer With the Address Bar Hidden?

Hey, Scripting Guy! How can I create a shortcut that opens Internet Explorer with the address bar hidden?-- WA Hey, WA. You know, any time a science fiction writer starts to run low on ideas he or she writes a story in which someone goes to bed and then wakes up in the morning to find that the world has completely changed overnight. Why? ...

How Can I Add a Network Printer at Logon and, Optionally, Make That the Default Printer?

Hey, Scripting Guy! How can I add a network printer at logon? I’d also like to make that the default printer unless the user has a local printer. In that case I don’t want to make the network printer the default printer.-- DB Hey, DB. So, how are … things ….? That’s really some kind of weather we’ve/you’ve been having lately, ...

How Can I Copy My Users’ Phone Number Attribute to Their Description Attribute?

Hey, Scripting Guy! How can I copy a user’s phone number to his or her description for all the users in Active Directory?-- DL Hey, DL. You know, the Scripting Guy who writes this column considers today’s column to be his all-time favorite. Why? Because while you’re at work reading this he hasn’t even gotten out of bed yet. (Or, if he...

Feedback usabilla icon