Scripting Blog

A place to learn about PowerShell and share stories of automation

Hey, Scripting Guy! How Can I List All the User Profiles on a Computer?

Hey, Scripting Guy! How can I list all the user profiles on a computer? -- GN Hey, GN. You want to know a secret? We hate questions about user profiles. It’s not that we have anything against user profiles. The problem is that user profiles represent an important part of a system administrator’s duties, and because of that ...

How Can I Change the “Copy Music to This Location Folder” in Windows Media Player?

Hey, Scripting Guy! How can I change the Copy music to this location folder in Windows Media Player?-- BD Hey, BD. You know, a lot of people think that the reason we Scripting Guys don’t do very much work is because we’re just plain lazy. Those people are right. However, what we tell our bosses is this: it’s hard for us to do any work...

How Can I Make Internet Explorer Check for a New Version Each Time I Visit a Web Page?

Hey, Scripting Guy! How can I make sure that Internet Explorer 6 checks for a new version on each visit to a Web page?-- MD Hey, MD. In baseball lingo we’d call this a can of corn: a lazy fly ball we couldn’t possibly drop. This is a tricky little question but for some strange reason we just happened to know the answer. Thus a can of ...

How Can I Add a Site to Internet Explorer’s Restricted Sites Zone?

Hey, Scripting Guy! How can I add a site to Internet Explorer’s Restricted Sites zone on a remote computer?-- NS Hey, NS. When it comes to scripting, Internet Explorer has a sort of dual personality. If you want to program the application itself, well, you came to the right place: Internet Explorer’s document object model is wide open, ...

How Can I Delete a Single Registry Value?

Hey, Scripting Guy! How can I delete a single registry value? I don’t want to delete the entire registry key, just one value.-- BF Hey, BF. Registry terminology can be a bit confusing, thanks in large part to those of us here at Microsoft (we tend to use a different set of terms when we talk about the registry than the rest of the world ...