Browse Source

Update Windows10DebloaterGUI.ps1

Richard Newton 6 years ago
parent
commit
770ccd0aca
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Windows10DebloaterGUI.ps1

+ 1 - 0
Windows10DebloaterGUI.ps1

@@ -1,3 +1,4 @@
+#This will self elevate the script so with a UAC prompt since this script needs to be run as an Administrator in order to function properly.
 If (-NOT ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) {
     $arguments = "&" + $MyInvocation.MyCommand.Definition + "" 
     Write-Host "You didn't run this script as an Administrator. This script will self elevate to run as an Administrator." -ForegroundColor "White"