How to Select a Virtual Reality Glasses?

I have the Oculus Rift and HTC Vive at work and i need to switch between both for testing but whatever i do, only the oculus rift is active. When i plug it off, it still tries to use Rift and nothing happens. How can i tell the System which HMD it should use?