I found a solution for windows 10 thanks to PCo over at http://superuser.com/a/961242
Backup your registry!
- Add a new "Multi String Value" called "TreatAsInternalPort" (no quotes).
- Modify the new entry by adding 0 (press return), 1 (return), 2,3,4,5 (add one more return) this would be for a 6 sata port motherboard)). You should have something that looks like this: http://i.stack.imgur.com/jdPUV.png
- Exit and reboot, (you may get an error that flashes up while it shuts down, don't panic it only seems to be the once.)
I guess you could edit this "TreatAsInternalPort" entry to exclude any ports you may want to eject in the future.