From dd4f14f6c619e8d511f7f67159ff74d46cbb2ae9 Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Thu, 1 Dec 2022 21:39:03 +0100 Subject: [PATCH] Update check-cpu.ps1, check-os.ps1, and check-pending-reboot.ps1 --- Scripts/check-cpu.ps1 | 2 +- Scripts/check-os.ps1 | 4 ++-- Scripts/check-pending-reboot.ps1 | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Scripts/check-cpu.ps1 b/Scripts/check-cpu.ps1 index fea48af7..9e9c631a 100755 --- a/Scripts/check-cpu.ps1 +++ b/Scripts/check-cpu.ps1 @@ -42,7 +42,7 @@ try { } if ($IsLinux) { - "✅ CPU is $Temp." + "✅ CPU is $Temp" } else { $Details = Get-WmiObject -Class Win32_Processor $DeviceName = $Details.Name.trim() diff --git a/Scripts/check-os.ps1 b/Scripts/check-os.ps1 index 8676d77b..b23e77c3 100755 --- a/Scripts/check-os.ps1 +++ b/Scripts/check-os.ps1 @@ -13,7 +13,7 @@ try { if ($IsLinux) { - "✅ $(uname -sr)." + "✅ $(uname -sr)" } else { $OS = Get-WmiObject -class Win32_OperatingSystem $Name = $OS.Caption @@ -31,4 +31,4 @@ try { } catch { "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" exit 1 -} \ No newline at end of file +} diff --git a/Scripts/check-pending-reboot.ps1 b/Scripts/check-pending-reboot.ps1 index cde3b1b2..67651eae 100644 --- a/Scripts/check-pending-reboot.ps1 +++ b/Scripts/check-pending-reboot.ps1 @@ -56,8 +56,8 @@ if (Test-RegistryValue -Path "HKLM:\SYSTEM\CurrentControlSet\Services\Netlogon" $Reason += ", found registry entry '...\CurrentControlSet\Services\Netlogon' with 'AvoidSpnSet'" } if ($Reason -ne "") { - "⚠️ Pending reboot ($($Reason.substring(2)))." + "⚠️ Pending reboot ($($Reason.substring(2)))" } else { - "✅ No pending reboot." + "✅ No pending reboot" } -exit 0 # success \ No newline at end of file +exit 0 # success