2
0
Эх сурвалжийг харах

Moved the Erroraction preference to line 12

Richard Newton 7 жил өмнө
parent
commit
e9d2b48fab

+ 3 - 3
Windows10Debloater.ps1

@@ -8,6 +8,9 @@ If (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]:
   Exit
 }
 
+#no errors throughout
+$ErrorActionPreference = 'silentlycontinue'
+
 If (Test-Path "C:\Windows10Debloater") {
     Write-Output "C:\Windows10Debloater exists. Skipping."
 }
@@ -19,9 +22,6 @@ Else {
 
 Start-Transcript -OutputDirectory "C:\Windows10Debloater"
 
-#no errors throughout
-$ErrorActionPreference = 'silentlycontinue'
-
 Function Start-Debloat {
     
     [CmdletBinding()]