Explorar o código

Update Windows10DebloaterGUI.ps1

Richard Newton %!s(int64=6) %!d(string=hai) anos
pai
achega
c09b8185d8
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      Windows10DebloaterGUI.ps1

+ 2 - 2
Windows10DebloaterGUI.ps1

@@ -1,11 +1,11 @@
 #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")) {
+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"
     Start-Sleep 1
     Start-Process "powershell.exe" -Verb RunAs -ArgumentList $arguments
     Break
-}#>
+}
 
 <# This form was created using POSHGUI.com  a free online gui designer for PowerShell
 .NAME