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

  • 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

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

  • 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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.