Shane,

Just wanted to say thanks for your help. The following seems to work
$new_prof = ReadValue("HKLM\Software\Microsoft\Windows NT\CurrentVersion\ProfileList\@sid","centralprofile")
$old_prof = Left($new_prof,-3)