Windows 7 Forums


Windows 7: Prevent removing attached VHD, from safely removed attached media

16 Feb 2012  
4558895

W7 64 pro
4 posts
 
 
Prevent removing attached VHD, from safely removed attached media

Hi all,

I was just wondering if anyone knows a way to prevent users from removing a attached VHD from "Safely remove hardware and eject media", We have had multiple users eject the VHD when they are going to unplug their USB and they are ejecting the attached VHD insted.

Any help would be much appreciated.

(Apologies if this is in the wrong section)

My System SpecsSystem Spec

03 Apr 2012  
4558895

W7 64 pro
4 posts
 
 

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,
My System SpecsSystem Spec
Reply

 Prevent removing attached VHD, from safely removed attached media problems?



Thread Tools



Similar help and support threads for: Prevent removing attached VHD, from safely removed attached media
Thread Forum
Solved Safely removing old NVIDA drivers ? Drivers
the attached images says it all... General Discussion
Need help with BSOD (Attached) BSOD Help and Support
Solved Problem with Dell OEM, Can it be removed safely? Backup and Restore
Attached Files? General Discussion


All times are GMT -5. The time now is 02:23 AM.



Windows 7 Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows 7" and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd