My company uses a single server to host 3 virtual servers. This post probably sounds like it should be in the servers board, but I believe my question could apply to any standard Windows system. Anyway, the 'virtual' servers data and OS are all stored on a drive on the host machine. Unfortuantely, you can right click this drive, choose 'format,' and wipe out all the company data in about 2 seconds. This would be the same for any secondary hard drive on any PC, so long as it doesn't contain the OS for the machine you are logged on to. In our case, this happened and required a painful recovery from backup. I don't want it to happen again. How can some safeguard be put into place to not allow formatting of this one drive (or at least not making it so easy)?

Thanks

Dani AI

Generated

A short, practical set of options that complement and without repeating their basic permission advice. The goal is to make the VM-storage volume hard to select and format by accident while keeping the host and hypervisor working as intended.

Remove the drive letter / mount as a folder

  • Use Disk Management (diskmgmt.msc) -> right‑click the VM data volume -> Change Drive Letter and Paths -> Remove. Optionally mount that volume into an empty NTFS folder (Add -> "Mount in the following empty NTFS folder"). The volume then won’t appear as a separate drive in "Computer", reducing chances of a mistaken right‑click. Caution: update any scripts or software that expect a drive letter and test before applying.

Automate and separate interactive tasks from backend tasks

  • Instead of giving an operator interactive Admin rights, run any format/rotate/backup jobs as a scheduled task or service account that has exactly the rights it needs. The human only triggers a safe UI or starts the scheduled job. This keeps formatting out of the regular Explorer workflow that caused the mistake.

Make the backup device explicitly transient or protected

  • Use a removable drive caddy (physically disconnect between runs) or take the backup disk offline between runs. DiskPart examples (for the backup disk only):
diskpart
list disk
select disk N
offline disk

or to set readonly (temporary protection):

diskpart
select disk N
attributes disk set readonly

Other useful guards (short)

  • Strong, clear volume labels/icons like "VM_HOST_DO_NOT_FORMAT".
  • Audit/alert on volume format events and test restore procedures.
  • Avoid relying on UI hiding GPOs as the only control; they conceal the UI but are not a security boundary.

Recommended approach: combine controls — hide/mount the VM volume (no drive letter), remove interactive admin rights for operators and run formatting/backup as an automated, least‑privilege service, and make the backup disk transient or offline between jobs. Test changes on a lab host before changing production.

Recommended Answers

All 4 Replies

Is the drive on the server a shared drive on each of the client computers? I have a home network setup like that, Windows 8 on one computer that shares a folder with other Windows 7 computers. When I'm on Windows 7 computer right click the shared drive I do not see an option to format the drive.

If yours is set up differently then I'd suggest you check the permissions for logged in users -- they should not have full control of the server computer.

the 'virtual' servers data and OS are all stored on a drive on the host machine

The way to address this is by ensuring that you have the proper rights and permissions configured on this server so that you only allow those individuals responsible for this system to log in and have control.

Take a look to see what accounts are created on this host computer, check their group memberships. Remove, disable any accounts that should not have access.

If this drive that is hosting the VM files is not the same drive as the one hosting the operating sysetm for the host computer, make sure that the proper permissions are in place at the drive (NTFS Security). Be careful to only review and not make any changes to permissions on the file system without knowing exactly what you are doing.

The problem wasn't irresponsible users. The issue is there is another backup drive attached to the host which is formatted daily. When the "Computer" window is open, you have the backup drive to be formatted right alongside the VHD drive which should never be formatted. In this case, the user simply accidentally right-clicked the wrong drive and formatted. I'm trying to put some kind of a lock or at least extra step on that drive before formatting can happen. Older Apple computers used to have a password that had to be entered before accessing / modifying a drive. Can't something similar be applied here?

Yes, i understand its not about irrespondibility. Permissions ensure that unintended mishaps are caught as well.

What you can do is create a login (not as an administrator) for this user and only provide the user with access to this target drive. In addition, you may consider creating a script of some sort that already has the logic to format the target drive and you have the user run this script so that there is no error in which drive is formatted.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.