Still cant find a solution to this,
I have found the DeviceOverRides in registry "
HKLM\SYSTEM\CurrentControlSet\Control\DeviceOverrides"
I added the following keys for each of the Hardware ID's and Compatible ID's of the VHD listed below.
SCSI\DiskMsft____Virtual_Disk____1.0_
SCSI\DiskMsft____Virtual_Disk____
SCSI\DiskMsft____
SCSI\Msft____Virtual_Disk____1
Msft____Virtual_Disk____1
GenDisk
Replaced the "\" with "#". So for example I made the following keys,
Below is the following keys I entered:
Code:
HKLM\SYSTEM\CurrentControlSet\Control\DeviceOverrides
HKLM\SYSTEM\CurrentControlSet\Control\DeviceOverrides\SCSI#DiskMsft____Virtual_Disk____1.0_
HKLM\SYSTEM\CurrentControlSet\Control\DeviceOverrides\SCSI#DiskMsft____Virtual_Disk____1.0_\LocationPaths\
HKLM\SYSTEM\CurrentControlSet\Control\DeviceOverrides\SCSI#DiskMsft____Virtual_Disk____1.0_\LocationPaths\*\
Then created the dword "removable" with value "0" inside the "*" key
I did the above for each single "Hardware Ids" for the VHD.
After doing this, It removed the individual entries for each VHD for example both VHD had their own category in Safely Remove Hardware listed below:
Code:
Eject Msft Virtual Disk SCSI Disk Device
- EXAMPLE (D:)
Eject Msft Virtual Disk SCSI Disk Device
- EXAMPLE (E:)
Eject Msft Virtual Disk SCSI Disk Device
- EXAMPLE (F:) After adding the DeviceOverride keys for the hardware Ids of the VHD, It has only recategorized the VHD and it is still removeable,
Under Safely Remove hardware it displays the following:
Code:
computername123
-Eject Msft Virtual Disk SCSI Disk Device
-Eject Msft Virtual Disk SCSI Disk Device
-Eject Msft Virtual Disk SCSI Disk Device Does Anyone else know a way to prevent a VHD from being removed/disconnected.
Can't remove/hide "Safely remove hardware" because people frequently bring their own personal USB devices.
Any help would be much appreciated.
Thanks,