mirror of
https://github.com/Yamato-Security/WELA.git
synced 2026-05-04 02:18:06 +02:00
feat: verbose security
This commit is contained in:
@@ -220,8 +220,4 @@ function Test-IsAdministrator {
|
||||
return (New-Object Security.Principal.WindowsPrincipal($currentUser)).IsInRole($adminRole)
|
||||
}
|
||||
|
||||
if (-not (Test-IsAdministrator)) {
|
||||
Write-Output "This script must be run as an Administrator."
|
||||
exit
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user