Set the user name by default
This commit is contained in:
parent
6fcb7fb4a8
commit
f1310bafdf
3 changed files with 1 additions and 2 deletions
|
@ -15,6 +15,5 @@ function Restore-Apps {
|
|||
|
||||
Write-Host "Starting Restoration of Windows";
|
||||
[Context]$context = [Context]::new();
|
||||
$context.UserName = "Manuel";
|
||||
Invoke-WindowsInstallation $context;
|
||||
Restart-Computer -Force;
|
||||
|
|
|
@ -9,6 +9,5 @@ function Restore-Apps {
|
|||
}
|
||||
|
||||
[Context]$context = [Context]::new();
|
||||
$context.UserName = "Manuel";
|
||||
Invoke-WindowsInstallation $context;
|
||||
Restart-Computer -Force;
|
||||
|
|
|
@ -9,6 +9,7 @@ function Invoke-WindowsInstallation([Context] $context)
|
|||
{
|
||||
$ErrorActionPreference = "Inquire";
|
||||
. "$PSScriptRoot/../Scripts/Prerequisites.ps1";
|
||||
$context.UserName ??= "Manuel";
|
||||
Start-WindowsInstallation $context;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue