Scripting Blog [archived]

Formerly known as the "Hey, Scripting Guy!" blog

Hey, Scripting Guy! Can You Translate This VBScript to Windows PowerShell?

 (image) Hey Scripting Guy! I am wondering about something. I was looking on the Script Center Script Gallery, and I came across a pretty cool script that lists items that are in the user's profile. It is in VBScript. Can you translate it to Windows PowerShell for me?-- AW(image) Hello AW, Microsoft Scripting Guy Ed Wilson here. It is ...

Hey, Scripting Guy! How Can I Hide My Desktop Wallpaper?

(image) I give a lot of presentations, and the background picture of my baby alpaca, while fascinating to me, probably does not have the same level of attraction to my clients. I know I can mouse around and change the desktop picture to some bland color, but I prefer to run a script and make the change because I can have the same script ...

Hey, Scripting Guy! How Can I Tell How Much Free Disk Space a User Has?

(image) I know most people have heard of Moore’s Law that is named after Gordon Moore, but have you ever heard of Bob’s law? Bob was the senior network administrator when I first became an IT pro, and he created what he called Bob's Law. Briefly stated it says this: "A user's demand for storage space will always expand to meet the ...

Hey, Scripting Guy! How Can I Configure the Cmd Console via the Registry?

(image) Hey, Scripting Guy! You know, it just dawned on me that Windows PowerShell uses the old-fashioned Fred Flintstone cmd console for its host application. Because this thing has been around forever, are there any registry settings I can use to configure this beast? The reason I am asking is that every time I go to a new machine, I need ...

Hey, Scripting Guy! How Can I Modify Registry Settings That Configure Windows Explorer?

(image) Hey, Scripting Guy! Why does it feel like every single default setting in Microsoft Windows is wrong? It is so frustrating to me to spend five minutes changing all the defaults. For example, I open Internet Explorer and there are no system files. I look at files, but there are no file extensions. The names of text files that I put in...