Here's the code redone with writeprofilestring . .logs great, but doesn't work well for processing multiple PST files.

 Code:
 
$Log = $LogPath + '\' + @WKSTA + @userid +'.ini'

$NewPSTName = @USERID + '_' + Join(Split(Join(Split($PSTName, ' '), '_'), '.pst'), '.pst')

Move $PSTPath + $PSTName $PSTPath + $NewPSTName
Move $PSTPath + $NewPSTName $NewPSTPath + $NewPSTName

$OldPST = $PSTPath + $PSTName
$NewPST = $NewPSTPath + $NewPSTName

WriteProfileString($Log, @Userid, 'Old', $OldPST)
WriteProfileString($Log, @Userid, 'New', $NewPST)



Resulting log:

 Quote:

[UserID]
Old=H:\Archive1.pst
New=\\NewServer\share\UserID_Archive1.pst


I guess at this point I'm tempted to just use readprofilestring to check if the log file already has entries, and if it does, make new ones.

Will get to work on that...