This script works fine thank you again, But due to some restricted access to datacenter for my user i could not proceed and i am getting error message. just to let you know if we use this script with administrator user it works smoothly.
Fault string: Permission to perform this operation was denied.
Fault detail: NoPermissionFault
What if i need to added identification of specific datacenter using --datacenter argument in this script will i need to perform some extra step before i proceed with $_->CloneVM, could you please tell me what changes is needed. That would really help me.