Another...If you have a long string (especially one that you're using over and over) make it a variable and use that in your command...

code:
$sClasses="\\"+$computer+"\HKEY_LOCAL_MACHINE\SOFTWARE\Classes"
$RC=WriteValue($sClasses+"\CLSID\{F89DF848-618A-46F9-8A1C-396EA442BDD3}","","Widget Class",REG_SZ)



[ 08. November 2002, 15:35: Message edited by: Chris S. ]