Yes, but in the AFTER portion you are remarking out the lines that get the information on path and name etc out.

The semi-colon ; is the same as REM or :: in a batch file. The script will ignore it.

Basically the only change for you should be the name/s of the Server, Share/ and PATH

Otherwise the rest of the script should be left intact.

How many Domains do you have?
How many Workstations do you have?
Are they all on LAN or WAN or both?

If all are local on LAN then hard code all this and you don't need to run some of these UDF calls.