I'm back \:\)

Darn project managers and their changing wants / needs.

I've got some requests for amendments to this script as it was last posted. I've gotten all the requests sorted out except for one.

It's been decided that we'd like to use this script to centralize PST's on a new share location, and re-attach the moved PST's to the default outlook profile once they are moved.

I have the following code from the original script:

 Code:
 
; re-associate the PST registry key with the new location 
;'; reassociate' 
$_ = AtoU($NewPST)
$_ = WriteValue($aPSTKeys[$], '001f6700-0', $_, 'REG_BINARY')


Seems like it should go through, but it does not. Is it possible that it's not working since I'm still 'deleting' the $aPSTKeys[$] earlier within the script?

This is a lengthy script and the other adjustments are simply messagebox popups which shouldn't be affecting this problem. If I need to post the full meal deal again to help sort this out I will.

Much thanks for your thoughts and advice,

Lan