Yep. But I donít see you using the producttype to find out if itís a laptop or not.

This...
quote:

$RDD=KeyExist('\\$computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\CompBatt')

...is used to see if it's a laptop or not. So I don't see any reason why the @PRODUCTTYPE can't be used. But everybody has its own preferences so if you like it better this way it's OK [Embarrassed]

BTW,
Thereís still one little error in your script [Wink]

quote:

$regkey='\\'+$computer+'\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion'



[ 22. September 2003, 10:38: Message edited by: R2D2 ]
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.