Archive for the ‘Windows Scripting’ Category

Masking Passwords in Windows Scripts

Sunday, 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 […]

1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5 out of 5)
Loading ... Loading ...

Controlling When VBScript Events Are Handled

Tuesday, 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.

1 Star2 Stars3 Stars4 Stars5 Stars (3 votes, average: 4.33 out of 5)
Loading ... Loading ...

Reading Word Documents in WSH

Wednesday, 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.

1 Star2 Stars3 Stars4 Stars5 Stars (2 votes, average: 5 out of 5)
Loading ... Loading ...

Ternary Operators in VBScript

Thursday, January 17th, 2008

I use the ? an : operators when writing PHP. Are there similar operators available in VBScript? - Bill S.
Let me first give a basic introduction for those readers who don’t know PHP and may not understand what we’re talking about here. PHP allows you to make quick decisions using the ? and […]

1 Star2 Stars3 Stars4 Stars5 Stars (3 votes, average: 5 out of 5)
Loading ... Loading ...

Launch One Script From Another

Monday, January 14th, 2008

Can you call a WSH script from within an existing VBS WSH logon script?- Cheryl J.
Hello, Cheryl. Quite simply, yes you can. There are a couple of methods for doing this. I’ll show you the easiest two first and then I’ll document a third, more robust way, in a future article.

1 Star2 Stars3 Stars4 Stars5 Stars (5 votes, average: 5 out of 5)
Loading ... Loading ...

2008 Microsoft Scripting Games

Tuesday, December 4th, 2007

As 2007 comes to a close, the Scripting Guys over at Microsoft are earnestly preparing laurel wreathes and scripting challenges in preparation for their upcoming Scripting Games. As a participant this year, I will again be competing in next year’s challenge and I urge all of you to do the same. So let’s […]

1 Star2 Stars3 Stars4 Stars5 Stars (6 votes, average: 5 out of 5)
Loading ... Loading ...

Enabling Remote Desktop Remotely

Thursday, October 11th, 2007

Network administrators are becoming more accustomed to performing common tasks remotely. Windows itself provides a mechanism for this with its Remote Desktop feature. Being able to administer machines remotely saves travel time while providing a much appreciated convenience. But what happens when the machine you want to connect remotely to doesn’t have […]

1 Star2 Stars3 Stars4 Stars5 Stars (5 votes, average: 5 out of 5)
Loading ... Loading ...

Monitoring and Archiving Newly Created Files

Monday, August 13th, 2007

I’ve received an interesting question about how to archive new files every day in an office setting. The solution that I’ve come up for this reader involves the creation of an event-driven script that can monitor a folder for newly created files and copy them to another location.

1 Star2 Stars3 Stars4 Stars5 Stars (7 votes, average: 4.43 out of 5)
Loading ... Loading ...

Creating a Custom URL Protocol for SSH

Thursday, August 9th, 2007

It can sometimes be very useful to have links in your web browser spawn third-party applications for you. A user recently submitted a question wanting to have a URL open an SSH connection with PuTTY. As he learned, this can be done by creating a custom URL protocol.

1 Star2 Stars3 Stars4 Stars5 Stars (8 votes, average: 4 out of 5)
Loading ... Loading ...

Scripting the Clipboard Contents in WSH

Tuesday, August 7th, 2007

So you’re working with WSH and you’re wondering how you can get or set the contents of the Windows clipboard. Unfortunately, WSH does not have this ability natively and there are no COM objects or WMI methods for performing this action either, but you’ll be happy to see this workaround that will let you […]

1 Star2 Stars3 Stars4 Stars5 Stars (4 votes, average: 5 out of 5)
Loading ... Loading ...