Why is a merge necessary? From the initial question posed, he clearly states Windows 2000.

If he has a policy in place, this will be a cinch.

If there are no policies in place, it will be pretty easy to add one.

If there is no policy and/or no domain, then add some @ERROR and/or @SERROR checking to see where the script bombs. Really, if that is the case, then maybe posting the real code rather than the pseudocode would be quite helpful.

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's