Remove unnecessary module
This commit is contained in:
parent
55ba435699
commit
282c21f6ab
1 changed files with 5 additions and 10 deletions
|
@ -1,13 +1,8 @@
|
||||||
. "$PSScriptRoot/../../../scripts/Windows/Scripts/Prerequisites.ps1";
|
. "$PSScriptRoot/../../../scripts/Windows/Scripts/Prerequisites.ps1";
|
||||||
. "$PSScriptRoot/../../../scripts/Windows/Scripts/Context.ps1";
|
. "$PSScriptRoot/../../../scripts/Windows/Scripts/Context.ps1";
|
||||||
|
|
||||||
$entryPoint = "$($MyInvocation.MyCommand.Path)";
|
Write-Host "Starting Restoration of Windows";
|
||||||
|
. "$PSScriptRoot/../../../scripts/Windows/OS/Install.ps1";
|
||||||
$null = New-Module {
|
[Context]$context = [Context]::new();
|
||||||
Write-Host "Starting Restoration of Windows";
|
$context.EntryPoint = "$($MyInvocation.MyCommand.Path)";
|
||||||
. "$PSScriptRoot/../../../scripts/Windows/OS/Install.ps1";
|
Invoke-WindowsInstallation $context;
|
||||||
[Context]$context = [Context]::new();
|
|
||||||
Write-Host "Setting entry point to $entryPoint";
|
|
||||||
$context.EntryPoint = "$entryPoint";
|
|
||||||
Invoke-WindowsInstallation $context;
|
|
||||||
}
|
|
Loading…
Reference in a new issue