diff --git a/scripts/Windows/OS/Manage.ps1 b/scripts/Windows/OS/Manage.ps1 index dc6e28b2..1b859339 100644 --- a/scripts/Windows/OS/Manage.ps1 +++ b/scripts/Windows/OS/Manage.ps1 @@ -44,5 +44,7 @@ function Invoke-WindowsRestore() { $backupPath = Read-Path; $context = [Context]::new(); $context.BackupName = "PortValhalla"; + $context.RootDir = $context.GetTempDirectory(); $context.Restore($backupPath, $context.BackupRoot()); + Remove-Item -Recurse $context.RootDir; }