From 14055fcca33263eca6a5520c8cf0b644912f9d05 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Fri, 9 Aug 2024 16:02:00 +0200 Subject: [PATCH] Disable boot message only as admin --- scripts/Windows/OS/Install.ps1 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/Windows/OS/Install.ps1 b/scripts/Windows/OS/Install.ps1 index 5f028bd0..fe632263 100644 --- a/scripts/Windows/OS/Install.ps1 +++ b/scripts/Windows/OS/Install.ps1 @@ -450,7 +450,10 @@ $null = New-Module { [string[]] $users = Get-Users; $currentUser = Get-CurrentUser; - Disable-BootMessage; + + if (Test-Admin) { + Disable-BootMessage; + } if ($currentUser -lt $users.Count) { $user = Get-LocalUser $users[$currentUser];