Archives for: February 2007
02/11/07
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.
02/04/07
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.
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:
Categories
- All
- Web Technologies (2)
- PHP (1)
- Windows Scripting (37)
- Batch Scripts (13)
- Wsh Scripts (23)
Archives
- December 2009 (2)
- March 2009 (2)
- February 2009 (3)
- January 2009 (2)
- December 2008 (4)
- November 2008 (1)
- October 2008 (1)
- February 2008 (1)
- December 2007 (3)
- July 2007 (1)
- April 2007 (1)
- February 2007 (2)
- More...
Misc
Who's Online?
- Guest Users: 9




