13 lines
498 B
PowerShell
13 lines
498 B
PowerShell
. "$PSScriptRoot/../../../scripts/Windows/Scripts/Prerequisites.ps1";
|
|
. "$PSScriptRoot/../../../scripts/Windows/Scripts/Context.ps1";
|
|
|
|
$entryPoint = "$($MyInvocation.MyCommand.Path)";
|
|
|
|
$null = New-Module {
|
|
Write-Host "Starting Restoration of Windows";
|
|
. "$PSScriptRoot/../../../scripts/Windows/OS/Install.ps1";
|
|
[Context]$context = [Context]::new();
|
|
Write-Host "Setting entry point to $entryPoint";
|
|
$context.EntryPoint = "$entryPoint";
|
|
Invoke-WindowsInstallation $context;
|
|
}
|