4 Replies Latest reply on Dec 13, 2012 8:53 AM by Granu

    Powershell script to renaming virtual machine VMDKs

    jaydo123 Enthusiast



      I am looking for a way to automate the renaming of a VM and its vmdks

      I know before vSphere 5 you could just Shutdown the VM Rename the VM in VirtualCenter migrate the VM and move it to another Datastore which would do this all for you but this behavior was changed to support Storage DRS on ESXi 5.0


      I know how to do it manually but would like a script which would allow me to enter the new name and and have it rename the VMDks and copy the vmx and edit it with the updated details


      any help would be greatly appreciated