Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

A user cannot be assigned to a renamed virtual machine in a personal VDI collection in Windows Server 2012


View products that this article applies to.

Symptoms

Consider the following scenario:
  • You have a virtual machine in Windows Server 2012.
  • The virtual machine is assigned to a user in a personal virtual machine collection.
  • You rename the virtual machine.
In this scenario, the virtual machine is displayed as not assigned after you rename it. When you try to assign the user to the renamed virtual machine, the assignment fails, and the user cannot be assigned to any virtual machine. Additionally, you receive the following error message:
Exception: Object reference not set to an instance of an object.

↑ Back to the top


Cause

If you rename a virtual machine that is assigned to a user, this problem occurs because an invalid reference to the virtual machine is stored in the Microsoft Virtualization Desktop Infrastructure (VDI) database.

↑ Back to the top


Workaround

To work around this problem if you rename an existing virtual machine in a collection, follow these steps:
  1. Remove the user from the virtual machine.
  2. Remove the virtual machine from the collection.
  3. Rename the virtual machine by using the Hyper-V console.
  4. Add the renamed virtual machine to the collection.
  5. Assign the user to the renamed virtual machine.

↑ Back to the top


Keywords: kbexpertiseinter, kbprb, kbsurveynew, kb

↑ Back to the top

Article Info
Article ID : 2815795
Revision : 1
Created on : 1/7/2017
Published on : 2/21/2013
Exists online : False
Views : 278