Skip to content

Commit

Permalink
Update Harden-Windows-Security.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
HotCakeX committed Oct 12, 2024
1 parent 0c0c4e9 commit d97256c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Harden-Windows-Security.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit d97256c

Please sign in to comment.