From 4ad1401a5271da5c9cddf20f7f08d00fb2acc746 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Wed, 21 Jun 2023 22:07:25 +0200 Subject: [PATCH] Refactor restoration of computer --- profiles/DerGeret/Windows/Restore.ps1 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/profiles/DerGeret/Windows/Restore.ps1 b/profiles/DerGeret/Windows/Restore.ps1 index 10d9ab22..4761eba5 100644 --- a/profiles/DerGeret/Windows/Restore.ps1 +++ b/profiles/DerGeret/Windows/Restore.ps1 @@ -3,4 +3,7 @@ $null = New-Module { . "$PSScriptRoot/../../scripts/Windows/OS/Install.ps1"; + [Context]$context = [Context]::new(); + $context.EntryPoint = "$($MyInvocation.MyCommand.Path)"; + Invoke-WindowsInstallation $context; }