1

I have a VM in SCVMM that the VM name no longer reflects the name of the OS. OS had to be renamed, and now the VM in SCVMM name is incorrect, and it's greyed out so I can't rename it. Is there any Powershell cmdlets to rename the VM in SCVMM 2012 R2? Thanks

joeqwerty
  • 109,901
  • 6
  • 81
  • 172
Paul S.
  • 203
  • 3
  • 9
  • you need to power it down, first. It won't rename the VM folder on the disk for you. – Dan Mar 26 '15 at 19:00

1 Answers1

0

You can use the following to set the name of a Virtual Machine managed by SCVMM 2012 R2:

Get-SCVirtualMachine -Name "VM03" | Set-SCVirtualMachine -Name "VM04"

Cmdlet reference: https://technet.microsoft.com/en-us/library/jj654500(v=sc.20).aspx

Johan de Haan
  • 391
  • 2
  • 7
  • Thanks for the cmdlet. Looks like you still have to power off the VM, to rename it, which I was hoping I didn't have to do. – Paul S. Mar 31 '15 at 12:22