It's a bit more complicated than that I'm afraid.
You will, for example, also need to update the content of the VMX file.
As an example, have a look at my HL Tools – Part 1 – Clone A VM Without VCenter post, where I do all the required actions from a script.
You could update that script to copy instead of clone.
But why not let SDRS do the work for you?
- makes sure SDRS is set to fully automated
- make sure there is no VMDK affinity (VMDK for a VM do not need to be kept together)
- rename all the VMs you need to rename
- place the datastores , one by one, in and out of maintenance, that way SDRS will do the moving for youBlog: http://lucd.info | Twitter: @LucD22 | PowerCLI Reference co-author: http://tinyurl.com/hkn4glz
Good Idea I will go with SDRS. If facing any challenges will post you back
Thanks LucD you are always helpfulRegards