Just did this yesterday, took a while but we got there. [Big Grin]
As long as you know the user ID then you can use psgetsid.exe to evaluate the SID and as already mentioned put it in:
$rc = WriteValue("\\$machine\HKEY_USERS\$userSid\Software\.."
You'll have to parse the output from psgetsid.exe to get just the SID but it's pretty straight forward.

Mike

[ 02 May 2002, 06:09: Message edited by: mcmunt ]