PortValhalla/scripts/Windows/OS/Install.ps1

13 lines
407 B
PowerShell

. "$PSScriptRoot/Manage.ps1";
. "$PSScriptRoot/Upgrade.ps1";
. "$PSScriptRoot/User.ps1";
. "$PSScriptRoot/../Scripts/Context.ps1";
function Invoke-WindowsInstallation([Context] $context)
{
Write-Host "Starting Installation and Restoration of Windows";
. "$PSScriptRoot/../Scripts/Prerequisites.ps1";
Invoke-Upgrade $context;
New-PersonalUser $context;
Invoke-WindowsRestore $context;
}