Your problem has become obvious. You are not concatenating $prffile correctly. If you would have run your code in debug, you would have seen for yourself.

This snippet:
Code:
$scriptdir=$systemdrive+'\Scripts'
$prf=@lserver+'\netlogon\sr-kixscripts\outlook.prf'
$prffile=$scriptdir+'\'+$prf
$prffile ?



Produces:
Quote:

\Scripts\\\DC\netlogon\sr-kixscripts\outlook.prf




Note the triple hacks!
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.