This commit is contained in:
MyDrift 2024-08-25 20:06:33 +02:00
parent 5621b50762
commit cb6898d835
2 changed files with 1 additions and 7 deletions

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

View File

@ -85,6 +85,6 @@ function Set-WinUtilTaskbaritem {
$sync["Form"].taskbarItemInfo.Description = $description $sync["Form"].taskbarItemInfo.Description = $description
} }
} catch { } catch {
#nothing #do nothing
} }
} }