making a bootable usb drive

Creating a Bootable USB Drive with Windows PowerShell

My USB drive is  and my DVD drive is F. Your drives may be different!
1. Right-click Windows PowerShell and select Run as Administrator.
2. Mount the disk image (ISO) by using the cmdlet Mount-DiskImage. (See Figure 1)
Mount-DiskImage -ImagePath <string[]>
Figure 1. Mounting the disk image.
3. Use the cmdlet Get-Disk to view the disk objects. The USB drive's disk number is 2. (See Figure 2)
Get-Disk
Figure 2. Viewing disk objects.

4. Remove all partition information and data on the USB drive using the cmdlet Clear-Disk. (See Figure 3)
Clear-Disk -Number 2 -RemoveData
Figure 3. Clearing the USB drive.
5. Create a new partition using the cmdlet New-Partition. Use -IsActive:$true to set the MBR partition to active. (See Figure 4)
 New-Partition -DiskNumber  2  -UseMaximumSize -IsActive:$true
Figure 4. Creating a new partition.
6. Format the USB drive using the cmdlet Format-Volume. (See Figure 5)
Format-Volume -FileSystem NTFS -DriveLetter E
Figure 5. Formatting the USB drive.
7. Enter the command bootsect.exe /NT60 <USBdrive letter> (See Figure 6)
bootsect.exe /NT60 E:


8. Copy the files from the ISO to the USB drive by using the Copy-Item cmdlet. (See Figure 7)
Copy-Item -Recurse F:\* E:\ -verbose
Figure 7. Copying files from the ISO to the USB drive.






boom you have a drive now.

Popular posts from this blog

hackers awarded $267k at pwn2own 2k18

hackers abusing text editors for privilege escalation