Archives for: February 2007

02/11/07

Permalink 06:43:19 am, by dave Email , 863 words, 112 views   English (US)
Categories: Windows Scripting, Wsh Scripts

Showing Service Information using VBS and ADSI

Here is a fairly straight forward example of enumerating all the services on a window's machine using ADSI.

If you wanted to bind to the machine you are querying with different credentials, you could replace the getobject call in the showServices subroutine with an opendsobject call.

Read more! »

Leave a commentTrackback (0)

Did you like this post? If so, Share it!  del.icio.us digg reddit slashdot this article Facebook Twitter MySpace Email

02/04/07

Permalink 08:04:20 am, by dave Email , 584 words, 74 views   English (US)
Categories: Windows Scripting, Wsh Scripts

Setting a File's Read Only Bit using Windows Scripting

I was looking at the process of setting file attributes using the attrib command in a batch file and I thought it would be much better if I could do this using a wsh script instead.

Here is a quick sample of setting a file's read only attribute using vbs.

Read more! »

Leave a commentTrackback (0)

Did you like this post? If so, Share it!  del.icio.us digg reddit slashdot this article Facebook Twitter MySpace Email

Scripts

This is somewhere I can post interesting snippets as I come across them. Hopefully some folks out there will find this helpful.

Search

Follow Me:

Misc

Who's Online?

  • Guest Users: 9

powered by b2evolution free blog software