In your script the productype is checked by looking into the registry and used to startup the laptop or desktop check. Checking on @PRODUCTTYPE will also give you Windows NT, 2000, XP or whatever. Saved the time to create a script that looks into the registry and eliminates possible errors.
I've seen some people doing a check in the registry is any PCMCIA ports are installed (I think Radimus said some words about this some a few weeks ago). A standard desktop pc will not have PCMCIA ports installed.
A check on @CPU might also do the trick. If you're laptops are recent there is a good change that they have a Pentium Mobile CPU. Not sure if @CPU returns the correct value for a mobile CPU because I can't test this now.
- Chuck Norris once sold ebay to ebay on ebay.