

So, how to wipe a computer drive and clear all the information permanently? Our IT helpdesk technicians from Perth explain.įollow any of these options to wipe your computer hard drive. Everything you “delete” can still be retrieved from the hard drive. Just clicking the “delete” button doesn’t erase the information from your device. And no, deleting history and files isn’t enough. The first step would be to wipe your hard drive clean of every information and data saved in the system. You want to donate your laptop or give it away to be recycled. echo On Error Resume Next>C:\temp\delnetprinters.vbsĮcho Dim arrPrinterName()>C:\temp\delnetprinters.vbsĮcho Dim strComputer, i, PrintServer>C:\temp\delnetprinters.vbsĮcho Dim objWMIService, objNetwork, colInstalledPrinters, objPrinter>C:\temp\delnetprinters.vbsĮcho PrintServer = WScript.Arguments(0) 'Your Print server name goes here>C:\temp\delnetprinters.vbsĮcho Set objWMIService = GetObject("winmgmts:" _>C:\temp\delnetprinters.vbsĮcho ^& "!\\.\root\cimv2")>C:\temp\delnetprinters.vbsĮcho Set colInstalledPrinters = objWMIService.ExecQuery _>C:\temp\delnetprinters.vbsĮcho ("Select * from Win32_Printer")>C:\temp\delnetprinters.vbsĮcho For Each objPrinter in colInstalledPrinters>C:\temp\delnetprinters.vbsĮcho 'This line is used for trouble shooting>C:\temp\delnetprinters.vbsĮcho 'Wscript.Echo "Name: " ^& objPrinter.Name>C:\temp\delnetprinters.vbsĮcho ReDim Preserve arrPrinterName(i)>C:\temp\delnetprinters.vbsĮcho arrPrinterName(i) = objPrinter.Name>C:\temp\delnetprinters.vbsĮcho If InStr(arrPrinterName(i), PrintServer) Then>C:\temp\delnetprinters.vbsĮcho Set objNetwork = WScript.CreateObject("WScript.Network")>C:\temp\delnetprinters.vbsĮcho objNetwork.RemovePrinterConnection arrPrinterName(i)>C:\temp\delnetprinters.vbsĮcho 'This line is used for trouble shooting.>C:\temp\delnetprinters.vbsĮcho 'WScript.Echo "Name: " ^& objPrinter.Name>C:\temp\delnetprinters.vbsĮcho Removing all network printers found on your machine.Ĭscript //nologo C:\temp\delnetprinters.vbs "printserver.mycompany.5 Minute HelpDesk – How to Wipe a Computer Hard Drive

I was busy with Mac admin stuff at the time and just needed something that got the job done, and this was the first thing that came up with googling that I could figure out quickly. Any printer shared out from that print server will be removed. Put the name of your print server in the next to last line. It's a batch file that writes a vbscript and then runs it. All my Windows users are pretty much perma-WFH now, so no printer issues. Here's a chunk of a script I was using up until last year.
