From 3875f08bcf4d07f3841d309d506f31ddcd8cc366 Mon Sep 17 00:00:00 2001 From: ChrisTitusTech Date: Tue, 24 Oct 2023 20:23:43 +0000 Subject: [PATCH 1/6] Compile Winutil --- winutil.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/winutil.ps1 b/winutil.ps1 index 5d8da9c9b5..c7b55f3d01 100755 --- a/winutil.ps1 +++ b/winutil.ps1 @@ -10,7 +10,7 @@ Author : Chris Titus @christitustech Runspace Author: @DeveloperDurp GitHub : https://github.com/ChrisTitusTech - Version : 23.10.19 + Version : 23.10.24 #> Start-Transcript $ENV:TEMP\Winutil.log -Append @@ -21,7 +21,7 @@ Add-Type -AssemblyName System.Windows.Forms # Variable to sync between runspaces $sync = [Hashtable]::Synchronized(@{}) $sync.PSScriptRoot = $PSScriptRoot -$sync.version = "23.10.19" +$sync.version = "23.10.24" $sync.configs = @{} $sync.ProcessRunning = $false From 3baac9b0d39d8d0c422982b792da6c237bcbc5e3 Mon Sep 17 00:00:00 2001 From: aim Date: Wed, 1 Nov 2023 01:50:09 +0600 Subject: [PATCH 2/6] Update README.md (#1142) * Update README.md * Update README.md Update the README.md to be more precise & clear. Fix up grammatical mistakes, allow users to figure out their issues easier. Fix crediting of IRM execution script. * Update README.md --- README.md | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 610af11044..260c7f2b5f 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Chris Titus Tech's Windows Utility -This Utility is a compilation of Windows tasks I perform on each Windows system I use. It is meant to streamline *installs*, debloat with *tweaks*, troubleshoot with *config*, and fix Windows *updates*. I am extremely picky about any contributions to keep this project clean and efficient. +This utility is a compilation of Windows tasks I perform on each Windows system I use. It is meant to streamline *installs*, debloat with *tweaks*, troubleshoot with *config*, and fix Windows *updates*. I am extremely picky about any contributions to keep this project clean and efficient. ![screen-install](screen-install.png) @@ -14,28 +14,30 @@ Launch Command: ``` iwr -useb https://christitus.com/win | iex ``` -Or shorter Thanks to [#144](/../../issues/144) +or by executing: ``` irm https://christitus.com/win | iex ``` +Courtesy of the issue raised at: [#144](/../../issues/144) + ### Issues: -- If you can't resolve christitus.com/win and getting errors launching India Region is BLOCKING raw github files and you need to VPN outside India. +- If you are unable to resolve christitus.com/win and are getting errors launching the tool, it might be due to India blocking GitHub's content domain and preventing downloads. You'll be required to use a VPN to tunnel out of India. Source: -- AntiVirus is also blocking the script. You can disable it temporarily to run the script. The script is flagged for malware because it runs under the administrator and makes system changes. +- Windows Security (formerly Defender) and other anti-virus software are known to block the script. The script gets flagged due to the fact that it requires administrator privileges & makes drastic system changes. -- If you are having TLS 1.2 Issues or You cannot find or resolve `christitus.com/win` then run with the following command: +- If you are having TLS 1.2 issues, or are having trouble resolving `christitus.com/win` then run with the following command: ``` [Net.ServicePointManager]::SecurityProtocol=[Net.SecurityProtocolType]::Tls12;iex(New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/ChrisTitusTech/winutil/main/winutil.ps1') ``` -If you are still having issues try changing your DNS provider to 1.1.1.1 or 8.8.8.8 +If you are still having issues try changing your DNS provider to 1.1.1.1 || 1.0.0.1 or 8.8.8.8 || 8.8.4.4 ## Support -- This project needs a ⭐️ from you. Don't forget to leave a star ⭐️. +- To morally and mentally support the project, make sure to leave a ⭐️! - EXE Wrapper for $10 @ https://www.cttstore.com/windows-toolbox ## Tutorial @@ -88,7 +90,7 @@ If you encounter any challenges or problems with the script, I kindly request th ## Contribute Code -To contribute a new code, please ensure that it is submitted to the **TEST BRANCH**. Please note that merges will not be performed directly on the MAIN branch. +To contribute new code, please ensure that it is submitted to the **TEST BRANCH**. Please note that merges will not be performed directly on the MAIN branch. When creating pull requests, it is essential to thoroughly document all changes made. This includes documenting any additions made to the tweaks section and ensuring that corresponding undo measures are in place to remove the newly added tweaks if necessary. Failure to adhere to this format may result in denial of the pull request. Additionally, comprehensive documentation is required for all code changes. Any code lacking sufficient documentation may also be denied. @@ -101,4 +103,4 @@ Thanks a lot for spending your time helping Winutil grow. Thanks a lot! Keep roc ## GitHub Stats -![Alt](https://repobeats.axiom.co/api/embed/aad37eec9114c507f109d34ff8d38a59adc9503f.svg "Repobeats analytics image") \ No newline at end of file +![Alt](https://repobeats.axiom.co/api/embed/aad37eec9114c507f109d34ff8d38a59adc9503f.svg "Repobeats analytics image") From 1bc1ac57c58febfaa292be04724da97b653c3b10 Mon Sep 17 00:00:00 2001 From: ChrisTitusTech Date: Tue, 31 Oct 2023 19:50:35 +0000 Subject: [PATCH 3/6] Compile Winutil --- winutil.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/winutil.ps1 b/winutil.ps1 index c7b55f3d01..4ae1d226b6 100755 --- a/winutil.ps1 +++ b/winutil.ps1 @@ -10,7 +10,7 @@ Author : Chris Titus @christitustech Runspace Author: @DeveloperDurp GitHub : https://github.com/ChrisTitusTech - Version : 23.10.24 + Version : 23.10.31 #> Start-Transcript $ENV:TEMP\Winutil.log -Append @@ -21,7 +21,7 @@ Add-Type -AssemblyName System.Windows.Forms # Variable to sync between runspaces $sync = [Hashtable]::Synchronized(@{}) $sync.PSScriptRoot = $PSScriptRoot -$sync.version = "23.10.24" +$sync.version = "23.10.31" $sync.configs = @{} $sync.ProcessRunning = $false From a9eeb7927721915e51f60368e876701f22c93278 Mon Sep 17 00:00:00 2001 From: edelvarden <42596339+edelvarden@users.noreply.github.com> Date: Tue, 31 Oct 2023 12:52:36 -0700 Subject: [PATCH 4/6] replacing the hard-coded paths for windows dir (#1126) --- functions/public/Invoke-WPFShortcut.ps1 | 2 +- gpedit-home.ps1 | 4 ++-- winutil.ps1 | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/functions/public/Invoke-WPFShortcut.ps1 b/functions/public/Invoke-WPFShortcut.ps1 index 75c3155a6c..251ba7dd52 100644 --- a/functions/public/Invoke-WPFShortcut.ps1 +++ b/functions/public/Invoke-WPFShortcut.ps1 @@ -12,7 +12,7 @@ function Invoke-WPFShortcut { Switch ($ShortcutToAdd) { "WinUtil" { - $SourceExe = "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" + $SourceExe = "$env:SystemRoot\System32\WindowsPowerShell\v1.0\powershell.exe" $IRM = 'irm https://christitus.com/win | iex' $Powershell = '-ExecutionPolicy Bypass -Command "Start-Process powershell.exe -verb runas -ArgumentList' $ArgumentsToSourceExe = "$powershell '$IRM'" diff --git a/gpedit-home.ps1 b/gpedit-home.ps1 index da841d335d..a49319630c 100644 --- a/gpedit-home.ps1 +++ b/gpedit-home.ps1 @@ -1,4 +1,4 @@ Get-ChildItem @( - "C:\Windows\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientTools-Package*.mum", - "C:\Windows\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientExtensions-Package*.mum" + "$env:SystemRoot\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientTools-Package*.mum", + "$env:SystemRoot\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientExtensions-Package*.mum" ) | ForEach-Object { dism.exe /online /norestart /add-package:"$_" } \ No newline at end of file diff --git a/winutil.ps1 b/winutil.ps1 index 4ae1d226b6..03551f89ce 100755 --- a/winutil.ps1 +++ b/winutil.ps1 @@ -1634,7 +1634,7 @@ function Invoke-WPFShortcut { Switch ($ShortcutToAdd) { "WinUtil" { - $SourceExe = "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" + $SourceExe = "$env:SystemRoot\System32\WindowsPowerShell\v1.0\powershell.exe" $IRM = 'irm https://christitus.com/win | iex' $Powershell = '-ExecutionPolicy Bypass -Command "Start-Process powershell.exe -verb runas -ArgumentList' $ArgumentsToSourceExe = "$powershell '$IRM'" From d711125a1720ee4257551856e1a69236108b112e Mon Sep 17 00:00:00 2001 From: dass2608 <139251779+dass2608@users.noreply.github.com> Date: Tue, 31 Oct 2023 21:00:37 +0100 Subject: [PATCH 5/6] Changed version of python for winget to 3.12 (#1137) --- config/applications.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/applications.json b/config/applications.json index 194fc1bfbe..3b7b8664c4 100755 --- a/config/applications.json +++ b/config/applications.json @@ -432,7 +432,7 @@ "choco": "putty" }, "WPFInstallpython3": { - "winget": "Python.Python.3.11", + "winget": "Python.Python.3.12", "choco": "python" }, "WPFInstallqbittorrent": { From 614f6e4cf3504c57d7f10e01665d76b412298a54 Mon Sep 17 00:00:00 2001 From: ChrisTitusTech Date: Tue, 31 Oct 2023 20:01:04 +0000 Subject: [PATCH 6/6] Compile Winutil --- winutil.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/winutil.ps1 b/winutil.ps1 index 03551f89ce..41f90f335d 100755 --- a/winutil.ps1 +++ b/winutil.ps1 @@ -3252,7 +3252,7 @@ $sync.configs.applications = '{ "choco": "putty" }, "WPFInstallpython3": { - "winget": "Python.Python.3.11", + "winget": "Python.Python.3.12", "choco": "python" }, "WPFInstallqbittorrent": {