Compare commits

..

65 commits

Author SHA1 Message Date
3461e7c3e3 Merge branch 'Newest' of https://github.com/OlaYZen/Enhance-Windows into Newest 2023-11-02 10:03:59 +01:00
020a9dcd7d fixed the missing logo 2023-11-02 10:03:57 +01:00
Olai
fdae632e47
Grammar update 2023-11-02 09:22:34 +01:00
dc49611826 Updated the URL of iwr 2023-11-02 09:21:45 +01:00
ce3dba00e1 Fixed: Missing RegEdit [Win10]
Fixed missing RegEdit in Windows 10
2023-11-02 09:08:26 +01:00
c9a3e868e3 Fix: Windows 10 Buttons on launch 2023-11-01 15:30:01 +01:00
d7a4cb1aec Version Number Fix 2023-11-01 15:09:25 +01:00
f3e0e21d6b Fixed Windows Detection 2023-11-01 15:08:05 +01:00
Olai
f8e63a453b
updated the url 2023-02-16 14:41:59 +01:00
Olai
68d7508b7f
Update README.md 2022-11-08 11:37:13 +01:00
Olai
eef5796df6
Update README.md 2022-11-08 11:34:15 +01:00
683f364e68 1.1.7.1 Launch 2022-11-08 11:23:38 +01:00
Olai
fafc14e65d
Update README.md 2022-11-05 14:26:29 +01:00
Olai
c00217cddc
Update README.md 2022-11-05 14:20:57 +01:00
5b2aa7cc4e added topmost 2022-11-05 13:34:25 +01:00
0036b152e9 updated links and xaml 2022-11-05 13:23:34 +01:00
3cff5c9d7c hotfix 2022-11-04 14:56:57 +01:00
7ab24a2e25 Full Release 1.1.7 2022-11-04 14:53:51 +01:00
Olai
462b66bd93
Update README.md 2022-11-03 15:56:19 +01:00
Olai
351368df72
Update README.md 2022-10-31 10:56:41 +01:00
Olai
7ba0a6bb44
Update README.md 2022-10-31 10:56:10 +01:00
Olai
86d68bd075
Update README.md 2022-10-31 10:45:48 +01:00
Olai
4c553e2f56
Update README.md 2022-10-31 10:45:22 +01:00
e467ead8e6 fixed console 2022-10-31 10:39:50 +01:00
8febb96635 BETA TEST v3 2022-10-31 10:35:19 +01:00
fa006d7065 BETA TEST v2 2022-10-31 10:33:12 +01:00
48d6319545 BETA TEST 2022-10-31 10:31:45 +01:00
b6292112d1 Build 1160.10, Improved OS Detection 2022-10-31 10:21:56 +01:00
5ea77d3e05 build 1160.09 2022-10-31 10:09:00 +01:00
515544ca66 Build 1160.08 2022-10-31 10:05:52 +01:00
5015eb2d89 added os not detected 2022-10-31 10:02:31 +01:00
ecae30be33 Build 1160.07 2022-10-31 09:48:24 +01:00
9fbaa33279 test 2022-10-31 09:36:31 +01:00
Olai
ed10b3be0a
Update README.md 2022-10-31 09:21:51 +01:00
b6fdc33711 FULL RELEASE OF ENHANCEWINDOWS V 1.1.6 2022-10-30 02:43:29 +02:00
cda4756503 release 2022-10-30 02:33:49 +02:00
b0b459cfb6 asdfwaa 2022-10-30 02:28:29 +02:00
eeb0fd47db AWDDAWSDASDSA 2022-10-30 02:26:00 +02:00
aaf8a1930f awffwafawfsasaf 2022-10-30 02:21:15 +02:00
e26d939a87 teaadawfafsa 2022-10-30 02:19:20 +02:00
c677746f80 wawaddawwdadwadawddssdas 2022-10-30 02:16:35 +02:00
c077497674 teaeraerasear 2022-10-30 01:56:42 +02:00
6cb0786274 testersers 2022-10-30 01:55:20 +02:00
4c87548580 teastearasdawdas 2022-10-30 01:52:38 +02:00
6d38d337af teastawe3aawfa 2022-10-30 01:50:28 +02:00
c85f70001b teasafweawfas 2022-10-30 01:44:13 +02:00
e389caf3c7 testv2 2022-10-30 01:41:27 +02:00
46dee62aab testers 2022-10-30 01:33:12 +02:00
f167f1a782 etaetasdfga 2022-10-30 01:31:27 +02:00
806e347ac1 testers 2022-10-30 01:29:42 +02:00
88195847fb BETA TEST 2022-10-30 01:25:35 +02:00
f3d73526b9 testers 2022-10-29 17:48:05 +02:00
bc8bcab098 test 2022-10-29 17:44:37 +02:00
797c5f663f windows 11 22h2 fix 2022-10-29 17:43:14 +02:00
3cb9ba0811 22H2 Windows 11 Taskbar Update 2022-10-29 17:40:45 +02:00
595bd739d5 Creation Message 2022-10-11 14:18:33 +02:00
1c886317c1 Credits update 2022-10-11 14:12:55 +02:00
760bbb65f8 Updated Credits 2022-10-11 14:12:17 +02:00
c706adc04b Updated How Images work 2022-10-11 13:32:38 +02:00
Olai
9b6792f486
Update README.md 2022-10-11 13:23:05 +02:00
4e4f5baded Win 10 5 2022-10-11 13:20:01 +02:00
eba9a8c7cc a 2022-10-11 13:19:46 +02:00
Olai
ec4962ee37
Update README.md 2022-10-11 13:16:52 +02:00
fc521fe55e removed old images 2022-10-11 13:14:03 +02:00
4e50fa5a7e Release of v1.1.5.1 2022-10-11 13:13:19 +02:00
17 changed files with 927 additions and 467 deletions

BIN
Enhance Windows.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 146 B

813
EnhanceWindows.ps1 Normal file
View file

@ -0,0 +1,813 @@
Add-Type -AssemblyName PresentationFramework
function OlaYZen {
#Clear-Host
write-host " "
write-host "==========================================="
write-host "==========================================="
write-host " "
write-host "YYYY YYYYZZZZZZZZZZZZZZZZZZZZZ "
write-host " Y::Y Y::::::::::::::::::::::::Z "
write-host " Y::Y Y::YYYZZZZZZZZZZZZZZZZZ:::Z "
write-host " Y::Y Y::Y Z:::Z "
write-host " Y:::Y Y:::Y Z:::Z "
write-host " Y:::Y Y:::Y Z:::Z "
write-host " Y:::Y:::Y Z:::Z "
write-host " Y:::::Y Z:::Z "
write-host " Y:::Y Z:::Z "
write-host " Y:::Y Z:::Z "
write-host " Y:::Y Z:::Z "
write-host " Y:::Y Z:::Z "
write-host " Y:::Y Z:::Z "
write-host " Y:::Y Z:::ZZZZZZZZZZZZZZZZ "
write-host " Y:::Y Z:::::::::::::::::::Z "
write-host " YYYYY ZZZZZZZZZZZZZZZZZZZZZ "
write-host " "
write-host "==========================================="
write-host "==========================================="
write-host " "
write-host " "
write-host "============= made by OlaYZen ============="
write-host " "
}
function Test-RegistryValue {
param (
[Parameter(Mandatory=$true)]
[ValidateNotNullOrEmpty()]
[string]$Path,
[Parameter(Mandatory=$true)]
[ValidateNotNullOrEmpty()]
[string]$Value
)
try {
$registryValue = Get-ItemProperty -Path $Path -ErrorAction Stop
if ($registryValue.PSObject.Properties.Name -contains $Value) {
return $true
} else {
return $false
}
}
catch {
return $false
}
}
function PreWin10 {
if (-Not (Test-RegistryValue -Path 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People' -Value 'PeopleBand')) {
Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People" -Name "PeopleBand" -Value 0
}
if (-Not (Test-RegistryValue -Path 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\PenWorkspace' -Value 'PenWorkspaceButtonDesiredVisibility')) {
Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\PenWorkspace" -Name "PenWorkspaceButtonDesiredVisibility" -Value 0
}
if (-Not (Test-RegistryValue -Path 'HKCU:\SOFTWARE\Microsoft\TabletTip\1.7' -Value 'TipbandDesiredVisibility')) {
Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\TabletTip\1.7" -Name "TipbandDesiredVisibility" -Value 0
}
}
$windowsVersion = [System.Environment]::OSVersion.Version.Major
if ($windowsVersion -eq 10) {
PreWin10
} elseif ($windowsVersion -eq 11) {
PreWin11
}
function PreWin11 {
# if (-Not (Test-RegistryValue -Path 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People' -Value 'PeopleBand')) {
# Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People" -Name "PeopleBand" -Value 0
# }
# if (-Not (Test-RegistryValue -Path 'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\PenWorkspace' -Value 'PenWorkspaceButtonDesiredVisibility')) {
# Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\PenWorkspace" -Name "PenWorkspaceButtonDesiredVisibility" -Value 0
# }
# if (-Not (Test-RegistryValue -Path 'HKCU:\SOFTWARE\Microsoft\TabletTip\1.7' -Value 'TipbandDesiredVisibility')) {
# Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\TabletTip\1.7" -Name "TipbandDesiredVisibility" -Value 0
# }
write-host "=------------------------------="
write-host " Windows 11 is still in WIP "
write-host "=------------------------------="
}
$Branch = 'Newest'
powershell.exe -WindowStyle Hidden -file > $null
$inputXML = (new-object Net.WebClient).DownloadString("https://raw.githubusercontent.com/OlaYZen/Enhance-Windows/$Branch/MainWindow.xaml") #uncomment for Production
$inputXML = $inputXML -replace 'mc:Ignorable="d"', '' -replace "x:N", 'N' -replace '^<Win.*', '<Window'
[void][System.Reflection.Assembly]::LoadWithPartialName('presentationframework')
[xml]$XAML = $inputXML
#Read XAML
$reader = (New-Object System.Xml.XmlNodeReader $xaml)
try { $Form = [Windows.Markup.XamlReader]::Load( $reader ) }
catch [System.Management.Automation.MethodInvocationException] {
Write-Warning "We ran into a problem with the XAML code. Check the syntax for this control..."
write-host $error[0].Exception.Message -ForegroundColor Red
If ($error[0].Exception.Message -like "*button*") {
write-warning "Ensure your &lt;button in the `$inputXML does NOT have a Click=ButtonClick property. PS can't handle this`n`n`n`n"
}
}
catch {
Write-Host "Unable to load Windows.Markup.XamlReader. Double-check syntax and ensure .net is installed."
}
#===========================================================================
# Store Form Objects In PowerShell
#===========================================================================
$xaml.SelectNodes("//*[@Name]") | ForEach-Object { Set-Variable -Name "WPF$($_.Name)" -Value $Form.FindName($_.Name) }
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
}
else
{
Set-ItemProperty -path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Search\" -Name "SearchboxTaskbarMode" -Value 2
Stop-Process -n explorer
c:\windows\explorer.exe
}
}
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
}
else
{
Set-ItemProperty -path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\" -Name "ShowTaskViewButton" -Value 1
Stop-Process -n explorer
c:\windows\explorer.exe
}
}
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
}
else
{
Set-ItemProperty -path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "ShowCortanaButton" -Value 1
Stop-Process -n explorer
c:\windows\explorer.exe
}
}
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
}
else
{
Set-ItemProperty -path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People" -Name "PeopleBand" -Value 1
Stop-Process -n explorer
c:\windows\explorer.exe
}
}
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
}
else
{
Set-ItemProperty -path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\PenWorkspace\" -Name "PenWorkspaceButtonDesiredVisibility" -Value 1
Stop-Process -n explorer
c:\windows\explorer.exe
}
}
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
}
else
{
Set-ItemProperty -path "HKCU:\SOFTWARE\Microsoft\TabletTip\1.7" -Name "TipbandDesiredVisibility" -Value 1
Stop-Process -n explorer
c:\windows\explorer.exe
}
}
function Unpinabovewin10(){
if ($WPFUnpin_All_Above.IsChecked)
{
$WPFUnpin_Search.IsChecked = $true
$WPFUnpin_Task_View.IsChecked = $true
$WPFUnpin_Cortana.IsChecked = $true
$WPFUnpin_People.IsChecked = $true
$WPFUnpin_Ink_Workspace.IsChecked = $true
$WPFUnpin_Touch_Keyboard.IsChecked = $true
}
else
{
$WPFUnpin_Search.IsChecked = $false
$WPFUnpin_Task_View.IsChecked = $false
$WPFUnpin_Cortana.IsChecked = $false
$WPFUnpin_People.IsChecked = $false
$WPFUnpin_Ink_Workspace.IsChecked = $false
$WPFUnpin_Touch_Keyboard.IsChecked = $false
Set-ItemProperty -path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Search\" -Name "SearchboxTaskbarMode" -Value 2
Set-ItemProperty -path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\" -Name "ShowTaskViewButton" -Value 1
Set-ItemProperty -path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "ShowCortanaButton" -Value 1
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
}
}
function Unpinabove(){
if ($WPFUnpin_All_Above_11.IsChecked)
{
$WPFUnpin_Search11.IsChecked = $true
$WPFUnpin_Chat.IsChecked = $true
$WPFUnpin_Widget.IsChecked = $true
$WPFUnpin_Task_View_11.IsChecked = $true
}
else
{
$WPFUnpin_Search11.IsChecked = $false
$WPFUnpin_Chat.IsChecked = $false
$WPFUnpin_Widget.IsChecked = $false
$WPFUnpin_Task_View_11.IsChecked = $false
Set-ItemProperty -path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Search\" -Name "SearchboxTaskbarMode" -Value 1
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
}
}
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
}
else
{
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\" -Name "HideFileExt" -Value 1
Stop-Process -n explorer
c:\windows\explorer.exe
}
}
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
}
else
{
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\" -Name "Hidden" -Value 2
Stop-Process -n explorer
c:\windows\explorer.exe
}
}
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
}
else
{
Set-ItemProperty -path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "AutoCheckSelect" -Value 0
Stop-Process -n explorer
c:\windows\explorer.exe
}
}
function HideShell(){
if ($WPFHideShell.IsChecked)
{
powershell.exe -WindowStyle Hidden -file > $null
}
else
{
powershell.exe -WindowStyle Normal -file > $null
}
}
function ChangeTaskBarLocation(){
if ($WPFTaskbarLeft.IsChecked)
{
Set-ItemProperty -path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\" -Name "TaskbarAl" -Value 0
}
else
{
Set-ItemProperty -path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\" -Name "TaskbarAl" -Value 1
}
}
function RemTaskView(){
if ($WPFUnpin_Task_View_11.IsChecked)
{
Set-ItemProperty -path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\" -Name "ShowTaskViewButton" -Value 0
}
else
{
Set-ItemProperty -path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\" -Name "ShowTaskViewButton" -Value 1
}
}
function RemChat(){
if ($WPFUnpin_Chat.IsChecked)
{
Set-ItemProperty -path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\" -Name "TaskbarMn" -Value 0
}
else
{
Set-ItemProperty -path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\" -Name "TaskbarMn" -Value 1
}
}
function RemWidget(){
if ($WPFUnpin_Widget.IsChecked)
{
Set-ItemProperty -path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\" -Name "TaskbarDa" -Value 0
}
else
{
Set-ItemProperty -path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\" -Name "TaskbarDa" -Value 1
}
}
function RemSearch(){
if ($WPFUnpin_Search11.IsChecked)
{
Set-ItemProperty -path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Search\" -Name "SearchboxTaskbarMode" -Value 0
}
else
{
Set-ItemProperty -path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Search\" -Name "SearchboxTaskbarMode" -Value 1
}
}
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
}
else
{
reg.exe delete "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}" /f
Stop-Process -n explorer
c:\windows\explorer.exe
}
}
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
}
}
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
}
}
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
}
}
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
}
else
{
Set-ItemProperty -path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "DisallowShaking" -Value 0
Stop-Process -n explorer
c:\windows\explorer.exe
}
}
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
}
else
{
Set-ItemProperty -path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "ShowSecondsInSystemClock" -Value 0
Stop-Process -n explorer
c:\windows\explorer.exe
}
}
function CompactView(){
if ($WPFCompactView.IsChecked)
{
Set-ItemProperty -path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\" -Name "UseCompactMode" -Value 1
}
else
{
Set-ItemProperty -path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\" -Name "UseCompactMode" -Value 0
}
}
$WPFUnpin_Search.Add_Checked{RemSearchwin10}
$WPFUnpin_Search.Add_UnChecked{RemSearchwin10}
$value6 = Get-ItemProperty -path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Search\" -Name "SearchboxTaskbarMode"
if($value6.SearchboxTaskbarMode -eq 0)
{
$WPFUnpin_Search.IsChecked = $true
}
$WPFUnpin_Task_View.Add_Checked({RemTaskViewwin10})
$WPFUnpin_Task_View.Add_UnChecked({RemTaskViewwin10})
$value7 = Get-ItemProperty -path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\" -Name "ShowTaskViewButton"
if($value7.ShowTaskViewButton -eq 0)
{
$WPFUnpin_Task_View.IsChecked = $true
}
$WPFUnpin_Cortana.Add_Checked({RemCortana})
$WPFUnpin_Cortana.Add_UnChecked({RemCortana})
$value8 = Get-ItemProperty -path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\" -Name "ShowCortanaButton"
if($value8.ShowCortanaButton -eq 0)
{
$WPFUnpin_Cortana.IsChecked = $true
}
$WPFUnpin_People.Add_Checked({RemPeople})
$WPFUnpin_People.Add_UnChecked({RemPeople})
$value9 = Get-ItemProperty -path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People" -Name "PeopleBand"
if ($value9.PeopleBand -eq 0) {
$WPFUnpin_People.IsChecked = $true
}
$WPFUnpin_Ink_Workspace.Add_Checked({RemInkWS})
$WPFUnpin_Ink_Workspace.Add_UnChecked({RemInkWS})
$value10 = Get-ItemProperty -path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\PenWorkspace\" -Name "PenWorkspaceButtonDesiredVisibility"
if ($value10.PenWorkspaceButtonDesiredVisibility -eq 0) {
$WPFUnpin_Ink_Workspace.IsChecked = $true
}
$WPFUnpin_Touch_Keyboard.Add_Checked({RemTouchKey})
$WPFUnpin_Touch_Keyboard.Add_UnChecked({RemTouchKey})
$value11 = Get-ItemProperty -path "HKCU:\SOFTWARE\Microsoft\TabletTip\1.7" -Name "TipbandDesiredVisibility"
if($value11.TipbandDesiredVisibility -eq 0)
{
$WPFUnpin_Touch_Keyboard.IsChecked = $true
}
$WPFTaskbarLeft.Add_Checked({ChangeTaskBarLocation})
$WPFTaskbarLeft.Add_UnChecked({ChangeTaskBarLocation})
$value = Get-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\" -Name "TaskbarAl"
if($value.TaskbarAl -eq 0)
{
$WPFTaskbarLeft.IsChecked = $true
}
$WPFUnpin_Task_View_11.Add_Checked({RemTaskView})
$WPFUnpin_Task_View_11.Add_UnChecked({RemTaskView})
$value2 = Get-ItemProperty -path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\" -Name "ShowTaskViewButton"
if($value2.ShowTaskViewButton -eq 0)
{
$WPFUnpin_Task_View_11.IsChecked = $true
}
$WPFUnpin_Chat.Add_Checked({RemChat})
$WPFUnpin_Chat.Add_UnChecked({RemChat})
$value3 = Get-ItemProperty -path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\" -Name "TaskbarMn"
if($value3.TaskbarMn -eq 0)
{
$WPFUnpin_Chat.IsChecked = $true
}
$WPFUnpin_Widget.Add_Checked({RemWidget})
$WPFUnpin_Widget.Add_UnChecked({RemWidget})
$value4 = Get-ItemProperty -path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\" -Name "TaskbarDa"
if($value4.TaskbarDa -eq 0)
{
$WPFUnpin_Widget.IsChecked = $true
}
$WPFUnpin_Search11.Add_Checked({RemSearch})
$WPFUnpin_Search11.Add_UnChecked({RemSearch})
$value5 = Get-ItemProperty -path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Search\" -Name "SearchboxTaskbarMode"
if($value5.SearchboxTaskbarMode -eq 0)
{
$WPFUnpin_Search11.IsChecked = $true
}
$WPFClockDisplay.Add_Checked({ClockSecs})
$WPFClockDisplay.Add_UnChecked({ClockSecs})
$value12 = Get-ItemProperty -path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "ShowSecondsInSystemClock"
if($value12.ShowSecondsInSystemClock -eq 1)
{
$WPFClockDisplay.IsChecked = $true
}
$WPFRadioButton1.Add_Checked({RadButton1})
$WPFRadioButton1.Add_UnChecked({RadButton1})
$WPFRadioButton2.Add_Checked({RadButton2})
$WPFRadioButton2.Add_UnChecked({RadButton2})
$WPFRadioButton3.Add_Checked({RadButton3})
$WPFRadioButton3.Add_UnChecked({RadButton3})
$value16 = Get-ItemProperty -path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "Start_Layout"
if($value16.Start_Layout -eq 0)
{
$WPFRadioButton1.IsChecked = $true
}
elseif($value16.Start_Layout -eq 1)
{
$WPFRadioButton2.IsChecked = $true
}
elseif($value16.Start_Layout -eq 2)
{
$WPFRadioButton3.IsChecked = $true
}
$WPFWin10RC.Add_Checked({Win10RC})
$WPFWin10RC.Add_UnChecked({Win10RC})
if(Test-Path 'HKCU:\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32')
{
$WPFWin10RC.IsChecked = $true
}
$WPFAeroShake.Add_Checked({DisableAeroShake})
$WPFAeroShake.Add_UnChecked({DisableAeroShake})
$value14 = Get-ItemProperty -path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "DisallowShaking"
if($value14.DisallowShaking -eq 1)
{
$WPFAeroShake.IsChecked = $true
}
#========================================================
# Unpin/pin all
#========================================================
$WPFUnpin_All_Above.Add_Checked({Unpinabovewin10})
$WPFUnpin_All_Above.Add_UnChecked({Unpinabovewin10})
if($value6.SearchboxTaskbarMode -eq 0)
{
if($value7.ShowTaskViewButton -eq 0)
{
if($value8.ShowCortanaButton -eq 0)
{
if($value9.PeopleBand -eq 0)
{
if($value10.PenWorkspaceButtonDesiredVisibility -eq 0)
{
if($value11.TipbandDesiredVisibility -eq 0)
{
$WPFUnpin_All_Above.IsChecked = $true
}
}
}
}
}
}
else {
$WPFUnpin_All_Above.IsChecked = $false
}
$WPFUnpin_All_Above_11.Add_Checked({Unpinabove})
$WPFUnpin_All_Above_11.Add_UnChecked({Unpinabove})
if($value2.ShowTaskViewButton -eq 0)
{
if($value3.TaskbarMn -eq 0)
{
if($value4.TaskbarDa -eq 0)
{
if($value5.SearchboxTaskbarMode -eq 0)
{
$WPFUnpin_All_Above_11.IsChecked = $true
}
}
}
}
else {
$WPFUnpin_All_Above_11.IsChecked = $false
}
$WPFCompactView.Add_Checked({CompactView})
$WPFCompactView.Add_UnChecked({CompactView})
$value30 = Get-ItemProperty -path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "UseCompactMode"
if($value30.UseCompactMode -eq 1)
{
$WPFCompactView.IsChecked = $true
}
$WPFHiddenFiles.Add_Checked({HiddenFiles})
$WPFHiddenFiles.Add_UnChecked({HiddenFiles})
$value31 = Get-ItemProperty -path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "HideFileExt"
if($value31.HideFileExt -eq 0)
{
$WPFHiddenFiles.IsChecked = $true
}
$WPFFileExtensions.Add_Checked({FileExt})
$WPFFileExtensions.Add_UnChecked({FileExt})
$value32 = Get-ItemProperty -path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "Hidden"
if($value32.Hidden -eq 1)
{
$WPFFileExtensions.IsChecked = $true
}
$WPFItemBoxes.Add_Checked({ICBbutton})
$WPFItemBoxes.Add_UnChecked({ICBbutton})
$value17 = Get-ItemProperty -path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "AutoCheckSelect"
if($value17.AutoCheckSelect -eq 1)
{
$WPFItemBoxes.IsChecked = $true
}
$value4 = Get-ItemProperty -path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\" -Name "TaskbarDa"
if($value4.TaskbarDa -eq 0)
{
}
function Win10 {
$WPFUnpin_Search.Visibility = "Visible"
$WPFUnpin_Task_View.Visibility = "Visible"
$WPFUnpin_Cortana.Visibility = "Visible"
$WPFUnpin_People.Visibility = "Visible"
$WPFUnpin_Ink_Workspace.Visibility = "Visible"
$WPFUnpin_Touch_Keyboard.Visibility = "Visible"
$WPFUnpin_All_Above.Visibility = "Visible"
$WPFClockDisplay.Visibility = "Visible"
$WPFOSLabel.Content = "Windows 10 Detected"
}
function Win11 {
$WPFCompactView.Visibility = "Visible"
$WPFGridGroupBox.Visibility = "Visible"
$WPFLabel_22h2.Visibility = "Visible"
$WPFOSLabel.Content = "Windows 11 Detected"
$WPFTaskbarLeft.Visibility = "Visible"
$WPFUnpin_Search11.Visibility = "Visible"
$WPFUnpin_Task_View_11.Visibility = "Visible"
$WPFUnpin_Widget.Visibility = "Visible"
$WPFUnpin_Chat.Visibility = "Visible"
$WPFUnpin_All_Above_11.Visibility = "Visible"
$WPFWin10RC.Visibility = "Visible"
}
#========================================================
# Tab 4 Powershell Settings
#========================================================
$WPFHideShell.Add_Checked({HideShell})
$WPFHideShell.Add_UnChecked({HideShell})
#Disable Both win 10 and 11 stuff
$WPFUnpin_Search.Visibility = "Hidden"
$WPFUnpin_Task_View.Visibility = "Hidden"
$WPFUnpin_Cortana.Visibility = "Hidden"
$WPFUnpin_People.Visibility = "Hidden"
$WPFUnpin_Ink_Workspace.Visibility = "Hidden"
$WPFUnpin_Touch_Keyboard.Visibility = "Hidden"
$WPFUnpin_All_Above.Visibility = "Hidden"
$WPFClockDisplay.Visibility = "Hidden"
$WPFCompactView.Visibility = "Hidden"
$WPFLabel_22h2.Visibility = "Hidden"
$WPFGridGroupBox.Visibility = "Hidden"
$WPFTaskbarLeft.Visibility = "Hidden"
$WPFUnpin_Search11.Visibility = "Hidden"
$WPFUnpin_Task_View_11.Visibility = "Hidden"
$WPFUnpin_Widget.Visibility = "Hidden"
$WPFUnpin_Chat.Visibility = "Hidden"
$WPFUnpin_All_Above_11.Visibility = "Hidden"
$WPFWin10RC.Visibility = "Hidden"
OlaYZen
if ($windowsVersion -eq 10) {
Win10
} elseif ($windowsVersion -eq 11) {
Win11
} else {
$WPFOSLabel.Content = "OS NOT DETECTED"
}
$Form.ShowDialog()

View file

@ -1,450 +0,0 @@
#========================================================
# Starts Powershell with the Modules and as hidden
#========================================================
[void] [System.Reflection.Assembly]::LoadWithPartialName("System.Drawing")
[void] [System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms")
[void] [System.Reflection.Assembly]::LoadWithPartialName("PresentationFramework")
Clear-Host
$host.ui.RawUI.WindowTitle = "Fix Windows 11 Powershell"
#powershell.exe -WindowStyle Hidden -file > $null
#========================================================
# Writes out OlaYZen's Name
#========================================================
write-host " "
write-host "==========================================="
write-host "==========================================="
write-host " "
write-host "YYYY YYYYZZZZZZZZZZZZZZZZZZZZZ "
write-host " Y::Y Y::::::::::::::::::::::::Z "
write-host " Y::Y Y::YYYZZZZZZZZZZZZZZZZZ:::Z "
write-host " Y::Y Y::Y Z:::Z "
write-host " Y:::Y Y:::Y Z:::Z "
write-host " Y:::Y Y:::Y Z:::Z "
write-host " Y:::Y:::Y Z:::Z "
write-host " Y:::::Y Z:::Z "
write-host " Y:::Y Z:::Z "
write-host " Y:::Y Z:::Z "
write-host " Y:::Y Z:::Z "
write-host " Y:::Y Z:::Z "
write-host " Y:::Y Z:::Z "
write-host " Y:::Y Z:::ZZZZZZZZZZZZZZZZ "
write-host " Y:::Y Z:::::::::::::::::::Z "
write-host " YYYYY ZZZZZZZZZZZZZZZZZZZZZ "
write-host " "
write-host "==========================================="
write-host "==========================================="
write-host " "
write-host " "
write-host "============= made by OlaYZen ============="
write-host " "
#=============================================================================================================================
# Form Tab Controll Settings
#=============================================================================================================================
$FormTabControl = New-object System.Windows.Forms.TabControl
$FormTabControl.Size = '496, 541'
$FormTabControl.Location = "0,0"
$FormTabControl.AutoSize = $true
#=============================================================================================================================
# Form Settings
#=============================================================================================================================
$Form = New-Object System.Windows.Forms.Form
$Form.StartPosition = "CenterScreen"
$Form.FormBorderStyle = [System.Windows.Forms.FormBorderStyle]::FixedDialog
$Form.Name = "Form"
$Form.Text = "Fix Windows 11"
$Form.MaximizeBox = $False
$Form.ShowInTaskbar = $true
$Form.Controls.Add($FormTabControl)
#=============================================================================================================================
# Tab1 Settings
#=============================================================================================================================
$Tab1 = New-object System.Windows.Forms.Tabpage
$Tab1.DataBindings.DefaultDataSourceUpdateMode = 0
$Tab1.UseVisualStyleBackColor = $True
$Tab1.Name = "Taskbar Settings"
$Tab1.Text = "Taskbar Settings"
$Tab1.TabIndex = 2
$FormTabControl.Controls.Add($Tab1)
#=============================================================================================================================
# Tab2 Settings
#=============================================================================================================================
$Tab2 = New-object System.Windows.Forms.Tabpage
$Tab2.DataBindings.DefaultDataSourceUpdateMode = 0
$Tab2.UseVisualStyleBackColor = $True
$Tab2.Name = "Explorer Settings"
$Tab2.Text = "Explorer Settings"
$Tab2.TabIndex = 2
$FormTabControl.Controls.Add($Tab2)
#=============================================================================================================================
# Tab3 Settings
#=============================================================================================================================
$Tab3 = New-object System.Windows.Forms.Tabpage
$Tab3.DataBindings.DefaultDataSourceUpdateMode = 0
$Tab3.UseVisualStyleBackColor = $True
$Tab3.Name = "Windows Settings"
$Tab3.Text = "Windows Settings"
$Tab3.TabIndex = 2
$FormTabControl.Controls.Add($Tab3)
function ChangeTaskBarLocation(){
if ($checkBox.Checked)
{
Set-ItemProperty -path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\" -Name "TaskbarAl" -Value 0
}
else
{
Set-ItemProperty -path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\" -Name "TaskbarAl" -Value 1
}
}
function RemTaskView(){
if ($checkBox2.Checked)
{
Set-ItemProperty -path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\" -Name "ShowTaskViewButton" -Value 0
}
else
{
Set-ItemProperty -path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\" -Name "ShowTaskViewButton" -Value 1
}
}
function RemChat(){
if ($checkBox3.Checked)
{
Set-ItemProperty -path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\" -Name "TaskbarMn" -Value 0
}
else
{
Set-ItemProperty -path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\" -Name "TaskbarMn" -Value 1
}
}
function RemWidget(){
if ($checkBox4.Checked)
{
Set-ItemProperty -path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\" -Name "TaskbarDa" -Value 0
}
else
{
Set-ItemProperty -path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\" -Name "TaskbarDa" -Value 1
}
}
function RemSearch(){
if ($checkBox5.Checked)
{
Set-ItemProperty -path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Search\" -Name "SearchboxTaskbarMode" -Value 0
}
else
{
Set-ItemProperty -path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Search\" -Name "SearchboxTaskbarMode" -Value 1
}
}
function Win10RC(){
if ($checkBox6.Checked)
{
reg.exe add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /ve
kill -n explorer
}
else
{
reg.exe delete "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}" /f
kill -n explorer
}
}
function CompactView(){
if ($checkBox7.Checked)
{
Set-ItemProperty -path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\" -Name "UseCompactMode" -Value 1
}
else
{
Set-ItemProperty -path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\" -Name "UseCompactMode" -Value 0
}
}
function FileExt(){
if ($checkBox8.Checked)
{
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\" -Name "HideFileExt" -Value 0
kill -n explorer
c:\windows\explorer.exe
}
else
{
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\" -Name "HideFileExt" -Value 1
kill -n explorer
c:\windows\explorer.exe
}
}
function HiddenFiles(){
if ($checkBox9.Checked)
{
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\" -Name "Hidden" -Value 1
kill -n explorer
c:\windows\explorer.exe
}
else
{
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\" -Name "Hidden" -Value 2
kill -n explorer
c:\windows\explorer.exe
}
}
function DEBLOAT(){
Start-Process https://christitus.com/debloat-windows-10-2020/
}
#========================================================
# Change TaskBar Location to Left
#========================================================
$checkbox = new-object System.Windows.Forms.checkbox
$checkbox.Location ='30,30'
$checkbox.Size = '250,14'
$checkbox.Text = "Change TaskBar Location to Left"
$checkbox.Add_CheckStateChanged({ChangeTaskBarLocation})
$Tab1.Controls.Add($checkbox)
$value = Get-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\" -Name "TaskbarAl"
if($value.TaskbarAl -eq 0)
{
$checkBox.Checked = $true
}
#========================================================
# Unpin Task View
#========================================================
$checkbox2 = new-object System.Windows.Forms.checkbox
$checkbox2.Location ='30,70'
$checkbox2.Size = '250,14'
$checkbox2.Text = "Unpin Task View"
$checkbox2.Add_CheckStateChanged({RemTaskView})
$Tab1.Controls.Add($checkbox2)
$value2 = Get-ItemProperty -path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\" -Name "ShowTaskViewButton"
if($value2.ShowTaskViewButton -eq 0)
{
$checkBox2.Checked = $true
}
#========================================================
# Unpin Chat
#========================================================
$checkbox3 = new-object System.Windows.Forms.checkbox
$checkbox3.Location ='30,110'
$checkbox3.Size = '250,14'
$checkbox3.Text = "Unpin Chat"
$checkbox3.Add_CheckStateChanged({RemChat})
$Tab1.Controls.Add($checkbox3)
$value3 = Get-ItemProperty -path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\" -Name "TaskbarMn"
if($value3.TaskbarMn -eq 0)
{
$checkBox3.Checked = $true
}
#========================================================
# Unpin Widget
#========================================================
$checkbox4 = new-object System.Windows.Forms.checkbox
$checkbox4.Location ='30,90'
$checkbox4.Size = '250,14'
$checkbox4.Text = "Unpin Widget"
$checkbox4.Add_CheckStateChanged({RemWidget})
$Tab1.Controls.Add($checkbox4)
$value4 = Get-ItemProperty -path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\" -Name "TaskbarDa"
if($value4.TaskbarDa -eq 0)
{
$checkBox4.Checked = $true
}
#========================================================
# Unpin Search
#========================================================
$checkbox5 = new-object System.Windows.Forms.checkbox
$checkbox5.Location ='30,50'
$checkbox5.Size = '250,14'
$checkbox5.Text = "Unpin Search"
$checkbox5.Add_CheckStateChanged({RemSearch})
$Tab1.Controls.Add($checkbox5)
$value5 = Get-ItemProperty -path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Search\" -Name "SearchboxTaskbarMode"
if($value5.SearchboxTaskbarMode -eq 0)
{
$checkBox5.Checked = $true
}
#========================================================
# Windows 10 Right Click
#========================================================
$checkbox6 = new-object System.Windows.Forms.checkbox
$checkbox6.Location ='30,30'
$checkbox6.Size = '250,14'
$checkbox6.Text = "Windows 10 Right Click"
$checkbox6.Add_CheckStateChanged({Win10RC})
$Tab3.Controls.Add($checkbox6)
if(Test-Path 'HKCU:\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32')
{
$checkBox6.Checked = $true
}
#========================================================
# Compact View in Explorer
#========================================================
$checkbox7 = new-object System.Windows.Forms.checkbox
$checkbox7.Location ='30,50'
$checkbox7.Size = '250,14'
$checkbox7.Text = "Compact View in Explorer"
$checkbox7.Add_CheckStateChanged({CompactView})
$Tab2.Controls.Add($checkbox7)
$value7 = Get-ItemProperty -path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "UseCompactMode"
if($value7.UseCompactMode -eq 1)
{
$checkBox7.Checked = $true
}
#========================================================
# Show File Extensions in Explorer
#========================================================
$checkbox8 = new-object System.Windows.Forms.checkbox
$checkbox8.Location ='30,70'
$checkbox8.Size = '250,14'
$checkbox8.Text = "Show File Extensions in Explorer"
$checkbox8.Add_CheckStateChanged({FileExt})
$Tab2.Controls.Add($checkbox8)
$value8 = Get-ItemProperty -path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "HideFileExt"
if($value8.HideFileExt -eq 0)
{
$checkBox8.Checked = $true
}
#========================================================
# Show Hidden Files in Explorer
#========================================================
$checkbox9 = new-object System.Windows.Forms.checkbox
$checkbox9.Location ='30,30'
$checkbox9.Size = '250,14'
$checkbox9.Text = "Show Hidden Files in Explorer"
$checkbox9.Add_CheckStateChanged({HiddenFiles})
$Tab2.Controls.Add($checkbox9)
$value9 = Get-ItemProperty -path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "Hidden"
if($value9.Hidden -eq 1)
{
$checkBox9.Checked = $true
}
#========================================================
# Debloat Windows 11
#========================================================
[System.Windows.Forms.Application]::EnableVisualStyles()
$button = New-Object System.Windows.Forms.Button
$button.Location ='30,50'
$button.Size = '95, 35'
$button.Name = "Debloat Windows 11"
$button.Text = "Debloat Windows 11"
$button.BackColor = "White"
$button.Add_Click({DEBLOAT})
$Tab3.Controls.Add($button)
#========================================================
# Info Label
#========================================================
$label = New-Object System.Windows.Forms.Label
$label.Location ='30,500'
$label.Name = 'INFOLABEL'
$label.Text = 'Windows Explorer might open after checking the boxes. Just close it'
$label.Size = '380, 14'
$Tab2.Controls.Add($label)
#========================================================
# Version Label
#========================================================
$versionlabel = New-Object System.Windows.Forms.Label
$versionlabel.Location ='430,500'
$versionlabel.Name = 'Version'
$versionlabel.Text = 'Version 1.0'
$versionlabel.Size = '420, 14'
$Tab1.Controls.Add($versionlabel)
#========================================================
# Version Label
#========================================================
$versionlabel2 = New-Object System.Windows.Forms.Label
$versionlabel2.Location ='430,500'
$versionlabel2.Name = 'Version'
$versionlabel2.Text = 'Version 1.0'
$versionlabel2.Size = '420, 14'
$Tab2.Controls.Add($versionlabel2)
#========================================================
# Version Label
#========================================================
$versionlabel3 = New-Object System.Windows.Forms.Label
$versionlabel3.Location ='430,500'
$versionlabel3.Name = 'Version'
$versionlabel3.Text = 'Version 1.0'
$versionlabel3.Size = '420, 14'
$Tab3.Controls.Add($versionlabel3)
#========================================================
# Adds Custom Icon
#========================================================
$iconBase64 = 'iVBORw0KGgoAAAANSUhEUgAAACAAAAAgBAMAAACBVGfHAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAABtQTFRFAK3vxOz70/H8xez78fr+9fz+1fH81PH8+P3/zZt4hgAAAClJREFUeJxjYIAARgUGVDBCBAwFwUAkEEILMqSXg0FpO4QuHzQuHRgBAFl9DMAqdI3kAAAAAElFTkSuQmCC'
$iconBytes = [Convert]::FromBase64String($iconBase64)
$stream = [System.IO.MemoryStream]::new($iconBytes, 0, $iconBytes.Length)
$Form.Icon = [System.Drawing.Icon]::FromHandle(([System.Drawing.Bitmap]::new($stream).GetHIcon()))
#=============================================================================================================================
# Extra Forms Options
#=============================================================================================================================
$Form.Add_Shown({$Form.Activate()})
$Form.Size = '510, 580'
$Form.Topmost = $true
#=============================================================================================================================
# Shows the Form Window
#=============================================================================================================================
[void]$Form.ShowDialog()
[void]$stream.Dispose()
[void]$Form.Dispose()

BIN
Image.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

72
MainWindow.xaml Normal file
View file

@ -0,0 +1,72 @@
<Window x:Class="WpfApp1.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:WpfApp1"
mc:Ignorable="d"
Title="Enhance Windows" Height="325" Width="673" Topmost="True" ResizeMode="NoResize" Icon="https://raw.githubusercontent.com/OlaYZen/Enhance-Windows/Newest/Enhance%20Windows.png">
<Grid>
<TabControl>
<TabItem x:Name="Tab1" Header="Taskbar Settings">
<Grid Background="White">
<Label x:Name="Label1" Content="Taskbar Settings" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" FontSize="30" FontWeight="Bold"/>
<CheckBox x:Name="Unpin_Search" Content="Unpin Search" HorizontalAlignment="Left" Margin="10,65,0,0" VerticalAlignment="Top" IsChecked="False" ToolTip="Testingers"/>
<CheckBox x:Name="Unpin_Task_View" Content="Unpin Task View" HorizontalAlignment="Left" Margin="10,85,0,0" VerticalAlignment="Top" IsChecked="False"/>
<CheckBox x:Name="Unpin_Cortana" Content="Unpin Cortana" HorizontalAlignment="Left" Margin="10,105,0,0" VerticalAlignment="Top" IsChecked="False"/>
<CheckBox x:Name="Unpin_People" Content="Unpin People" HorizontalAlignment="Left" Margin="10,125,0,0" VerticalAlignment="Top" IsChecked="False"/>
<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="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"/>
<RadioButton x:Name="RadioButton2" Content="More Pins" HorizontalAlignment="Left" Margin="10,30,0,0" VerticalAlignment="Top"/>
<RadioButton x:Name="RadioButton3" Content="More Recommendations" HorizontalAlignment="Left" Margin="10,50,0,0" VerticalAlignment="Top"/>
</Grid>
<CheckBox x:Name="TaskbarLeft" Content="ChangeTaskbar Location to left" HorizontalAlignment="Left" Margin="10,65,0,0" VerticalAlignment="Top" IsChecked="False" ToolTip="Testingers"/>
<CheckBox x:Name="Unpin_Search11" Content="Unpin Search" HorizontalAlignment="Left" Margin="10,85,0,0" VerticalAlignment="Top" IsChecked="False"/>
<CheckBox x:Name="Unpin_Task_View_11" Content="Unpin Task View" HorizontalAlignment="Left" Margin="10,105,0,0" VerticalAlignment="Top" IsChecked="False"/>
<CheckBox x:Name="Unpin_Widget" Content="Unpin Widget" HorizontalAlignment="Left" Margin="10,125,0,0" VerticalAlignment="Top" IsChecked="False"/>
<CheckBox x:Name="Unpin_Chat" Content="Unpin Chat" HorizontalAlignment="Left" Margin="10,145,0,0" VerticalAlignment="Top" IsChecked="False"/>
<CheckBox x:Name="Unpin_All_Above_11" Content="Unpin All Above" HorizontalAlignment="Left" Margin="10,165,0,0" VerticalAlignment="Top" IsChecked="False"/>
</Grid>
</TabItem>
<TabItem x:Name="Tab2" Header="Explorer Settings">
<Grid Background="White">
<Label x:Name="Label2" Content="Explorer Settings" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" FontSize="30" FontWeight="Bold" Grid.ColumnSpan="2"/>
<CheckBox x:Name="HiddenFiles" Content="Show Hidden Files in Explorer" HorizontalAlignment="Left" Margin="10,65,0,0" VerticalAlignment="Top" IsChecked="False" Grid.ColumnSpan="2" Width="179"/>
<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"/>
</Grid>
</TabItem>
<TabItem x:Name="Tab3" Header="Windows Settings">
<Grid Background="White">
<Label x:Name="Label3" Content="Windows Settings" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" FontSize="30" FontWeight="Bold" Grid.ColumnSpan="2"/>
<CheckBox x:Name="ClockDisplay" Content="Taskbar Clock Display Seconds" HorizontalAlignment="Left" Margin="10,65,0,0" VerticalAlignment="Top" IsChecked="False"/>
<CheckBox x:Name="AeroShake" Content="Disable Aero Shake" HorizontalAlignment="Left" Margin="10,85,0,0" VerticalAlignment="Top" IsChecked="False" Grid.ColumnSpan="2"/>
<Button x:Name="DebloatWin" Content="Debloat Windows" HorizontalAlignment="Left" Margin="10,105,0,0" VerticalAlignment="Top" Height="29" Width="188" Background="White"/>
<Button x:Name="InstallApplicationsButton" Content="Install Applications" HorizontalAlignment="Left" Margin="10,139,0,0" VerticalAlignment="Top" Height="29" Width="188" Background="White"/>
<Button x:Name="UpdateWindowsButton" Content="Update Windows" HorizontalAlignment="Left" Margin="10,173,0,0" VerticalAlignment="Top" Height="29" Width="188" Background="White"/>
<CheckBox x:Name="Win10RC" Content="Windows 10 Right Click" HorizontalAlignment="Left" Margin="10,65,0,0" VerticalAlignment="Top" IsChecked="False"/>
</Grid>
</TabItem>
<TabItem x:Name="Tab4" Header="Powershell Settings">
<Grid Background="White">
<Label x:Name="Label4" Content="Powershell Settings" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" FontSize="30" FontWeight="Bold" Grid.ColumnSpan="2"/>
<CheckBox x:Name="HideShell" Content="Hide Console" HorizontalAlignment="Left" Margin="10,65,0,0" VerticalAlignment="Top" IsChecked="True" Grid.ColumnSpan="2" Width="179"/>
</Grid>
</TabItem>
<TabItem x:Name="Tab5" Header="Version">
<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"/>
</Grid>
</TabItem>
</TabControl>
</Grid>
</Window>

View file

@ -1,25 +1,50 @@
# **Fix Windows 11** # **Enhance Windows**
The script makes some part of windows 11 more like windows 10 (example: Desktop Right Click) ![GitHub](https://img.shields.io/github/license/OlaYZen/Enhance-Windows?color=gree&style=for-the-badge)
![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 script Enhances both Windows 10 and 11
## ⭐**How to start the program**⭐
[<img src="https://raw.githubusercontent.com/OlaYZen/Enhance-Windows/Release-v1.0/Image.png"/>](https://github.com/OlaYZen/Fix-Windows-11/blob/master/Fix%20Windows%2011.ps1) Open a powershell window , and type:
## **How to start the program**
Open a Powershell Window, and type:
``` ```
iwr -useb https://enhance.olayzen.com/1.0 | iex iwr -useb https://enhance.olayzen.com/ | iex
``` ```
or Download and run Fix Windows 11.ps1 > 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
<details>
<summary><b>Windows 10 Features</b></summary>
- Taskbar settings
- Windows Explorer settings
- Debloat Windows 10
- Installing Programs
- Windows and Program Updates
- Taskbar Clock Display Seconds
- Remove Aero Shake
</details>
<details>
<summary><b>Windows 11 Features</b></summary>
## **Features**
- Windows 10 Right Click - Windows 10 Right Click
- Windows 11 Start menu adjustments
- Fix Taskbar pinned apps and location - Fix Taskbar pinned apps and location
- Windows Explorer settings - Windows Explorer settings
- Debloat Windows 11
- Windows Explorer tabs before release
- Installing Programs
- Windows and Program Updates
- Remove Aero Shake
</details>
## **Why?** ## 📍Credits📍
Well if you are somewhat of a power-user, you probably hate the way Windows 11 tries to limit the users. Use this script to be more like a power-user - [OlaYZen](https://github.com/OlaYZen) - Making, Doing and Testing everything
## **Current version** ## 🤔Issues🤔
Version **1.0** is the current version of the script - May not work under VM's
- May not work on Debloated Systems