From 4fa1b0ddc7c661357f2917071c8cf3acf83f0818 Mon Sep 17 00:00:00 2001 From: MyDrift Date: Tue, 1 Oct 2024 22:12:15 +0200 Subject: [PATCH] remove elevation (#2807) --- config/tweaks.json | 6 ------ 1 file changed, 6 deletions(-) diff --git a/config/tweaks.json b/config/tweaks.json index 157b8d6191..ed1dce5841 100644 --- a/config/tweaks.json +++ b/config/tweaks.json @@ -2430,12 +2430,6 @@ "Order": "a001_", "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 try { # Try getting restore points to check if System Restore is enabled