November 7th, 2008
I’ve seen this question several times over the past few weeks so I decided to sit down and find a solution. There’s a plethora of reasons why you might want to mute or unmute sound volume from within a WSH script. Until now, there’s been no viable solution. Read more… »
Posted in Windows Scripting, Windows Vista, Windows XP | 12 Comments »
October 10th, 2008
I receive this question quite frequently by readers who want to know how to configure Apache to treat HTML files as if they were PHP. Parsing HTML files as PHP can be quite handy if you have a current HTML site that you’re moving over to PHP and you don’t want to have to change URLs. It’s also quite simple to do. It only takes one line in your .htaccess file. Read more… »
Posted in Apache, Web Development | No Comments »
October 10th, 2008
If you’re tired of being bothered by Windows Vista’s invasive User Account Control (UAC) prompts when attempting to run certain programs, then you’ll want to stop by TechRepublic’s IT Dojo and check out this video that shows you how to bypass those unwanted prompts. Read more… »
Posted in Tips and Tricks, Windows Administration, Windows Security, Windows Vista | 2 Comments »
October 3rd, 2008
“Is there any way to release and renew a dynamic IP address in WSH?” - Chris. F
Releasing and renewing dynamic IP addresses can be a very effective method of repairing a broken internet connection. Effectively, you are instructing your network adapter to request a new IP address from a DHCP server. While the Windows Script Host doesn’t provide any method of doing this directly, the Windows Management Instrumentation, or WMI, does. Read more… »
Posted in Networking, Windows Scripting, Windows Vista, Windows XP | No Comments »
October 1st, 2008
I get a lot of questions asking for a simple way to force a script to run in either cscript.exe or wscript.exe–and there are several reasons why you might want to force the use of one engine over another. Cscript.exe is a good choice whenever you want to have a console output or mask passwords. It’s also the only scripting engine that allows you to work with standard input and output streams. Wscript.exe is a good choice whenever you want a script to run silently or without a window. In either case, you can write your code so that it forces the use of one or the other. Read more… »
Posted in Windows Scripting, Windows Vista, Windows XP | No Comments »
August 15th, 2008
“Hey, Windows Guru, how do you run Mac OSX on a PC. - Matt C.
Hey, Matt. Whether you’re looking for a more secure operating system on PC hardware or simply trying to set up a test bed for your applications, there could be several different reasons why you might want to find a way to run the Mac OS X operating system on a PC. Although I am a “Windows Guru”, as it turns out, I have two different ways to accomplish this. Read more… »
Posted in Miscellaneous, Windows Vista, Windows XP | No Comments »
July 27th, 2008
“Is there any way to mask the passwords that my users enter when running my Windows Scripts?” - Steve. P
Password masking is a method of hiding a user’s keyboard input so that another person cannot see what’s being typed on screen. This security measure helps to ensure that “shoulder surfers” can’t gain passwords by simply looking over someone’s shoulder. There are two different ways that password masking can be implemented from within the Windows Script Host environment. Read more… »
Posted in Windows Scripting | 1 Comment »
July 1st, 2008
“Hey, Windows Guru. How can I make it so that my VBScript event routines are only executed after a certain point in my script?” - Sam M.
Sam, you’ve asked an awesome question that you probably won’t find much documentation for. However, I have a really cool solution for you. Read more… »
Posted in Windows Scripting | 6 Comments »
June 18th, 2008
“How can I read the contents of a Microsoft Word document using VBScript in WSH?” - Bill S.
Reading the contents of a Microsoft Word document in WSH is actually pretty simple. You can use any language you like with this method, but I’ll be using VBScript. Read more… »
Posted in Windows Scripting | 8 Comments »
March 18th, 2008
“I cannot change the desktop background or wallpaper. When I select a new one in desktop properties nothing happens.” - Erin V.
Erin, I’ve been getting this question a lot recently. This is most likely due to a virus or malware. There are currently several bugs that like to make adjustments to local security settings that can result in this behavior. Read more… »
Posted in Windows XP | 7 Comments »