OK, I've done some more testing. First, I found a small error in the logic of the deldir UDF. It was a recursive algorithm that would never delete the top directory. I put a revised version in the UDF forum (http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=181418#Post181418).

Now back to trying to delete a remote key. I simplified things by creating a dummy key and then trying to delete it. I keep getting error 6, handle is invalid.

 Code:
Dim $strWks, $strProfReg, $intRetCode
$strWks = ""
While $strWks == ""
   ? "Please enter the name of the workstation from which you wish to delete the key?"
   Gets $strWks
Loop
$strWks = Trim($strWks)
$strProfReg = "\\" + $strWks + "\HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\testme"
addkey($strProfReg)
if @ERROR = 0
   ? "The key was added.  Now try to delete it."
   $intRetCode = DelKey($strProfReg)
   If @ERROR = 0
      ? "The key was deleted."
   Else
      ? "The key was not deleted.  The error code is: " + $intRetCode
      ? "The error message is: " + @SERROR
   EndIf
Else
   ? "The key was not written."
EndIf


If I remove '"\\" + $strWks +' from $strProfReg so that it works against the local computer, it works.

Is my syntax wrong? Am I missing something?

Thanks!

Brad V