Install the SMP(NS) agent from a script

Secenario

This is a scripted process which was created for an environment where name resolution did not work.  It may also be useful in other scenarios.

Note: The reason this was made this is that the name resolution issue didn't seem to want to be worked around in the console, but this should be pretty easy.  And once installed everything should work from the inside the console without any modifications other than those made on the server here.

Details 

Here are the directions.  Note:  The script can be easily modified to read a file with a list of the client machines IP addresses so that this is automatic.

1.  Have the ports open from the server directions above.
2.  Download from Microsoft the tool PSExec and put in a directory on the SMP server.
3.  Get the file AltirisAgentInstSvc.exe from the  \Notification Server\NSCap\Bin\Win32\X86 directory and copy to the same directory as step #2.
4.  Put the vbscript file linked in the same directory as step #2.
5.  Run the vbscript file and it will ask for:
     1.  SMP server IP address (It says "NS" not SMP; will be fixed later).
     2.  User name (needs to be an admin on the client machines where the agent will be installed).
     3.  Password for the User account.
     4.  IP address of client machines.  Just put one in and hit enter and it will ask for another.  Do the same.  When enough are entered for testing, don't put anything in the field and hit enter and the script will stop.  Note:  In the future the script will automatically read a list of IP addresses from a file so this can be very automated.
6.  Now there will be a file in the same directory called install.bat.  Run this file from a command line in the directory when it is and it will install to all the machines that were input.  And the password is protected by regular Microsoft methods going across the wire as it is only used to make a connection to the IPC$ share on the remote computers.
7.  Once done delete the install.bat file as it does have the password in it.