Skip to content

Instantly share code, notes, and snippets.

@OSDeploy
Created December 5, 2018 20:55
Show Gist options
  • Save OSDeploy/56daf11ee1ffb95a43c51380346ba24d to your computer and use it in GitHub Desktop.
Save OSDeploy/56daf11ee1ffb95a43c51380346ba24d to your computer and use it in GitHub Desktop.
#Windows 10 x64 1809
Write-Host "Windows 10 x64 1809" -ForegroundColor Cyan
Measure-Command {
Mount-WindowsImage -Path "C:\DEV\Optimize\Mount" `
-ImagePath "C:\DEV\Optimize\1809.wim" `
-Index 1 | Out-Null
}
Dismount-WindowsImage -Path "C:\DEV\Optimize\Mount" -Discard | Out-Null
#Windows 10 x64 1809 Optimize
Write-Host "Windows 10 x64 1809 -Optimize" -ForegroundColor Cyan
Measure-Command {
Mount-WindowsImage -Path "C:\DEV\Optimize\Mount" `
-ImagePath "C:\DEV\Optimize\1809.wim" `
-Index 1 -Optimize | Out-Null
}
Dismount-WindowsImage -Path "C:\DEV\Optimize\Mount" -Discard | Out-Null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment