Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: How do I detect a dual boot through a batch file

16 Mar 2014   #1

Windows 7 x64
How do I detect a dual boot through a batch file

Here is my issue. I have employees installing dual booting on computers, effectively bypassing security software that is installed.

Is there a batch I can run to detect this, and output the results to a file ( on the network of course ) or something of that nature? I need a way to circumvent this ongoing problem, and I'm at a loss. Maybe a free program that is command-lined based that I can push through GPO? ( domain computers is one of the partitions ). I'm open to suggestions. Thanks everyone!!!

My System SpecsSystem Spec
17 Mar 2014   #2
Microsoft MVP


You might ask at Technet which is more IT oriented than our consumer forums. However someone here may also know exactly the commands you are looking for. Until then I have some considerations from an install point of view:

C can be shrunk and an OS installed from Win7 unless it has an Admin password which won't allow any changes without password being supplied.

Then the employee workaround would be to boot a partition manager or Diskpart to shrink C, then boot the installer itself to install another OS to the shrink space. But on some PC's a BIOS Supervisor password can be created in BIOS setup to restrict changes made to the BIOS. You'd have to test on each PC model if this also restricts the one-time BIOS boot menu key, which may have a setting to disable in BIOS setup so that disks can't be booted from within BIOS or by its shortcut key.
My System SpecsSystem Spec

 How do I detect a dual boot through a batch file

Thread Tools

Similar help and support threads
Thread Forum
Batch File for Windows Date and Time - Dual Boot
Morning All, A long time reader and user of advice on the forum but in need of advice if possible. Long story short but for work purposes I have to have a Win 7 dual boot system that I need to log in and change the time to USA regional time on one of my setups. A number of times I have...
Need a Batch file or similar for "detect display" in display settings.
Hi, I need a batch or similar type file that will "detect display" from (Control Panel\All Control Panel Items\Display\Screen Resolution). HP dv6 use switchable graphics and they can be seriouly problematic to update. Anyway the only way i can use the latest driver is if i put up with aero...
Performance & Maintenance
Batch File to Detect if Application Installed
Hey everyone! I'm making a batch file for a computer repair company I'm with and I'm trying to automate as much stuff as possible and speed things up. As of this moment, I got all the major components of a batch file that retrieves information about the computer (Manufacturer, Model #, Serial #,...
Detect Escape key with batch file
I want to separate the escape key in a batch file from all others. If I use "choice", all keys would have to be listed. "errorlevel" seems to return "0" for every key because "choice" is not used. thanks...
General Discussion
Batch File that grabs file names from folder to insert into batch file
Ok I'm totally at a loss on how to word this so I'm just going to write it out the best that I can... :confused: First I have a batch file that I'm writing that will convert mp4 files to mp3 files (I have a lot) for a buddies band using ffmpeg. Here's the code that I'm using: ffmpeg -i...
General Discussion

Our Sites

Site Links

About Us

Find Us

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

All times are GMT -5. The time now is 17:32.
Twitter Facebook