Automatic Backup script (Pre-NetRestore)

Hello! I’m writing a script that my workers can run to backup any important information on the hard drive of a machine before they NetBoot and NetRestore it. Basically, I want it to back up any apps that aren’t on our image, anything the user might have in a Media Storage folder we’ve set up, and any local users (we use mostly network users, but have some local accounts for special purposes). My script thus far is this:

[Problem in question fixed, but see the post below for my current question]

Hello again! I’ve figured out my problem that prompted the original post. I thought I’d post my current version (which is pretty close to done, but not quite) and invite any feedback on programming style, etc. Anything you gurus would improve upon?

Thanks!


[This script was automatically tagged for color coded syntax by Convert Script to Markup Code]

are you run this as a pre action for net restore or this runs before netrestore even launches?