From d97256c280e1bcb2f6059106a7d5a50f4689b30b Mon Sep 17 00:00:00 2001 From: Violet Hansen Date: Sat, 12 Oct 2024 16:33:59 +0300 Subject: [PATCH] Update Harden-Windows-Security.ps1 --- Harden-Windows-Security.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Harden-Windows-Security.ps1 b/Harden-Windows-Security.ps1 index 0a9e50ca2..1d2cbbd85 100644 --- a/Harden-Windows-Security.ps1 +++ b/Harden-Windows-Security.ps1 @@ -188,7 +188,7 @@ Function AppControl { # Make sure this function is running as Administrator if (!([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) { Write-Warning -Message 'Please run this function as an Administrator' - Exit + break } Write-Verbose -Message 'Creating the working directory in the TEMP directory'