Add a script for installing generic windows

This commit is contained in:
Manuel Thalmann 2023-09-27 12:32:44 +02:00
parent 967206e14f
commit 438c29a96b
2 changed files with 19 additions and 0 deletions

View file

@ -0,0 +1,16 @@
#!/bin/pwsh
. "$PSScriptRoot/../../../scripts/Windows/Script/Prerequisites.ps1";
. "$PSScriptRoot/../../../scripts/Windows/Script/Context.ps1";
. "$PSScriptRoot/../../../scripts/Windows/OS/Install.ps1";
. "$PSScriptRoot/../../../scripts/Windows/Collections/Generic.ps1"
function Restore-Apps {
param([Context] $context)
Restore-GenericApps $context;
}
[Context]$context = [Context]::new();
$context.EntryPoint = "$($MyInvocation.MyCommand.Path)";
$context.UserName = "Manuel";
Invoke-WindowsInstallation $context;
Restart-Computer -Force;

View file

@ -0,0 +1,3 @@
#!/bin/pwsh
$env:WIN_COMPUTER_NAME = "win11";
$env:SETUP_SCRIPT_NAME = [System.IO.Path]::GetRelativePath("$PSScriptRoot/../../..", "$PSScriptRoot/Install.ps1");