remove elevation (#2807)

This commit is contained in:
MyDrift 2024-10-01 22:12:15 +02:00 committed by GitHub
parent f012064574
commit 4fa1b0ddc7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2430,12 +2430,6 @@
"Order": "a001_", "Order": "a001_",
"InvokeScript": [ "InvokeScript": [
" "
# Check if the user has administrative privileges
if (-Not ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) {
Write-Host \"Please run this script as an administrator.\"
return
}
# Check if System Restore is enabled for the main drive # Check if System Restore is enabled for the main drive
try { try {
# Try getting restore points to check if System Restore is enabled # Try getting restore points to check if System Restore is enabled