Is this too obvious ...

$excel = "software\microsoft\office\8.0\excel\microsoft excel"

$rs = writevalue ( $excel, "DefaultPath", @homedir, "reg_sz" )

Shawn.