For some reason my employer bought a bunch of licenses and had a bunch of VM's build but only 10% of it got used per day at peak times. Because some VM's never get booted up they basically stopped reporting to AD and connecting to the network proves troublesome causing to the VM's to show as unregistered in Citrix Studio and users can't use the VM's at all.
In my situation, the computer account basically expired by never reporting back to AD. The only solution is to reset the computer account so it registers again.
You can tell you have a problem when you try to login as an admin in the VM and you are presented with "The trust relationship between this workstation and the primary domain failed" and if you check the network adapter on the bottom right of the login screen it will show "Unauthenticated."
- Make sure the VM that has the issue is turned off
- Login to the Citrix Provisioning server and start the Citrix Provisioning Console and connect to the server
- Go to Sites > Site > Device Collections and select the collection that contains the VM
- Right click on the VM that has the issue > Active Directory > Reset machine Account Password
- If the VM is still active even though you turned it off, just right-click it and select Mark Device Down
- Start the VM up again and the VM should report back as registered and no longer show Unauthenticated in the network adapter