Skip to content

Commit

Permalink
Test 2023 10 24 (ChrisTitusTech#1176)
Browse files Browse the repository at this point in the history
* Compile Winutil

* Update README.md (ChrisTitusTech#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

* Compile Winutil

* replacing the hard-coded paths for windows dir (ChrisTitusTech#1126)

* Changed version of python for winget to 3.12 (ChrisTitusTech#1137)

* Compile Winutil

* Added Programs to the Install List (ChrisTitusTech#1143)

* Added the checkboxes of what I want to add

* Added duplicati

* Added KDE Connect

* Added OpenVPN Connect

* Added Oracle Virtual Box

* Added Paint.net

* Fixed an error spotted in the KDE Connect package names

* Added the checkboxes into inputXML.xaml

* Added the package details to config\applications.json

* Reverted changes from winutil

---------

Co-authored-by: Chris Titus <[email protected]>

* Compile Winutil

* New Section: Customize  Preferences (inside tweaks section) (ChrisTitusTech#1163)

* convert numlock on startup checkboxs into toggle button

* convert verboselogon checkbox into toggle button

* gui changes : added new section, new style for toggle buttons

* convert showfileextentions checkbox into toggle button

* convert mouse acceleration checkboxs into togglebutton

* manor changes : cleanup, adding tooltips

* fix style of toggle tweaks

added new style 'labelfortweaks' that fix sytle and give mouse hover effect like previous tweaks that are using checkbox style but here for toggle tweaks we are using label and to make other tweaks style 'labelfortweaks' sytle is used. it mimic the style of checkbox style

---------

Co-authored-by: Chris Titus <[email protected]>

* Compile Winutil

* add Thunderbird (ChrisTitusTech#1165)

* Compile Winutil

* Update the screenshot in README w/ dark mode (ChrisTitusTech#1173)

* took a pr on main and pulling it to test (ChrisTitusTech#1175)

* Add Session messenger to the applications list. (ChrisTitusTech#1166)

* Update applications.json

* Update inputXML.xaml

* Compile Winutil

---------

Co-authored-by: charlescgs <[email protected]>
Co-authored-by: ChrisTitusTech <[email protected]>

---------

Co-authored-by: ChrisTitusTech <[email protected]>
Co-authored-by: aim <[email protected]>
Co-authored-by: edelvarden <[email protected]>
Co-authored-by: dass2608 <[email protected]>
Co-authored-by: Inventhrice <[email protected]>
Co-authored-by: Padsala Tushal <[email protected]>
Co-authored-by: Antun Nitraj <[email protected]>
Co-authored-by: Meen Beese <[email protected]>
Co-authored-by: charlescgs <[email protected]>
  • Loading branch information
10 people committed Nov 14, 2023
1 parent c310896 commit b166415
Show file tree
Hide file tree
Showing 17 changed files with 767 additions and 293 deletions.
20 changes: 11 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -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)

Expand All @@ -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: <https://timesofindia.indiatimes.com/gadgets-news/github-content-domain-blocked-for-these-indian-users-reports/articleshow/96687992.cms>

- 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
Expand Down Expand Up @@ -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.

Expand All @@ -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")
![Alt](https://repobeats.axiom.co/api/embed/aad37eec9114c507f109d34ff8d38a59adc9503f.svg "Repobeats analytics image")
26 changes: 25 additions & 1 deletion config/applications.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@
"winget": "Microsoft.DotNet.DesktopRuntime.7",
"choco": "dotnet-7.0-runtime"
},
"WPFInstallduplicati": {
"winget": "Duplicati.Duplicati",
"choco": "duplicati"
},
"WPFInstalleaapp": {
"winget": "ElectronicArts.EADesktop",
"choco": "ea-app"
Expand Down Expand Up @@ -267,6 +271,10 @@
"winget": "Joplin.Joplin",
"choco": "joplin"
},
"WPFInstallkdeconnect": {
"winget": "KDE.KDEConnect",
"choco": "kdeconnect-kde"
},
"WPFInstallkdenlive": {
"Winget": "KDE.Kdenlive",
"choco": "kdenlive"
Expand Down Expand Up @@ -399,6 +407,18 @@
"winget": "Open-Shell.Open-Shell-Menu",
"choco": "open-shell"
},
"WPFInstallOpenVPN": {
"winget": "OpenVPNTechnologies.OpenVPNConnect",
"choco": "openvpn-connect"
},
"WPFInstallOVirtualBox": {
"winget": "Oracle.VirtualBox",
"choco": "virtualbox"
},
"WPFInstallPaintdotnet": {
"winget": "dotPDNLLC.paintdotnet",
"choco": "paint.net"
},
"WPFInstallpeazip": {
"winget": "Giorgiotani.Peazip",
"choco": "peazip"
Expand Down Expand Up @@ -432,7 +452,7 @@
"choco": "putty"
},
"WPFInstallpython3": {
"winget": "Python.Python.3.11",
"winget": "Python.Python.3.12",
"choco": "python"
},
"WPFInstallqbittorrent": {
Expand Down Expand Up @@ -551,6 +571,10 @@
"winget": "9PF4KZ2VN4W9",
"choco": "translucenttb"
},
"WPFInstallthunderbird": {
"winget": "Mozilla.Thunderbird",
"choco": "thunderbird"
},
"WPFInstalltwinkletray": {
"Winget": "xanderfrangos.twinkletray",
"choco": "na"
Expand Down
6 changes: 2 additions & 4 deletions config/preset.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
"WPFEssTweaksStorage",
"WPFEssTweaksTele",
"WPFEssTweaksWifi",
"WPFMiscTweaksPower",
"WPFMiscTweaksNum"
"WPFMiscTweaksPower"
],
"laptop": [
"WPFEssTweaksAH",
Expand All @@ -23,8 +22,7 @@
"WPFEssTweaksStorage",
"WPFEssTweaksTele",
"WPFEssTweaksWifi",
"WPFMiscTweaksLapPower",
"WPFMiscTweaksLapNum"
"WPFMiscTweaksLapPower"
],
"minimal": [
"WPFEssTweaksHome",
Expand Down
94 changes: 0 additions & 94 deletions config/tweaks.json
Original file line number Diff line number Diff line change
Expand Up @@ -1909,17 +1909,6 @@
}
]
},
"WPFMiscTweaksExt": {
"registry": [
{
"Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced",
"Name": "HideFileExt",
"Type": "DWord",
"Value": "0",
"OriginalValue": "1"
}
]
},
"WPFMiscTweaksUTC": {
"registry": [
{
Expand Down Expand Up @@ -2163,28 +2152,6 @@
"
]
},
"WPFMiscTweaksLapNum": {
"Registry": [
{
"Path": "HKU:\\.DEFAULT\\Control Panel\\Keyboard",
"OriginalValue": "1",
"Name": "InitialKeyboardIndicators",
"Value": "0",
"Type": "DWord"
}
]
},
"WPFMiscTweaksNum": {
"Registry": [
{
"Path": "HKU:\\.DEFAULT\\Control Panel\\Keyboard",
"OriginalValue": "1",
"Name": "InitialKeyboardIndicators",
"Value": "80000002",
"Type": "DWord"
}
]
},
"WPFEssTweaksRemoveEdge": {
"InvokeScript": [
"
Expand Down Expand Up @@ -2327,67 +2294,6 @@
}
]
},
"WPFMiscTweaksDisableMouseAcceleration": {
"registry": [
{
"Path": "HKCU:\\Control Panel\\Mouse",
"OriginalValue": "1",
"Name": "MouseSpeed",
"Value": "0",
"Type": "String"
},
{
"Path": "HKCU:\\Control Panel\\Mouse",
"OriginalValue": "6",
"Name": "MouseThreshold1",
"Value": "0",
"Type": "String"
},
{
"Path": "HKCU:\\Control Panel\\Mouse",
"OriginalValue": "10",
"Name": "MouseThreshold2",
"Value": "0",
"Type": "String"
}
]
},
"WPFMiscTweaksEnableMouseAcceleration": {
"registry": [
{
"Path": "HKCU:\\Control Panel\\Mouse",
"OriginalValue": "1",
"Name": "MouseSpeed",
"Value": "1",
"Type": "String"
},
{
"Path": "HKCU:\\Control Panel\\Mouse",
"OriginalValue": "6",
"Name": "MouseThreshold1",
"Value": "6",
"Type": "String"
},
{
"Path": "HKCU:\\Control Panel\\Mouse",
"OriginalValue": "10",
"Name": "MouseThreshold2",
"Value": "10",
"Type": "String"
}
]
},
"WPFMiscTweaksEnableVerboselogon": {
"registry": [
{
"Path": "HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\policies\\system",
"OriginalValue": "0",
"Name": "VerboseStatus",
"Value": "1",
"Type": "DWord"
}
]
},
"WPFEssTweaksDeleteTempFiles": {
"InvokeScript": [
"Get-ChildItem -Path \"C:\\Windows\\Temp\" *.* -Recurse | Remove-Item -Force -Recurse
Expand Down
39 changes: 39 additions & 0 deletions functions/private/Get-WinUtilToggleStatus.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,43 @@ Function Get-WinUtilToggleStatus {
return $true
}
}
if($ToggleSwitch -eq "WPFToggleNumLock"){
$numlockvalue = (Get-ItemProperty -path 'HKCU:\Control Panel\Keyboard').InitialKeyboardIndicators
if($numlockvalue -eq 2){
return $true
}
else{
return $false
}
}
if($ToggleSwitch -eq "WPFToggleVerboseLogon"){
$VerboseStatusvalue = (Get-ItemProperty -path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System').VerboseStatus
if($VerboseStatusvalue -eq 1){
return $true
}
else{
return $false
}
}
if($ToggleSwitch -eq "WPFToggleShowExt"){
$hideextvalue = (Get-ItemProperty -path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced').HideFileExt
if($hideextvalue -eq 0){
return $true
}
else{
return $false
}
}
if($ToggleSwitch -eq "WPFToggleMouseAcceleration"){
$MouseSpeed = (Get-ItemProperty -path 'HKCU:\Control Panel\Mouse').MouseSpeed
$MouseThreshold1 = (Get-ItemProperty -path 'HKCU:\Control Panel\Mouse').MouseThreshold1
$MouseThreshold2 = (Get-ItemProperty -path 'HKCU:\Control Panel\Mouse').MouseThreshold2

if($MouseSpeed -eq 1 -and $MouseThreshold1 -eq 6 -and $MouseThreshold2 -eq 10){
return $true
}
else{
return $false
}
}
}
6 changes: 3 additions & 3 deletions functions/private/Invoke-WinUtilDarkMode.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ Function Invoke-WinUtilDarkMode {
$DarkMoveValue = 1
}

$Theme = "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize"
Set-ItemProperty -Path $Theme -Name AppsUseLightTheme -Value $DarkMoveValue
Set-ItemProperty -Path $Theme -Name SystemUsesLightTheme -Value $DarkMoveValue
$Path = "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize"
Set-ItemProperty -Path $Path -Name AppsUseLightTheme -Value $DarkMoveValue
Set-ItemProperty -Path $Path -Name SystemUsesLightTheme -Value $DarkMoveValue
}
Catch [System.Security.SecurityException] {
Write-Warning "Unable to set $Path\$Name to $Value due to a Security Exception"
Expand Down
42 changes: 42 additions & 0 deletions functions/private/Invoke-WinUtilMouseAcceleration.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
Function Invoke-WinUtilMouseAcceleration {
<#
.SYNOPSIS
Enables/Disables Mouse Acceleration
.PARAMETER DarkMoveEnabled
Indicates the current Mouse Acceleration State
#>
Param($MouseAccelerationEnabled)
Try{
if ($MouseAccelerationEnabled -eq $false){
Write-Host "Enabling Mouse Acceleration"
$MouseSpeed = 1
$MouseThreshold1 = 6
$MouseThreshold2 = 10
}
else {
Write-Host "Disabling Mouse Acceleration"
$MouseSpeed = 0
$MouseThreshold1 = 0
$MouseThreshold2 = 0

}

$Path = "HKCU:\Control Panel\Mouse"
Set-ItemProperty -Path $Path -Name MouseSpeed -Value $MouseSpeed
Set-ItemProperty -Path $Path -Name MouseThreshold1 -Value $MouseThreshold1
Set-ItemProperty -Path $Path -Name MouseThreshold2 -Value $MouseThreshold2
}
Catch [System.Security.SecurityException] {
Write-Warning "Unable to set $Path\$Name to $Value due to a Security Exception"
}
Catch [System.Management.Automation.ItemNotFoundException] {
Write-Warning $psitem.Exception.ErrorRecord
}
Catch{
Write-Warning "Unable to set $Name due to unhandled exception"
Write-Warning $psitem.Exception.StackTrace
}
}
31 changes: 31 additions & 0 deletions functions/private/Invoke-WinUtilNumLock.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
function Invoke-WinUtilNumLock {
<#
.SYNOPSIS
Disables/Enables NumLock on startup
.PARAMETER Enabled
Indicates whether to enable or disable Numlock on startup
#>
Param($Enabled)
Try{
if ($Enabled -eq $false){
Write-Host "Enabling Numlock on startup"
$value = 2
}
else {
Write-Host "Disabling Numlock on startup"
$value = 0
}
$Path = "HKCU:\Control Panel\Keyboard"
Set-ItemProperty -Path $Path -Name InitialKeyboardIndicators -Value $value
}
Catch [System.Security.SecurityException] {
Write-Warning "Unable to set $Path\$Name to $Value due to a Security Exception"
}
Catch [System.Management.Automation.ItemNotFoundException] {
Write-Warning $psitem.Exception.ErrorRecord
}
Catch{
Write-Warning "Unable to set $Name due to unhandled exception"
Write-Warning $psitem.Exception.StackTrace
}
}
Loading

0 comments on commit b166415

Please sign in to comment.