PortValhalla/scripts/Windows/OS/Install.ps1

14 lines
447 B
PowerShell
Raw Normal View History

2023-06-22 15:53:12 +00:00
. "$PSScriptRoot/../Scripts/Context.ps1";
2023-06-16 18:24:22 +00:00
. "$PSScriptRoot/Manage.ps1";
2023-06-22 15:06:45 +00:00
. "$PSScriptRoot/Upgrade.ps1";
2023-06-22 20:56:43 +00:00
. "$PSScriptRoot/User.ps1";
2023-06-16 18:24:22 +00:00
2023-06-21 20:04:18 +00:00
function Invoke-WindowsInstallation([Context] $context)
{
2023-06-22 15:32:36 +00:00
Write-Host "Starting Installation and Restoration of Windows";
2023-06-21 20:04:18 +00:00
. "$PSScriptRoot/../../../scripts/Windows/Scripts/Prerequisites.ps1";
2023-06-30 10:19:54 +00:00
Update-WindowsInstallation $context;
2023-06-22 20:56:43 +00:00
New-PersonalUser $context;
2023-06-30 10:19:54 +00:00
Restore-WindowsInstallation $context;
2023-06-21 20:04:18 +00:00
}