technical architecture.

Farm Management with VB (?!@#)

by on Aug.11, 2008, under Batching

Here’s a small utility I’d written in ’05 in HTA using mostly VBScript to replace the hordes of dos BAT files utilizing pstools that i had laying around for starting and stopping and checking services/processes/logs on remote machines on our network. Primarily it was used with managing a small farm with 3dsmax/vray. the discussion about the utility on the Vray Forums as i was building it.
Farm Management Utilities 10.6

Farm Management Utilities 10.6

  • Run the .HTA once.. it will create 2 files for you
  • “Computers.ini” which you will will need to edit to contain 1 slave computer per line in it (either IP address or computer Name work, use for your local system)
  • “SlaveutilsOptions.ini” which will have slots for various paths and options. read the file and edit the lines accordingly.
    • (Path to your VNC client,
    • whether to use alternate credentials or not,
    • and what the login/password would be if you did use them.

Note: Its been brought to my attention that some virus scanners will flag this download (Understandably in my opinion) as ‘Greyware’ because it contains VBScript that uses the WMI (Windows Management Interface) to affect changes to remote computers, enclosed in an HTA (Read: Executable Webpage). the full code is in there and easily readable.

I’ve been experimenting with a few other ways to package it, either via Maxscript, or Python, but they tend to get constrained to ‘free’ time as this functions perfectly 🙂

:, ,

2 Comments for this entry

  • Dave Buchhofer

    A couple items brought up through the vray thread..

    Some people are having problems with the pstools utilities. it would appear they don’t work with the ‘Simple file sharing’ set to on.

    The reason an HTA application was chosen instead of a VB or Exe or Java doohicky, is because i figured that anything that requires a user/login to be entered would be something that people would like to verify in the code if they’re so inclined.. (Call me paranoid.)

  • Ciprian

    Hi, i find your tool very usefull. But to make it work it is a challenge. If you can provide some tips(steps) how to set up your system(XP or Vista) for PSTools in order to work properly it would be great.

    P.S. I have followed the steps from and i couldn’t make it work. Maybe you could provide a quick setup for pstools to let your utility do it’s job.


1 Trackback or Pingback for this entry

Leave a Reply

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!