Instead of deleting the registry keys, you should use
code:
; delete just the J: drive
USE J: /delete /persistent
; delete all mapped drives
USE '*' /delete /persistent
; create persistent mapping to J:
USE J: \\server\share /persistent

which is a cleaner way of doing it.
_________________________
There are two types of vessels, submarines and targets.