Okay, sorry for the confusion.

The code is checking for an XP Home version, which would not be valid for a LOGON script.

As it was pointed out to me by Les though, I did not specify that this was a LOGON script, so it could be valid if run locally. So, Les is correct in that there is NOTHING wrong from that standpoint. Les does a LOT of locally run scripts whereas I don't run any locally run scripts, thus I automatically (wrongfully) assumed it was known this was a LOGON script.

Windows XP Home edition can not Join a Domain, so during a logon script there is no use in checking for a Home version of XP.

Using hacks to join XP Home to a Domain would not be legal, so I did not go that route of thinking either.

Bottom Line: XP Home Edition can not join a Domain.

Guess I should have stated this was a LOGON script. Sorry for any unintentional misleasding there guys.