8a999fdd58
Big features: - Reliably start WinRM now!! - Support Windows 10 x86! Smaller features - Improve README - Don't power off the (virtual) monitor to save power - Add Invoke-ScriptblockAndCatch and use it in postinstall scripts Fixes and reorgs: - Move all the packer stuff inside the packer/ directory - Break out possibly-nonfunctional slipstream stuff to its own module - Clean up broken bits in buildlab - Clean up vestigial bits in wintriallab-postinstall - Fix lots of broken pieces after encountering them one by one - Fix RestartAction stuff in autounattend-postinstall
14 lines
339 B
PowerShell
14 lines
339 B
PowerShell
import-module $PSScriptRoot\wintriallab-postinstall.psm1
|
|
|
|
try {
|
|
Enable-WinRM
|
|
}
|
|
catch {
|
|
$message = "======== CAUGHT EXCEPTION ========`r`n$_`r`n"
|
|
$message += "======== ERROR STACK ========`r`n"
|
|
$error |% { $message += "$_`r`n----`r`n" }
|
|
$message += "======== ========"
|
|
Write-EventLogWrapper $message
|
|
exit 666
|
|
}
|