Script is attached. Rename to VBS. Be warned this is a farily involved script designed to run o a schedule. However I did made it modular so you should be able to shape it for your environment by modifying a few variables. Some basic instructions are included in the header of the script.
Also, I recalled when looking over this that I ended up needing to add a HOSTS file entry to the machines I deployed to which were not in a domain. Even when I deployed the agent using this script which uses only the IP address of the NS, the agents would talk to the NS and then fail to download packages because the package sources would be returned to the agent as DNS names. The command to add this entry is part of this script but is commented out. Un-REM this line if you also require this added.
Here are a few disclaimers:
- This script was written for and used on an Altiris NS 6.x enviornment. It was not designed for or tested on SMP 7.x.
- USE THIS SCRIPT AT YOUR OWN RISK. THE WRITER ACCEPTS NO RESPONSIBILITY FOR HOW THIS SCRIPT IS USED OR PROBLEMS IT MAY CAUSE. If you do not fully understand everything the script is doing you should NOT use it.