Saturday, March 24, 2018

Use PowerShell to Create a Bootable USB Drive

Use PowerShell to Create a Bootable USB Drive: $Results = Get-Disk | Where-Object BusType -eq USB | Out-GridView -Title 'Select USB Drive to Format' -OutputMode Single | Clear-Disk -RemoveData -RemoveOEM -Confirm:$false -PassThru | New-Partition -UseMaximumSize -IsActive -AssignDriveLetter | Format-Volume -FileSystem FAT32 $Volumes = (Get-Volume).Where({$_.DriveLetter}).DriveLetter Mount-DiskImage -ImagePath C:\ISO\Windows.ISO $ISO = (Compare-Object -ReferenceObject $Volumes -DifferenceObject (Get-Volume).Where({$_.DriveLetter}).DriveLetter).InputObject Set-Location -Path "$($ISO):\boot" bootsect.exe /nt60 "$($Results.DriveLetter):" Copy-Item -Path "$($ISO):\*" -Destination "$($Results.DriveLetter):" -Recurse -Verbose

Friday, March 16, 2018

Windows Repair DISM

DISM commands

https://www.ghacks.net/2018/03/16/use-dism-to-fix-issues-sfc-cant/

Here is a list of repair commands . . .
sfc /scannow
DISM /Online /Cleanup-Image /CheckHealth
DISM /Online /Cleanup-Image /ScanHealth
DISM /Online /Cleanup-Image /RestoreHealth /Source:repairSource\install.wim
Reset Windows 10 with command line
1. systemreset -cleanpc
Run system restore from command prompt
1. rstrui.exe

Monday, March 5, 2018

Multiple Windows Install Versions Plus Linux

WinSetupFromUSB

This creates a bootable USB. It handled Windows 7 + Windows 10 and Linux Mint 18.3.
I suppose it will accommodate other Linux live systems also. You need to select FAT32 for UEFI bios installs. I normally used Yumi for multiboot but it can't accommodate multiple Windows installs.

I also like the test boot function with QEMU.

I did add advanced setting to use custom names for Windows boots . . .

I tried "syslinux" but it didn't seem to work so had to redo with linux ISO option. I probably don't understand how to use the syslinux option.


Pin Not Available

Crazy Error I had not seen before. Pin not available blah blah. I restarted a few times and it finally worked. If it doesn't some say to...