![]() ![]() Now, we’re going to delete all the data on the USB drive using Clear-Disk. $usb = Get-Disk | Where-Object Number -eq 2 You should replace -eq 2 with the number of your USB drive. Let’s create an object ($usb) for disk ‘2’. I know that my USB drive is called ‘Patriot Memory’, so it is disk number ‘2’. Run the command below to list all the USB drives attached to your device: Get-Disk | Where-Object BusType -eq USB | Format-Table -AutoSize Now let’s put the full path of the downloaded file into a variable ($isopath): $isopath = 'C:\Users\Public\Downloads\WindowsServer2019.iso'īefore we can format the USB drive, we need to establish the disk number Windows has assigned it. Make sure the file is called ‘windowsserver2019.iso’ and not ‘’. To rename a file, select it in File Explorer (WIN E) and then press F2. iso file in C:\Users\Public\Downloads and rename it WindowsServer2019.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |