Hi,
It would be helpful if you provided more information about your environment and the problem you are facing. That way the community can properly assist you.
That said, check out this knowledgebase on how to change the name of a virtual machine and its files - https://kb.vmware.com/s/article/1029513
First, please specify which VMware product you are using to host the VM.