Jump to content

Recommended Posts

Posted

Deleting hard drive partitions, anyway to do this via a .vbs or .bat file ?

 

All of our staff laptops are HP and come with a built in 'recovery' boot option which is activated by perssing f11 at startup. Lots of our teachers seem to enjoy pressing this button when they are in a panic which isnt too fun for us.

 

So i'm trying to make a script to delete the partitions so that i can add it to start up script.

 

Thanks.

Posted (edited)

You could script diskpart.exe via a batch file to do this [ reference ]. There is probably a way to do this via WMI to.

 

Dangerous script to have floating around on the network though

Edited by SYNACK
more information
Posted
For the sake of convenience, it seems a little risky having that at startup on the offchance that it fires off on a random laptop which has a valid D: partition for other reasons and *BLAM* data goes off to the great bit graveyard in the sky. Wouldn't it be easier/safer to take an afternoon to manually zap them then zap all new ones on arrival?
  • 2 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...