Add a script for installing generic windows
This commit is contained in:
parent
967206e14f
commit
438c29a96b
2 changed files with 19 additions and 0 deletions
16
profiles/Generic/Windows/Install.ps1
Normal file
16
profiles/Generic/Windows/Install.ps1
Normal 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;
|
3
profiles/Generic/Windows/Setup.ps1
Normal file
3
profiles/Generic/Windows/Setup.ps1
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/pwsh
|
||||||
|
$env:WIN_COMPUTER_NAME = "win11";
|
||||||
|
$env:SETUP_SCRIPT_NAME = [System.IO.Path]::GetRelativePath("$PSScriptRoot/../../..", "$PSScriptRoot/Install.ps1");
|
Loading…
Reference in a new issue