From 190f624c7aa8fb771b213ff4e68259e9d480701b Mon Sep 17 00:00:00 2001 From: Dmitry Nefedov Date: Tue, 20 May 2025 22:44:08 +0300 Subject: [PATCH] Added defendnot exception --- src/Sophia_Script_for_Windows_10/Module/Sophia.psm1 | 2 ++ src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1 | 2 ++ src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1 | 2 ++ .../Import-TabCompletion.ps1 | 2 +- .../Module/Sophia.psm1 | 2 ++ src/Sophia_Script_for_Windows_10_PowerShell_7/Sophia.ps1 | 2 +- src/Sophia_Script_for_Windows_11/Module/Sophia.psm1 | 2 ++ src/Sophia_Script_for_Windows_11_LTSC_2024/Module/Sophia.psm1 | 2 ++ .../Import-TabCompletion.ps1 | 2 +- .../Module/Sophia.psm1 | 2 ++ src/Sophia_Script_for_Windows_11_PowerShell_7/Sophia.ps1 | 2 +- 11 files changed, 18 insertions(+), 4 deletions(-) diff --git a/src/Sophia_Script_for_Windows_10/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_10/Module/Sophia.psm1 index 504a28cc..b45d04b0 100644 --- a/src/Sophia_Script_for_Windows_10/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_10/Module/Sophia.psm1 @@ -253,6 +253,8 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); PCNP = "HKCU:\Software\PCNP" # https://www.reddit.com/r/TronScript/ Tron = "$env:SystemDrive\logs\tron" + # https://github.com/es3n1n/defendnot + defendnot = "$env:SystemRoot\System32\Tasks\defendnot" } foreach ($Tweaker in $Tweakers.Keys) { diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1 index c3f991d6..8b7f75de 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1 @@ -253,6 +253,8 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); PCNP = "HKCU:\Software\PCNP" # https://www.reddit.com/r/TronScript/ Tron = "$env:SystemDrive\logs\tron" + # https://github.com/es3n1n/defendnot + defendnot = "$env:SystemRoot\System32\Tasks\defendnot" } foreach ($Tweaker in $Tweakers.Keys) { diff --git a/src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1 index 1a7396f9..d038040a 100644 --- a/src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1 @@ -253,6 +253,8 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); PCNP = "HKCU:\Software\PCNP" # https://www.reddit.com/r/TronScript/ Tron = "$env:SystemDrive\logs\tron" + # https://github.com/es3n1n/defendnot + defendnot = "$env:SystemRoot\System32\Tasks\defendnot" } foreach ($Tweaker in $Tweakers.Keys) { diff --git a/src/Sophia_Script_for_Windows_10_PowerShell_7/Import-TabCompletion.ps1 b/src/Sophia_Script_for_Windows_10_PowerShell_7/Import-TabCompletion.ps1 index 1b7d226f..5476c6a7 100644 --- a/src/Sophia_Script_for_Windows_10_PowerShell_7/Import-TabCompletion.ps1 +++ b/src/Sophia_Script_for_Windows_10_PowerShell_7/Import-TabCompletion.ps1 @@ -26,7 +26,7 @@ #> #Requires -RunAsAdministrator -#Requires -Version 7.4 +#Requires -Version 7.5 function Sophia { diff --git a/src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1 index 58097682..14d04d97 100644 --- a/src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1 @@ -266,6 +266,8 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); PCNP = "HKCU:\Software\PCNP" # https://www.reddit.com/r/TronScript/ Tron = "$env:SystemDrive\logs\tron" + # https://github.com/es3n1n/defendnot + defendnot = "$env:SystemRoot\System32\Tasks\defendnot" } foreach ($Tweaker in $Tweakers.Keys) { diff --git a/src/Sophia_Script_for_Windows_10_PowerShell_7/Sophia.ps1 b/src/Sophia_Script_for_Windows_10_PowerShell_7/Sophia.ps1 index 33856984..d739f136 100644 --- a/src/Sophia_Script_for_Windows_10_PowerShell_7/Sophia.ps1 +++ b/src/Sophia_Script_for_Windows_10_PowerShell_7/Sophia.ps1 @@ -65,7 +65,7 @@ #> #Requires -RunAsAdministrator -#Requires -Version 7.4 +#Requires -Version 7.5 [CmdletBinding()] param diff --git a/src/Sophia_Script_for_Windows_11/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_11/Module/Sophia.psm1 index fcfe7f65..daebdc80 100644 --- a/src/Sophia_Script_for_Windows_11/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_11/Module/Sophia.psm1 @@ -240,6 +240,8 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); PCNP = "HKCU:\Software\PCNP" # https://www.reddit.com/r/TronScript/ Tron = "$env:SystemDrive\logs\tron" + # https://github.com/es3n1n/defendnot + defendnot = "$env:SystemRoot\System32\Tasks\defendnot" } foreach ($Tweaker in $Tweakers.Keys) { diff --git a/src/Sophia_Script_for_Windows_11_LTSC_2024/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_11_LTSC_2024/Module/Sophia.psm1 index 676be47d..fe94da8a 100644 --- a/src/Sophia_Script_for_Windows_11_LTSC_2024/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_11_LTSC_2024/Module/Sophia.psm1 @@ -240,6 +240,8 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); PCNP = "HKCU:\Software\PCNP" # https://www.reddit.com/r/TronScript/ Tron = "$env:SystemDrive\logs\tron" + # https://github.com/es3n1n/defendnot + defendnot = "$env:SystemRoot\System32\Tasks\defendnot" } foreach ($Tweaker in $Tweakers.Keys) { diff --git a/src/Sophia_Script_for_Windows_11_PowerShell_7/Import-TabCompletion.ps1 b/src/Sophia_Script_for_Windows_11_PowerShell_7/Import-TabCompletion.ps1 index e94216b5..63f521b5 100644 --- a/src/Sophia_Script_for_Windows_11_PowerShell_7/Import-TabCompletion.ps1 +++ b/src/Sophia_Script_for_Windows_11_PowerShell_7/Import-TabCompletion.ps1 @@ -26,7 +26,7 @@ #> #Requires -RunAsAdministrator -#Requires -Version 7.4 +#Requires -Version 7.5 function Sophia { diff --git a/src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1 index 31ccfd20..41f4c278 100644 --- a/src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1 @@ -253,6 +253,8 @@ public static extern bool SetForegroundWindow(IntPtr hWnd); PCNP = "HKCU:\Software\PCNP" # https://www.reddit.com/r/TronScript/ Tron = "$env:SystemDrive\logs\tron" + # https://github.com/es3n1n/defendnot + defendnot = "$env:SystemRoot\System32\Tasks\defendnot" } foreach ($Tweaker in $Tweakers.Keys) { diff --git a/src/Sophia_Script_for_Windows_11_PowerShell_7/Sophia.ps1 b/src/Sophia_Script_for_Windows_11_PowerShell_7/Sophia.ps1 index 41722600..59466eff 100644 --- a/src/Sophia_Script_for_Windows_11_PowerShell_7/Sophia.ps1 +++ b/src/Sophia_Script_for_Windows_11_PowerShell_7/Sophia.ps1 @@ -64,7 +64,7 @@ #> #Requires -RunAsAdministrator -#Requires -Version 7.4 +#Requires -Version 7.5 [CmdletBinding()] param