Quantcast
Channel: VMware Communities : Discussion List - VMware ESXi 5
Viewing all articles
Browse latest Browse all 20614

Rename virtual machine name

$
0
0

Hi everyone

 

I have a vmware esxi 5.0 setup locally and I've created a virtual machine on it with Windows 2003 Server as guest operation system.

 

From my development machine, I want to rename this virtual machine. I'm using vmrun to do so.

 

The command to rename a machine that is not part of a domain controller is

 

c:\windows\system32\wbem\wmic.exe computersystem where name="%computername%" call rename name=NEWNAME

 

and it works fine, if I call this in the command prompt on the virtual machine.

 

To run this application using vmrun, here are the variations of command I'm trying but failing to do so

 

1. vmrun.exe -T esx -h https://MACHINE-IP/SDK -u root -p MYPASS -gu administrator -gp GUESTPASS runProgramInGuest "[datastore1] vmtestmachine1/vmtestmachine1.vmx" c:\windows\system32\wbem\wmic.exe computersystem where name="%computername%" call rename name=NEWNAME

 

 

2, vmrun.exe -T esx -h https://MACHINE-IP/SDK -u root -p MYPASS -gu administrator -gp GUESTPASS runProgramInGuest "[datastore1] vmtestmachine1/vmtestmachine1.vmx" c:\windows\system32\wbem\wmic.exe computersystem where name='%computername%' call rename name=NEWNAME

 

3. vmrun.exe -T esx -h https://MACHINE-IP/SDK -u root -p MYPASS -gu administrator -gp GUESTPASS runProgramInGuest "[datastore1] vmtestmachine1/vmtestmachine1.vmx" c:\windows\system32\wbem\wmic.exe computersystem where name="EXISTINGNAME" call rename name=NEWNAME

 

and many more variations too, but none of them is succeeding in renaming the computer.

 

Please help me with this problem.

 

Regards

 

Usman Jamil


Viewing all articles
Browse latest Browse all 20614

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>