Compare commits
8 commits
Newest
...
Release-v1
Author | SHA1 | Date | |
---|---|---|---|
|
bf53cc7f1a | ||
e01488de26 | |||
|
a380e890fa | ||
|
dd022d1d0a | ||
|
b33dd9d16c | ||
|
c71bb5e81a | ||
|
7d2b524051 | ||
|
f384a96000 |
3 changed files with 62 additions and 74 deletions
|
@ -95,9 +95,18 @@ write-host "=------------------------------="
|
|||
}
|
||||
|
||||
|
||||
function Restart-Explorer {
|
||||
Stop-Process -Name explorer -Force
|
||||
# Wait for 2 seconds (2000 milliseconds)
|
||||
Start-Sleep -Milliseconds 20
|
||||
# Check if Windows Explorer is running, and if not, restart it
|
||||
if (-not (Get-Process -Name explorer -ErrorAction SilentlyContinue)) {
|
||||
Start-Process explorer
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$Branch = 'Newest'
|
||||
$Branch = 'Release-v1.1.8'
|
||||
|
||||
|
||||
|
||||
|
@ -132,14 +141,12 @@ function RemSearchwin10(){
|
|||
if ($WPFUnpin_Search.IsChecked)
|
||||
{
|
||||
Set-ItemProperty -path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Search\" -Name "SearchboxTaskbarMode" -Value 0
|
||||
Stop-Process -n explorer
|
||||
c:\windows\explorer.exe
|
||||
Restart-Explorer
|
||||
}
|
||||
else
|
||||
{
|
||||
Set-ItemProperty -path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Search\" -Name "SearchboxTaskbarMode" -Value 2
|
||||
Stop-Process -n explorer
|
||||
c:\windows\explorer.exe
|
||||
Restart-Explorer
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -147,14 +154,12 @@ function RemTaskViewwin10(){
|
|||
if ($WPFUnpin_Task_View.IsChecked)
|
||||
{
|
||||
Set-ItemProperty -path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\" -Name "ShowTaskViewButton" -Value 0
|
||||
Stop-Process -n explorer
|
||||
c:\windows\explorer.exe
|
||||
Restart-Explorer
|
||||
}
|
||||
else
|
||||
{
|
||||
Set-ItemProperty -path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\" -Name "ShowTaskViewButton" -Value 1
|
||||
Stop-Process -n explorer
|
||||
c:\windows\explorer.exe
|
||||
Restart-Explorer
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -162,28 +167,24 @@ function RemCortana(){
|
|||
if ($WPFUnpin_Cortana.IsChecked)
|
||||
{
|
||||
Set-ItemProperty -path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "ShowCortanaButton" -Value 0
|
||||
Stop-Process -n explorer
|
||||
c:\windows\explorer.exe
|
||||
Restart-Explorer
|
||||
}
|
||||
else
|
||||
{
|
||||
Set-ItemProperty -path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "ShowCortanaButton" -Value 1
|
||||
Stop-Process -n explorer
|
||||
c:\windows\explorer.exe
|
||||
Restart-Explorer
|
||||
}
|
||||
}
|
||||
function RemPeople(){
|
||||
if ($WPFUnpin_People.IsChecked)
|
||||
{
|
||||
Set-ItemProperty -path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People" -Name "PeopleBand" -Value 0
|
||||
Stop-Process -n explorer
|
||||
c:\windows\explorer.exe
|
||||
Restart-Explorer
|
||||
}
|
||||
else
|
||||
{
|
||||
Set-ItemProperty -path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People" -Name "PeopleBand" -Value 1
|
||||
Stop-Process -n explorer
|
||||
c:\windows\explorer.exe
|
||||
Restart-Explorer
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -191,14 +192,12 @@ function RemInkWS(){
|
|||
if ($WPFUnpin_Ink_Workspace.IsChecked)
|
||||
{
|
||||
Set-ItemProperty -path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\PenWorkspace\" -Name "PenWorkspaceButtonDesiredVisibility" -Value 0
|
||||
Stop-Process -n explorer
|
||||
c:\windows\explorer.exe
|
||||
Restart-Explorer
|
||||
}
|
||||
else
|
||||
{
|
||||
Set-ItemProperty -path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\PenWorkspace\" -Name "PenWorkspaceButtonDesiredVisibility" -Value 1
|
||||
Stop-Process -n explorer
|
||||
c:\windows\explorer.exe
|
||||
Restart-Explorer
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -206,14 +205,12 @@ function RemTouchKey(){
|
|||
if ($WPFUnpin_Touch_Keyboard.IsChecked)
|
||||
{
|
||||
Set-ItemProperty -path "HKCU:\SOFTWARE\Microsoft\TabletTip\1.7" -Name "TipbandDesiredVisibility" -Value 0
|
||||
Stop-Process -n explorer
|
||||
c:\windows\explorer.exe
|
||||
Restart-Explorer
|
||||
}
|
||||
else
|
||||
{
|
||||
Set-ItemProperty -path "HKCU:\SOFTWARE\Microsoft\TabletTip\1.7" -Name "TipbandDesiredVisibility" -Value 1
|
||||
Stop-Process -n explorer
|
||||
c:\windows\explorer.exe
|
||||
Restart-Explorer
|
||||
}
|
||||
}
|
||||
function Unpinabovewin10(){
|
||||
|
@ -242,8 +239,7 @@ function Unpinabovewin10(){
|
|||
Set-ItemProperty -path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People" -Name "PeopleBand" -Value 1
|
||||
Set-ItemProperty -path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\PenWorkspace\" -Name "PenWorkspaceButtonDesiredVisibility" -Value 1
|
||||
Set-ItemProperty -path "HKCU:\SOFTWARE\Microsoft\TabletTip\1.7" -Name "TipbandDesiredVisibility" -Value 1
|
||||
Stop-Process -n explorer
|
||||
c:\windows\explorer.exe
|
||||
Restart-Explorer
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -267,8 +263,7 @@ function Unpinabove(){
|
|||
Set-ItemProperty -path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\" -Name "TaskbarDa" -Value 1
|
||||
Set-ItemProperty -path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\" -Name "TaskbarMn" -Value 1
|
||||
Set-ItemProperty -path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\" -Name "ShowTaskViewButton" -Value 1
|
||||
Stop-Process -n explorer
|
||||
c:\windows\explorer.exe
|
||||
Restart-Explorer
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -279,14 +274,12 @@ function FileExt(){
|
|||
if ($WPFFileExtensions.IsChecked)
|
||||
{
|
||||
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\" -Name "HideFileExt" -Value 0
|
||||
Stop-Process -n explorer
|
||||
c:\windows\explorer.exe
|
||||
Restart-Explorer
|
||||
}
|
||||
else
|
||||
{
|
||||
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\" -Name "HideFileExt" -Value 1
|
||||
Stop-Process -n explorer
|
||||
c:\windows\explorer.exe
|
||||
Restart-Explorer
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -294,14 +287,12 @@ function HiddenFiles(){
|
|||
if ($WPFHiddenFiles.IsChecked)
|
||||
{
|
||||
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\" -Name "Hidden" -Value 1
|
||||
Stop-Process -n explorer
|
||||
c:\windows\explorer.exe
|
||||
Restart-Explorer
|
||||
}
|
||||
else
|
||||
{
|
||||
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\" -Name "Hidden" -Value 2
|
||||
Stop-Process -n explorer
|
||||
c:\windows\explorer.exe
|
||||
Restart-Explorer
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -309,14 +300,12 @@ function ICBbutton(){
|
|||
if ($WPFItemBoxes.IsChecked)
|
||||
{
|
||||
Set-ItemProperty -path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "AutoCheckSelect" -Value 1
|
||||
Stop-Process -n explorer
|
||||
c:\windows\explorer.exe
|
||||
Restart-Explorer
|
||||
}
|
||||
else
|
||||
{
|
||||
Set-ItemProperty -path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "AutoCheckSelect" -Value 0
|
||||
Stop-Process -n explorer
|
||||
c:\windows\explorer.exe
|
||||
Restart-Explorer
|
||||
}
|
||||
}
|
||||
function HideShell(){
|
||||
|
@ -389,14 +378,12 @@ function Win10RC(){
|
|||
if ($WPFWin10RC.IsChecked)
|
||||
{
|
||||
reg.exe add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /ve
|
||||
Stop-Process -n explorer
|
||||
c:\windows\explorer.exe
|
||||
Restart-Explorer
|
||||
}
|
||||
else
|
||||
{
|
||||
reg.exe delete "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}" /f
|
||||
Stop-Process -n explorer
|
||||
c:\windows\explorer.exe
|
||||
Restart-Explorer
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -404,8 +391,7 @@ function RadButton1 {
|
|||
if ($WPFRadioButton1.IsChecked)
|
||||
{
|
||||
Set-ItemProperty -path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "Start_Layout" -Value 0
|
||||
Stop-Process -n explorer
|
||||
c:\windows\explorer.exe
|
||||
Restart-Explorer
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -413,16 +399,14 @@ function RadButton2 {
|
|||
if ($WPFRadioButton2.IsChecked)
|
||||
{
|
||||
Set-ItemProperty -path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "Start_Layout" -Value 1
|
||||
Stop-Process -n explorer
|
||||
c:\windows\explorer.exe
|
||||
Restart-Explorer
|
||||
}
|
||||
}
|
||||
function RadButton3 {
|
||||
if ($WPFRadioButton3.IsChecked)
|
||||
{
|
||||
Set-ItemProperty -path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "Start_Layout" -Value 2
|
||||
Stop-Process -n explorer
|
||||
c:\windows\explorer.exe
|
||||
Restart-Explorer
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -431,14 +415,12 @@ function DisableAeroShake(){
|
|||
if ($WPFAeroShake.IsChecked)
|
||||
{
|
||||
Set-ItemProperty -path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "DisallowShaking" -Value 1
|
||||
Stop-Process -n explorer
|
||||
c:\windows\explorer.exe
|
||||
Restart-Explorer
|
||||
}
|
||||
else
|
||||
{
|
||||
Set-ItemProperty -path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "DisallowShaking" -Value 0
|
||||
Stop-Process -n explorer
|
||||
c:\windows\explorer.exe
|
||||
Restart-Explorer
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -447,14 +429,12 @@ function ClockSecs(){
|
|||
if ($WPFClockDisplay.IsChecked)
|
||||
{
|
||||
Set-ItemProperty -path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "ShowSecondsInSystemClock" -Value 1
|
||||
Stop-Process -n explorer
|
||||
c:\windows\explorer.exe
|
||||
Restart-Explorer
|
||||
}
|
||||
else
|
||||
{
|
||||
Set-ItemProperty -path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "ShowSecondsInSystemClock" -Value 0
|
||||
Stop-Process -n explorer
|
||||
c:\windows\explorer.exe
|
||||
Restart-Explorer
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -810,4 +790,4 @@ if ($windowsVersion -eq 10) {
|
|||
|
||||
|
||||
|
||||
$Form.ShowDialog()
|
||||
$Form.ShowDialog()
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
<CheckBox x:Name="Unpin_Ink_Workspace" Content="Unpin Ink Workspace" HorizontalAlignment="Left" Margin="10,145,0,0" VerticalAlignment="Top" IsChecked="False"/>
|
||||
<CheckBox x:Name="Unpin_Touch_Keyboard" Content="Unpin Touch Keyboard" HorizontalAlignment="Left" Margin="10,165,0,0" VerticalAlignment="Top" IsChecked="False"/>
|
||||
<CheckBox x:Name="Unpin_All_Above" Content="Unpin All Above" HorizontalAlignment="Left" Margin="10,185,0,0" VerticalAlignment="Top" IsChecked="False"/>
|
||||
<Label x:Name="ExplainingLabel" Content="Windows Explorer might open after checking the boxes. Just close it" HorizontalAlignment="Left" Margin="10,228,0,0" VerticalAlignment="Top"/>
|
||||
<!-- <Label x:Name="ExplainingLabel" Content="Windows Explorer might open after checking the boxes. Just close it" HorizontalAlignment="Left" Margin="10,228,0,0" VerticalAlignment="Top"/> -->
|
||||
<Label x:Name="label_22h2" Content="Start Menu 22H2" HorizontalAlignment="Right" Margin="0,10,57,0" VerticalAlignment="Top" FontSize="30" FontWeight="Bold" RenderTransformOrigin="1.16,-0.266"/>
|
||||
<Grid x:Name="GridGroupBox" VerticalAlignment="Top" Height="87" Margin="359,55,57,0">
|
||||
<RadioButton x:Name="RadioButton1" Content="Default" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top"/>
|
||||
|
@ -40,7 +40,7 @@
|
|||
<CheckBox x:Name="FileExtensions" Content="Show File Extensions in Explorer" HorizontalAlignment="Left" Margin="10,85,0,0" VerticalAlignment="Top" IsChecked="False" Grid.ColumnSpan="2"/>
|
||||
<CheckBox x:Name="ItemBoxes" Content="Item Check Boxes" HorizontalAlignment="Left" Margin="10,105,0,0" VerticalAlignment="Top" IsChecked="False" Grid.ColumnSpan="2"/>
|
||||
<CheckBox x:Name="CompactView" Content="Compact View in Explorer" HorizontalAlignment="Left" Margin="10,125,0,0" VerticalAlignment="Top" IsChecked="False"/>
|
||||
<Label x:Name="ExplainingLabel2" Content="Windows Explorer might open after checking the boxes. Just close it" HorizontalAlignment="Left" Margin="10,228,0,0" VerticalAlignment="Top"/>
|
||||
<!-- <Label x:Name="ExplainingLabel2" Content="Windows Explorer might open after checking the boxes. Just close it" HorizontalAlignment="Left" Margin="10,228,0,0" VerticalAlignment="Top"/> -->
|
||||
</Grid>
|
||||
</TabItem>
|
||||
<TabItem x:Name="Tab3" Header="Windows Settings">
|
||||
|
@ -64,9 +64,9 @@
|
|||
<Grid Background="White">
|
||||
<Label x:Name="Label5" Content="Version" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" FontSize="30" FontWeight="Bold" Grid.ColumnSpan="2"/>
|
||||
<Label x:Name="OSLabel" Content="Windows Detector" HorizontalAlignment="Left" Margin="10,228,0,0" VerticalAlignment="Top"/>
|
||||
<Label x:Name="ExplainingLabel_Copy1" Content="Version 1.1.7 (Build 1171.04)" HorizontalAlignment="Right" Margin="0,228,10,0" VerticalAlignment="Top"/>
|
||||
<Label x:Name="ExplainingLabel_Copy1" Content="Version 1.1.8 (Build 118.02)" HorizontalAlignment="Right" Margin="0,228,10,0" VerticalAlignment="Top"/>
|
||||
</Grid>
|
||||
</TabItem>
|
||||
</TabControl>
|
||||
</Grid>
|
||||
</Window>
|
||||
</Window>
|
||||
|
|
28
README.md
28
README.md
|
@ -3,18 +3,30 @@
|
|||
![GitHub release (latest by date)](https://img.shields.io/github/v/release/OlaYZen/Enhance-Windows?style=for-the-badge)
|
||||
![GitHub repo size](https://img.shields.io/github/repo-size/OlaYZen/Enhance-Windows?color=orange&style=for-the-badge)
|
||||
|
||||
# ⚠️ THIS IS A DEVELOPMENT BUILD, RUN IT AT YOUR OWN RISK ⚠️
|
||||
|
||||
# This script Enhances both Windows 10 and 11
|
||||
|
||||
## ⭐**How to start the program**⭐
|
||||
## ⭐**How to start the program**
|
||||
|
||||
Open a powershell window , and type:
|
||||
```
|
||||
iwr -useb https://enhance.olayzen.com/ | iex
|
||||
iwr -useb https://enhance.olayzen.com/1.1.8 | iex
|
||||
```
|
||||
> or Download and run "EnhanceWindows.ps1" with powershell (You can't use it offline)
|
||||
|
||||
## 💡Features💡
|
||||
with this program you could remove or add stuff that is missing from both versions of Windows. Here is a list of what you could do in each operating system. Note that every feature does not crossover from Windows 11 to Windows 10 and vice versa
|
||||
### ✨ 1.1.8 New Features
|
||||
* Updated UI
|
||||
* Added some 23H2 Features from Windows 11
|
||||
|
||||
### 🐛 1.1.8 Fixes
|
||||
* Updated the flawed Restart of Explorer
|
||||
* Updated the flawed OS Detector
|
||||
* Works fully on Debloated Systems and VMs
|
||||
|
||||
|
||||
## :triangular_flag_on_post: Features
|
||||
You can use this program to remove or add features that are missing in both versions of Windows. Here is a list of what you can do in each operating system. Please note that not every feature is available in both Windows 11 and Windows 10, and vice versa.
|
||||
|
||||
<details>
|
||||
<summary><b>Windows 10 Features</b></summary>
|
||||
|
@ -39,12 +51,8 @@ with this program you could remove or add stuff that is missing from both versio
|
|||
- Windows Explorer tabs before release
|
||||
- Installing Programs
|
||||
- Windows and Program Updates
|
||||
- Remove Aero Shake
|
||||
- Add/Remove Aero Shake
|
||||
</details>
|
||||
|
||||
## 📍Credits📍
|
||||
## 📍 Credits
|
||||
- [OlaYZen](https://github.com/OlaYZen) - Making, Doing and Testing everything
|
||||
|
||||
## 🤔Issues🤔
|
||||
- May not work under VM's
|
||||
- May not work on Debloated Systems
|
||||
|
|
Loading…
Reference in a new issue