opla.blogg.se

How to make a usb drive bootable using power iso
How to make a usb drive bootable using power iso




Open Power shell ISE in admin mode, copy and paste the below mention command.In order to create installation media, We’ll here use Power ISO. The following command sets up a bootable Windows USB stick: In my case the USB stick is associated with E: and the ISO is mounted on F. I think compare to the first method the second one is the best, in this method we are going to use a script which is very handy to use it more, and also there is no need to memorize a bunch of command line, you can achieve making bootable USB in a single line of code. This command will make the USB Drive bootable. Set-Location -Path "$($ISO):\boot"bootsect.exe /nt60 "$($Results.DriveLetter):"Copy-Item -Path "$($ISO):\*" -Destination "$($Results.DriveLetter):" -Recurse -Verbose

how to make a usb drive bootable using power iso

This command get the ISO file path and copy the files to already mounted USB drive. $Volumes = (Get-Volume).Where().DriveLetter).InputObject So as for now the USB Drive has been successfully formatted in FAT32 format and ready to copy to the OS files.

how to make a usb drive bootable using power iso

Here we use FAT32 because most of the laptop and server won’t boot the USB Drive in NTFS format. You can choose different format also, instead of FAT32 you can type NTFS or some other format. New-Partition -UseMaximumSize -IsActive –AssignDriveLetter: This command creates a new partition using all of the available space on the USB drive and assigns a drive letter to it.įormat-Volume -FileSystem FAT32: This command Format the USB drive in FAT 32 format. Now you can choose the correct disk and click ok.Ĭlear-Disk -RemoveData -RemoveOEM -Confirm:$false –PassThru: This command clear all the data in the partition off the disk. Out-GridView -Title ‘Select USB Drive to Format’ -OutputMode Single: This command will give you the list of USB Drive in a grid view. Where-Object BusType -eq USB : After listing all connected drives this command will filter out the USB drive. $Results= Get-Disk : First this command will list out all the attached drives, its like diskpart command, In diskpart we use list disk to know the drive letters and attached usb drives.

how to make a usb drive bootable using power iso how to make a usb drive bootable using power iso

Let’s see in detail about these commands.






How to make a usb drive bootable using power iso