remove admin checks for updates

This commit is contained in:
titus
2025-09-05 09:06:13 -05:00
parent 8be67dbf8c
commit 563a32219c
2 changed files with 0 additions and 13 deletions

View File

@ -10,13 +10,6 @@ function Invoke-WPFUpdatesdisable {
#>
# Check if running as administrator
if (-not ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) {
Write-Host "This function requires administrator privileges. Please run as administrator." -ForegroundColor Red
return
}
# Registry modifications
Write-Host "Configuring registry settings..." -ForegroundColor Yellow
If (!(Test-Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU")) {