From 3c088f9c9d5851d07920836c3c8be8209e42bfe1 Mon Sep 17 00:00:00 2001 From: Chris Titus Date: Thu, 19 Aug 2021 10:10:44 -0500 Subject: [PATCH 01/63] Improved UndoAll this now removes all local security and group policy items on the PC to make sure it is at stock settings. --- .gitignore | 3 ++- win10debloat.ps1 | 24 ++++++++++++++++++++++-- 2 files changed, 24 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 118c7429..353f57f3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ - +defltbase.jfm OOSU10.exe +defltbase.sdb \ No newline at end of file diff --git a/win10debloat.ps1 b/win10debloat.ps1 index e9c51eb5..98e0b53b 100644 --- a/win10debloat.ps1 +++ b/win10debloat.ps1 @@ -658,8 +658,6 @@ $essentialtweaks.Add_Click({ Write-Host "Stopping and disabling Superfetch service..." Stop-Service "SysMain" -WarningAction SilentlyContinue Set-Service "SysMain" -StartupType Disabled - Write-Host "Setting BIOS time to UTC..." - Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\TimeZoneInformation" -Name "RealTimeIsUniversal" -Type DWord -Value 1 Write-Host "Disabling Hibernation..." Set-ItemProperty -Path "HKLM:\System\CurrentControlSet\Control\Session Manager\Power" -Name "HibernteEnabled" -Type Dword -Value 0 If (!(Test-Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FlyoutMenuSettings")) { @@ -717,6 +715,16 @@ $essentialtweaks.Add_Click({ Write-Host "Disable News and Interests" Set-ItemProperty -Path "HKCU:\SOFTWARE\Policies\Microsoft\Windows\Windows Feeds" -Name "EnableFeeds" -Type DWord -Value 0 + # Remove "News and Interest" from taskbar + Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Feeds" -Name "ShellFeedsTaskbarViewMode" -Type DWord -Value 2 + + # remove "Meet Now" button from taskbar + + If (!(Test-Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer")) { + New-Item -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" -Force | Out-Null + } + +Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" -Name "HideSCAMeetNow" -Type DWord -Value 1 Write-Host "Removing AutoLogger file and restricting directory..." $autoLoggerDir = "$env:PROGRAMDATA\Microsoft\Diagnosis\ETLLogs\AutoLogger" @@ -735,6 +743,11 @@ $essentialtweaks.Add_Click({ Write-Host "Essential Tweaks Completed" }) +$dualboottime.Add_Click({ +Write-Host "Setting BIOS time to UTC..." + Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\TimeZoneInformation" -Name "RealTimeIsUniversal" -Type DWord -Value 1 +}) + $essentialundo.Add_Click({ Write-Host "Creating Restore Point incase something bad happens" Enable-ComputerRestore -Drive "C:\" @@ -841,6 +854,13 @@ $essentialundo.Add_Click({ Write-Host "Hiding known file extensions" Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "HideFileExt" -Type DWord -Value 1 + Write-Host "Reset All Security and Local Group Policies to Stock Defaults" + cmd /c secedit /configure /cfg %windir%\inf\defltbase.inf /db defltbase.sdb /verbose + cmd /c RD /S /Q "%WinDir%\System32\GroupPolicyUsers" + cmd /c RD /S /Q "%WinDir%\System32\GroupPolicy" + cmd /c gpupdate /force + # Considered using Invoke-GPUpdate but requires module most people won't have installed + Write-Host "Essential Undo Completed" }) From aa64442004d2f04cfc9ab14eb443905d8e9f4262 Mon Sep 17 00:00:00 2001 From: Chris Titus Date: Thu, 19 Aug 2021 11:46:51 -0500 Subject: [PATCH 02/63] Update win10debloat.ps1 Issue with local security perms --- win10debloat.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/win10debloat.ps1 b/win10debloat.ps1 index 98e0b53b..dc4464c5 100644 --- a/win10debloat.ps1 +++ b/win10debloat.ps1 @@ -854,8 +854,8 @@ $essentialundo.Add_Click({ Write-Host "Hiding known file extensions" Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "HideFileExt" -Type DWord -Value 1 - Write-Host "Reset All Security and Local Group Policies to Stock Defaults" - cmd /c secedit /configure /cfg %windir%\inf\defltbase.inf /db defltbase.sdb /verbose + Write-Host "Reset Local Group Policies to Stock Defaults" + # cmd /c secedit /configure /cfg %windir%\inf\defltbase.inf /db defltbase.sdb /verbose cmd /c RD /S /Q "%WinDir%\System32\GroupPolicyUsers" cmd /c RD /S /Q "%WinDir%\System32\GroupPolicy" cmd /c gpupdate /force From f2774eac480a71e710f90763ea770ae56d3b6e85 Mon Sep 17 00:00:00 2001 From: Hayden Date: Fri, 27 Aug 2021 21:23:22 -0700 Subject: [PATCH 03/63] Microsoft Store method of installing Winget Installs winget through Microsoft store and resumes script when window closes. --- win10debloat.ps1 | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/win10debloat.ps1 b/win10debloat.ps1 index dc4464c5..d8d7a1c2 100644 --- a/win10debloat.ps1 +++ b/win10debloat.ps1 @@ -23,18 +23,10 @@ Catch{ # winget is not installed. Install it from the Github release Write-Host "winget is not found, installing it right now." - $asset = Invoke-RestMethod -Method Get -Uri 'https://api.github.com/repos/microsoft/winget-cli/releases/latest' | ForEach-Object assets | Where-Object name -like "*.msixbundle" - $output = $PSScriptRoot + "\winget-latest.appxbundle" - Write-Host "Downloading latest winget release" - Invoke-WebRequest -Uri $asset.browser_download_url -OutFile $output + Start-Process "ms-appinstaller:?source=https://aka.ms/getwinget" + $nid = (Get-Process AppInstaller).id + Wait-Process -Id $nid - Write-Host "Installing the winget package" - Add-AppxPackage -Path $output - - Write-Host "Cleanup winget install package" - if (Test-Path -Path $output) { - Remove-Item $output -Force -ErrorAction SilentlyContinue - } } Finally { # Start installing the packages with winget From 106568cf4e7d0840dd7d508480cbc6dd0612ca33 Mon Sep 17 00:00:00 2001 From: Hayden Date: Fri, 27 Aug 2021 21:35:29 -0700 Subject: [PATCH 04/63] Update win10debloat.ps1 Updated documentation to reflect it's installing winget from the microsoft store. --- win10debloat.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/win10debloat.ps1 b/win10debloat.ps1 index d8d7a1c2..706e3afe 100644 --- a/win10debloat.ps1 +++ b/win10debloat.ps1 @@ -20,7 +20,7 @@ Try{ Write-Host "winget is already installed." } Catch{ - # winget is not installed. Install it from the Github release + # winget is not installed. Install it from the Microsoft Store Write-Host "winget is not found, installing it right now." Start-Process "ms-appinstaller:?source=https://aka.ms/getwinget" From 9c0cc78e2a15aed3d42fa1a0b3b236f3ecf290db Mon Sep 17 00:00:00 2001 From: Hayden Date: Mon, 30 Aug 2021 20:53:24 -0700 Subject: [PATCH 05/63] Slimmed Down Winget Check - Slimmed winget check - Edited wording of comments --- win10debloat.ps1 | 27 +++++++++------------------ 1 file changed, 9 insertions(+), 18 deletions(-) diff --git a/win10debloat.ps1 b/win10debloat.ps1 index 706e3afe..e5b53098 100644 --- a/win10debloat.ps1 +++ b/win10debloat.ps1 @@ -13,26 +13,17 @@ If (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]: # GUI Specs Write-Host "Checking winget..." -Try{ - # Check if winget is already installed - $er = (invoke-expression "winget -v") 2>&1 - if ($lastexitcode) {throw $er} - Write-Host "winget is already installed." -} -Catch{ - # winget is not installed. Install it from the Microsoft Store - Write-Host "winget is not found, installing it right now." - +# Check if winget is installed +if (Test-Path ~\AppData\Local\Microsoft\WindowsApps\winget.exe){ + 'Winget Already Installed' +} +else{ + # Installing winget from the Microsoft Store + Write-Host "Winget not found, installing it now." Start-Process "ms-appinstaller:?source=https://aka.ms/getwinget" - $nid = (Get-Process AppInstaller).id + $nid = (Get-Process AppInstaller).Id Wait-Process -Id $nid - -} -Finally { - # Start installing the packages with winget - #Get-Content .\winget.txt | ForEach-Object { - # iex ("winget install -e " + $_) - #} + Write-Host Winget Installed } $Form = New-Object system.Windows.Forms.Form From 75ac51d75dc22e4690a153ee8a822deb32ea0b3d Mon Sep 17 00:00:00 2001 From: Hayden Date: Wed, 1 Sep 2021 19:23:46 -0700 Subject: [PATCH 06/63] Update README.md - Updated readme so it reads better - Added "How to Run" section --- README.md | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 793b5175..0e17f67b 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,19 @@ -# win10script -This is the Ultimate Windows 10 Script from a creation from multiple debloat scripts and gists from github. I am building the script out to be a swiss army knife to help setup new machines and tweak existing ones saving time for all. +# Ultimate Windows 10 Script +This script is the culmination of many scripts and gists from github with features of my own. I am building this script to be a swiss army knife of Windows tools to help setup and optimize machines. ## My Additions +- One command to run +- Full GUI implementation +- Winget install +- Install popular programs with one click +- O&O Shutup 10 CFG and Run +- Dark/Light mode +- Semi-configurable -- Dark Mode -- One Command to launch and run -- Winget Install -- O&O Shutup10 CFG and Run -- Added Install Programs -- Full GUI Implementation -- Some customization +## How to Run +Paste this command into Powershell (admin): +``` +iex ((New-Object System.Net.WebClient).DownloadString('https://git.io/JJ8R4')) +``` For complete details check out https://christitus.com/debloat-windows-10-2020/ From b34b5f04a67916bd034299706bc375aa95584667 Mon Sep 17 00:00:00 2001 From: Chris Titus Date: Thu, 23 Sep 2021 12:27:04 -0500 Subject: [PATCH 07/63] Update LICENSE --- LICENSE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index b78f314c..f2e4ce15 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2021 Chris Titus +Copyright (c) 2021 CT Tech Group, LLC Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal From d8527fc28af8a34710dbd036609d8d31edf94d73 Mon Sep 17 00:00:00 2001 From: Chris Titus Date: Thu, 23 Sep 2021 15:07:19 -0500 Subject: [PATCH 08/63] Big 2021 Update --- MyDefaultAppAssociations.xml | 106 ---- ctt-restore-scripts.png | Bin 21958 -> 0 bytes minimal.ps1 | 26 - restore-ac-tray.ps1 | 185 ------- test.ps1 | 963 ----------------------------------- win10debloat.ps1 | 592 +++++++++++++++++---- 6 files changed, 480 insertions(+), 1392 deletions(-) delete mode 100644 MyDefaultAppAssociations.xml delete mode 100644 ctt-restore-scripts.png delete mode 100644 minimal.ps1 delete mode 100644 restore-ac-tray.ps1 delete mode 100644 test.ps1 diff --git a/MyDefaultAppAssociations.xml b/MyDefaultAppAssociations.xml deleted file mode 100644 index 595e3799..00000000 --- a/MyDefaultAppAssociations.xml +++ /dev/null @@ -1,106 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/ctt-restore-scripts.png b/ctt-restore-scripts.png deleted file mode 100644 index d76376c6ad616a6193aeafc503acb580378fc495..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 21958 zcmXtfV{|2L6YYuZWWtGU+qP|EVms$V6DJefw#~`JwlQ%gwsG@*_ugKs`{~tx`dL-g zRl9cWj!;&VLW0MG2LJ#_GScFz006l5*F6I)^w-tp8&((q02XQ^CZ;SSCPwV!;%I4O zX8{0E$NR?%NdFNg7&MxXG_6GTKy@Bb&ZZBKiV8>tg&nQo#!Q~YZQUF?G zGXZngb=NtVQTlDfef5BAN+Jv@2bYtz+T{IifUzEV4qS=a;+APS>DL z^@8?k&Rb}HS4+Yn?M^zsTFGWj?&_onMag~E@FGga#kkM;IkN`Ox`r{d=KMQG+%8K3TIiC9pe z{omb=>QUdm17zmABDtUY(g7Kw`GBt6S*`=nZ@oOv$@A*wxOo_2F$0Ee08Ch)c6`IK zz}Dvc>Uyu0?)y8yu+b%V-sc?jjZu+a8A-Xt^fcd*?%XPSFw=C z*FzXL83hTLeFR8kR_x8#@~N*!xNZ{KZeou1_7)Cq05KN}6E_QUVow`4Yho!G1!b*3 zWNZL{7$74qqVBbJ=I`mJx48QGxKYWVlR&}bJ>;>=J(Xh~F8~V(TbR_-WI-+rLe_mr zX+76l`|q3+fx#auVSoZB5f*(QG)J}KyC!U)kZY+DxDelLyE%jmvmfuj?Jp1Q5d$gA-5WP``EqKx13ejgQu= zd^``ntOND4B7#z@7-oAB^@2t9x7ahw%C8vOMkEhv=I>=-H~{OF&-U9p1&doO%gcy5 z@95FPcw`fKqY!~5qW6Cu-iN6pQ*{Xfb3BKui9Q~G8rZTrwtGfiPi|X!=U#<28Ov$r z)UHCUCg7prn*gi;oYlnN0kywa;Nw{ii2+Oi6c8am@S!t2TE`X94F}8|jM;#A1g~oJ zcQShp0E1c*+9Qb-OpLLfX{0Y1TbSw<*P?#{k(dY+I$6BS?=Sn8c3_J{AV5+~n)0b9 z95LPRH{=fXJ7VRE&SImh?XN(8ir1`>2Zy>`0c=ZOg}1C)IGOzJ-f^6Fg0tGY52aT2 zK3O))GQcqo_XzYa7~)g`O#m-7hb5{aZkSd*vuV5oZlASP90VxwU2q_+IjEZtTNnxi z4(*rJ@WE6Z!HT5J1>yuaK=0n*3j7RkxW-;DTJMdU^-HrtQ>4~(Wv--fL*pko*3!Xm-hYO^9ovUYWcq`ixh%>$`gsye( zr^dYq4c!mkP&zmM6xlWjE-m{RJHX`+*~?EiIfyEDv!9Wh9*tm_VAK%Ih*!((Gu$bb}(ze3}Rj|oZt)8oVm=aTwq8<3O)d5 zxCiw2`gWm+&CVFRkQH!1TqJJMl$0@S7;n(DTcaF0ie&WG;bLlA-*Jn#T=_e-Lp+z-KCAl_|m-G27)x$F`7WtMG&2j{whGB*m zhGN-|KBPO;5-DFqd9qJt45rKA|0a((W2J!@RhRZiqZUTWH)XKqHNMj%xYR#Xhr_yz}Vc zQsWBxwn_|T({1K{bV-*Meop_ULC^aM0nnhTFy+H3qe(B#xRca?A%7x>X#PJV;JPwF)B$jyjS*qFa_BPH zGa6%X-9?z#v9ahVzhNPiE}dE{b@D=CLRxU~99YTWNz7HpN9LaQ6cxBdX*T92pkz8w z8y)e)`rV%JtZtiseqL0bp54tZQ$h0Sj(ctk&QnW@{vdxFCpW5^ZUo9#%uI`KnE${P zhV4LG=JXgnmPbfOm^YM3Ez$=ZglMTx`Z*tgXIHO0x%*7{uiLX#-7sx%T1CFJ@LU78 z?>0If=sumzmp**4X*!hr&?PqF8em2(`={r9Mwmi5hg!)~A^uej;~-Us+XkLXKV{GU zzfZOmILM$p+Qjb-7!zrutua60X7p4a9PG&=a$m&UnUECi)H90?3_*RQ+BN5Dnf}FV z2<~=0A{iU^hH$7p=unOs(FZsm>^gol(sQtNYx_gz+cfrkI>oTk;m187E$sq&B;)Zi zW|owH5zGA~&960fRRtImfK&(GXURd|CGd)33TFyET#ndrD_k-~^MvfC{2{&2F={mEd1S2E@ zdDI_VF~YJymEpvZ7OCGvk*Z^Qg|k47j?6lH7mn{=V&S7K%vcj67KEe4Vt|Q?z?vn6 z1nof%kP;4jpWXz3qZUk>-sW$jn!zjMX-yBmlI0~Svy^~v)UN)NV2c%V-Ob_OJcP%< z=>EQDaq0p{zblj8OK~d-lOJ2$T3finjwnDhrBij1I?-E_+Lkt{xIBlL-S_4ti?Jc_+{+x@YdHv{OdWO&am z>v%K!2r|v;>>DvZzTeYin~{O+l1Ftl-S#%gF7u8yf&=NwyX$Uz))RWaJ85lvM$KXL zejLg?Fmk*|Zhmww1>cF)!U^Zsl=%&jRSx7q4rON>`XfF_lEYTrpF-2vk^kjjH@S8b8(d~;kSbdO5erb2h!OqR1;L7w zlLWm?jFk76Sf4$*{yk?wBj#1I99_P0c_MF_KEG^Pz%sImwFD{c6x83O72R|5RzB|l z+ULn8NRer${TM~Os1+T233@*~VYV1Hc{ponW3r$&o4!$;ij0>mkrP)!;SKZBU-uMT zY)SJQ74oDI+OTc>O`SZTw#4?#ZhYx|>|L9;p?@Y#m=J&Sm5}#XYfDo(69xFJLJC@!c+|;!yZ?jSu_a z{-P2tx$R+4;T-GneR@O*c(*8UoEcZsD<=cAA%fO@{cZhR_3&xzngp%?-$(R0MA>U1 z1E9kY220h*nP+O_z5b0GUcVPEh1)#ppkt}5EB#(`voh;x8hOp7E|P!25ryXdGabiX zqN!72?$GV-NAfNuEKgekL=Qhe&t$Ob9&HSn9}qbtKgf>YV#>3DQ;4 zRPaMT03vZw6_FriV6!50-Tps%b>a{*JTqjsB~{ar26V9&BoaqqH!jHX>HJyCg9nP= z8MW(8)U~*n$o;n}hE_ANZLhsCN}7sH!1HpB2jG@xu)@pP{*9^FzlUazoBbCW{3EMe zjKX+=fx@m1oa}PZKsoQ1dCrK2u-!M4-J)DUXb7ZoGZlccDlhS+)_4elC!w-C%UuMG zSs?`MLe%V%!O04A=4*bI88J@=W8wax?=6*cPTAX^xa!rjl_U;_ zp3pFS^^@L=jz6KAjd%cuG{LQ#{a355U=X59`Z5_-QKHE4!LJ0wbk#^ldHRK-fStgI z&qs zuFaha_`2EkvP_6F;eEQ&##9WdD!uHOYVi_N)6TY_gI~jUMdjMIUP&8Fx>qlGlSe{I zz407v+#EK)rFanQgp~xlUgX+hnF-D+EY!0L|I5JAnG_crJBX$oA#L@sgn5d z(?{cmK#ergzf?XPF6klTHnE4PI?4~};HXqfEE~K|92eh-paPG1{AaO7QT`ctoCHYC%9o8+A174k z_0`H(6)t8&7xTbn!L~%LUX_M$pt|SfEibJ$aLW=btUt6tDo(~dWEq!F$FPheCz$4W ztn%y-T*VW3yQ;2kG~BepGqz>~Ej99J0P3LDGlTdX2&3q>`FS5Evtc${^?8byTNSpo zH#MB@?bDA8pNf-hAd2;PB>Jf&qT0$;hY8!46iwSy4T)*wy6zw?M2+OZP%4t7;=%FA ztMkdlNivOSI#hXJx0T1Yh*IF_;SlABwG?wDDXl3)$Y!yR!+Of(*CQ~&MzW>yN;Mh7 zM;>ZjK=lSE8}m{8^90416g=NF=7?f6-G^J6DWxN9X*AA^y1CgOH|NPx?HZ)ox@_91 zi2VPCyFN;-n*}(M@vXc3qIjfBXtIE)hKbv^yUq_dKChko^SmUAEV>}Ap7Pg*UiS0G zM((LXW>jQaNuyPw47HF(STY&h=YWQ&=$5QlUAe%~u-Zw;moBM+s)$9__fz$umwo$) z4~TA@I%fCI=kkBut2cJ8&zgvvH-46=3gWfpM+C65+N)rr_Xr)wl`Bidgwi(im*E^4 z5Gduds5}{ftxj@8_NcICMU$|JNWYjNyD$X39j@f+$Oin;ECtXqK)9@iOBq^#v?$Yz z=`qQ92!#p3&Ji6WivL^vP7s;*bYO(uF}803PDp1!w914hizjLc%*Tbm0w&2Wfhdf{*BH?lH^_(6{)1(elkK&>ZSuZu zE=*q)z%giXrB59h)M?fzzT*eKED(K;C$~PFUD@WmjyP{WiDF5CsAAc}LT4LYr}_PS zk+dnCo)17l}vBgQ7 zB~cQ_zZZ-AFFE(h1XFCrE{JEYN&)7=x5GkQJETgWP|aI;X(2fC0#c>QRvW@tz#_$I zaAC{{Rqh-k6A&VQ&moU+(3MlNMwt9CkAtjnOF$*obwz6`5iQ_Y4=3Rx3Mm83tdxH8 zPo_?C!j*E~T^%%H!Ly(eJTyC6X;T{L5V$mX+%FK=-*aWz9Iv!^Sd|s7GR#X$_a$0I zCzBc$SmjY}o)xdfs77RGxlVsJ6j|F(GCzl1rU^~HOm_={i>l|TFCs+m3Av(regR~X zXLx_fnjSB4#ihGJ+|~J1^Geo6-{qzI(G=v@L(dMs`_c|lgDFkr6JdTOWsF_RWkpGZ z6+ay`6z~x#{^5kscf&E~ZK)F$g`(0gcI_l#nUHq&S zTT=AISVsLont+)MXYJx6xY_U&%2^GBUYCGXTzlbGji&P2Z(%Vq^n*n5ZGMbGhGs)@ zs(D)JsV!BVB1Q5y)J17^!M3D!M|0Op@dENWW0RNi9hXCLU>%*Q7L`_Q5M)ywPQ9r zmkcauv)YG=c3*$rqrgdlt&AU@3+oo81uIj>_M)T>Oh3huYbS22LiOkAZL-zTTFIJh zoCCxLPjdh6u$Au87{f~0_V}K*r){5#k}^a?jv+O8%H+*L5{F&+#ZtCX3muKwvfid{ zm?kQSvf}?9$A~Vw6yljTpItQksCvWN_rWf=iB&QPikI zUJ~3VBgy_HC9T4o&Mr@^G705alk=PcC(QN4CRq~hp^6#s&CdHPv?NTW3QO}!d6>JE ztJ75C%O_azFkcmypSfaa$E|U05h}G+Eh5}H!Cx=+T-aBZ(h!v4%$=eYnJo>WjmcqY z<`1#rsM}sz&Vp=vbV*~zwLBXtFOs)gycNIOpcR_XEbzk;XR1})&=gxLv%nBT1S|9( zpvB^gaZgc8lJTauh>SwY@qpkhetIvo<$k!gxu3j=)_4C_JGO_LpjN$MqrG8=j>*{e zXqfW+8#$V?wkmfkvjgiov$fB2)u%E1$6?q;Ib-xt9v)ShIgk09|EUBz0A7?kw54uA z)o*W8Q!yWtr&-f3;OMzJXFklczL|qHPbDDz(D0%)=>z~2%%foH*xG#Cieg;vZ>G3G zsW#-~qI>($r1HPwvLGXRYOlMcOT;e}F!-TN%c@&8kwk?;5YNcg0jWI%3rHS|o{0Z4 zhqFODhvDlx+r2){?jtrr!Q6kDS(&j- zg#$1i(QKB}- z<{W@-bE+2Y)#A?9_SMH)DNKyy=}ot|L?bbI);|(u3;Bb(C$&T;y6qbHCpPTCfC+-u^7`G?rsL}%AWbTp=Ep0B$ zKOMd}oyTl<@xvM(f!BpgLRQXNe;E|oAFAxRJb%_7>b{b5eXs0gQ&maw%kIGG zqc!RnzdgULkvJzAjzn9HmzRw<-=9EaVP#*-)O^UOJVui*5T(x~G(bnU}R>S`4Py@xIQk<0gz0 zwJ{xm>=K;f5L+J4Xex9#pe|)Px?`xibGkb!{7OuZq?QgL{Og#NVa8%De9Dvzmq+4@ zHj3+xdC3;w{q9_$5y?0oGFnn)gCIMot$w!gT3`4&K=r#r3wRl>A_4NrHozeA?*=Dk z5#@#_?n6(77J=1Br&rI^Dl=ZA7}Yl0F3N6`>@4?6zOpR zh%sX#LbRk^i>)%U2|&^G?H2bd@!L-aD>oU{4^$UjTbxM}(;WC3wih}%k82M~`nCE% zDeuEJ+{5=rru$j#rbHG?05v%Qm)~yf2d9AR#6nltq~c{zXUZLXj$f3FfYqH78Gzo` zCe!tI7!n)j)HJ0j``jcXrJ$iI`EvBbwb-hchRo%qwjwbdgkVP7P@uZ(T};{PkI!4w ze{`euWkUMxlzFpZQpJpL=*PZDN zO`nOIHiGBJkg^8&OH_N|rcAPQ8qO$5)<1mP@G{Nh-w*7hY@JGndy~$?1B#*0T6z#TD^Xku03{a=~VFIKa2^$v{lF_pmS%#AD zK2d=8ct9#DvZP3P(JBq3vI!xd{lbXjo6DKTW-f0S?b-f$rE94!5x!y}ZgKL`&HAS+ zDTZ)@t544oXH`F|x5G{x0@)7Ko@55J&$N{1#CR-EMt94g5i9Y|Uw@X#0d~M2Ky=dl z<55)Jp|$2nZEf z#&RBhzDx!ydHdr&t=K?{(f{J|r8Yv^TuIAVSc3O=7Yn+5Q7 zj%ml^t1wa-QO!biC#70_lXW-u^p>ZEZ?8>M%W=6cPis0^svKa~4UB(q%f?KNO>jVC z6W44*hGPMG{)=a4xrfg|>1HK|>H(*-v&2Pd)t*D4RZ!GW;ws)?tWq~*r^~B;5tnX{ zmySdP`lIW6M!icO)sJbm1Kn}z7O|NsaK_}BR1rB*HVL(5xF7{HIzp3dR>!Mb&({sR z{KiE+x4jB9X-KUru??wzDNA3>lT}f72f?5dJA@ zMcunw9!Hg&^OaJj4E#ek{inMvgeu20)LdIK)NC=?2_mnj4*v@Eu#Vd;o%&3lJefef zoZ3F{d=SHnL%%fvss_2XGYf?tBh03{EP~2N{3{l2Mvba5Z}tC68^Ns8-N zpTCDg{Mrw8@~|Z}G*fz0@Vvk3C(-|=?Y|42-FAz{)| z?g^+h+=+xh_RCu0mY?S{N%$V_@DfNc1k+pY287ejGM51!i}34#8PMA({>kaC%UQa0 zdnGLJBm_x}8j3C3W0=rt2TfFh8T|YAS016R{FA?_9P|5TXl6@qYX?r-!6dnWKx;+%5u@)IIv7fuRH!=|l+U$x55 z;(C!9eh(r>s_M{M;s5_yfd7zS4=PCZLjc*I&0`!4i^(^MRk=6?&fY!pn;Zfv!>nFp z9tSqMfu$geIks51GBvx;&VE=}9;eF{Ptactl`=Qc>l?krmtC}!sc!si`_s=Q{nxqL zI58V$VaG}0p$&aieph;;8xPgo#+a8Zs)1OwOR;dDcxrxzhI(zlzB4=p6bXcS9TmyI zJ8nlhAo1v;9WodCheX#?WyGXd4rgtd-;_{X440;3%QmSTJ3JsTfhFDk^s=Gxnhwld z3IqZ&>B#ryl>CeZCjTE6cp@ ze^6Pr_Z+A}Uh*RB@-XzM1sK#bdmc3swI~4tPSeimBv)y$-j6U&4q6D10B&D^O`|s8 z>}(3x;qT9wW>HKCK#~T^do0FDYp zy^iLbLlusZXwDY5%_?$hSq0C`bLnYG#@J1R@3OV-AoCxg8^2j5M+d}7KbuFa&K_O{ z`A}`l?%$+EUU!e5+H2bZzMk8&HN9AyR*ZHa5ENG$^H>)wAm;?`4Nm_3DZAb8gqWn<$E)AYAn?{( zp9Y9|zpf(t66_g+caN81ABoyn{!!|0&g=r8=rw#!mD)}W1I}=KdoiPhg=tb036l5g zTq>U6$9ptx*R8thHe3Akq@vB0n*3h2jf9SP{M&S{eDzSdG$aDag>b@W>#nZ5&H~@e zi@rhR?Wq5d+bYPEQ~l@b_!S6LqEJH*20%yt=M~S4a#ULrUHlWrs(L#^)fE-5_w46= zzBrB0?bUs+ry+^%jEEzLbo=MEQZ&PO6WZ_xHyOn~h(jvg`8h(rzuLcM65!H1dj$&_ z=guSNwB=>ILP>zD_7dBR&4w-Qwf@)3xuo&fv>sr@bj?|EkP(>JXaE6q)HQ)poZWvpx68Kh@%dHbg_U+4N9IW>jrgJG!bUJhviA-|j-|QMw-j-#v}G zhdiq47e8-fav$8VVw#;~o0Cc-g@}mDY|de~jJ^{$d5IowCA%t0cJQtbNS9@24{wbB z#sS_u#_>L2O^oo|uLM)+33)XqN17t+_N4kfMkqB1<=CEAyi5yWzT5n(rr>s}(nD?_ zB(&0avs^hwzW{1=4oGY7vSBxV77NTEK*9(Bbuj3qh}!q;rqc_pOapWNNOQLt{fsj1 z_^-n;psvHKfY$++SJlDwUd0^USSHGoHTTjiV-25TjkZ>Rn$fWrPfZX0)tdS89a$}h zqGEE&h9gPChaSTUd&p0~@-aT!zNCVNXLIp2BPfek)Jp?l;RPK01W>CgoX<(kHbJXc z>^#RPh2*|OkWW&Zgjp{IT|%x*4o2tgjXWAB14A6*1@5ckMkbNPNxQr@_|lGLh`EPu zU>_KI`oo@h0D2%wpprKe;;|y5qgDw_%U5a9J2Py0Y8AMgoU2Mg2}Ykt*(%NC#(q!V z?ya9-G-T8fy>{rX)V#odpNI}1<|oo_*eu?wY;~{d{Cpu7acfv5^g50%yW&{(AbL8y z@n`>LFU%h_I($e4FIsox*6sMbz|!qq)%J5QXVsB_e#=jzp6u|}ypAOzTuPUd**@3o zkDVIdZV&k?fJVD(QDtu1&o0frLW*BhZ7jcd)_gVTefIH)v9QH|9UqB`(D#afS^zFD z7S0U~lpHB4bDMD_6`2nx-u~PxTi1`!^=-E-jI7<>WsmC?J>BRQjDjOw6h6J{%XyF{ z{u_0n$5ERCAA}j?sA6@11$!PNAlJ+O;WGJdh!?fQ#_NZjmn_4;Mv*O3=YMHz)d!XL z6)1))=hj>A_qYlfSwRi$j=5=V$CtToyxE-+#9@FS&;nWnl@gou!08;1YO;Dc!wzsTG#7u~^7 z;`S*Mw?l?h@guO^|6{$4m`YGWTn$Av1wXg3)v6o_9~yvKNFQ6OqH|z5k)xCHn*QGE zYg@6N)hWpDd(m!Gg;9tG1}eDG>(!mGbrTR*9-^*2`zdM`h0Vztoms7nHh~P70qyh{x9bU0eLWC{5aDhm(soQInGUX#zinqBy~Jhp(BK! zp+vb+&YMRbYu#3Ha--DmfQePM)C$*5{C8o|ztw&(xgLWn#Vuc~lj=m1c|OJZCa;TK z*k15!&A7rMtlz76+U>fY&%<`>9R^-hj!0KpYjz+31W5R(N1?hFa}{yCG*$*Sq%+kL zcre;}h9For?oPC|!+)3C>csvnnVmAB&>bSv3+{ktr&5)G6lQgAl?~$;LsUgTkYyd8L)ulL^bT6p&?ZB?74|4jYu}LkX<=7g8&w z{>1w=g8+955>Pms8xpDbElZ;)`0!m}=cYDw^L+#F)zy=VQJlvBDe!Dn%QePP@Snx2 zD)^NIF>&}&(@AYJOU6_k@D&w>{>t-WbLBxcUO_12cG#exnDl=PDI>UkJeWi04S2QR zr+1xCBEmP89jFo3aExXW7+$%6jfGSVKrv^q&-Zg!HxCOOERp7jrF2OJHVefx9rPwH zXo60`o1dM$&R;d4EaJJlIa;Oz$2y$VvPcUjTE(#No~#VDk0$7^7g!f5xZ>|XtpTqX zMP)n&0ai=$T9_2P$yC}h^2QSLH8o*W@)(UE8npiS=qypwka|mX0N+IXTYGjwr)eAoLKCohhLMA zw_*hd_*I)BdDr}2FLa!K4HcB)x;lmZ9b&e}?u0v=@v}}#^^=<+i z&!r6-KX+Vl-xBPzb)T6WM&%jPhMKx$L&^f;MD1>)Y$g*=7DQ<>vxP~z$`$W zW#(X)IkouZE+0QGBL0d8`h&pEu4RK~Im7B3McjGN(UwW-;fH!;3wd~tL<-Cg^tLhM zBlgT}H8^(JV*ifS4X;&wUjSr?6LZHYUE;r>IJ{E7^Y-TNpIx6rhIPuj;tfe(H)4U9xiNmIrNvh+Vvu=Rzt zEE-+{yXmvV_+`kTDv-IV)?@;ITN~?Rn8K169K3K^csm`Vfy0%cxs2*8dI*5^0_A~*>^S8kI(C*td zv!>GS(7zC6QIH-a7>W;Jn3Zi$&*@446NX<*6%jb`+T{vkz{PZfAg|g4uh^{NwY+OG zQXcqq^mh9gVj~uSf`Dj0iB@Z5)kD2R$3;Z*Qz=>!vGc<$()nS$bL`;zo73~z1k4FL zo{a#ag+>P5Pumwg6r#*a56NJ4RXK1K)rMV0@<^j`*CUyX;Staw{nzU|eT+~b^6y!% z9C$Au8AEg`*dx=X$&wLIjQ8#v+7rBfW}J7%3eUF#>h~#Yoq6 zv|(l&pyJEsS13+TNvF0K1tyaFeorMP*{NTYrv9&GN(Iv&eJ|P{R4oq4;R)vpx4bJ= zrPOWwnPz7eQS8MiP9o~NcCJ6LH&5$lfS0&sl_Rj7#^W#)Zmee(cY5WK+IkT(?d@cx zL=Mg|Ix-nF#g9I67Q(qC@?PUJtKpee=BA7HKxl>78_JRbi?5Znir&wDQa+di2St+P zL~x*fk{0bPNBLX*$Q3b<^AakD)-^>ZIlY*QAihb26cz@M-BkIEK?$Ik?6TpzB2%H78HTI?04R7;$Z4j_zvhr=DHms|vudw=Tt%=?l3{#) zm-&QvE_}hhT2lgYq1tqM5HJ{&39ilL#02V?_>Y^7fBUeM96NUTj^xt|IeV8sp1v zV+jP76-ZnKiBfF8kNJd4EB4S;SKkpTwrH}DM|REMR)?a>=tdDf7;GMNohhqe{yNho zhUt*u`4A`hW)cDP)pL%O2vxH;A^!m>%fVC_d#3{J&(Ev78GN|1oZSJXKdcM{E{};`RRrJ8~&jYr)!Q9Mtfm?P11h~nVKUg;Ux%n zz`ez3BRm!k=~~1BViPCaJdcW23;kC{$ert64 z*13i0Z3I-6a3xv$*~A+%zHXFhM*bR;rCywAMwFts zIcPU?(`oe8^8ZB-+Ps+gsuitjB!}@VM&;4rP!Z;-;DwzM(IK{v)fv7|i7;AOyaJ{H zTLrC^-L>|cmkGT8Mfnaz@;!YR8C@cNtvREKQ z#qzP-ha-2_Fetu$C9Q#eqHSdh+J7~VD4ho%E*^))FTOXTW7pjTwNfjd$RT9}ZKitn z=?FR~G*1$;88#LfEd&qd;}4naln#B(sDsSt0V!yA_my34JH_g_zo=muW=W@4sU$@4 zv0e~^aqcM6**&u>?#BU%pq>kO2o4nwo?kuKrg+s++`x7VX>vY|d`F9z|H+R#A)P2# z49RwNX2(&Pig@whC&f+2jK&UPIwI&Y---Md7rC6C_ipm1S%;C|&)MAeWh=o}L&s%8rVl;|qL?5# zxXQebT{}T31H7gH&~-t^hvL{>au%o3yF4kZhj?x7FX9n(7GJ)~w9er4$1c(HtAVr{ zZh2e_Fg#b3MZ1n$$F@QfmEH=%Qq>_4z|bVXms+X64PFvch?Pc9y>JN$$q=iF(_)lG zzhbDlxH9nlUa#z_<@LB+5>`eneUGmYp6XvN-gWGZ1+nRU=E#p>jZ7O^ZLsLONi^NO z#8KtDd0k;zbnugE%OUmA^}VS+UH`mvYNLHwC!QL_mjnP)DdC9%hrO4|oijZB-g6Ts zIWP{1MRI|YJvj8kRCMEK8=HTi`-xxhv9%&N6cLf&KN12dVH-DCTRer?DhWUcuSZqq zhO1D&(*L4{cx2DPWBERVo+@ir>$w=~uVLh`c|iCuCoFYTv$x;qmoPZ4$}Q zn7+vUb1{@>+S`Fom)u6k3yw4$|24hcbxLtnp#)L&smEYX`sN3sFVCxvKc?3hNNYvK z+haBzp%tY^FA#X}IJrDqqBUcnH7KH^Z)1-Ki9~6yz|kIpXJu0_SQd}sef33>{;wsi zailxUr}An_$z?A?Ixm?3JQJsm<4@btR4zYUqta4Y=YvF~q&le_lW=|X<~2Cqzx zdO0uv=<1BzBc9pO&*>{l)rGeIRVh@u2k#5QDyd%|kGR2tx^K>O@U>d{o|7;yRI z1bMrsQs5ihli3$(mfhez?+jmD{Z!)H5TQzeZYZL++&xG5&xKP>#ZGL49M`hd1CAO@ zI0U}l_*|}c)c$E0BRh(-<)GTjMd7vcaeKzLAuU&?{PCxTgu*3%sYro7j3?MBI^^H; zxSr&~hNNlDD%x8AXBObV`LDO+1?i{iv~(weLEC#Q4B&k$i(00qCo>ov;OR6l1GL%G zDOUoATVY9(fwSI{GtT!|yGCXZ>q8sqepV^Q;XTfUDaFd#oNq0kQ~-7qP3Z9U{L1lh zrlWP>W~Zn3d&|o5vK2s0MPS7G9%?^W;TqOaN8QV{c0D-xsxPi)VPVC$(C$d)X*X6? zbiC|4yic23m8KhTQQIqPfWmc37i=>X`6aA1`O|YVDa(Qv=V7b!s_I)bKHD$w=z8F#KJ(jZzbG}alH|tZAs2=)4@lNs)6n~)VO_R2-$sVk%ALO8 zz#z<1no|3p>JWbA7k*aB$K!e}?Hz{Ofqpmhi#l<7KboXd!_0DIP&;2uyF2*eFnVvGs^}0h;0G#Ws!iQM)J&`a+*IuGKY2C==q?1o?d1xajNF(dncdi ztg`fq`?@+5^#Q;sWDm1(o7-9geFh8K@d+YKcSZceWqws6!N3!kS4Z6U z;|Q!6*@DY20S}u|fTh9kTeH=$V^4*4^fSL~359cGoH;o4p?bzxyCV@1Ll)o3%k%ko zf-1S&AtG1S`?F`(8K3G^zj8 z^nkYd(}gXOhoJY7d-p7e?Y&v>1G_eM)Ad#Uq*@@~Oq374Pu@#nXN5>WCy!HyeR_gU z{^qx?>lBti=aCf$V%JO8QS1@iA4#fNzjv%XRwEoQ0cwaAs4QJJyDzhrQkP3>nLqWP zu8|d;oub50@hc$%Kgad>9_=?qpOSaMr>-oZbmF$1{kIC1A3Y}hj|S50xuVerount5 z{N@;@!Hv^c|LF64DRcHXzGT)$jlAt1CRI*F={$SB=KRXuVElSF<&CV9hfW2`m^VKR zYWj^?k>1}pq>q^HUBrHQxP0Y8w@!LmbZ}6iz(b4k=Y1FriBx5&*=Z-om%Q=e3nTMj zx->xoj+>wV$hulG(V4(7!S>5!K#Fg~T7T?j-mbM))kn^TqemzoZ2gh*+A5nEnTU1s zr2XZ@ojO5`-jKE zN$1})hm#bNYxd#VjZcDK4rCyu&>z$?e44439BMLZb11m3Ie~S|=It$W{XBG_{A&Op zMT=V>v_Y!SVCu3023Tx&IDOv~h+p?yE1Z=U-}w5^i9=WdKv2sDi5;+zM&Z`-Vw9s- z#8{W1uniy%C++@hjys153iuA_DH)G|-MwY*=^9_N`Ba?Hs}!o02bMPOG8+wi`M z_0PlOj;lp3{T1e;rTu(fS$K?&OS}F^UCk4anFJqfe>*I^=LdvzXf8UX%$<yE!FmYFT2~O`*VR(wH7-{z-?>p&yV+W--jI#h`J{w;bgDWjf3680$Ex4pJpOQk z+AG0j38*sp%Rfi7N9&}UjJ{(Ox1#J0bAv15+%--Q_%N4qSSeOU`_FO^QNGVch(m0OS-K>xdx$;MpgXpE1btGa(Txaa+sW_V8NYc+K_C|JN%@5YD#W_>uAF=LiYGoA+vsqIOL8np8i+^U{Me-I3fm%Ud*gMWpgukCutypfcmcHpf5iU6Cs<`pa`1snZwesSx8B!`2fjlE0LN zgTrk$Enu?%z|!Y8buQWA&gwbysoPLCs$_oWVHZ%@TiABZ!INGgsGvxWC>!d!NT%d2 z8jE%8yJz7i)Bg1SgjD+0uUwRU-wSK(!tdXy;0j$sZhh6Qlvaf${gcu4$&DERi zf4}d>B;X^6BHf@U$vE?yZyyuGp;p9At_lp0d#RuEB$<`FXe?$QXlxfd_qE!5gD8qa zsjfg}nh1db#2x_cJ*SVfDRPRYeE+o%?7#Wy?SGh`000w(Nkl^4-_x@f??wf8nbyZ*YoblQJXSoy`)!qN0Gkcg;C+ z#gpsD^tT@Ozp%zG{Qm9U^$4~%MTf8aVFitZV#bp@I{to7a*=7C<4B#ZKu^Wb4-PQv zb&5@2o@Bc9sdwzNU)fj5X>`iESAKg|ZOu~@T=UgZ!PgxwKfT%h#H!?K3w7|5PEt_{J;X~oe**dj0;EA#8epZ{B{n(Zbpas0`cn?36_P@M z0hR#LR5dxH^ef*U)$-~6PT2wEsJp?%mChR5b$rXoJ$KID0}x5$Bg)pASLh5{Rc4kN zaR*Q>`xyZcBbp2?R0fgu*!Lq5iY#Y3a$%9m6cnH$0i}H09M~H*ND1LU2zNQ=DaGtZ z0bZ#lDxC=mwHmSTrJ4lkz}%DsD5#Y8MhH3E433>2SpK(kgmM0OnbzfN*V-1pw#Pm7 z&mRuoyK1fjl*SV`0uJxlV=X~PTj{EuN`B)_$wK~_dv3OM`vbA(Kd$Sky8TW)4`4#@ zxa-bEGp$&VToVrfRy@0|ogY0X&sTri%RsS)Qc9oLe4zUeU%jR`-_M3si?Uwaw8wQ) z(H&hql19ttElo;Cus5hxG_85E0f{n2Ln%5dcXAIf;Mv@B`bb^KX&=67r=kyiPpym# zxsMJW@7^-1ND~taF(rE1b=$&eRxG@+k5=jGm$!BD?E8{37>{SD83(9Ty~nddq2iCw1c9c=H(FD2ao>_RBec;vsna!CC7%M&&qJ?&Y@ zfI0vym@vw;V8ST5Mo%NpL@%`;zVTsupz6xpJzt)%kBUM);sGfE0HXKYabwWYHmtw> z_M~h*wv8^)Mn)EDCWKGAZeK9niuo&S1MRn-nxk$Ep%&r4vPt0l^=$`S2WL((s1!Vz zr*7(AHfxL-DDFecJ-h9ZP$(4j)>KQWXQYx=Q4HO!fTrv>h@yz6wjS*M-G3~*p!3(f z=BWlG%-;giz$y)}((ST=E65mck4#%dkX(x|1VGnyY~Rr%KlqOrh-Ey07!7;_y6$QiIJ7*ggZEl~p z_>Fz;cW<0z(rZ+_{6_x08y4jZHk6y5dCwjiGvBuT#;SutC=dr9l*Uf~*jr(7&gY*xo^`!Bz&BPqRFBu8c#QXCMpU!d+wZdc+sZz zg-c%F>t1uy8^z#(3WK&s-`e2#!Oh8F<+gd#thb#{ z1s#eAH@tJiqbM0=*|#unGZlqewzu3!n4ZNUj4@SH8U_`8XP^2>t?rR$#$V|9bMD*t z2^)jFu4Nizr2$sDeFh*)O6DgAHPUTS9c*hn9&Bq2@uQZG1L4AA)1jkW{@5yF$j%ho zsvCuK+mFc(zg$qt>ljMKpH)z(G>AoA0PO_FcY{~EF|_b%d3I_I022t&0?33Y@NtkO zGug$R+%K2;P6BN}G-MY}ZFm8RI%MICU{G`jOjYv#@h~8w6@q@tksthrNqpqlD!IdZ zRgq0sw)y=w?wQS#w=65EiF&)klIBYY2l>rQ3%R*#PF->R#)i;$@*>e|rk)>gNUg5j z8Ct!m#?OtJZ`*Op_yZwF>oF!&Jpg*#hj*GpiqT(sx4P$}Tc>8qO+2Y>gQSzH5s_2Ln`6t8QrV zKeX2#;j3olZd);OU$n=44DmD}4Q&3+7@Cv28~{qbbEf#%3KetLoSJ^ob3b~XZReLK z?hCdxe2RFv83)@BLrF&mWtbs)bNcby;Y>Wx{?2;-r!^*@J*x+Rr(p zLpYm5GE;9gkIOvx#M|v}KX6mtP-yw+;PLL?+f_=MU8vu>v~ar+4jxCmB0>uidGi!Q z9HTs+UznX6N9X=cwSq{;U*h=-r?psVfR%2a9mo><0V0wnNh$!Vqn)*%@)Zka3bnfq zimgYFlZ@OFe$4V2prSY=w~%;YWDrA6p>TZd2I_a8gDBV`2JGxMB{_Zer@88{144}X zqu_3;2c=*DiwD4oLX3#f$c03y4GgN1fFhv`T(q*M`yv<=O}dHpOBewXk(W{yZzX_C z=bjA~%JHMW^76)xHLI5O3dX1JxHf;uJIA|0h`_WwPBzwP%(2WBL*Es;YvJ^))c37=VXeKXd}fYw??;X2p8wyYptOPQs~)C3jRJ@; zy8CPL;@na8f2r^@AM^JJTbGyn#{BTfs>c`HSo)_Iw>ZCEZsfi)0DW7k&v^d0zb+UW zc}0%T@ADm8Qm{D|@JYGY&a$~vAz{WGV2y}egP96u&c?^)6}B!f_l|z}Popkj?vEp$ zBd(T>Eii}%EA@;^rDz%eD5xL^Cx8FFP|N$Tbj|qdjw_aIvPU#c$J{f_Jef7JL_4O~ zrrmS8-naEkW9S4mD#fBvnPHPny?;gJ&Tyyw1ltFv*(IY32`7IJ0C$;aKFPptBOAYl z&Fw(vCE5?*>~-`XWN!`b3#CwS{t1io7OguQnBhC;{rRoQ(Wg>-bJrpFi)TH8IDAr; z43i}iaBQg6o@;n>;}GNC69@UGruhX8a? z>5Yg69gHzc7~O+mhkU{I1dDaZgCuG-y`JZTCg4?^52^FsjCQXyvAbI0smSN`qL z{M7Gpxy5F}E4&Q2xY^iz0K8%}+;!~dtL_BqYQ;B3y}ZdDp*`*(AM!>a zid4{MC`pD{!|AOVoxW)IsoSRR3)q|LK*dJAg2OF(V(Zql@l065WsL; z)OO=UaSTV_q(zIQNQvZfcP59Omwg)TlDp*6l8YUHkVJ8Z@4cD#-f!N_yys=srv$K$ zb`qA;sNwwViLDtRtCQrImwG2AOd?R@_rQNPvef{~;S8u|5Y*j);~|pUMRcjPO*_`ZrZRcA@gH7j2|vog&!YYy!Oug z&6l73!roZF3G65iy$Zkd7ms?jAg~!>{AE=*V%k?V$NkgpQ$v>6ucyrN8sgfnt)&a zg(?Er46Il5n5|=H5p8EkJg@1$DSGt-tuH4dj0I&-AJg+QOwVe1PTtV=VFti&e)nnZ z%txokcL;IzLfM`B^#e+DOk}r4g*O-PNcTj4cmZjki_1zUkihg;=MXn5*>e^s=(J{-)0g6&LM)wm5{Q&ko}bt{Yi(N2X{?j6KSFsfMeXGOoatQ|pv zb|=wOf}hzs!=hsJ+!|XcQ>{Eon))q(apgLBr%|(R7|?e z+pj8swn1gjwhM zx{WS+CgG>BsA+K6eXCGl6$)3NBc`ME= zj1pEBz-0j9(5auzxXrDN;wK+`+-LNZ8$de0Lg%15hVhSEON{qvYvag`BHu#XV&7xI zKjd0r;7SIj%sHFq-gqKTI@8o^vG~Ga8-B6koH2gfiQCv& z*2=~1bB8h_&%N}T^X#(!$rxkduzthz%uM?-*%M$v+yT@rc<0Y<8xcG{A4xBQ<`$Qk z+lMW1jQ3b4|)Pe2xrXz^99d2S)-9F_^RGHjLR1g!3QMX?+PB&zP$AHM;| zrgLK>mtOqi8}?>pJz$j<*E#Y0MjiO&fBLOIs2Jc;46Ip3bd8rE;!cr+sGz7^&~w}v z)A_Yt7XZxfa}j)inCDdM)~7URGm{%OW5_~=L|T*P&k3Q+l&RBYfx&6B6QWHepwAp! zwAsQ(1UP3-i;6%?(meC|(+TJ+Y>sprL;k%&1I(TmRfIrODO5GMDl&kjLO_=6F@7?{ z7J$vQFy02$zcizJ3b4|)Pe7Jytb};3syIg9JmUq!s76Vi$U#{RfP}qWWey_O-nb3; zVfwfklY<-*ISgSqgMJJY=fUl!NHHPZa zR}gIoaS&n8#^EnWR$=_f0q8;q5Oouj{h&I{=@N!+hJ6-2Xc-32gUpezG337!Fo_b0 zCP3QMuk8?k6?Ocg+JdloHi-VEz$yh;Y1=0tOJH|Gyg_c|i3mou7flW`aCPk5h9u+D zju07(2Iqq2W8bfoT7?nmIQ3|_x7|;3;kR4yFHUywqYlKL7v# M07*qoM6N<$f`c$5NdN!< diff --git a/minimal.ps1 b/minimal.ps1 deleted file mode 100644 index bfab93f7..00000000 --- a/minimal.ps1 +++ /dev/null @@ -1,26 +0,0 @@ -########## -# Tweaked Win10 Initial Setup Script -# Primary Author: Disassembler -# Primary Author Source: https://github.com/Disassembler0/Win10-Initial-Setup-Script -# Tweaked Source: https://gist.github.com/alirobe/7f3b34ad89a159e6daa1/ -# -# Note from author: Never run scripts without reading them & understanding what they do. -# -# Addition: One command to rule them all, One command to find it, and One command to Run it! -# -# > powershell -nop -c "iex(New-Object Net.WebClient).DownloadString('https://git.io/JJ8R4')" -# -# Chris Titus Tech Additions: -# -# - Dark Mode -# - One Command to launch and run -# - Chocolatey Install -# - O&O Shutup10 CFG and Run -# - Added Install Programs -# - Added Debloat Microsoft Store Apps -# - Added Confirm Menu for Adobe and Brave Browser -# - Changed Default Apps to Notepad++, Brave, Irfanview, and more using XML Import feature -# -########## -# Default preset -Write-Host "Check out original author source for the CLI Sysadmin script @ https://github.com/Disassembler0/Win10-Initial-Setup-Script" diff --git a/restore-ac-tray.ps1 b/restore-ac-tray.ps1 deleted file mode 100644 index cebf668e..00000000 --- a/restore-ac-tray.ps1 +++ /dev/null @@ -1,185 +0,0 @@ -# This script restores cortana, action center and tray icons to their out of box state - -Add-Type -AssemblyName System.Windows.Forms -[System.Windows.Forms.Application]::EnableVisualStyles() - -$ErrorActionPreference = 'SilentlyContinue' - -$Button = [System.Windows.MessageBoxButton]::YesNoCancel -$ErrorIco = [System.Windows.MessageBoxImage]::Error -$Ask = 'Do you want to run this as an Administrator? - Select "Yes" to Run as an Administrator - Select "No" to not run this as an Administrator - - Select "Cancel" to stop the script.' - -If (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]'Administrator')) { - $Prompt = [System.Windows.MessageBox]::Show($Ask, "Run as an Administrator or not?", $Button, $ErrorIco) - Switch ($Prompt) { - #This will debloat Windows 10 - Yes { - Write-Host "You didn't run this script as an Administrator. This script will self elevate to run as an Administrator and continue." - Start-Process PowerShell.exe -ArgumentList ("-NoProfile -ExecutionPolicy Bypass -File `"{0}`"" -f $PSCommandPath) -Verb RunAs - Exit - } - No { - Break - } - } -} - -Add-Type -AssemblyName System.Windows.Forms -[System.Windows.Forms.Application]::EnableVisualStyles() - -$Form = New-Object system.Windows.Forms.Form -$Form.ClientSize = New-Object System.Drawing.Point(804,708) -$Form.text = "CTT Restore Scripts" -$Form.TopMost = $false - -$PictureBox1 = New-Object system.Windows.Forms.PictureBox -$PictureBox1.width = 600 -$PictureBox1.height = 45 -$PictureBox1.location = New-Object System.Drawing.Point(103,23) -$PictureBox1.imageLocation = "https://raw.githubusercontent.com/ChrisTitusTech/win10script/master/ctt-restore-scripts.png" -$PictureBox1.SizeMode = [System.Windows.Forms.PictureBoxSizeMode]::zoom -$EActionCenter = New-Object system.Windows.Forms.Button -$EActionCenter.text = "Enable Action Center" -$EActionCenter.width = 200 -$EActionCenter.height = 30 -$EActionCenter.location = New-Object System.Drawing.Point(43,99) -$EActionCenter.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',10) - -$ECortana = New-Object system.Windows.Forms.Button -$ECortana.text = "Enable Cortana" -$ECortana.width = 200 -$ECortana.height = 30 -$ECortana.location = New-Object System.Drawing.Point(43,153) -$ECortana.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',10) - -$HTrayIcons = New-Object system.Windows.Forms.Button -$HTrayIcons.text = "Hide Tray Icons" -$HTrayIcons.width = 200 -$HTrayIcons.height = 30 -$HTrayIcons.location = New-Object System.Drawing.Point(407,99) -$HTrayIcons.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',10) - -$EClipboardHistory = New-Object system.Windows.Forms.Button -$EClipboardHistory.text = "Enable Clipboard History" -$EClipboardHistory.width = 200 -$EClipboardHistory.height = 30 -$EClipboardHistory.location = New-Object System.Drawing.Point(407,151) -$EClipboardHistory.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',10) - -$RWDIcon = New-Object system.Windows.Forms.Button -$RWDIcon.text = "Restore Windows Defender Icon" -$RWDIcon.width = 200 -$RWDIcon.height = 45 -$RWDIcon.location = New-Object System.Drawing.Point(43,207) -$RWDIcon.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',10) - -$ELocation = New-Object system.Windows.Forms.Button -$ELocation.text = "Enable Location" -$ELocation.width = 200 -$ELocation.height = 30 -$ELocation.location = New-Object System.Drawing.Point(407,215) -$ELocation.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',10) - -$RWindowsSearch = New-Object system.Windows.Forms.Button -$RWindowsSearch.text = "Restore Windows Search" -$RWindowsSearch.width = 200 -$RWindowsSearch.height = 45 -$RWindowsSearch.location = New-Object System.Drawing.Point(43,276) -$RWindowsSearch.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',10) - -$RBackgroundApps = New-Object system.Windows.Forms.Button -$RBackgroundApps.text = "Restore Background Apps" -$RBackgroundApps.width = 200 -$RBackgroundApps.height = 45 -$RBackgroundApps.location = New-Object System.Drawing.Point(407,279) -$RBackgroundApps.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',10) - -$Form.controls.AddRange(@($PictureBox1,$EActionCenter,$ECortana,$HTrayIcons,$EClipboardHistory,$RWDIcon,$ELocation,$RWindowsSearch,$RBackgroundApps)) - -$EActionCenter.Add_Click({ - Write-Host "Enabling Action Center..." - Remove-ItemProperty -Path "HKCU:\SOFTWARE\Policies\Microsoft\Windows\Explorer" -Name "DisableNotificationCenter" -ErrorAction SilentlyContinue - Remove-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\PushNotifications" -Name "ToastEnabled" -ErrorAction SilentlyContinue - Write-Host "Done - Reverted to Stock Settings" -}) - -$ECortana.Add_Click({ - Write-Host "Enabling Cortana..." - Remove-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Personalization\Settings" -Name "AcceptedPrivacyPolicy" -ErrorAction SilentlyContinue - If (!(Test-Path "HKCU:\SOFTWARE\Microsoft\InputPersonalization\TrainedDataStore")) { - New-Item -Path "HKCU:\SOFTWARE\Microsoft\InputPersonalization\TrainedDataStore" -Force | Out-Null - } - Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\InputPersonalization" -Name "RestrictImplicitTextCollection" -Type DWord -Value 0 - Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\InputPersonalization" -Name "RestrictImplicitInkCollection" -Type DWord -Value 0 - Remove-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\InputPersonalization\TrainedDataStore" -Name "HarvestContacts" -ErrorAction SilentlyContinue - Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search" -Name "AllowCortana" -ErrorAction SilentlyContinue - Write-Host "Done - Reverted to Stock Settings" -}) - -$RWDIcon.Add_Click({ - Write-Host "Restoring Windows Defender Icon..." - Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" -Name "SecurityHealth" -Type ExpandString -Value "%windir%\system32\SecurityHealthSystray.exe" - Write-Host "Done - Reverted to Stock Settings" -}) - -$RWindowsSearch.Add_Click({ - Write-Host "Restoring Windows Search..." - Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" -Name "BingSearchEnabled" -Type DWord -Value "1" - Remove-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" -Name "CortanaConsent" -ErrorAction SilentlyContinue - Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search" -Name "DisableWebSearch" -ErrorAction SilentlyContinue - Write-Host "Restore and Starting Windows Search Service..." - Set-Service "WSearch" -StartupType Automatic - Start-Service "WSearch" -WarningAction SilentlyContinue - Write-Host "Restore Windows Search Icon..." - Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" -Name "SearchboxTaskbarMode" -Type DWord -Value 1 - Write-Host "Done - Reverted to Stock Settings" -}) - -$HTrayIcons.Add_Click({ - $ErrorActionPreference = 'SilentlyContinue' - Write-Host "Hiding tray icons..." - Remove-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" -Name "EnableAutoTray" -ErrorAction SilentlyContinue - Write-Host "Done - Reverted to Stock Settings" -}) - -$EClipboardHistory.Add_Click({ - Write-Host "Restoring Clipboard History..." - Remove-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Clipboard" -Name "EnableClipboardHistory" -ErrorAction SilentlyContinue - Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\System" -Name "AllowClipboardHistory" -ErrorAction SilentlyContinue - Write-Host "Done - Reverted to Stock Settings" -}) - -$ELocation.Add_Click({ - Write-Host "Enabling Location Provider..." - Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\LocationAndSensors" -Name "DisableWindowsLocationProvider" -ErrorAction SilentlyContinue - Write-Host "Enabling Location Scripting..." - Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\LocationAndSensors" -Name "DisableLocationScripting" -ErrorAction SilentlyContinue - Write-Host "Enabling Location..." - Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\LocationAndSensors" -Name "DisableLocation" -ErrorAction SilentlyContinue - Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Sensor\Overrides\{BFA794E4-F964-4FDB-90F6-51056BFE4B44}" -Name "SensorPermissionState" -ErrorAction SilentlyContinue - Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\DeviceAccess\Global\{BFA794E4-F964-4FDB-90F6-51056BFE4B44}" -Name "Value" -Type String -Value "Allow" - Write-Host "Allow access to Location..." - Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location" -Name "Value" -Type String -Value "Allow" - Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\lfsvc\Service\Configuration" -Name "Status" -Type DWord -Value "1" - Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" -Name "LetAppsAccessLocation" -ErrorAction SilentlyContinue - Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" -Name "LetAppsAccessLocation_UserInControlOfTheseApps" -ErrorAction SilentlyContinue - Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" -Name "LetAppsAccessLocation_ForceAllowTheseApps" -ErrorAction SilentlyContinue - Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" -Name "LetAppsAccessLocation_ForceDenyTheseApps" -ErrorAction SilentlyContinue - Write-Host "Done - Reverted to Stock Settings" -}) - -$RBackgroundApps.Add_Click({ - Write-Host "Allowing Background Apps..." - Get-ChildItem -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications" -Exclude "Microsoft.Windows.Cortana*" | ForEach { - Remove-ItemProperty -Path $_.PsPath -Name "Disabled" -ErrorAction SilentlyContinue - Remove-ItemProperty -Path $_.PsPath -Name "DisabledByUser" -ErrorAction SilentlyContinue - } - Write-Host "Done - Reverted to Stock Settings" -}) - - -[void]$Form.ShowDialog() diff --git a/test.ps1 b/test.ps1 deleted file mode 100644 index 50668742..00000000 --- a/test.ps1 +++ /dev/null @@ -1,963 +0,0 @@ -Add-Type -AssemblyName System.Windows.Forms -[System.Windows.Forms.Application]::EnableVisualStyles() - -$ErrorActionPreference = 'SilentlyContinue' -$wshell = New-Object -ComObject Wscript.Shell -$Button = [System.Windows.MessageBoxButton]::YesNoCancel -$ErrorIco = [System.Windows.MessageBoxImage]::Error -$Ask = 'Do you want to run this as an Administrator? - Select "Yes" to Run as an Administrator - Select "No" to not run this as an Administrator - - Select "Cancel" to stop the script.' - -If (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]'Administrator')) { - $Prompt = [System.Windows.MessageBox]::Show($Ask, "Run as an Administrator or not?", $Button, $ErrorIco) - Switch ($Prompt) { - #This will debloat Windows 10 - Yes { - Write-Host "You didn't run this script as an Administrator. This script will self elevate to run as an Administrator and continue." - Start-Process PowerShell.exe -ArgumentList ("-NoProfile -ExecutionPolicy Bypass -File `"{0}`"" -f $PSCommandPath) -Verb RunAs - Exit - } - No { - Break - } - } -} - -$Form = New-Object system.Windows.Forms.Form -$Form.ClientSize = New-Object System.Drawing.Point(1050,700) -$Form.text = "Form" -$Form.TopMost = $false - -$Panel1 = New-Object system.Windows.Forms.Panel -$Panel1.height = 156 -$Panel1.width = 1032 -$Panel1.location = New-Object System.Drawing.Point(9,90) - -$Label1 = New-Object system.Windows.Forms.Label -$Label1.text = "Program Installation" -$Label1.AutoSize = $true -$Label1.width = 25 -$Label1.height = 10 -$Label1.location = New-Object System.Drawing.Point(10,30) -$Label1.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',30) - -$installchoco = New-Object system.Windows.Forms.Button -$installchoco.text = "Install Chocolatey" -$installchoco.width = 200 -$installchoco.height = 115 -$installchoco.location = New-Object System.Drawing.Point(16,19) -$installchoco.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',16) - -$brave = New-Object system.Windows.Forms.Button -$brave.text = "Brave Browser" -$brave.width = 150 -$brave.height = 30 -$brave.location = New-Object System.Drawing.Point(250,19) -$brave.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) - -$firefox = New-Object system.Windows.Forms.Button -$firefox.text = "Firefox" -$firefox.width = 150 -$firefox.height = 30 -$firefox.location = New-Object System.Drawing.Point(250,61) -$firefox.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) - -$7zip = New-Object system.Windows.Forms.Button -$7zip.text = "7-Zip" -$7zip.width = 150 -$7zip.height = 30 -$7zip.location = New-Object System.Drawing.Point(584,104) -$7zip.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) - -$irfanview = New-Object system.Windows.Forms.Button -$irfanview.text = "Irfanview" -$irfanview.width = 150 -$irfanview.height = 30 -$irfanview.location = New-Object System.Drawing.Point(417,19) -$irfanview.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) - -$adobereader = New-Object system.Windows.Forms.Button -$adobereader.text = "Adobe Reader DC" -$adobereader.width = 150 -$adobereader.height = 30 -$adobereader.location = New-Object System.Drawing.Point(417,61) -$adobereader.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) - -$notepad = New-Object system.Windows.Forms.Button -$notepad.text = "Notepad++" -$notepad.width = 150 -$notepad.height = 30 -$notepad.location = New-Object System.Drawing.Point(417,104) -$notepad.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) - -$gchrome = New-Object system.Windows.Forms.Button -$gchrome.text = "Google Chrome" -$gchrome.width = 150 -$gchrome.height = 30 -$gchrome.location = New-Object System.Drawing.Point(250,104) -$gchrome.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) - -$mpc = New-Object system.Windows.Forms.Button -$mpc.text = "Media Player Classic" -$mpc.width = 150 -$mpc.height = 30 -$mpc.location = New-Object System.Drawing.Point(584,61) -$mpc.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) - -$vlc = New-Object system.Windows.Forms.Button -$vlc.text = "VLC" -$vlc.width = 150 -$vlc.height = 30 -$vlc.location = New-Object System.Drawing.Point(584,19) -$vlc.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) - -$powertoys = New-Object system.Windows.Forms.Button -$powertoys.text = "PowerToys" -$powertoys.width = 150 -$powertoys.height = 30 -$powertoys.location = New-Object System.Drawing.Point(751,105) -$powertoys.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) - -$winterminal = New-Object system.Windows.Forms.Button -$winterminal.text = "Windows Terminal" -$winterminal.width = 150 -$winterminal.height = 30 -$winterminal.location = New-Object System.Drawing.Point(751,61) -$winterminal.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) - -$vscode = New-Object system.Windows.Forms.Button -$vscode.text = "VS Code" -$vscode.width = 150 -$vscode.height = 30 -$vscode.location = New-Object System.Drawing.Point(751,19) -$vscode.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) - -$Label2 = New-Object system.Windows.Forms.Label -$Label2.text = "(Chocolatey Required for installs)" -$Label2.AutoSize = $true -$Label2.width = 25 -$Label2.height = 10 -$Label2.location = New-Object System.Drawing.Point(478,3) -$Label2.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',10) - -$Panel2 = New-Object system.Windows.Forms.Panel -$Panel2.height = 159 -$Panel2.width = 588 -$Panel2.location = New-Object System.Drawing.Point(9,293) - -$Label3 = New-Object system.Windows.Forms.Label -$Label3.text = "System Tweaks" -$Label3.AutoSize = $true -$Label3.width = 230 -$Label3.height = 25 -$Label3.location = New-Object System.Drawing.Point(195,251) -$Label3.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',24) - -$essentialtweaks = New-Object system.Windows.Forms.Button -$essentialtweaks.text = "Essential Tweaks" -$essentialtweaks.width = 200 -$essentialtweaks.height = 115 -$essentialtweaks.location = New-Object System.Drawing.Point(24,34) -$essentialtweaks.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',14) - -$backgroundapps = New-Object system.Windows.Forms.Button -$backgroundapps.text = "Background Apps" -$backgroundapps.width = 150 -$backgroundapps.height = 30 -$backgroundapps.location = New-Object System.Drawing.Point(251,45) -$backgroundapps.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) - -$cortana = New-Object system.Windows.Forms.Button -$cortana.text = "Cortana" -$cortana.width = 150 -$cortana.height = 30 -$cortana.location = New-Object System.Drawing.Point(251,82) -$cortana.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) - -$windowssearch = New-Object system.Windows.Forms.Button -$windowssearch.text = "Windows Search" -$windowssearch.width = 150 -$windowssearch.height = 30 -$windowssearch.location = New-Object System.Drawing.Point(417,119) -$windowssearch.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) - -$actioncenter = New-Object system.Windows.Forms.Button -$actioncenter.text = "Action Center" -$actioncenter.width = 150 -$actioncenter.height = 30 -$actioncenter.location = New-Object System.Drawing.Point(251,9) -$actioncenter.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) - -$darkmode = New-Object system.Windows.Forms.Button -$darkmode.text = "Dark Mode" -$darkmode.width = 150 -$darkmode.height = 30 -$darkmode.location = New-Object System.Drawing.Point(417,7) -$darkmode.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) - -$visualfx = New-Object system.Windows.Forms.Button -$visualfx.text = "Visual FX" -$visualfx.width = 150 -$visualfx.height = 30 -$visualfx.location = New-Object System.Drawing.Point(417,82) -$visualfx.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) - -$onedrive = New-Object system.Windows.Forms.Button -$onedrive.text = "OneDrive" -$onedrive.width = 150 -$onedrive.height = 30 -$onedrive.location = New-Object System.Drawing.Point(251,119) -$onedrive.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) - -$Panel3 = New-Object system.Windows.Forms.Panel -$Panel3.height = 158 -$Panel3.width = 440 -$Panel3.location = New-Object System.Drawing.Point(601,293) - -$Label4 = New-Object system.Windows.Forms.Label -$Label4.text = "Security" -$Label4.AutoSize = $true -$Label4.width = 117 -$Label4.height = 25 -$Label4.location = New-Object System.Drawing.Point(761,252) -$Label4.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',24) - -$securitylow = New-Object system.Windows.Forms.Button -$securitylow.text = "Low" -$securitylow.width = 150 -$securitylow.height = 30 -$securitylow.location = New-Object System.Drawing.Point(36,119) -$securitylow.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',15,[System.Drawing.FontStyle]([System.Drawing.FontStyle]::Bold)) - -$securityhigh = New-Object system.Windows.Forms.Button -$securityhigh.text = "High" -$securityhigh.width = 150 -$securityhigh.height = 30 -$securityhigh.location = New-Object System.Drawing.Point(244,119) -$securityhigh.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',15,[System.Drawing.FontStyle]([System.Drawing.FontStyle]::Bold)) - -$Label5 = New-Object system.Windows.Forms.Label -$Label5.text = "- Set UAC to Never Prompt" -$Label5.AutoSize = $true -$Label5.width = 150 -$Label5.height = 10 -$Label5.location = New-Object System.Drawing.Point(24,40) -$Label5.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',10) - -$Label6 = New-Object system.Windows.Forms.Label -$Label6.text = "- Disable Windows Defender" -$Label6.AutoSize = $true -$Label6.width = 150 -$Label6.height = 10 -$Label6.location = New-Object System.Drawing.Point(24,6) -$Label6.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',10) - -$Label7 = New-Object system.Windows.Forms.Label -$Label7.text = "- Disable Defender Updates" -$Label7.AutoSize = $true -$Label7.width = 150 -$Label7.height = 10 -$Label7.location = New-Object System.Drawing.Point(24,23) -$Label7.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',10) - -$Label8 = New-Object system.Windows.Forms.Label -$Label8.text = "- Disable Windows Malware Scan" -$Label8.AutoSize = $true -$Label8.width = 150 -$Label8.height = 10 -$Label8.location = New-Object System.Drawing.Point(24,75) -$Label8.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',10) - -$Label9 = New-Object system.Windows.Forms.Label -$Label9.text = "- Disable Meltdown Flag" -$Label9.AutoSize = $true -$Label9.width = 150 -$Label9.height = 10 -$Label9.location = New-Object System.Drawing.Point(24,58) -$Label9.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',10) - -$Label10 = New-Object system.Windows.Forms.Label -$Label10.text = "- Set UAC to Always Prompt" -$Label10.AutoSize = $true -$Label10.width = 25 -$Label10.height = 10 -$Label10.location = New-Object System.Drawing.Point(233,40) -$Label10.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',10) - -$Label11 = New-Object system.Windows.Forms.Label -$Label11.text = "- Enable Windows Defender" -$Label11.AutoSize = $true -$Label11.width = 25 -$Label11.height = 10 -$Label11.location = New-Object System.Drawing.Point(233,57) -$Label11.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',10) - -$Label12 = New-Object system.Windows.Forms.Label -$Label12.text = "- Enable Windows Malware Scan" -$Label12.AutoSize = $true -$Label12.width = 25 -$Label12.height = 10 -$Label12.location = New-Object System.Drawing.Point(233,6) -$Label12.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',10) - -$Label13 = New-Object system.Windows.Forms.Label -$Label13.text = "- Enable Meltdown Flag" -$Label13.AutoSize = $true -$Label13.width = 25 -$Label13.height = 10 -$Label13.location = New-Object System.Drawing.Point(233,23) -$Label13.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',10) - -$Label15 = New-Object system.Windows.Forms.Label -$Label15.text = "Windows Update" -$Label15.AutoSize = $true -$Label15.width = 25 -$Label15.height = 10 -$Label15.location = New-Object System.Drawing.Point(58,459) -$Label15.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',24) - -$Panel4 = New-Object system.Windows.Forms.Panel -$Panel4.height = 168 -$Panel4.width = 340 -$Panel4.location = New-Object System.Drawing.Point(9,491) - -$defaultwindowsupdate = New-Object system.Windows.Forms.Button -$defaultwindowsupdate.text = "Default Settings" -$defaultwindowsupdate.width = 300 -$defaultwindowsupdate.height = 30 -$defaultwindowsupdate.location = New-Object System.Drawing.Point(20,13) -$defaultwindowsupdate.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',14) - -$securitywindowsupdate = New-Object system.Windows.Forms.Button -$securitywindowsupdate.text = "Security Updates Only" -$securitywindowsupdate.width = 300 -$securitywindowsupdate.height = 30 -$securitywindowsupdate.location = New-Object System.Drawing.Point(20,119) -$securitywindowsupdate.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',14) - -$Label16 = New-Object system.Windows.Forms.Label -$Label16.text = "I recommend doing security updates only." -$Label16.AutoSize = $true -$Label16.width = 25 -$Label16.height = 10 -$Label16.location = New-Object System.Drawing.Point(47,49) -$Label16.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',10) - -$Label17 = New-Object system.Windows.Forms.Label -$Label17.text = "- Delays Features updates up to 3 years" -$Label17.AutoSize = $true -$Label17.width = 25 -$Label17.height = 10 -$Label17.location = New-Object System.Drawing.Point(71,66) -$Label17.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',10) - -$Label18 = New-Object system.Windows.Forms.Label -$Label18.text = "- Delays Security updates 4 days" -$Label18.AutoSize = $true -$Label18.width = 25 -$Label18.height = 10 -$Label18.location = New-Object System.Drawing.Point(71,84) -$Label18.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',10) - -$Label19 = New-Object system.Windows.Forms.Label -$Label19.text = "- Sets Maximum Active Time" -$Label19.AutoSize = $true -$Label19.width = 25 -$Label19.height = 10 -$Label19.location = New-Object System.Drawing.Point(71,103) -$Label19.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',10) - -$Label20 = New-Object system.Windows.Forms.Label -$Label20.text = "Instructions" -$Label20.AutoSize = $true -$Label20.width = 169 -$Label20.height = 23 -$Label20.location = New-Object System.Drawing.Point(581,463) -$Label20.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',24) - -$Label21 = New-Object system.Windows.Forms.Label -$Label21.text = "- This will modify your system and I highly recommend backing up any data you have prior to running!" -$Label21.AutoSize = $true -$Label21.width = 150 -$Label21.height = 10 -$Label21.location = New-Object System.Drawing.Point(390,507) -$Label21.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',10) - -$Label22 = New-Object system.Windows.Forms.Label -$Label22.text = "(Unsure!?... Just apply Essential Tweaks)" -$Label22.AutoSize = $true -$Label22.width = 150 -$Label22.height = 10 -$Label22.location = New-Object System.Drawing.Point(4,14) -$Label22.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',10) - -$Label23 = New-Object system.Windows.Forms.Label -$Label23.text = "- Need to Restore action center, cortana, etc.? Run the Restore Script: https://youtu.be/H2ydDcqRZyM" -$Label23.AutoSize = $true -$Label23.width = 150 -$Label23.height = 10 -$Label23.location = New-Object System.Drawing.Point(390,529) -$Label23.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',10) - -$PictureBox1 = New-Object system.Windows.Forms.PictureBox -$PictureBox1.width = 412 -$PictureBox1.height = 125 -$PictureBox1.location = New-Object System.Drawing.Point(449,541) -$PictureBox1.imageLocation = "https://github.com/ChrisTitusTech/win10script/blob/master/titus-toolbox.png?raw=true" -$PictureBox1.SizeMode = [System.Windows.Forms.PictureBoxSizeMode]::zoom -$lightmode = New-Object system.Windows.Forms.Button -$lightmode.text = "Light Mode" -$lightmode.width = 150 -$lightmode.height = 30 -$lightmode.location = New-Object System.Drawing.Point(417,45) -$lightmode.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) - -$Form.controls.AddRange(@($Panel1,$Label1,$Panel2,$Label3,$Panel3,$Label4,$Label15,$Panel4,$Label20,$Label21,$Label23,$PictureBox1)) -$Panel1.controls.AddRange(@($installchoco,$brave,$firefox,$7zip,$irfanview,$adobereader,$notepad,$gchrome,$mpc,$vlc,$powertoys,$winterminal,$vscode,$Label2)) -$Panel2.controls.AddRange(@($essentialtweaks,$backgroundapps,$cortana,$windowssearch,$actioncenter,$darkmode,$visualfx,$onedrive,$Label22,$lightmode)) -$Panel3.controls.AddRange(@($securitylow,$securityhigh,$Label5,$Label6,$Label7,$Label8,$Label9,$Label10,$Label11,$Label12,$Label13)) -$Panel4.controls.AddRange(@($defaultwindowsupdate,$securitywindowsupdate,$Label16,$Label17,$Label18,$Label19)) - - -$installchoco.Add_Click({ - Write-Host "Installing Chocolatey" - Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) - choco install chocolatey-core.extension -y - $wshell.Popup("Operation Completed",0,"Done",0x0) -}) - -$brave.Add_Click({ - Invoke-WebRequest -Uri "https://laptop-updates.brave.com/download/CHR253" -OutFile $env:USERPROFILE\Downloads\brave.exe - ~/Downloads/brave.exe -}) - -$firefox.Add_Click({ - Write-Host "Installing Firefox" - choco install firefox -y - $wshell.Popup("Operation Completed",0,"Done",0x0) -}) - -$irfanview.Add_Click({ - Write-Host "Installing Irfanview (Image Viewer)" - choco install irfanview -y - $wshell.Popup("Operation Completed",0,"Done",0x0) -}) - -$adobereader.Add_Click({ - Write-Host "Installing Adobe Reader DC" - choco install adobereader -y - $wshell.Popup("Operation Completed",0,"Done",0x0) -}) - -$notepad.Add_Click({ - Write-Host "Installing Notepad++" - choco install notepadplusplus -y - $wshell.Popup("Operation Completed",0,"Done",0x0) -}) - -$vlc.Add_Click({ - Write-Host "Installing VLC Media Player" - choco install vlc -y - $wshell.Popup("Operation Completed",0,"Done",0x0) -}) - -$mpc.Add_Click({ - Write-Host "Installing Media Player Classic" - choco install mpc-be -y - $wshell.Popup("Operation Completed",0,"Done",0x0) -}) - -$7zip.Add_Click({ - Write-Host "Installing 7-Zip Compression Tool" - choco install 7zip -y - $wshell.Popup("Operation Completed",0,"Done",0x0) -}) - -$vscode.Add_Click({ - Write-Host "Installing Visual Studio Code" - choco install vscode -y - $wshell.Popup("Operation Completed",0,"Done",0x0) -}) - -$winterminal.Add_Click({ - Write-Host "Installing New Windows Terminal" - choco install microsoft-windows-terminal -y - $wshell.Popup("Operation Completed",0,"Done",0x0) -}) - -$powertoys.Add_Click({ - Write-Host "Installing Microsoft PowerToys" - choco install powertoys -y - $wshell.Popup("Operation Completed",0,"Done",0x0) -}) - -$essentialtweaks.Add_Click({ - Write-Host "Creating Restore Point incase something bad happens" - Enable-ComputerRestore -Drive "C:\" - Checkpoint-Computer -Description "RestorePoint1" -RestorePointType "MODIFY_SETTINGS" - - Write-Host "Running O&O Shutup with Recommended Settings" - Import-Module BitsTransfer - Start-BitsTransfer -Source "https://raw.githubusercontent.com/ChrisTitusTech/win10script/master/ooshutup10.cfg" -Destination ooshutup10.cfg - Start-BitsTransfer -Source "https://dl5.oo-software.com/files/ooshutup10/OOSU10.exe" -Destination OOSU10.exe - ./OOSU10.exe ooshutup10.cfg /quiet - - Write-Host "Disabling Telemetry..." - Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\DataCollection" -Name "AllowTelemetry" -Type DWord -Value 0 - Set-ItemProperty -Path "HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Policies\DataCollection" -Name "AllowTelemetry" -Type DWord -Value 0 - Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DataCollection" -Name "AllowTelemetry" -Type DWord -Value 0 - Disable-ScheduledTask -TaskName "Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser" | Out-Null - Disable-ScheduledTask -TaskName "Microsoft\Windows\Application Experience\ProgramDataUpdater" | Out-Null - Disable-ScheduledTask -TaskName "Microsoft\Windows\Autochk\Proxy" | Out-Null - Disable-ScheduledTask -TaskName "Microsoft\Windows\Customer Experience Improvement Program\Consolidator" | Out-Null - Disable-ScheduledTask -TaskName "Microsoft\Windows\Customer Experience Improvement Program\UsbCeip" | Out-Null - Disable-ScheduledTask -TaskName "Microsoft\Windows\DiskDiagnostic\Microsoft-Windows-DiskDiagnosticDataCollector" | Out-Null - Write-Host "Disabling Application suggestions..." - Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Name "ContentDeliveryAllowed" -Type DWord -Value 0 - Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Name "OemPreInstalledAppsEnabled" -Type DWord -Value 0 - Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Name "PreInstalledAppsEnabled" -Type DWord -Value 0 - Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Name "PreInstalledAppsEverEnabled" -Type DWord -Value 0 - Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Name "SilentInstalledAppsEnabled" -Type DWord -Value 0 - Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Name "SubscribedContent-338387Enabled" -Type DWord -Value 0 - Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Name "SubscribedContent-338388Enabled" -Type DWord -Value 0 - Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Name "SubscribedContent-338389Enabled" -Type DWord -Value 0 - Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Name "SubscribedContent-353698Enabled" -Type DWord -Value 0 - Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Name "SystemPaneSuggestionsEnabled" -Type DWord -Value 0 - If (!(Test-Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\CloudContent")) { - New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\CloudContent" -Force | Out-Null - } - Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\CloudContent" -Name "DisableWindowsConsumerFeatures" -Type DWord -Value 1 - Write-Host "Disabling Activity History..." - Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\System" -Name "EnableActivityFeed" -Type DWord -Value 0 - Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\System" -Name "PublishUserActivities" -Type DWord -Value 0 - Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\System" -Name "UploadUserActivities" -Type DWord -Value 0 - Write-Host "Disabling Location Tracking..." - If (!(Test-Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location")) { - New-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location" -Force | Out-Null - } - Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location" -Name "Value" -Type String -Value "Deny" - Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Sensor\Overrides\{BFA794E4-F964-4FDB-90F6-51056BFE4B44}" -Name "SensorPermissionState" -Type DWord -Value 0 - Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\lfsvc\Service\Configuration" -Name "Status" -Type DWord -Value 0 - Write-Host "Disabling automatic Maps updates..." - Set-ItemProperty -Path "HKLM:\SYSTEM\Maps" -Name "AutoUpdateEnabled" -Type DWord -Value 0 - Write-Host "Disabling Feedback..." - If (!(Test-Path "HKCU:\SOFTWARE\Microsoft\Siuf\Rules")) { - New-Item -Path "HKCU:\SOFTWARE\Microsoft\Siuf\Rules" -Force | Out-Null - } - Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Siuf\Rules" -Name "NumberOfSIUFInPeriod" -Type DWord -Value 0 - Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DataCollection" -Name "DoNotShowFeedbackNotifications" -Type DWord -Value 1 - Disable-ScheduledTask -TaskName "Microsoft\Windows\Feedback\Siuf\DmClient" -ErrorAction SilentlyContinue | Out-Null - Disable-ScheduledTask -TaskName "Microsoft\Windows\Feedback\Siuf\DmClientOnScenarioDownload" -ErrorAction SilentlyContinue | Out-Null - Write-Host "Disabling Tailored Experiences..." - If (!(Test-Path "HKCU:\SOFTWARE\Policies\Microsoft\Windows\CloudContent")) { - New-Item -Path "HKCU:\SOFTWARE\Policies\Microsoft\Windows\CloudContent" -Force | Out-Null - } - Set-ItemProperty -Path "HKCU:\SOFTWARE\Policies\Microsoft\Windows\CloudContent" -Name "DisableTailoredExperiencesWithDiagnosticData" -Type DWord -Value 1 - Write-Host "Disabling Advertising ID..." - If (!(Test-Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\AdvertisingInfo")) { - New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\AdvertisingInfo" | Out-Null - } - Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\AdvertisingInfo" -Name "DisabledByGroupPolicy" -Type DWord -Value 1 - Write-Host "Disabling Error reporting..." - Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\Windows Error Reporting" -Name "Disabled" -Type DWord -Value 1 - Disable-ScheduledTask -TaskName "Microsoft\Windows\Windows Error Reporting\QueueReporting" | Out-Null - Write-Host "Restricting Windows Update P2P only to local network..." - If (!(Test-Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config")) { - New-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config" | Out-Null - } - Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config" -Name "DODownloadMode" -Type DWord -Value 1 - Write-Host "Stopping and disabling Diagnostics Tracking Service..." - Stop-Service "DiagTrack" -WarningAction SilentlyContinue - Set-Service "DiagTrack" -StartupType Disabled - Write-Host "Stopping and disabling WAP Push Service..." - Stop-Service "dmwappushservice" -WarningAction SilentlyContinue - Set-Service "dmwappushservice" -StartupType Disabled - Write-Host "Enabling F8 boot menu options..." - bcdedit /set `{current`} bootmenupolicy Legacy | Out-Null - Write-Host "Stopping and disabling Home Groups services..." - Stop-Service "HomeGroupListener" -WarningAction SilentlyContinue - Set-Service "HomeGroupListener" -StartupType Disabled - Stop-Service "HomeGroupProvider" -WarningAction SilentlyContinue - Set-Service "HomeGroupProvider" -StartupType Disabled - Write-Host "Disabling Shared Experiences..." - Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\System" -Name "EnableCdp" -Type DWord -Value 0 - Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\System" -Name "EnableMmx" -Type DWord -Value 0 - Write-Host "Disabling Remote Assistance..." - Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Remote Assistance" -Name "fAllowToGetHelp" -Type DWord -Value 0 - Write-Host "Disabling Storage Sense..." - Remove-Item -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\StorageSense\Parameters\StoragePolicy" -Recurse -ErrorAction SilentlyContinue - Write-Host "Stopping and disabling Superfetch service..." - Stop-Service "SysMain" -WarningAction SilentlyContinue - Set-Service "SysMain" -StartupType Disabled - Write-Host "Setting BIOS time to UTC..." - Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\TimeZoneInformation" -Name "RealTimeIsUniversal" -Type DWord -Value 1 - Write-Host "Disabling Hibernation..." - Set-ItemProperty -Path "HKLM:\System\CurrentControlSet\Control\Session Manager\Power" -Name "HibernteEnabled" -Type Dword -Value 0 - If (!(Test-Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FlyoutMenuSettings")) { - New-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FlyoutMenuSettings" | Out-Null - } - Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FlyoutMenuSettings" -Name "ShowHibernateOption" -Type Dword -Value 0 - Write-Host "Showing task manager details..." - $taskmgr = Start-Process -WindowStyle Hidden -FilePath taskmgr.exe -PassThru - Do { - Start-Sleep -Milliseconds 100 - $preferences = Get-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\TaskManager" -Name "Preferences" -ErrorAction SilentlyContinue - } Until ($preferences) - Stop-Process $taskmgr - $preferences.Preferences[28] = 0 - Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\TaskManager" -Name "Preferences" -Type Binary -Value $preferences.Preferences - Write-Host "Showing file operations details..." - If (!(Test-Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\OperationStatusManager")) { - New-Item -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\OperationStatusManager" | Out-Null - } - Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\OperationStatusManager" -Name "EnthusiastMode" -Type DWord -Value 1 - Write-Host "Hiding Task View button..." - Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "ShowTaskViewButton" -Type DWord -Value 0 - Write-Host "Hiding People icon..." - If (!(Test-Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People")) { - New-Item -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People" | Out-Null - } - Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People" -Name "PeopleBand" -Type DWord -Value 0 - Write-Host "Showing all tray icons..." - Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" -Name "EnableAutoTray" -Type DWord -Value 0 - Write-Host "Enabling NumLock after startup..." - If (!(Test-Path "HKU:")) { - New-PSDrive -Name HKU -PSProvider Registry -Root HKEY_USERS | Out-Null - } - Set-ItemProperty -Path "HKU:\.DEFAULT\Control Panel\Keyboard" -Name "InitialKeyboardIndicators" -Type DWord -Value 2147483650 - Add-Type -AssemblyName System.Windows.Forms - If (!([System.Windows.Forms.Control]::IsKeyLocked('NumLock'))) { - $wsh = New-Object -ComObject WScript.Shell - $wsh.SendKeys('{NUMLOCK}') - } - - Write-Host "Changing default Explorer view to This PC..." - Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "LaunchTo" -Type DWord -Value 1 - Write-Host "Hiding 3D Objects icon from This PC..." - Remove-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}" -Recurse -ErrorAction SilentlyContinue - -$Bloatware = @( - - #Unnecessary Windows 10 AppX Apps - "Microsoft.3DBuilder" - "Microsoft.AppConnector" - "Microsoft.BingFinance" - "Microsoft.BingNews" - "Microsoft.BingSports" - "Microsoft.BingTranslator" - "Microsoft.BingWeather" - "Microsoft.GetHelp" - "Microsoft.Getstarted" - "Microsoft.Messaging" - "Microsoft.Microsoft3DViewer" - "Microsoft.MicrosoftSolitaireCollection" - "Microsoft.NetworkSpeedTest" - "Microsoft.News" - "Microsoft.Office.Lens" - "Microsoft.Office.Sway" - "Microsoft.OneConnect" - "Microsoft.People" - "Microsoft.Print3D" - "Microsoft.SkypeApp" - "Microsoft.StorePurchaseApp" - "Microsoft.Wallet" - "Microsoft.Whiteboard" - "Microsoft.WindowsAlarms" - "microsoft.windowscommunicationsapps" - "Microsoft.WindowsFeedbackHub" - "Microsoft.WindowsMaps" - "Microsoft.WindowsSoundRecorder" - "Microsoft.ZuneMusic" - "Microsoft.ZuneVideo" - - #Sponsored Windows 10 AppX Apps - #Add sponsored/featured apps to remove in the "*AppName*" format - "*EclipseManager*" - "*ActiproSoftwareLLC*" - "*AdobeSystemsIncorporated.AdobePhotoshopExpress*" - "*Duolingo-LearnLanguagesforFree*" - "*PandoraMediaInc*" - "*CandyCrush*" - "*BubbleWitch3Saga*" - "*Wunderlist*" - "*Flipboard*" - "*Twitter*" - "*Facebook*" - "*Royal Revolt*" - "*Sway*" - "*Speed Test*" - "*Dolby*" - "*Viber*" - "*ACGMediaPlayer*" - "*Netflix*" - "*OneCalendar*" - "*LinkedInforWindows*" - "*HiddenCityMysteryofShadows*" - "*Hulu*" - "*HiddenCity*" - "*AdobePhotoshopExpress*" - - #Optional: Typically not removed but you can if you need to for some reason - #"*Microsoft.Advertising.Xaml_10.1712.5.0_x64__8wekyb3d8bbwe*" - #"*Microsoft.Advertising.Xaml_10.1712.5.0_x86__8wekyb3d8bbwe*" - #"*Microsoft.BingWeather*" - #"*Microsoft.MSPaint*" - #"*Microsoft.MicrosoftStickyNotes*" - #"*Microsoft.Windows.Photos*" - #"*Microsoft.WindowsCalculator*" - #"*Microsoft.WindowsStore*" - ) - foreach ($Bloat in $Bloatware) { - Get-AppxPackage -Name $Bloat| Remove-AppxPackage - Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like $Bloat | Remove-AppxProvisionedPackage -Online - Write-Host "Trying to remove $Bloat." - } - - Write-Host "Installing Windows Media Player..." - Enable-WindowsOptionalFeature -Online -FeatureName "WindowsMediaPlayer" -NoRestart -WarningAction SilentlyContinue | Out-Null - - #Stops edge from taking over as the default .PDF viewer - Write-Host "Stopping Edge from taking over as the default .PDF viewer" - $NoPDF = "HKCR:\.pdf" - $NoProgids = "HKCR:\.pdf\OpenWithProgids" - $NoWithList = "HKCR:\.pdf\OpenWithList" - If (!(Get-ItemProperty $NoPDF NoOpenWith)) { - New-ItemProperty $NoPDF NoOpenWith - } - If (!(Get-ItemProperty $NoPDF NoStaticDefaultVerb)) { - New-ItemProperty $NoPDF NoStaticDefaultVerb - } - If (!(Get-ItemProperty $NoProgids NoOpenWith)) { - New-ItemProperty $NoProgids NoOpenWith - } - If (!(Get-ItemProperty $NoProgids NoStaticDefaultVerb)) { - New-ItemProperty $NoProgids NoStaticDefaultVerb - } - If (!(Get-ItemProperty $NoWithList NoOpenWith)) { - New-ItemProperty $NoWithList NoOpenWith - } - If (!(Get-ItemProperty $NoWithList NoStaticDefaultVerb)) { - New-ItemProperty $NoWithList NoStaticDefaultVerb - } - - #Appends an underscore '_' to the Registry key for Edge - $Edge = "HKCR:\AppXd4nrz8ff68srnhf9t5a8sbjyar1cr723_" - If (Test-Path $Edge) { - Set-Item $Edge AppXd4nrz8ff68srnhf9t5a8sbjyar1cr723_ - } - $wshell.Popup("Operation Completed",0,"Done",0x0) -}) - -$windowssearch.Add_Click({ - Write-Host "Disabling Bing Search in Start Menu..." - Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" -Name "BingSearchEnabled" -Type DWord -Value 0 - Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" -Name "CortanaConsent" -Type DWord -Value 0 - If (!(Test-Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search")) { - New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search" -Force | Out-Null - } - Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search" -Name "DisableWebSearch" -Type DWord -Value 1 - Write-Host "Stopping and disabling Windows Search indexing service..." - Stop-Service "WSearch" -WarningAction SilentlyContinue - Set-Service "WSearch" -StartupType Disabled - Write-Host "Hiding Taskbar Search icon / box..." - Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" -Name "SearchboxTaskbarMode" -Type DWord -Value 0 - $wshell.Popup("Operation Completed",0,"Done",0x0) -}) - -$backgroundapps.Add_Click({ - Write-Host "Disabling Background application access..." - Get-ChildItem -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications" -Exclude "Microsoft.Windows.Cortana*" | ForEach { - Set-ItemProperty -Path $_.PsPath -Name "Disabled" -Type DWord -Value 1 - Set-ItemProperty -Path $_.PsPath -Name "DisabledByUser" -Type DWord -Value 1 - } - $wshell.Popup("Operation Completed",0,"Done",0x0) -}) - -$cortana.Add_Click({ - Write-Host "Disabling Cortana..." - If (!(Test-Path "HKCU:\SOFTWARE\Microsoft\Personalization\Settings")) { - New-Item -Path "HKCU:\SOFTWARE\Microsoft\Personalization\Settings" -Force | Out-Null - } - Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Personalization\Settings" -Name "AcceptedPrivacyPolicy" -Type DWord -Value 0 - If (!(Test-Path "HKCU:\SOFTWARE\Microsoft\InputPersonalization")) { - New-Item -Path "HKCU:\SOFTWARE\Microsoft\InputPersonalization" -Force | Out-Null - } - Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\InputPersonalization" -Name "RestrictImplicitTextCollection" -Type DWord -Value 1 - Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\InputPersonalization" -Name "RestrictImplicitInkCollection" -Type DWord -Value 1 - If (!(Test-Path "HKCU:\SOFTWARE\Microsoft\InputPersonalization\TrainedDataStore")) { - New-Item -Path "HKCU:\SOFTWARE\Microsoft\InputPersonalization\TrainedDataStore" -Force | Out-Null - } - Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\InputPersonalization\TrainedDataStore" -Name "HarvestContacts" -Type DWord -Value 0 - If (!(Test-Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search")) { - New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search" -Force | Out-Null - } - Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search" -Name "AllowCortana" -Type DWord -Value 0 - $wshell.Popup("Operation Completed",0,"Done",0x0) -}) - -$securitylow.Add_Click({ - Write-Host "Lowering UAC level..." - Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" -Name "ConsentPromptBehaviorAdmin" -Type DWord -Value 0 - Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" -Name "PromptOnSecureDesktop" -Type DWord -Value 0 - Write-Host "Disabling Windows Defender..." - If (!(Test-Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender")) { - New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender" -Force | Out-Null - } - Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender" -Name "DisableAntiSpyware" -Type DWord -Value 1 - If ([System.Environment]::OSVersion.Version.Build -eq 14393) { - Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" -Name "WindowsDefender" -ErrorAction SilentlyContinue - } ElseIf ([System.Environment]::OSVersion.Version.Build -ge 15063) { - Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" -Name "SecurityHealth" -ErrorAction SilentlyContinue - } - Write-Host "Disabling Windows Defender Cloud..." - If (!(Test-Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender\Spynet")) { - New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender\Spynet" -Force | Out-Null - } - Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender\Spynet" -Name "SpynetReporting" -Type DWord -Value 0 - Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender\Spynet" -Name "SubmitSamplesConsent" -Type DWord -Value 2 - Write-Host "Disabling Meltdown (CVE-2017-5754) compatibility flag..." - Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\QualityCompat" -Name "cadca5fe-87d3-4b96-b7fb-a231484277cc" -ErrorAction SilentlyContinue - Write-Host "Disabling Malicious Software Removal Tool offering..." - If (!(Test-Path "HKLM:\SOFTWARE\Policies\Microsoft\MRT")) { - New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\MRT" | Out-Null - } - Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\MRT" -Name "DontOfferThroughWUAU" -Type DWord -Value 1 - $wshell.Popup("Operation Completed",0,"Done",0x0) -}) - -$securityhigh.Add_Click({ - Write-Host "Raising UAC level..." - Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" -Name "ConsentPromptBehaviorAdmin" -Type DWord -Value 5 - Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" -Name "PromptOnSecureDesktop" -Type DWord -Value 1 - Write-Host "Disabling SMB 1.0 protocol..." - Set-SmbServerConfiguration -EnableSMB1Protocol $false -Force - Write-Host "Enabling Windows Defender..." - Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender" -Name "DisableAntiSpyware" -ErrorAction SilentlyContinue - If ([System.Environment]::OSVersion.Version.Build -eq 14393) { - Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" -Name "WindowsDefender" -Type ExpandString -Value "`"%ProgramFiles%\Windows Defender\MSASCuiL.exe`"" - } ElseIf ([System.Environment]::OSVersion.Version.Build -ge 15063) { - Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" -Name "SecurityHealth" -Type ExpandString -Value "`"%ProgramFiles%\Windows Defender\MSASCuiL.exe`"" - } - Write-Host "Enabling Windows Defender Cloud..." - Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender\Spynet" -Name "SpynetReporting" -ErrorAction SilentlyContinue - Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender\Spynet" -Name "SubmitSamplesConsent" -ErrorAction SilentlyContinue - Write-Host "Disabling Windows Script Host..." - Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows Script Host\Settings" -Name "Enabled" -Type DWord -Value 0 - Write-Host "Enabling Meltdown (CVE-2017-5754) compatibility flag..." - If (!(Test-Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\QualityCompat")) { - New-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\QualityCompat" | Out-Null - } - Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\QualityCompat" -Name "cadca5fe-87d3-4b96-b7fb-a231484277cc" -Type DWord -Value 0 - Write-Host "Enabling Malicious Software Removal Tool offering..." - Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\MRT" -Name "DontOfferThroughWUAU" -ErrorAction SilentlyContinue - $wshell.Popup("Operation Completed",0,"Done",0x0) -}) - -$defaultwindowsupdate.Add_Click({ - Write-Host "Enabling driver offering through Windows Update..." - Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Device Metadata" -Name "PreventDeviceMetadataFromNetwork" -ErrorAction SilentlyContinue - Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DriverSearching" -Name "DontPromptForWindowsUpdate" -ErrorAction SilentlyContinue - Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DriverSearching" -Name "DontSearchWindowsUpdate" -ErrorAction SilentlyContinue - Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DriverSearching" -Name "DriverUpdateWizardWuSearchEnabled" -ErrorAction SilentlyContinue - Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" -Name "ExcludeWUDriversInQualityUpdate" -ErrorAction SilentlyContinue - Write-Host "Enabling Windows Update automatic restart..." - Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name "NoAutoRebootWithLoggedOnUsers" -ErrorAction SilentlyContinue - Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name "AUPowerManagement" -ErrorAction SilentlyContinue - $wshell.Popup("Operation Completed",0,"Done",0x0) -}) - -$securitywindowsupdate.Add_Click({ - Write-Host "Disabling driver offering through Windows Update..." - If (!(Test-Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Device Metadata")) { - New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Device Metadata" -Force | Out-Null - } - Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Device Metadata" -Name "PreventDeviceMetadataFromNetwork" -Type DWord -Value 1 - If (!(Test-Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DriverSearching")) { - New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DriverSearching" -Force | Out-Null - } - Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DriverSearching" -Name "DontPromptForWindowsUpdate" -Type DWord -Value 1 - Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DriverSearching" -Name "DontSearchWindowsUpdate" -Type DWord -Value 1 - Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DriverSearching" -Name "DriverUpdateWizardWuSearchEnabled" -Type DWord -Value 0 - If (!(Test-Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate")) { - New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" | Out-Null - } - Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" -Name "ExcludeWUDriversInQualityUpdate" -Type DWord -Value 1 - Write-Host "Disabling Windows Update automatic restart..." - If (!(Test-Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU")) { - New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Force | Out-Null - } - Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name "NoAutoRebootWithLoggedOnUsers" -Type DWord -Value 1 - Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name "AUPowerManagement" -Type DWord -Value 0 - $wshell.Popup("Operation Completed",0,"Done",0x0) -}) - -$actioncenter.Add_Click({ - Write-Host "Disabling Action Center..." - If (!(Test-Path "HKCU:\SOFTWARE\Policies\Microsoft\Windows\Explorer")) { - New-Item -Path "HKCU:\SOFTWARE\Policies\Microsoft\Windows\Explorer" | Out-Null - } - Set-ItemProperty -Path "HKCU:\SOFTWARE\Policies\Microsoft\Windows\Explorer" -Name "DisableNotificationCenter" -Type DWord -Value 1 - Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\PushNotifications" -Name "ToastEnabled" -Type DWord -Value 0 - $wshell.Popup("Operation Completed",0,"Done",0x0) -}) - -$visualfx.Add_Click({ - Write-Host "Adjusting visual effects for performance..." - Set-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name "DragFullWindows" -Type String -Value 0 - Set-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name "MenuShowDelay" -Type String -Value 0 - Set-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name "UserPreferencesMask" -Type Binary -Value ([byte[]](144,18,3,128,16,0,0,0)) - Set-ItemProperty -Path "HKCU:\Control Panel\Desktop\WindowMetrics" -Name "MinAnimate" -Type String -Value 0 - Set-ItemProperty -Path "HKCU:\Control Panel\Keyboard" -Name "KeyboardDelay" -Type DWord -Value 0 - Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "ListviewAlphaSelect" -Type DWord -Value 0 - Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "ListviewShadow" -Type DWord -Value 0 - Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "TaskbarAnimations" -Type DWord -Value 0 - Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects" -Name "VisualFXSetting" -Type DWord -Value 3 - Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\DWM" -Name "EnableAeroPeek" -Type DWord -Value 0 - $wshell.Popup("Operation Completed",0,"Done",0x0) -}) - -$onedrive.Add_Click({ - Write-Host "Disabling OneDrive..." - If (!(Test-Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\OneDrive")) { - New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\OneDrive" | Out-Null - } - Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\OneDrive" -Name "DisableFileSyncNGSC" -Type DWord -Value 1 - Write-Host "Uninstalling OneDrive..." - Stop-Process -Name "OneDrive" -ErrorAction SilentlyContinue - Start-Sleep -s 2 - $onedrive = "$env:SYSTEMROOT\SysWOW64\OneDriveSetup.exe" - If (!(Test-Path $onedrive)) { - $onedrive = "$env:SYSTEMROOT\System32\OneDriveSetup.exe" - } - Start-Process $onedrive "/uninstall" -NoNewWindow -Wait - Start-Sleep -s 2 - Stop-Process -Name "explorer" -ErrorAction SilentlyContinue - Start-Sleep -s 2 - Remove-Item -Path "$env:USERPROFILE\OneDrive" -Force -Recurse -ErrorAction SilentlyContinue - Remove-Item -Path "$env:LOCALAPPDATA\Microsoft\OneDrive" -Force -Recurse -ErrorAction SilentlyContinue - Remove-Item -Path "$env:PROGRAMDATA\Microsoft OneDrive" -Force -Recurse -ErrorAction SilentlyContinue - Remove-Item -Path "$env:SYSTEMDRIVE\OneDriveTemp" -Force -Recurse -ErrorAction SilentlyContinue - If (!(Test-Path "HKCR:")) { - New-PSDrive -Name HKCR -PSProvider Registry -Root HKEY_CLASSES_ROOT | Out-Null - } - Remove-Item -Path "HKCR:\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" -Recurse -ErrorAction SilentlyContinue - Remove-Item -Path "HKCR:\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" -Recurse -ErrorAction SilentlyContinue - $wshell.Popup("Operation Completed",0,"Done",0x0) -}) - -$darkmode.Add_Click({ - Write-Host "Enabling Dark Mode" - Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name AppsUseLightTheme -Value 0 - $wshell.Popup("Operation Completed",0,"Done",0x0) -}) - -$lightmode.Add_Click({ - Write-Host "Switching Back to Light Mode" - Remove-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name AppsUseLightTheme - $wshell.Popup("Operation Completed",0,"Done",0x0) -}) - -[void]$Form.ShowDialog() \ No newline at end of file diff --git a/win10debloat.ps1 b/win10debloat.ps1 index e5b53098..870f8c36 100644 --- a/win10debloat.ps1 +++ b/win10debloat.ps1 @@ -20,22 +20,24 @@ if (Test-Path ~\AppData\Local\Microsoft\WindowsApps\winget.exe){ else{ # Installing winget from the Microsoft Store Write-Host "Winget not found, installing it now." + $ResultText.text = "`r`n" +"`r`n" + "Installing Winget... Please Wait" Start-Process "ms-appinstaller:?source=https://aka.ms/getwinget" $nid = (Get-Process AppInstaller).Id Wait-Process -Id $nid Write-Host Winget Installed + $ResultText.text = "`r`n" +"`r`n" + "Winget Installed - Ready for Next Task" } $Form = New-Object system.Windows.Forms.Form -$Form.ClientSize = New-Object System.Drawing.Point(1050,700) +$Form.ClientSize = New-Object System.Drawing.Point(1050,1000) $Form.text = "Windows 10 Debloat By Chris Titus" $Form.StartPosition = "CenterScreen" $Form.TopMost = $false -$Form.BackColor = [System.Drawing.ColorTranslator]::FromHtml("#b8b8b8") +$Form.BackColor = [System.Drawing.ColorTranslator]::FromHtml("#e9e9e9") $Form.AutoScaleDimensions = '192, 192' $Form.AutoScaleMode = "Dpi" $Form.AutoSize = $True -$Form.ClientSize = '1050, 700' +$Form.ClientSize = '1050, 1000' $Form.FormBorderStyle = 'FixedSingle' # GUI Icon @@ -49,7 +51,7 @@ $Form.Width = $objImage.Width $Form.Height = $objImage.Height $Panel1 = New-Object system.Windows.Forms.Panel -$Panel1.height = 639 +$Panel1.height = 939 $Panel1.width = 219 $Panel1.location = New-Object System.Drawing.Point(6,54) @@ -57,98 +59,98 @@ $brave = New-Object system.Windows.Forms.Button $brave.text = "Brave Browser" $brave.width = 212 $brave.height = 30 -$brave.location = New-Object System.Drawing.Point(3,94) +$brave.location = New-Object System.Drawing.Point(4,426) $brave.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) $firefox = New-Object system.Windows.Forms.Button $firefox.text = "Firefox" $firefox.width = 212 $firefox.height = 30 -$firefox.location = New-Object System.Drawing.Point(4,127) +$firefox.location = New-Object System.Drawing.Point(4,461) $firefox.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) $7zip = New-Object system.Windows.Forms.Button $7zip.text = "7-Zip" $7zip.width = 211 $7zip.height = 30 -$7zip.location = New-Object System.Drawing.Point(4,363) +$7zip.location = New-Object System.Drawing.Point(4,102) $7zip.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) -$irfanview = New-Object system.Windows.Forms.Button -$irfanview.text = "Irfanview (Image Viewer)" -$irfanview.width = 212 -$irfanview.height = 30 -$irfanview.location = New-Object System.Drawing.Point(3,195) -$irfanview.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) +$sharex = New-Object system.Windows.Forms.Button +$sharex.text = "ShareX (Screenshots)" +$sharex.width = 212 +$sharex.height = 30 +$sharex.location = New-Object System.Drawing.Point(3,561) +$sharex.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) $adobereader = New-Object system.Windows.Forms.Button $adobereader.text = "Adobe Reader DC" $adobereader.width = 212 $adobereader.height = 30 -$adobereader.location = New-Object System.Drawing.Point(4,528) +$adobereader.location = New-Object System.Drawing.Point(3,865) $adobereader.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) $notepad = New-Object system.Windows.Forms.Button $notepad.text = "Notepad++" $notepad.width = 212 $notepad.height = 30 -$notepad.location = New-Object System.Drawing.Point(4,461) +$notepad.location = New-Object System.Drawing.Point(3,831) $notepad.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) $gchrome = New-Object system.Windows.Forms.Button $gchrome.text = "Google Chrome" $gchrome.width = 212 $gchrome.height = 30 -$gchrome.location = New-Object System.Drawing.Point(4,161) +$gchrome.location = New-Object System.Drawing.Point(3,494) $gchrome.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) $mpc = New-Object system.Windows.Forms.Button $mpc.text = "Media Player Classic" $mpc.width = 211 $mpc.height = 30 -$mpc.location = New-Object System.Drawing.Point(4,329) +$mpc.location = New-Object System.Drawing.Point(3,697) $mpc.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) $vlc = New-Object system.Windows.Forms.Button $vlc.text = "VLC" $vlc.width = 212 $vlc.height = 30 -$vlc.location = New-Object System.Drawing.Point(4,296) +$vlc.location = New-Object System.Drawing.Point(3,663) $vlc.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) $powertoys = New-Object system.Windows.Forms.Button $powertoys.text = "PowerToys" $powertoys.width = 211 $powertoys.height = 30 -$powertoys.location = New-Object System.Drawing.Point(4,60) +$powertoys.location = New-Object System.Drawing.Point(4,67) $powertoys.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) $winterminal = New-Object system.Windows.Forms.Button $winterminal.text = "Windows Terminal" $winterminal.width = 211 $winterminal.height = 30 -$winterminal.location = New-Object System.Drawing.Point(4,26) +$winterminal.location = New-Object System.Drawing.Point(3,32) $winterminal.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) $vscode = New-Object system.Windows.Forms.Button $vscode.text = "VS Code" $vscode.width = 211 $vscode.height = 30 -$vscode.location = New-Object System.Drawing.Point(4,396) +$vscode.location = New-Object System.Drawing.Point(4,797) $vscode.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) $Label2 = New-Object system.Windows.Forms.Label -$Label2.text = "(Windows 1809+ Required)" +$Label2.text = "Utilities" $Label2.AutoSize = $true $Label2.width = 25 $Label2.height = 10 -$Label2.location = New-Object System.Drawing.Point(26,5) -$Label2.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',10) +$Label2.location = New-Object System.Drawing.Point(89,11) +$Label2.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',10,[System.Drawing.FontStyle]([System.Drawing.FontStyle]::Bold)) $Panel2 = New-Object system.Windows.Forms.Panel -$Panel2.height = 637 +$Panel2.height = 938 $Panel2.width = 211 -$Panel2.location = New-Object System.Drawing.Point(239,53) +$Panel2.location = New-Object System.Drawing.Point(240,54) $Label3 = New-Object system.Windows.Forms.Label $Label3.text = "System Tweaks" @@ -160,51 +162,51 @@ $Label3.Font = New-Object System.Drawing.Font('Microsoft San $essentialtweaks = New-Object system.Windows.Forms.Button $essentialtweaks.text = "Essential Tweaks" -$essentialtweaks.width = 204 +$essentialtweaks.width = 205 $essentialtweaks.height = 75 -$essentialtweaks.location = New-Object System.Drawing.Point(4,25) +$essentialtweaks.location = New-Object System.Drawing.Point(3,24) $essentialtweaks.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',14) $backgroundapps = New-Object system.Windows.Forms.Button $backgroundapps.text = "Disable Background Apps" $backgroundapps.width = 205 $backgroundapps.height = 30 -$backgroundapps.location = New-Object System.Drawing.Point(3,139) +$backgroundapps.location = New-Object System.Drawing.Point(3,453) $backgroundapps.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) $cortana = New-Object system.Windows.Forms.Button $cortana.text = "Disable Cortana (Search)" -$cortana.width = 204 +$cortana.width = 205 $cortana.height = 30 -$cortana.location = New-Object System.Drawing.Point(4,174) +$cortana.location = New-Object System.Drawing.Point(2,588) $cortana.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) $actioncenter = New-Object system.Windows.Forms.Button $actioncenter.text = "Disable Action Center" -$actioncenter.width = 203 +$actioncenter.width = 205 $actioncenter.height = 30 -$actioncenter.location = New-Object System.Drawing.Point(4,105) +$actioncenter.location = New-Object System.Drawing.Point(3,176) $actioncenter.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) $darkmode = New-Object system.Windows.Forms.Button $darkmode.text = "Dark Mode" -$darkmode.width = 204 +$darkmode.width = 205 $darkmode.height = 30 -$darkmode.location = New-Object System.Drawing.Point(4,244) +$darkmode.location = New-Object System.Drawing.Point(4,315) $darkmode.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) -$visualfx = New-Object system.Windows.Forms.Button -$visualfx.text = "Basic Visual FX" -$visualfx.width = 204 -$visualfx.height = 30 -$visualfx.location = New-Object System.Drawing.Point(4,313) -$visualfx.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) +$performancefx = New-Object system.Windows.Forms.Button +$performancefx.text = "Performance Visual FX" +$performancefx.width = 205 +$performancefx.height = 30 +$performancefx.location = New-Object System.Drawing.Point(3,419) +$performancefx.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) $onedrive = New-Object system.Windows.Forms.Button -$onedrive.text = "Uninstall OneDrive" -$onedrive.width = 204 +$onedrive.text = "Delete & Disable OneDrive" +$onedrive.width = 205 $onedrive.height = 30 -$onedrive.location = New-Object System.Drawing.Point(4,209) +$onedrive.location = New-Object System.Drawing.Point(3,521) $onedrive.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) $Label15 = New-Object system.Windows.Forms.Label @@ -212,7 +214,7 @@ $Label15.text = "Windows Update" $Label15.AutoSize = $true $Label15.width = 25 $Label15.height = 10 -$Label15.location = New-Object System.Drawing.Point(739,11) +$Label15.location = New-Object System.Drawing.Point(732,11) $Label15.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',24) $Panel4 = New-Object system.Windows.Forms.Panel @@ -267,16 +269,16 @@ $Label19.location = New-Object System.Drawing.Point(63,126) $Label19.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',10) $PictureBox1 = New-Object system.Windows.Forms.PictureBox -$PictureBox1.width = 330 -$PictureBox1.height = 174 -$PictureBox1.location = New-Object System.Drawing.Point(703,252) +$PictureBox1.width = 366 +$PictureBox1.height = 130 +$PictureBox1.location = New-Object System.Drawing.Point(571,274) $PictureBox1.imageLocation = "https://github.com/ChrisTitusTech/win10script/blob/master/titus-toolbox.png?raw=true" $PictureBox1.SizeMode = [System.Windows.Forms.PictureBoxSizeMode]::zoom $lightmode = New-Object system.Windows.Forms.Button $lightmode.text = "Light Mode" -$lightmode.width = 204 +$lightmode.width = 205 $lightmode.height = 30 -$lightmode.location = New-Object System.Drawing.Point(4,279) +$lightmode.location = New-Object System.Drawing.Point(3,350) $lightmode.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) $Label1 = New-Object system.Windows.Forms.Label @@ -288,128 +290,128 @@ $Label1.location = New-Object System.Drawing.Point(76,11) $Label1.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',24) $Label4 = New-Object system.Windows.Forms.Label -$Label4.text = "Undo" +$Label4.text = "Troubleshoot" $Label4.AutoSize = $true $Label4.width = 230 $Label4.height = 25 -$Label4.location = New-Object System.Drawing.Point(534,12) +$Label4.location = New-Object System.Drawing.Point(482,12) $Label4.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',24) $Panel3 = New-Object system.Windows.Forms.Panel -$Panel3.height = 635 +$Panel3.height = 179 $Panel3.width = 220 $Panel3.location = New-Object System.Drawing.Point(464,54) $essentialundo = New-Object system.Windows.Forms.Button -$essentialundo.text = "Undo All" -$essentialundo.width = 211 -$essentialundo.height = 75 -$essentialundo.location = New-Object System.Drawing.Point(4,25) +$essentialundo.text = "Undo Essential Tweaks" +$essentialundo.width = 205 +$essentialundo.height = 70 +$essentialundo.location = New-Object System.Drawing.Point(3,102) $essentialundo.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',14) $EActionCenter = New-Object system.Windows.Forms.Button $EActionCenter.text = "Enable Action Center" -$EActionCenter.width = 211 +$EActionCenter.width = 205 $EActionCenter.height = 30 -$EActionCenter.location = New-Object System.Drawing.Point(4,105) +$EActionCenter.location = New-Object System.Drawing.Point(3,210) $EActionCenter.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) $ECortana = New-Object system.Windows.Forms.Button $ECortana.text = "Enable Cortana (Search)" -$ECortana.width = 212 +$ECortana.width = 205 $ECortana.height = 30 -$ECortana.location = New-Object System.Drawing.Point(4,173) +$ECortana.location = New-Object System.Drawing.Point(3,622) $ECortana.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) $RBackgroundApps = New-Object system.Windows.Forms.Button $RBackgroundApps.text = "Allow Background Apps" -$RBackgroundApps.width = 212 +$RBackgroundApps.width = 205 $RBackgroundApps.height = 30 -$RBackgroundApps.location = New-Object System.Drawing.Point(4,139) +$RBackgroundApps.location = New-Object System.Drawing.Point(3,487) $RBackgroundApps.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) $HTrayIcons = New-Object system.Windows.Forms.Button $HTrayIcons.text = "Hide Tray Icons" -$HTrayIcons.width = 212 +$HTrayIcons.width = 205 $HTrayIcons.height = 30 -$HTrayIcons.location = New-Object System.Drawing.Point(4,242) +$HTrayIcons.location = New-Object System.Drawing.Point(3,278) $HTrayIcons.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) $EClipboardHistory = New-Object system.Windows.Forms.Button $EClipboardHistory.text = "Enable Clipboard History" -$EClipboardHistory.width = 212 +$EClipboardHistory.width = 205 $EClipboardHistory.height = 30 -$EClipboardHistory.location = New-Object System.Drawing.Point(4,276) +$EClipboardHistory.location = New-Object System.Drawing.Point(3,688) $EClipboardHistory.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) $ELocation = New-Object system.Windows.Forms.Button $ELocation.text = "Enable Location Tracking" -$ELocation.width = 211 +$ELocation.width = 205 $ELocation.height = 30 -$ELocation.location = New-Object System.Drawing.Point(4,310) +$ELocation.location = New-Object System.Drawing.Point(2,655) $ELocation.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) $InstallOneDrive = New-Object system.Windows.Forms.Button -$InstallOneDrive.text = "Install OneDrive" -$InstallOneDrive.width = 212 +$InstallOneDrive.text = "Install & Enable OneDrive" +$InstallOneDrive.width = 205 $InstallOneDrive.height = 30 -$InstallOneDrive.location = New-Object System.Drawing.Point(4,208) +$InstallOneDrive.location = New-Object System.Drawing.Point(2,554) $InstallOneDrive.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) $everythingsearch = New-Object system.Windows.Forms.Button $everythingsearch.text = "Everything Search" $everythingsearch.width = 211 $everythingsearch.height = 30 -$everythingsearch.location = New-Object System.Drawing.Point(4,495) +$everythingsearch.location = New-Object System.Drawing.Point(3,368) $everythingsearch.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) $sumatrapdf = New-Object system.Windows.Forms.Button $sumatrapdf.text = "Sumatra PDF" $sumatrapdf.width = 212 $sumatrapdf.height = 30 -$sumatrapdf.location = New-Object System.Drawing.Point(3,561) +$sumatrapdf.location = New-Object System.Drawing.Point(4,900) $sumatrapdf.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) $vscodium = New-Object system.Windows.Forms.Button $vscodium.text = "VS Codium" $vscodium.width = 211 $vscodium.height = 30 -$vscodium.location = New-Object System.Drawing.Point(4,429) +$vscodium.location = New-Object System.Drawing.Point(4,763) $vscodium.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) $imageglass = New-Object system.Windows.Forms.Button $imageglass.text = "ImageGlass (Image Viewer)" $imageglass.width = 212 $imageglass.height = 30 -$imageglass.location = New-Object System.Drawing.Point(4,228) +$imageglass.location = New-Object System.Drawing.Point(4,595) $imageglass.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) -$honeyview = New-Object system.Windows.Forms.Button -$honeyview.text = "Honeyview (Image Viewer)" -$honeyview.width = 212 -$honeyview.height = 30 -$honeyview.location = New-Object System.Drawing.Point(4,261) -$honeyview.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) +$gimp = New-Object system.Windows.Forms.Button +$gimp.text = "GIMP (Image Editor)" +$gimp.width = 212 +$gimp.height = 30 +$gimp.location = New-Object System.Drawing.Point(4,629) +$gimp.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) $yourphonefix = New-Object system.Windows.Forms.Button $yourphonefix.text = "Your Phone App Fix" $yourphonefix.width = 211 $yourphonefix.height = 30 -$yourphonefix.location = New-Object System.Drawing.Point(4,344) +$yourphonefix.location = New-Object System.Drawing.Point(4,25) $yourphonefix.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) $removebloat = New-Object system.Windows.Forms.Button $removebloat.text = "Remove MS Store Apps" $removebloat.width = 204 $removebloat.height = 34 -$removebloat.location = New-Object System.Drawing.Point(3,560) +$removebloat.location = New-Object System.Drawing.Point(3,898) $removebloat.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) $reinstallbloat = New-Object system.Windows.Forms.Button $reinstallbloat.text = "Reinstall MS Store Apps" -$reinstallbloat.width = 211 +$reinstallbloat.width = 205 $reinstallbloat.height = 30 -$reinstallbloat.location = New-Object System.Drawing.Point(4,560) +$reinstallbloat.location = New-Object System.Drawing.Point(3,813) $reinstallbloat.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) $WarningLabel = New-Object system.Windows.Forms.Label @@ -417,7 +419,7 @@ $WarningLabel.text = "Warning! This will break Microsoft Store" $WarningLabel.AutoSize = $true $WarningLabel.width = 25 $WarningLabel.height = 10 -$WarningLabel.location = New-Object System.Drawing.Point(12,522) +$WarningLabel.location = New-Object System.Drawing.Point(12,856) $WarningLabel.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',8) $Label5 = New-Object system.Windows.Forms.Label @@ -425,133 +427,352 @@ $Label5.text = "Games, Apps, Sysprep, etc." $Label5.AutoSize = $true $Label5.width = 25 $Label5.height = 10 -$Label5.location = New-Object System.Drawing.Point(61,544) +$Label5.location = New-Object System.Drawing.Point(44,877) $Label5.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',8) -$Form.controls.AddRange(@($Panel1,$Panel2,$Label3,$Label15,$Panel4,$PictureBox1,$Label1,$Label4,$Panel3)) -$Panel1.controls.AddRange(@($brave,$firefox,$7zip,$irfanview,$adobereader,$notepad,$gchrome,$mpc,$vlc,$powertoys,$winterminal,$vscode,$Label2,$everythingsearch,$sumatrapdf,$vscodium,$imageglass,$honeyview)) -$Panel2.controls.AddRange(@($essentialtweaks,$backgroundapps,$cortana,$actioncenter,$darkmode,$visualfx,$onedrive,$lightmode,$removebloat,$WarningLabel,$Label5)) +$Label6 = New-Object system.Windows.Forms.Label +$Label6.text = "Misc. Fixes" +$Label6.AutoSize = $true +$Label6.width = 25 +$Label6.height = 10 +$Label6.location = New-Object System.Drawing.Point(78,7) +$Label6.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',10,[System.Drawing.FontStyle]([System.Drawing.FontStyle]::Bold)) + +$Label7 = New-Object system.Windows.Forms.Label +$Label7.text = "Document Tools" +$Label7.AutoSize = $true +$Label7.width = 25 +$Label7.height = 10 +$Label7.location = New-Object System.Drawing.Point(60,740) +$Label7.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',10,[System.Drawing.FontStyle]([System.Drawing.FontStyle]::Bold)) + +$Label8 = New-Object system.Windows.Forms.Label +$Label8.text = "Video and Image Tools" +$Label8.AutoSize = $true +$Label8.width = 25 +$Label8.height = 10 +$Label8.location = New-Object System.Drawing.Point(41,537) +$Label8.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',10,[System.Drawing.FontStyle]([System.Drawing.FontStyle]::Bold)) + +$Label9 = New-Object system.Windows.Forms.Label +$Label9.text = "Web Browsers" +$Label9.AutoSize = $true +$Label9.width = 25 +$Label9.height = 10 +$Label9.location = New-Object System.Drawing.Point(67,406) +$Label9.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',10,[System.Drawing.FontStyle]([System.Drawing.FontStyle]::Bold)) + +$advancedipscanner = New-Object system.Windows.Forms.Button +$advancedipscanner.text = "Advanced IP Scanner" +$advancedipscanner.width = 211 +$advancedipscanner.height = 30 +$advancedipscanner.location = New-Object System.Drawing.Point(3,335) +$advancedipscanner.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) + +$putty = New-Object system.Windows.Forms.Button +$putty.text = "PuTTY & WinSCP" +$putty.width = 211 +$putty.height = 30 +$putty.location = New-Object System.Drawing.Point(3,302) +$putty.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) + +$etcher = New-Object system.Windows.Forms.Button +$etcher.text = "Etcher USB Creator" +$etcher.width = 211 +$etcher.height = 30 +$etcher.location = New-Object System.Drawing.Point(3,269) +$etcher.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) + +$translucenttb = New-Object system.Windows.Forms.Button +$translucenttb.text = "Translucent Taskbar" +$translucenttb.width = 211 +$translucenttb.height = 30 +$translucenttb.location = New-Object System.Drawing.Point(3,236) +$translucenttb.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) + +$githubdesktop = New-Object system.Windows.Forms.Button +$githubdesktop.text = "Github Desktop" +$githubdesktop.width = 211 +$githubdesktop.height = 30 +$githubdesktop.location = New-Object System.Drawing.Point(3,203) +$githubdesktop.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) + +$discord = New-Object system.Windows.Forms.Button +$discord.text = "Discord" +$discord.width = 211 +$discord.height = 30 +$discord.location = New-Object System.Drawing.Point(4,170) +$discord.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) + +$autohotkey = New-Object system.Windows.Forms.Button +$autohotkey.text = "AutoHotkey" +$autohotkey.width = 211 +$autohotkey.height = 30 +$autohotkey.location = New-Object System.Drawing.Point(4,136) +$autohotkey.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) + +$appearancefx = New-Object system.Windows.Forms.Button +$appearancefx.text = "Appearance Visual FX" +$appearancefx.width = 205 +$appearancefx.height = 30 +$appearancefx.location = New-Object System.Drawing.Point(4,385) +$appearancefx.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) + +$STrayIcons = New-Object system.Windows.Forms.Button +$STrayIcons.text = "Show Tray Icons" +$STrayIcons.width = 205 +$STrayIcons.height = 30 +$STrayIcons.location = New-Object System.Drawing.Point(2,244) +$STrayIcons.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) + +$windowsupdatefix = New-Object system.Windows.Forms.Button +$windowsupdatefix.text = "Windows Update Reset" +$windowsupdatefix.width = 211 +$windowsupdatefix.height = 30 +$windowsupdatefix.location = New-Object System.Drawing.Point(4,59) +$windowsupdatefix.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) + +$ResultText = New-Object system.Windows.Forms.TextBox +$ResultText.multiline = $true +$ResultText.width = 338 +$ResultText.height = 126 +$ResultText.location = New-Object System.Drawing.Point(581,489) +$ResultText.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',10) + +$Label10 = New-Object system.Windows.Forms.Label +$Label10.text = "Current Status:" +$Label10.AutoSize = $true +$Label10.width = 25 +$Label10.height = 10 +$Label10.location = New-Object System.Drawing.Point(639,440) +$Label10.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',24) + +$EHibernation = New-Object system.Windows.Forms.Button +$EHibernation.text = "Enable Hibernation" +$EHibernation.width = 205 +$EHibernation.height = 30 +$EHibernation.location = New-Object System.Drawing.Point(3,721) +$EHibernation.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) + +$dualboottime = New-Object system.Windows.Forms.Button +$dualboottime.text = "Set Time to UTC (Dual Boot)" +$dualboottime.width = 205 +$dualboottime.height = 30 +$dualboottime.location = New-Object System.Drawing.Point(3,754) +$dualboottime.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) + +$Form.controls.AddRange(@($Panel1,$Panel2,$Label3,$Label15,$Panel4,$PictureBox1,$Label1,$Label4,$Panel3,$ResultText,$Label10)) +$Panel1.controls.AddRange(@($brave,$firefox,$7zip,$sharex,$adobereader,$notepad,$gchrome,$mpc,$vlc,$powertoys,$winterminal,$vscode,$Label2,$everythingsearch,$sumatrapdf,$vscodium,$imageglass,$gimp,$Label7,$Label8,$Label9,$advancedipscanner,$putty,$etcher,$translucenttb,$githubdesktop,$discord,$autohotkey)) +$Panel2.controls.AddRange(@($essentialtweaks,$backgroundapps,$cortana,$actioncenter,$darkmode,$performancefx,$onedrive,$lightmode,$essentialundo,$EActionCenter,$ECortana,$RBackgroundApps,$HTrayIcons,$EClipboardHistory,$ELocation,$InstallOneDrive,$removebloat,$reinstallbloat,$WarningLabel,$Label5,$appearancefx,$STrayIcons,$EHibernation,$dualboottime)) $Panel4.controls.AddRange(@($defaultwindowsupdate,$securitywindowsupdate,$Label16,$Label17,$Label18,$Label19)) -$Panel3.controls.AddRange(@($essentialundo,$EActionCenter,$ECortana,$RBackgroundApps,$HTrayIcons,$EClipboardHistory,$ELocation,$InstallOneDrive,$yourphonefix,$reinstallbloat)) +$Panel3.controls.AddRange(@($yourphonefix,$Label6,$windowsupdatefix)) $brave.Add_Click({ Write-Host "Installing Brave Browser" + $ResultText.text = "`r`n" +"`r`n" + "Installing Brave... Please Wait" winget install BraveSoftware.BraveBrowser | Out-Host if($?) { Write-Host "Installed Brave Browser" } + $ResultText.text = "`r`n" + "Finished Installing Brave" + "`r`n" + "`r`n" + "Ready for Next Task" }) $firefox.Add_Click({ Write-Host "Installing Firefox" + $ResultText.text = "`r`n" +"`r`n" + "Installing Firefox... Please Wait" winget install Mozilla.Firefox | Out-Host if($?) { Write-Host "Installed Firefox" } + $ResultText.text = "`r`n" + "Finished Installing Firefox" + "`r`n" + "`r`n" + "Ready for Next Task" }) $gchrome.Add_Click({ Write-Host "Installing Google Chrome" + $ResultText.text = "`r`n" +"`r`n" + "Installing Google Chrome... Please Wait" winget install Google.Chrome | Out-Host if($?) { Write-Host "Installed Google Chrome" } + $ResultText.text = "`r`n" + "Finished Installing Google Chrome" + "`r`n" + "`r`n" + "Ready for Next Task" }) -$irfanview.Add_Click({ - Write-Host "Installing Irfanview (Image Viewer)" - winget install IrfanSkiljan.IrfanView | Out-Host - if($?) { Write-Host "Installed Irfanview (Image Viewer)" } +$autohotkey.Add_Click({ + Write-Host "Installing AutoHotkey" + $ResultText.text = "`r`n" +"`r`n" + "Installing AutoHotkey... Please Wait" + winget install Lexikos.AutoHotkey | Out-Host + if($?) { Write-Host "Installed AutoHotkey" } + $ResultText.text = "`r`n" + "Finished Installing Autohotkey" + "`r`n" + "`r`n" + "Ready for Next Task" }) $imageglass.Add_Click({ Write-Host "Installing Image Glass (Image Viewer)" + $ResultText.text = "`r`n" +"`r`n" + "Installing Image Glass... Please Wait" winget install DuongDieuPhap.ImageGlass | Out-Host if($?) { Write-Host "Installed Image Glass (Image Viewer)" } + $ResultText.text = "`r`n" + "Finished Installing Image Glass" + "`r`n" + "`r`n" + "Ready for Next Task" }) -$honeyview.Add_Click({ - Write-Host "Installing Bandisoft Honeyview (Image Viewer)" - winget install Bandisoft.Honeyview | Out-Host - if($?) { Write-Host "Installed Honeyview (Image Viewer)" } +$discord.Add_Click({ + Write-Host "Installing Discord" + $ResultText.text = "`r`n" +"`r`n" + "Discord... Please Wait" + winget install Discord.Discord | Out-Host + if($?) { Write-Host "Installed Discord" } + $ResultText.text = "`r`n" + "Finished Installing Discord" + "`r`n" + "`r`n" + "Ready for Next Task" }) $adobereader.Add_Click({ Write-Host "Installing Adobe Reader DC" + $ResultText.text = "`r`n" +"`r`n" + "Installing Adobe Reader DC... Please Wait" winget install Adobe.AdobeAcrobatReaderDC | Out-Host if($?) { Write-Host "Installed Adobe Reader DC" } + $ResultText.text = "`r`n" + "Finished Installing Adobe Reader DC" + "`r`n" + "`r`n" + "Ready for Next Task" }) $notepad.Add_Click({ Write-Host "Installing Notepad++" + $ResultText.text = "`r`n" +"`r`n" + "Installing Notepad++... Please Wait" winget install Notepad++.Notepad++ | Out-Host if($?) { Write-Host "Installed Notepad++" } + $ResultText.text = "`r`n" + "Finished Installing NotePad++" + "`r`n" + "`r`n" + "Ready for Next Task" }) $vlc.Add_Click({ Write-Host "Installing VLC Media Player" + $ResultText.text = "`r`n" +"`r`n" + "VLC Media Player... Please Wait" winget install VideoLAN.VLC | Out-Host if($?) { Write-Host "Installed VLC Media Player" } + $ResultText.text = "`r`n" + "Finished Installing NotePad++" + "`r`n" + "`r`n" + "Ready for Next Task" }) $mpc.Add_Click({ Write-Host "Installing Media Player Classic" + $ResultText.text = "`r`n" +"`r`n" + "Installing Media Player Classic... Please Wait" winget install clsid2.mpc-hc | Out-Host if($?) { Write-Host "Installed Media Player Classic" } + $ResultText.text = "`r`n" + "Finished Installing Media Player Classic" + "`r`n" + "`r`n" + "Ready for Next Task" }) $7zip.Add_Click({ Write-Host "Installing 7-Zip Compression Tool" + $ResultText.text = "`r`n" +"`r`n" + "Installing 7-Zip Compression Tool... Please Wait" winget install 7zip.7zip | Out-Host if($?) { Write-Host "Installed 7-Zip Compression Tool" } + $ResultText.text = "`r`n" + "Finished Installing 7-Zip Compression Tool" + "`r`n" + "`r`n" + "Ready for Next Task" }) $vscode.Add_Click({ Write-Host "Installing Visual Studio Code" + $ResultText.text = "`r`n" +"`r`n" + "Installing Visual Studio Code... Please Wait" winget install Microsoft.VisualStudioCode | Out-Host if($?) { Write-Host "Installed Visual Studio Code" } + $ResultText.text = "`r`n" + "Finished Installing Visual Studio Code" + "`r`n" + "`r`n" + "Ready for Next Task" }) $vscodium.Add_Click({ Write-Host "Installing VS Codium" + $ResultText.text = "`r`n" +"`r`n" + "Installing VS Codium... Please Wait" winget install VSCodium.VSCodium | Out-Host if($?) { Write-Host "Installed VS Codium" } + $ResultText.text = "`r`n" + "Finished Installing VS Codium" + "`r`n" + "`r`n" + "Ready for Next Task" }) $winterminal.Add_Click({ Write-Host "Installing New Windows Terminal" + $ResultText.text = "`r`n" +"`r`n" + "Installing New Windows Terminal... Please Wait" winget install Microsoft.WindowsTerminal | Out-Host if($?) { Write-Host "Installed New Windows Terminal" } + $ResultText.text = "`r`n" + "Finished Installing New Windows Terminal" + "`r`n" + "`r`n" + "Ready for Next Task" }) $powertoys.Add_Click({ Write-Host "Installing Microsoft PowerToys" + $ResultText.text = "`r`n" +"`r`n" + "Installing Microsoft PowerToys... Please Wait" winget install Microsoft.PowerToys | Out-Host if($?) { Write-Host "Installed Microsoft PowerToys" } + $ResultText.text = "`r`n" + "Finished Installing Microsoft PowerToys" + "`r`n" + "`r`n" + "Ready for Next Task" }) $everythingsearch.Add_Click({ Write-Host "Installing Voidtools Everything Search" + $ResultText.text = "`r`n" +"`r`n" + "Installing Voidtools Everything Search... Please Wait" winget install voidtools.Everything | Out-Host if($?) { Write-Host "Installed Everything Search" } + $ResultText.text = "`r`n" + "Finished Installing Voidtools Everything Search" + "`r`n" + "`r`n" + "Ready for Next Task" }) $sumatrapdf.Add_Click({ Write-Host "Installing Sumatra PDF" + $ResultText.text = "`r`n" +"`r`n" + "Installing Sumatra PDF... Please Wait" winget install SumatraPDF.SumatraPDF | Out-Host if($?) { Write-Host "Installed Sumatra PDF" } + $ResultText.text = "`r`n" + "Finished Installing Sumatra PDF" + "`r`n" + "`r`n" + "Ready for Next Task" }) -$openshell.Add_Click({ - Write-Host "Installing OpenShell (Old Windows menu)" - winget install openshellmenu | Out-Host - Write-Host "Installed OpenShell" +$githubdesktop.Add_Click({ + Write-Host "Installing GitHub Desktop" + $ResultText.text = "`r`n" +"`r`n" + "Installing GitHub Desktop... Please Wait" + winget install GitHub.GitHubDesktop | Out-Host + Write-Host "Installed Github Desktop" + $ResultText.text = "`r`n" + "Finished Installing GitHub Desktop" + "`r`n" + "`r`n" + "Ready for Next Task" +}) + +$translucenttb.Add_Click({ + Write-Host "Installing Translucent Taskbar" + $ResultText.text = "`r`n" +"`r`n" + "Installing Translucent Taskbar... Please Wait" + winget install TranslucentTB.TranslucentTB | Out-Host + Write-Host "Installed Translucent Taskbar" + $ResultText.text = "`r`n" + "Finished Installing Translucent Taskbar" + "`r`n" + "`r`n" + "Ready for Next Task" +}) + +$etcher.Add_Click({ + Write-Host "Installing Etcher USB Imager" + $ResultText.text = "`r`n" +"`r`n" + "Installing Etcher USB Imager... Please Wait" + winget install Balena.Etcher | Out-Host + Write-Host "Installed Etcher USB Imager" + $ResultText.text = "`r`n" + "Finished Installing Etcher USB Imager" + "`r`n" + "`r`n" + "Ready for Next Task" +}) + +$putty.Add_Click({ + Write-Host "Installing PuTTY & WinSCP" + $ResultText.text = "`r`n" +"`r`n" + "Installing PuTTY & WinSCP... Please Wait" + winget install PuTTY.PuTTY | Out-Host + winget install WinSCP.WinSCP | Out-Host + Write-Host "Installed PuTTY & WinSCP" + $ResultText.text = "`r`n" + "Finished Installing PuTTY & WinSCP" + "`r`n" + "`r`n" + "Ready for Next Task" +}) + +$advancedipscanner.Add_Click({ + Write-Host "Installing Advanced IP Scanner" + $ResultText.text = "`r`n" +"`r`n" + "Installing Advanced IP Scanner... Please Wait" + winget install Famatech.AdvancedIPScanner | Out-Host + Write-Host "Installed Advanced IP Scanner" + $ResultText.text = "`r`n" + "Finished Installing Advanced IP Scanner" + "`r`n" + "`r`n" + "Ready for Next Task" +}) + +$sharex.Add_Click({ + Write-Host "Installing ShareX Screenshot Tool" + $ResultText.text = "`r`n" +"`r`n" + "Installing ShareX Screenshot Tool... Please Wait" + winget install ShareX.ShareX | Out-Host + Write-Host "Installed ShareX Screenshot Tool" + $ResultText.text = "`r`n" + "Finished Installing ShareX Screenshot Tool" + "`r`n" + "`r`n" + "Ready for Next Task" +}) + +$gimp.Add_Click({ + Write-Host "Installing Gimp Image Editor" + $ResultText.text = "`r`n" +"`r`n" + "Installing Gimp Image Editor... Please Wait" + winget install GIMP.GIMP | Out-Host + Write-Host "Installed Gimp Image Editor" + $ResultText.text = "`r`n" + "Finished Installing Gimp Image Editor" + "`r`n" + "`r`n" + "Ready for Next Task" }) $essentialtweaks.Add_Click({ Write-Host "Creating Restore Point incase something bad happens" + $ResultText.text = "`r`n" +"`r`n" + "Installing Essential Tools... Please Wait" Enable-ComputerRestore -Drive "C:\" Checkpoint-Computer -Description "RestorePoint1" -RestorePointType "MODIFY_SETTINGS" Write-Host "Running O&O Shutup with Recommended Settings" + $ResultText.text += "`r`n" +"Running O&O Shutup with Recommended Settings" Import-Module BitsTransfer Start-BitsTransfer -Source "https://raw.githubusercontent.com/ChrisTitusTech/win10script/master/ooshutup10.cfg" -Destination ooshutup10.cfg Start-BitsTransfer -Source "https://dl5.oo-software.com/files/ooshutup10/OOSU10.exe" -Destination OOSU10.exe ./OOSU10.exe ooshutup10.cfg /quiet Write-Host "Disabling Telemetry..." + $ResultText.text += "`r`n" +"Disabling Telemetry..." Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\DataCollection" -Name "AllowTelemetry" -Type DWord -Value 0 Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DataCollection" -Name "AllowTelemetry" -Type DWord -Value 0 Disable-ScheduledTask -TaskName "Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser" | Out-Null @@ -668,8 +889,8 @@ $essentialtweaks.Add_Click({ New-Item -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People" | Out-Null } Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People" -Name "PeopleBand" -Type DWord -Value 0 - Write-Host "Showing all tray icons..." - Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" -Name "EnableAutoTray" -Type DWord -Value 0 + Write-Host "Hide tray icons..." + Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" -Name "EnableAutoTray" -Type DWord -Value 1 Write-Host "Enabling NumLock after startup..." If (!(Test-Path "HKU:")) { New-PSDrive -Name HKU -PSProvider Registry -Root HKEY_USERS | Out-Null @@ -682,6 +903,7 @@ $essentialtweaks.Add_Click({ } Write-Host "Changing default Explorer view to This PC..." + $ResultText.text += "`r`n" +"Quality of Life Tweaks" Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "LaunchTo" -Type DWord -Value 1 Write-Host "Hiding 3D Objects icon from This PC..." @@ -697,6 +919,7 @@ $essentialtweaks.Add_Click({ #Enable-WindowsOptionalFeature -Online -FeatureName "WindowsMediaPlayer" -NoRestart -WarningAction SilentlyContinue | Out-Null Write-Host "Disable News and Interests" + $ResultText.text += "`r`n" +"Disabling Extra Junk" Set-ItemProperty -Path "HKCU:\SOFTWARE\Policies\Microsoft\Windows\Windows Feeds" -Name "EnableFeeds" -Type DWord -Value 0 # Remove "News and Interest" from taskbar Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Feeds" -Name "ShellFeedsTaskbarViewMode" -Type DWord -Value 2 @@ -724,15 +947,18 @@ Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "HideFileExt" -Type DWord -Value 0 Write-Host "Essential Tweaks Completed" + $ResultText.text = "`r`n" + "Essential Tweaks Done" + "`r`n" + "`r`n" + "Ready for Next Task" }) $dualboottime.Add_Click({ Write-Host "Setting BIOS time to UTC..." Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\TimeZoneInformation" -Name "RealTimeIsUniversal" -Type DWord -Value 1 + $ResultText.text = "`r`n" + "Time set to UTC for consistent time in Dual Boot Systems" + "`r`n" + "`r`n" + "Ready for Next Task" }) $essentialundo.Add_Click({ Write-Host "Creating Restore Point incase something bad happens" + $ResultText.text = "`r`n" +"`r`n" + "Creating Restore Point and Reverting Settings... Please Wait" Enable-ComputerRestore -Drive "C:\" Checkpoint-Computer -Description "RestorePoint1" -RestorePointType "MODIFY_SETTINGS" @@ -819,9 +1045,6 @@ $essentialundo.Add_Click({ Write-Host "Showing Task View button..." Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "ShowTaskViewButton" -Type DWord -Value 1 Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People" -Name "PeopleBand" -Type DWord -Value 1 - Write-Host "Hiding tray icons..." - Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" -Name "EnableAutoTray" -Type DWord -Value 1 - Write-Host "Changing default Explorer view to Quick Access..." Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "LaunchTo" -Type DWord -Value 0 @@ -845,10 +1068,12 @@ $essentialundo.Add_Click({ # Considered using Invoke-GPUpdate but requires module most people won't have installed Write-Host "Essential Undo Completed" + $ResultText.text = "`r`n" +"`r`n" + "Essential Undo Completed - Ready for next task" }) $windowssearch.Add_Click({ Write-Host "Disabling Bing Search in Start Menu..." + $ResultText.text = "`r`n" +"`r`n" + "Disabling Search, Cortana, Start menu search... Please Wait" Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Search" -Name "BingSearchEnabled" -Type DWord -Value 0 <# Write-Host "Disabling Cortana" @@ -927,6 +1152,7 @@ $windowssearch.Add_Click({ Set-ItemProperty -Path $keyPath -Name "LockedStartLayout" -Value 0 Write-Host "Search and Start Menu Tweaks Complete" + $ResultText.text = "`r`n" +"`r`n" + "Search and Start Menu Tweaks Complete" } }) @@ -937,6 +1163,7 @@ $backgroundapps.Add_Click({ Set-ItemProperty -Path $_.PsPath -Name "DisabledByUser" -Type DWord -Value 1 } Write-Host "Disabled Background application access" + $ResultText.text = "`r`n" +"`r`n" + "Disabled Background application access" }) $cortana.Add_Click({ @@ -959,6 +1186,7 @@ $cortana.Add_Click({ } Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search" -Name "AllowCortana" -Type DWord -Value 0 Write-Host "Disabled Cortana" + $ResultText.text = "`r`n" +"`r`n" + "Disabled Cortana" }) $Bloatware = @( @@ -1058,9 +1286,11 @@ $removebloat.Add_Click({ Get-AppxPackage -Name $Bloat| Remove-AppxPackage Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like $Bloat | Remove-AppxProvisionedPackage -Online Write-Host "Trying to remove $Bloat." + $ResultText.text = "`r`n" +"`r`n" + "Trying to remove $Bloat." } Write-Host "Finished Removing Bloatware Apps" + $ResultText.text = "`r`n" +"`r`n" + "Finished Removing Bloatware Apps" }) $reinstallbloat.Add_Click({ @@ -1068,10 +1298,12 @@ $reinstallbloat.Add_Click({ foreach ($app in $Bloatware) { Write-Output "Trying to add $app" + $ResultText.text = "`r`n" +"`r`n" + "Trying to add $app" Add-AppxPackage -DisableDevelopmentMode -Register "$($(Get-AppxPackage -AllUsers $app).InstallLocation)\AppXManifest.xml" } Write-Host "Finished Reinstalling Bloatware Apps" + $ResultText.text = "`r`n" +"`r`n" + "Finished Reinstalling Bloatware Apps" }) $defaultwindowsupdate.Add_Click({ @@ -1085,6 +1317,7 @@ $defaultwindowsupdate.Add_Click({ Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name "NoAutoRebootWithLoggedOnUsers" -ErrorAction SilentlyContinue Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name "AUPowerManagement" -ErrorAction SilentlyContinue Write-Host "Enabled driver offering through Windows Update" + $ResultText.text = "`r`n" +"`r`n" + "Set Windows Updates to Stock Settings" }) $securitywindowsupdate.Add_Click({ @@ -1110,6 +1343,7 @@ $securitywindowsupdate.Add_Click({ Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name "NoAutoRebootWithLoggedOnUsers" -Type DWord -Value 1 Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name "AUPowerManagement" -Type DWord -Value 0 Write-Host "Disabled driver offering through Windows Update" + $ResultText.text = "`r`n" +"`r`n" + "Set Windows Update to Sane Settings" }) $actioncenter.Add_Click({ @@ -1120,9 +1354,10 @@ $actioncenter.Add_Click({ Set-ItemProperty -Path "HKCU:\SOFTWARE\Policies\Microsoft\Windows\Explorer" -Name "DisableNotificationCenter" -Type DWord -Value 1 Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\PushNotifications" -Name "ToastEnabled" -Type DWord -Value 0 Write-Host "Disabled Action Center" + $ResultText.text = "`r`n" +"`r`n" + "Disabled Action Center" }) -$visualfx.Add_Click({ +$performancefx.Add_Click({ Write-Host "Adjusting visual effects for performance..." Set-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name "DragFullWindows" -Type String -Value 0 Set-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name "MenuShowDelay" -Type String -Value 200 @@ -1135,6 +1370,22 @@ $visualfx.Add_Click({ Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects" -Name "VisualFXSetting" -Type DWord -Value 3 Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\DWM" -Name "EnableAeroPeek" -Type DWord -Value 0 Write-Host "Adjusted visual effects for performance" + $ResultText.text = "`r`n" +"`r`n" + "Adjusted VFX for performance" +}) + +$appearancefx.Add_Click({ + Write-Output "Adjusting visual effects for appearance..." + Set-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name "DragFullWindows" -Type String -Value 1 + Set-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name "MenuShowDelay" -Type String -Value 400 + Set-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name "UserPreferencesMask" -Type Binary -Value ([byte[]](158,30,7,128,18,0,0,0)) + Set-ItemProperty -Path "HKCU:\Control Panel\Desktop\WindowMetrics" -Name "MinAnimate" -Type String -Value 1 + Set-ItemProperty -Path "HKCU:\Control Panel\Keyboard" -Name "KeyboardDelay" -Type DWord -Value 1 + Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "ListviewAlphaSelect" -Type DWord -Value 1 + Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "ListviewShadow" -Type DWord -Value 1 + Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "TaskbarAnimations" -Type DWord -Value 1 + Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects" -Name "VisualFXSetting" -Type DWord -Value 3 + Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\DWM" -Name "EnableAeroPeek" -Type DWord -Value 1 + $ResultText.text = "`r`n" +"`r`n" + "Visual effects are set for appearance (Defaults)" }) $onedrive.Add_Click({ @@ -1164,18 +1415,21 @@ $onedrive.Add_Click({ Remove-Item -Path "HKCR:\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" -Recurse -ErrorAction SilentlyContinue Remove-Item -Path "HKCR:\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" -Recurse -ErrorAction SilentlyContinue Write-Host "Disabled OneDrive" + $ResultText.text = "`r`n" +"`r`n" + "Deleted and Disabled OneDrive" }) $darkmode.Add_Click({ Write-Host "Enabling Dark Mode" Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name AppsUseLightTheme -Value 0 Write-Host "Enabled Dark Mode" + $ResultText.text = "`r`n" +"`r`n" + "Enabled Dark Mode" }) $lightmode.Add_Click({ Write-Host "Switching Back to Light Mode" Remove-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name AppsUseLightTheme Write-Host "Switched Back to Light Mode" + $ResultText.text = "`r`n" +"`r`n" + "Enabled Light Mode" }) $EActionCenter.Add_Click({ @@ -1183,6 +1437,7 @@ $EActionCenter.Add_Click({ Remove-ItemProperty -Path "HKCU:\SOFTWARE\Policies\Microsoft\Windows\Explorer" -Name "DisableNotificationCenter" -ErrorAction SilentlyContinue Remove-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\PushNotifications" -Name "ToastEnabled" -ErrorAction SilentlyContinue Write-Host "Done - Reverted to Stock Settings" + $ResultText.text = "`r`n" +"`r`n" + "Enabled Action Center" }) $ECortana.Add_Click({ @@ -1205,13 +1460,24 @@ $ECortana.Add_Click({ Write-Host "Restore Windows Search Icon..." Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" -Name "SearchboxTaskbarMode" -Type DWord -Value 1 Write-Host "Done - Reverted to Stock Settings" + $ResultText.text = "`r`n" +"`r`n" + "Enabled Cortana and Restored Search" }) $HTrayIcons.Add_Click({ Write-Host "Hiding tray icons..." - Remove-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" -Name "EnableAutoTray" -ErrorAction SilentlyContinue - Write-Host "Done - Reverted to Stock Settings" + Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" -Name "EnableAutoTray" -Type DWord -Value 1 + Write-Host "Done - Hid Tray Icons" + $ResultText.text = "`r`n" +"`r`n" + "Tray icons are now factory defaults" +}) + + +$STrayIcons.Add_Click({ + + Write-Host "Showing tray icons..." + Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" -Name "EnableAutoTray" -Type DWord -Value 0 + Write-Host "Done - Now showing all tray icons" + $ResultText.text = "`r`n" +"`r`n" + "Tray Icons now set to show all" }) $EClipboardHistory.Add_Click({ @@ -1219,6 +1485,7 @@ $EClipboardHistory.Add_Click({ Remove-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Clipboard" -Name "EnableClipboardHistory" -ErrorAction SilentlyContinue Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\System" -Name "AllowClipboardHistory" -ErrorAction SilentlyContinue Write-Host "Done - Reverted to Stock Settings" + $ResultText.text = "`r`n" +"`r`n" + "Enabled Clipboard History" }) $ELocation.Add_Click({ @@ -1238,6 +1505,7 @@ $ELocation.Add_Click({ Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" -Name "LetAppsAccessLocation_ForceAllowTheseApps" -ErrorAction SilentlyContinue Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" -Name "LetAppsAccessLocation_ForceDenyTheseApps" -ErrorAction SilentlyContinue Write-Host "Done - Reverted to Stock Settings" + $ResultText.text = "`r`n" +"`r`n" + "Location Tracking now on... Reboot to check." }) $RBackgroundApps.Add_Click({ @@ -1247,6 +1515,7 @@ $RBackgroundApps.Add_Click({ Remove-ItemProperty -Path $_.PsPath -Name "DisabledByUser" -ErrorAction SilentlyContinue } Write-Host "Done - Reverted to Stock Settings" + $ResultText.text = "`r`n" +"`r`n" + "Enabled Background Apps" }) $EHibernation.Add_Click({ @@ -1254,12 +1523,14 @@ $EHibernation.Add_Click({ Set-ItemProperty -Path "HKLM:\System\CurrentControlSet\Control\Session Manager\Power" -Name "HibernteEnabled" -Type Dword -Value 1 Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FlyoutMenuSettings" -Name "ShowHibernateOption" -Type Dword -Value 1 Write-Host "Done - Reverted to Stock Settings" + $ResultText.text = "`r`n" +"`r`n" + "Enabled Hibernation" }) $InstallOneDrive.Add_Click({ Write-Host "Installing Onedrive. Please Wait..." Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\OneDrive" -Name "DisableFileSyncNGSC" -ErrorAction SilentlyContinue %systemroot%\SysWOW64\OneDriveSetup.exe + $ResultText.text = "`r`n" +"`r`n" + "Finished Reinstalling OneDrive" }) $DisableNumLock.Add_Click({ @@ -1270,6 +1541,7 @@ $DisableNumLock.Add_Click({ $wsh = New-Object -ComObject WScript.Shell $wsh.SendKeys('{NUMLOCK}') } + $ResultText.text = "`r`n" +"`r`n" + "NUMLOCK Disabled" }) $yourphonefix.Add_Click({ @@ -1285,6 +1557,102 @@ $yourphonefix.Add_Click({ Remove-ItemProperty -Path $_.PsPath -Name "DisabledByUser" -ErrorAction SilentlyContinue } Write-Host "You may need to Reboot and right-click Your Phone app and select repair" + $ResultText.text = "`r`n" +"`r`n" + "You may need to Reboot and right-click Your Phone app and select repair" +}) + +$windowsupdatefix.Add_Click({ + Write-Host "1. Stopping Windows Update Services..." + Stop-Service -Name BITS + Stop-Service -Name wuauserv + Stop-Service -Name appidsvc + Stop-Service -Name cryptsvc + + Write-Host "2. Remove QMGR Data file..." + Remove-Item "$env:allusersprofile\Application Data\Microsoft\Network\Downloader\qmgr*.dat" -ErrorAction SilentlyContinue + + Write-Host "3. Renaming the Software Distribution and CatRoot Folder..." + Rename-Item $env:systemroot\SoftwareDistribution SoftwareDistribution.bak -ErrorAction SilentlyContinue + Rename-Item $env:systemroot\System32\Catroot2 catroot2.bak -ErrorAction SilentlyContinue + + Write-Host "4. Removing old Windows Update log..." + Remove-Item $env:systemroot\WindowsUpdate.log -ErrorAction SilentlyContinue + + Write-Host "5. Resetting the Windows Update Services to defualt settings..." + "sc.exe sdset bits D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)" + "sc.exe sdset wuauserv D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)" + + Set-Location $env:systemroot\system32 + + Write-Host "6. Registering some DLLs..." + regsvr32.exe /s atl.dll + regsvr32.exe /s urlmon.dll + regsvr32.exe /s mshtml.dll + regsvr32.exe /s shdocvw.dll + regsvr32.exe /s browseui.dll + regsvr32.exe /s jscript.dll + regsvr32.exe /s vbscript.dll + regsvr32.exe /s scrrun.dll + regsvr32.exe /s msxml.dll + regsvr32.exe /s msxml3.dll + regsvr32.exe /s msxml6.dll + regsvr32.exe /s actxprxy.dll + regsvr32.exe /s softpub.dll + regsvr32.exe /s wintrust.dll + regsvr32.exe /s dssenh.dll + regsvr32.exe /s rsaenh.dll + regsvr32.exe /s gpkcsp.dll + regsvr32.exe /s sccbase.dll + regsvr32.exe /s slbcsp.dll + regsvr32.exe /s cryptdlg.dll + regsvr32.exe /s oleaut32.dll + regsvr32.exe /s ole32.dll + regsvr32.exe /s shell32.dll + regsvr32.exe /s initpki.dll + regsvr32.exe /s wuapi.dll + regsvr32.exe /s wuaueng.dll + regsvr32.exe /s wuaueng1.dll + regsvr32.exe /s wucltui.dll + regsvr32.exe /s wups.dll + regsvr32.exe /s wups2.dll + regsvr32.exe /s wuweb.dll + regsvr32.exe /s qmgr.dll + regsvr32.exe /s qmgrprxy.dll + regsvr32.exe /s wucltux.dll + regsvr32.exe /s muweb.dll + regsvr32.exe /s wuwebv.dll + + Write-Host "7) Removing WSUS client settings..." + REG DELETE "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate" /v AccountDomainSid /f + REG DELETE "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate" /v PingID /f + REG DELETE "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate" /v SusClientId /f + + Write-Host "8) Resetting the WinSock..." + netsh winsock reset + netsh winhttp reset proxy + + Write-Host "9) Delete all BITS jobs..." + Get-BitsTransfer | Remove-BitsTransfer + + Write-Host "10) Attempting to install the Windows Update Agent..." + if($arch -eq 64){ + wusa Windows8-RT-KB2937636-x64 /quiet + } + else{ + wusa Windows8-RT-KB2937636-x86 /quiet + } + + Write-Host "11) Starting Windows Update Services..." + Start-Service -Name BITS + Start-Service -Name wuauserv + Start-Service -Name appidsvc + Start-Service -Name cryptsvc + + Write-Host "12) Forcing discovery..." + wuauclt /resetauthorization /detectnow + + Write-Host "Process complete. Please reboot your computer." + $ResultText.text = "`r`n" +"`r`n" + "Process complete. Please reboot your computer." + }) [void]$Form.ShowDialog() From f2aaa3c484a40c3c6baf299a8743ddf12f4c18b7 Mon Sep 17 00:00:00 2001 From: Chris Titus Date: Mon, 27 Sep 2021 22:24:48 -0500 Subject: [PATCH 09/63] VideoAdditions --- win10debloat.ps1 | 49 ++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 45 insertions(+), 4 deletions(-) diff --git a/win10debloat.ps1 b/win10debloat.ps1 index 870f8c36..4ecdf22f 100644 --- a/win10debloat.ps1 +++ b/win10debloat.ps1 @@ -271,7 +271,7 @@ $Label19.Font = New-Object System.Drawing.Font('Microsoft San $PictureBox1 = New-Object system.Windows.Forms.PictureBox $PictureBox1.width = 366 $PictureBox1.height = 130 -$PictureBox1.location = New-Object System.Drawing.Point(571,274) +$PictureBox1.location = New-Object System.Drawing.Point(554,420) $PictureBox1.imageLocation = "https://github.com/ChrisTitusTech/win10script/blob/master/titus-toolbox.png?raw=true" $PictureBox1.SizeMode = [System.Windows.Forms.PictureBoxSizeMode]::zoom $lightmode = New-Object system.Windows.Forms.Button @@ -536,7 +536,7 @@ $ResultText = New-Object system.Windows.Forms.TextBox $ResultText.multiline = $true $ResultText.width = 338 $ResultText.height = 126 -$ResultText.location = New-Object System.Drawing.Point(581,489) +$ResultText.location = New-Object System.Drawing.Point(565,284) $ResultText.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',10) $Label10 = New-Object system.Windows.Forms.Label @@ -544,7 +544,7 @@ $Label10.text = "Current Status:" $Label10.AutoSize = $true $Label10.width = 25 $Label10.height = 10 -$Label10.location = New-Object System.Drawing.Point(639,440) +$Label10.location = New-Object System.Drawing.Point(643,244) $Label10.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',24) $EHibernation = New-Object system.Windows.Forms.Button @@ -561,7 +561,36 @@ $dualboottime.height = 30 $dualboottime.location = New-Object System.Drawing.Point(3,754) $dualboottime.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) -$Form.controls.AddRange(@($Panel1,$Panel2,$Label3,$Label15,$Panel4,$PictureBox1,$Label1,$Label4,$Panel3,$ResultText,$Label10)) +$Label11 = New-Object system.Windows.Forms.Label +$Label11.text = "Videos to Fix Windows" +$Label11.AutoSize = $true +$Label11.width = 25 +$Label11.height = 10 +$Label11.location = New-Object System.Drawing.Point(652,565) +$Label11.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) + +$urlfixwinstartup = New-Object system.Windows.Forms.Button +$urlfixwinstartup.text = "Repair Windows Startup" +$urlfixwinstartup.width = 232 +$urlfixwinstartup.height = 30 +$urlfixwinstartup.location = New-Object System.Drawing.Point(615,594) +$urlfixwinstartup.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',10) + +$urlremovevirus = New-Object system.Windows.Forms.Button +$urlremovevirus.text = "Clean Viruses" +$urlremovevirus.width = 232 +$urlremovevirus.height = 30 +$urlremovevirus.location = New-Object System.Drawing.Point(615,632) +$urlremovevirus.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',10) + +$urlcreateiso = New-Object system.Windows.Forms.Button +$urlcreateiso.text = "Create Custom ISO" +$urlcreateiso.width = 232 +$urlcreateiso.height = 30 +$urlcreateiso.location = New-Object System.Drawing.Point(615,672) +$urlcreateiso.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',10) + +$Form.controls.AddRange(@($Panel1,$Panel2,$Label3,$Label15,$Panel4,$PictureBox1,$Label1,$Label4,$Panel3,$ResultText,$Label10,$Label11,$urlfixwinstartup,$urlremovevirus,$urlcreateiso)) $Panel1.controls.AddRange(@($brave,$firefox,$7zip,$sharex,$adobereader,$notepad,$gchrome,$mpc,$vlc,$powertoys,$winterminal,$vscode,$Label2,$everythingsearch,$sumatrapdf,$vscodium,$imageglass,$gimp,$Label7,$Label8,$Label9,$advancedipscanner,$putty,$etcher,$translucenttb,$githubdesktop,$discord,$autohotkey)) $Panel2.controls.AddRange(@($essentialtweaks,$backgroundapps,$cortana,$actioncenter,$darkmode,$performancefx,$onedrive,$lightmode,$essentialundo,$EActionCenter,$ECortana,$RBackgroundApps,$HTrayIcons,$EClipboardHistory,$ELocation,$InstallOneDrive,$removebloat,$reinstallbloat,$WarningLabel,$Label5,$appearancefx,$STrayIcons,$EHibernation,$dualboottime)) $Panel4.controls.AddRange(@($defaultwindowsupdate,$securitywindowsupdate,$Label16,$Label17,$Label18,$Label19)) @@ -669,6 +698,18 @@ $vscodium.Add_Click({ $ResultText.text = "`r`n" + "Finished Installing VS Codium" + "`r`n" + "`r`n" + "Ready for Next Task" }) +$urlremovevirus.Add_Click({ + Start-Process "https://youtu.be/CHtZ9-9ch2w" +}) + +$urlfixwinstartup.Add_Click({ + Start-Process "https://youtu.be/sOihh4ZNOf4" +}) + +$urlcreateiso.Add_Click({ + Start-Process "https://youtu.be/R6XPff38iSc" +}) + $winterminal.Add_Click({ Write-Host "Installing New Windows Terminal" $ResultText.text = "`r`n" +"`r`n" + "Installing New Windows Terminal... Please Wait" From 5bc8ed727ac0d29b12208def716494f384d4e14e Mon Sep 17 00:00:00 2001 From: adamz01h Date: Tue, 28 Sep 2021 21:29:13 -0400 Subject: [PATCH 10/63] Fixes issue #192 --- win10debloat.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/win10debloat.ps1 b/win10debloat.ps1 index 4ecdf22f..cb4df261 100644 --- a/win10debloat.ps1 +++ b/win10debloat.ps1 @@ -37,6 +37,7 @@ $Form.BackColor = [System.Drawing.ColorTranslator]::FromHtml("# $Form.AutoScaleDimensions = '192, 192' $Form.AutoScaleMode = "Dpi" $Form.AutoSize = $True +$Form.AutoScroll = $True $Form.ClientSize = '1050, 1000' $Form.FormBorderStyle = 'FixedSingle' From 766348fe9c3649df63516d47f613c738286fe24f Mon Sep 17 00:00:00 2001 From: Preyan Bhowmick Date: Tue, 5 Oct 2021 10:29:52 +0530 Subject: [PATCH 11/63] Fixed VScode and Everything search install command --- win10debloat.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/win10debloat.ps1 b/win10debloat.ps1 index cb4df261..7475f3bf 100644 --- a/win10debloat.ps1 +++ b/win10debloat.ps1 @@ -686,7 +686,7 @@ $7zip.Add_Click({ $vscode.Add_Click({ Write-Host "Installing Visual Studio Code" $ResultText.text = "`r`n" +"`r`n" + "Installing Visual Studio Code... Please Wait" - winget install Microsoft.VisualStudioCode | Out-Host + winget install Microsoft.VisualStudioCode --source winget | Out-Host if($?) { Write-Host "Installed Visual Studio Code" } $ResultText.text = "`r`n" + "Finished Installing Visual Studio Code" + "`r`n" + "`r`n" + "Ready for Next Task" }) @@ -730,7 +730,7 @@ $powertoys.Add_Click({ $everythingsearch.Add_Click({ Write-Host "Installing Voidtools Everything Search" $ResultText.text = "`r`n" +"`r`n" + "Installing Voidtools Everything Search... Please Wait" - winget install voidtools.Everything | Out-Host + winget install voidtools.Everything --source winget | Out-Host if($?) { Write-Host "Installed Everything Search" } $ResultText.text = "`r`n" + "Finished Installing Voidtools Everything Search" + "`r`n" + "`r`n" + "Ready for Next Task" }) From 3412da5b9197d76afa5ded2782e7de87369b0d54 Mon Sep 17 00:00:00 2001 From: Evan Burkey Date: Tue, 12 Oct 2021 08:39:24 -0700 Subject: [PATCH 12/63] Fix 7-Zip install button Winget gets confused and doesn't know what to pick for 7-zip. Adding the `--id` switch forces it to use the correct listing --- win10debloat.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/win10debloat.ps1 b/win10debloat.ps1 index cb4df261..08634fcd 100644 --- a/win10debloat.ps1 +++ b/win10debloat.ps1 @@ -678,7 +678,7 @@ $mpc.Add_Click({ $7zip.Add_Click({ Write-Host "Installing 7-Zip Compression Tool" $ResultText.text = "`r`n" +"`r`n" + "Installing 7-Zip Compression Tool... Please Wait" - winget install 7zip.7zip | Out-Host + winget install --id 7zip.7zip | Out-Host if($?) { Write-Host "Installed 7-Zip Compression Tool" } $ResultText.text = "`r`n" + "Finished Installing 7-Zip Compression Tool" + "`r`n" + "`r`n" + "Ready for Next Task" }) From 89de942584565e856c175dab8558c22e57e58758 Mon Sep 17 00:00:00 2001 From: Chris Titus Date: Thu, 14 Oct 2021 21:50:15 -0500 Subject: [PATCH 13/63] Update win10debloat.ps1 --- win10debloat.ps1 | 50 ++++++++++++++++++++++++------------------------ 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/win10debloat.ps1 b/win10debloat.ps1 index 7fc99371..aa138651 100644 --- a/win10debloat.ps1 +++ b/win10debloat.ps1 @@ -600,7 +600,7 @@ $Panel3.controls.AddRange(@($yourphonefix,$Label6,$windowsupdatefix)) $brave.Add_Click({ Write-Host "Installing Brave Browser" $ResultText.text = "`r`n" +"`r`n" + "Installing Brave... Please Wait" - winget install BraveSoftware.BraveBrowser | Out-Host + winget install -e BraveSoftware.BraveBrowser | Out-Host if($?) { Write-Host "Installed Brave Browser" } $ResultText.text = "`r`n" + "Finished Installing Brave" + "`r`n" + "`r`n" + "Ready for Next Task" }) @@ -608,7 +608,7 @@ $brave.Add_Click({ $firefox.Add_Click({ Write-Host "Installing Firefox" $ResultText.text = "`r`n" +"`r`n" + "Installing Firefox... Please Wait" - winget install Mozilla.Firefox | Out-Host + winget install -e Mozilla.Firefox | Out-Host if($?) { Write-Host "Installed Firefox" } $ResultText.text = "`r`n" + "Finished Installing Firefox" + "`r`n" + "`r`n" + "Ready for Next Task" }) @@ -616,7 +616,7 @@ $firefox.Add_Click({ $gchrome.Add_Click({ Write-Host "Installing Google Chrome" $ResultText.text = "`r`n" +"`r`n" + "Installing Google Chrome... Please Wait" - winget install Google.Chrome | Out-Host + winget install -e Google.Chrome | Out-Host if($?) { Write-Host "Installed Google Chrome" } $ResultText.text = "`r`n" + "Finished Installing Google Chrome" + "`r`n" + "`r`n" + "Ready for Next Task" }) @@ -624,21 +624,21 @@ $gchrome.Add_Click({ $autohotkey.Add_Click({ Write-Host "Installing AutoHotkey" $ResultText.text = "`r`n" +"`r`n" + "Installing AutoHotkey... Please Wait" - winget install Lexikos.AutoHotkey | Out-Host + winget install -e Lexikos.AutoHotkey | Out-Host if($?) { Write-Host "Installed AutoHotkey" } $ResultText.text = "`r`n" + "Finished Installing Autohotkey" + "`r`n" + "`r`n" + "Ready for Next Task" }) $imageglass.Add_Click({ Write-Host "Installing Image Glass (Image Viewer)" $ResultText.text = "`r`n" +"`r`n" + "Installing Image Glass... Please Wait" - winget install DuongDieuPhap.ImageGlass | Out-Host + winget install -e DuongDieuPhap.ImageGlass | Out-Host if($?) { Write-Host "Installed Image Glass (Image Viewer)" } $ResultText.text = "`r`n" + "Finished Installing Image Glass" + "`r`n" + "`r`n" + "Ready for Next Task" }) $discord.Add_Click({ Write-Host "Installing Discord" $ResultText.text = "`r`n" +"`r`n" + "Discord... Please Wait" - winget install Discord.Discord | Out-Host + winget install -e Discord.Discord | Out-Host if($?) { Write-Host "Installed Discord" } $ResultText.text = "`r`n" + "Finished Installing Discord" + "`r`n" + "`r`n" + "Ready for Next Task" }) @@ -646,7 +646,7 @@ $discord.Add_Click({ $adobereader.Add_Click({ Write-Host "Installing Adobe Reader DC" $ResultText.text = "`r`n" +"`r`n" + "Installing Adobe Reader DC... Please Wait" - winget install Adobe.AdobeAcrobatReaderDC | Out-Host + winget install -e Adobe.AdobeAcrobatReaderDC | Out-Host if($?) { Write-Host "Installed Adobe Reader DC" } $ResultText.text = "`r`n" + "Finished Installing Adobe Reader DC" + "`r`n" + "`r`n" + "Ready for Next Task" }) @@ -654,7 +654,7 @@ $adobereader.Add_Click({ $notepad.Add_Click({ Write-Host "Installing Notepad++" $ResultText.text = "`r`n" +"`r`n" + "Installing Notepad++... Please Wait" - winget install Notepad++.Notepad++ | Out-Host + winget install -e Notepad++.Notepad++ | Out-Host if($?) { Write-Host "Installed Notepad++" } $ResultText.text = "`r`n" + "Finished Installing NotePad++" + "`r`n" + "`r`n" + "Ready for Next Task" }) @@ -662,7 +662,7 @@ $notepad.Add_Click({ $vlc.Add_Click({ Write-Host "Installing VLC Media Player" $ResultText.text = "`r`n" +"`r`n" + "VLC Media Player... Please Wait" - winget install VideoLAN.VLC | Out-Host + winget install -e VideoLAN.VLC | Out-Host if($?) { Write-Host "Installed VLC Media Player" } $ResultText.text = "`r`n" + "Finished Installing NotePad++" + "`r`n" + "`r`n" + "Ready for Next Task" }) @@ -670,7 +670,7 @@ $vlc.Add_Click({ $mpc.Add_Click({ Write-Host "Installing Media Player Classic" $ResultText.text = "`r`n" +"`r`n" + "Installing Media Player Classic... Please Wait" - winget install clsid2.mpc-hc | Out-Host + winget install -e clsid2.mpc-hc | Out-Host if($?) { Write-Host "Installed Media Player Classic" } $ResultText.text = "`r`n" + "Finished Installing Media Player Classic" + "`r`n" + "`r`n" + "Ready for Next Task" }) @@ -678,7 +678,7 @@ $mpc.Add_Click({ $7zip.Add_Click({ Write-Host "Installing 7-Zip Compression Tool" $ResultText.text = "`r`n" +"`r`n" + "Installing 7-Zip Compression Tool... Please Wait" - winget install --id 7zip.7zip | Out-Host + winget install -e 7zip.7zip | Out-Host if($?) { Write-Host "Installed 7-Zip Compression Tool" } $ResultText.text = "`r`n" + "Finished Installing 7-Zip Compression Tool" + "`r`n" + "`r`n" + "Ready for Next Task" }) @@ -686,7 +686,7 @@ $7zip.Add_Click({ $vscode.Add_Click({ Write-Host "Installing Visual Studio Code" $ResultText.text = "`r`n" +"`r`n" + "Installing Visual Studio Code... Please Wait" - winget install Microsoft.VisualStudioCode --source winget | Out-Host + winget install -e Microsoft.VisualStudioCode --source winget | Out-Host if($?) { Write-Host "Installed Visual Studio Code" } $ResultText.text = "`r`n" + "Finished Installing Visual Studio Code" + "`r`n" + "`r`n" + "Ready for Next Task" }) @@ -694,7 +694,7 @@ $vscode.Add_Click({ $vscodium.Add_Click({ Write-Host "Installing VS Codium" $ResultText.text = "`r`n" +"`r`n" + "Installing VS Codium... Please Wait" - winget install VSCodium.VSCodium | Out-Host + winget install -e VSCodium.VSCodium | Out-Host if($?) { Write-Host "Installed VS Codium" } $ResultText.text = "`r`n" + "Finished Installing VS Codium" + "`r`n" + "`r`n" + "Ready for Next Task" }) @@ -714,7 +714,7 @@ $urlcreateiso.Add_Click({ $winterminal.Add_Click({ Write-Host "Installing New Windows Terminal" $ResultText.text = "`r`n" +"`r`n" + "Installing New Windows Terminal... Please Wait" - winget install Microsoft.WindowsTerminal | Out-Host + winget -e install Microsoft.WindowsTerminal | Out-Host if($?) { Write-Host "Installed New Windows Terminal" } $ResultText.text = "`r`n" + "Finished Installing New Windows Terminal" + "`r`n" + "`r`n" + "Ready for Next Task" }) @@ -722,7 +722,7 @@ $winterminal.Add_Click({ $powertoys.Add_Click({ Write-Host "Installing Microsoft PowerToys" $ResultText.text = "`r`n" +"`r`n" + "Installing Microsoft PowerToys... Please Wait" - winget install Microsoft.PowerToys | Out-Host + winget -e install Microsoft.PowerToys | Out-Host if($?) { Write-Host "Installed Microsoft PowerToys" } $ResultText.text = "`r`n" + "Finished Installing Microsoft PowerToys" + "`r`n" + "`r`n" + "Ready for Next Task" }) @@ -730,7 +730,7 @@ $powertoys.Add_Click({ $everythingsearch.Add_Click({ Write-Host "Installing Voidtools Everything Search" $ResultText.text = "`r`n" +"`r`n" + "Installing Voidtools Everything Search... Please Wait" - winget install voidtools.Everything --source winget | Out-Host + winget install -e voidtools.Everything --source winget | Out-Host if($?) { Write-Host "Installed Everything Search" } $ResultText.text = "`r`n" + "Finished Installing Voidtools Everything Search" + "`r`n" + "`r`n" + "Ready for Next Task" }) @@ -738,7 +738,7 @@ $everythingsearch.Add_Click({ $sumatrapdf.Add_Click({ Write-Host "Installing Sumatra PDF" $ResultText.text = "`r`n" +"`r`n" + "Installing Sumatra PDF... Please Wait" - winget install SumatraPDF.SumatraPDF | Out-Host + winget install -e SumatraPDF.SumatraPDF | Out-Host if($?) { Write-Host "Installed Sumatra PDF" } $ResultText.text = "`r`n" + "Finished Installing Sumatra PDF" + "`r`n" + "`r`n" + "Ready for Next Task" }) @@ -746,7 +746,7 @@ $sumatrapdf.Add_Click({ $githubdesktop.Add_Click({ Write-Host "Installing GitHub Desktop" $ResultText.text = "`r`n" +"`r`n" + "Installing GitHub Desktop... Please Wait" - winget install GitHub.GitHubDesktop | Out-Host + winget install -e GitHub.GitHubDesktop | Out-Host Write-Host "Installed Github Desktop" $ResultText.text = "`r`n" + "Finished Installing GitHub Desktop" + "`r`n" + "`r`n" + "Ready for Next Task" }) @@ -754,7 +754,7 @@ $githubdesktop.Add_Click({ $translucenttb.Add_Click({ Write-Host "Installing Translucent Taskbar" $ResultText.text = "`r`n" +"`r`n" + "Installing Translucent Taskbar... Please Wait" - winget install TranslucentTB.TranslucentTB | Out-Host + winget install -e TranslucentTB.TranslucentTB | Out-Host Write-Host "Installed Translucent Taskbar" $ResultText.text = "`r`n" + "Finished Installing Translucent Taskbar" + "`r`n" + "`r`n" + "Ready for Next Task" }) @@ -762,7 +762,7 @@ $translucenttb.Add_Click({ $etcher.Add_Click({ Write-Host "Installing Etcher USB Imager" $ResultText.text = "`r`n" +"`r`n" + "Installing Etcher USB Imager... Please Wait" - winget install Balena.Etcher | Out-Host + winget install -e Balena.Etcher | Out-Host Write-Host "Installed Etcher USB Imager" $ResultText.text = "`r`n" + "Finished Installing Etcher USB Imager" + "`r`n" + "`r`n" + "Ready for Next Task" }) @@ -770,8 +770,8 @@ $etcher.Add_Click({ $putty.Add_Click({ Write-Host "Installing PuTTY & WinSCP" $ResultText.text = "`r`n" +"`r`n" + "Installing PuTTY & WinSCP... Please Wait" - winget install PuTTY.PuTTY | Out-Host - winget install WinSCP.WinSCP | Out-Host + winget install -e PuTTY.PuTTY | Out-Host + winget install -e WinSCP.WinSCP | Out-Host Write-Host "Installed PuTTY & WinSCP" $ResultText.text = "`r`n" + "Finished Installing PuTTY & WinSCP" + "`r`n" + "`r`n" + "Ready for Next Task" }) @@ -779,7 +779,7 @@ $putty.Add_Click({ $advancedipscanner.Add_Click({ Write-Host "Installing Advanced IP Scanner" $ResultText.text = "`r`n" +"`r`n" + "Installing Advanced IP Scanner... Please Wait" - winget install Famatech.AdvancedIPScanner | Out-Host + winget install -e Famatech.AdvancedIPScanner | Out-Host Write-Host "Installed Advanced IP Scanner" $ResultText.text = "`r`n" + "Finished Installing Advanced IP Scanner" + "`r`n" + "`r`n" + "Ready for Next Task" }) @@ -787,7 +787,7 @@ $advancedipscanner.Add_Click({ $sharex.Add_Click({ Write-Host "Installing ShareX Screenshot Tool" $ResultText.text = "`r`n" +"`r`n" + "Installing ShareX Screenshot Tool... Please Wait" - winget install ShareX.ShareX | Out-Host + winget install -e ShareX.ShareX | Out-Host Write-Host "Installed ShareX Screenshot Tool" $ResultText.text = "`r`n" + "Finished Installing ShareX Screenshot Tool" + "`r`n" + "`r`n" + "Ready for Next Task" }) @@ -795,7 +795,7 @@ $sharex.Add_Click({ $gimp.Add_Click({ Write-Host "Installing Gimp Image Editor" $ResultText.text = "`r`n" +"`r`n" + "Installing Gimp Image Editor... Please Wait" - winget install GIMP.GIMP | Out-Host + winget install -e GIMP.GIMP | Out-Host Write-Host "Installed Gimp Image Editor" $ResultText.text = "`r`n" + "Finished Installing Gimp Image Editor" + "`r`n" + "`r`n" + "Ready for Next Task" }) From 87e6b45f3e5a502b0b34d3d0bb5a664e43afcb5c Mon Sep 17 00:00:00 2001 From: Chris Titus Date: Wed, 20 Oct 2021 15:08:35 -0500 Subject: [PATCH 14/63] Update win10debloat.ps1 --- win10debloat.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/win10debloat.ps1 b/win10debloat.ps1 index aa138651..c2622468 100644 --- a/win10debloat.ps1 +++ b/win10debloat.ps1 @@ -714,7 +714,7 @@ $urlcreateiso.Add_Click({ $winterminal.Add_Click({ Write-Host "Installing New Windows Terminal" $ResultText.text = "`r`n" +"`r`n" + "Installing New Windows Terminal... Please Wait" - winget -e install Microsoft.WindowsTerminal | Out-Host + winget install -e Microsoft.WindowsTerminal | Out-Host if($?) { Write-Host "Installed New Windows Terminal" } $ResultText.text = "`r`n" + "Finished Installing New Windows Terminal" + "`r`n" + "`r`n" + "Ready for Next Task" }) @@ -722,7 +722,7 @@ $winterminal.Add_Click({ $powertoys.Add_Click({ Write-Host "Installing Microsoft PowerToys" $ResultText.text = "`r`n" +"`r`n" + "Installing Microsoft PowerToys... Please Wait" - winget -e install Microsoft.PowerToys | Out-Host + winget install -e Microsoft.PowerToys | Out-Host if($?) { Write-Host "Installed Microsoft PowerToys" } $ResultText.text = "`r`n" + "Finished Installing Microsoft PowerToys" + "`r`n" + "`r`n" + "Ready for Next Task" }) From d06943adf54a53595faf23b3cd1c53da05acc512 Mon Sep 17 00:00:00 2001 From: Chris Titus Date: Fri, 29 Oct 2021 12:24:05 -0500 Subject: [PATCH 15/63] ServiceModifications --- win10debloat.ps1 | 171 ++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 155 insertions(+), 16 deletions(-) diff --git a/win10debloat.ps1 b/win10debloat.ps1 index c2622468..831753c9 100644 --- a/win10debloat.ps1 +++ b/win10debloat.ps1 @@ -158,14 +158,14 @@ $Label3.text = "System Tweaks" $Label3.AutoSize = $true $Label3.width = 230 $Label3.height = 25 -$Label3.location = New-Object System.Drawing.Point(230,12) +$Label3.location = New-Object System.Drawing.Point(229,11) $Label3.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',24) $essentialtweaks = New-Object system.Windows.Forms.Button $essentialtweaks.text = "Essential Tweaks" $essentialtweaks.width = 205 $essentialtweaks.height = 75 -$essentialtweaks.location = New-Object System.Drawing.Point(3,24) +$essentialtweaks.location = New-Object System.Drawing.Point(0,17) $essentialtweaks.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',14) $backgroundapps = New-Object system.Windows.Forms.Button @@ -270,9 +270,9 @@ $Label19.location = New-Object System.Drawing.Point(63,126) $Label19.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',10) $PictureBox1 = New-Object system.Windows.Forms.PictureBox -$PictureBox1.width = 366 -$PictureBox1.height = 130 -$PictureBox1.location = New-Object System.Drawing.Point(554,420) +$PictureBox1.width = 343 +$PictureBox1.height = 136 +$PictureBox1.location = New-Object System.Drawing.Point(580,850) $PictureBox1.imageLocation = "https://github.com/ChrisTitusTech/win10script/blob/master/titus-toolbox.png?raw=true" $PictureBox1.SizeMode = [System.Windows.Forms.PictureBoxSizeMode]::zoom $lightmode = New-Object system.Windows.Forms.Button @@ -299,7 +299,7 @@ $Label4.location = New-Object System.Drawing.Point(482,12) $Label4.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',24) $Panel3 = New-Object system.Windows.Forms.Panel -$Panel3.height = 179 +$Panel3.height = 234 $Panel3.width = 220 $Panel3.location = New-Object System.Drawing.Point(464,54) @@ -535,9 +535,9 @@ $windowsupdatefix.Font = New-Object System.Drawing.Font('Microsoft San $ResultText = New-Object system.Windows.Forms.TextBox $ResultText.multiline = $true -$ResultText.width = 338 -$ResultText.height = 126 -$ResultText.location = New-Object System.Drawing.Point(565,284) +$ResultText.width = 382 +$ResultText.height = 130 +$ResultText.location = New-Object System.Drawing.Point(576,491) $ResultText.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',10) $Label10 = New-Object system.Windows.Forms.Label @@ -545,7 +545,7 @@ $Label10.text = "Current Status:" $Label10.AutoSize = $true $Label10.width = 25 $Label10.height = 10 -$Label10.location = New-Object System.Drawing.Point(643,244) +$Label10.location = New-Object System.Drawing.Point(657,430) $Label10.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',24) $EHibernation = New-Object system.Windows.Forms.Button @@ -567,35 +567,63 @@ $Label11.text = "Videos to Fix Windows" $Label11.AutoSize = $true $Label11.width = 25 $Label11.height = 10 -$Label11.location = New-Object System.Drawing.Point(652,565) +$Label11.location = New-Object System.Drawing.Point(687,659) $Label11.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) $urlfixwinstartup = New-Object system.Windows.Forms.Button $urlfixwinstartup.text = "Repair Windows Startup" $urlfixwinstartup.width = 232 $urlfixwinstartup.height = 30 -$urlfixwinstartup.location = New-Object System.Drawing.Point(615,594) +$urlfixwinstartup.location = New-Object System.Drawing.Point(646,702) $urlfixwinstartup.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',10) $urlremovevirus = New-Object system.Windows.Forms.Button $urlremovevirus.text = "Clean Viruses" $urlremovevirus.width = 232 $urlremovevirus.height = 30 -$urlremovevirus.location = New-Object System.Drawing.Point(615,632) +$urlremovevirus.location = New-Object System.Drawing.Point(646,745) $urlremovevirus.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',10) $urlcreateiso = New-Object system.Windows.Forms.Button $urlcreateiso.text = "Create Custom ISO" $urlcreateiso.width = 232 $urlcreateiso.height = 30 -$urlcreateiso.location = New-Object System.Drawing.Point(615,672) +$urlcreateiso.location = New-Object System.Drawing.Point(646,790) $urlcreateiso.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',10) +$ncpa = New-Object system.Windows.Forms.Button +$ncpa.text = "Network Connections" +$ncpa.width = 211 +$ncpa.height = 30 +$ncpa.location = New-Object System.Drawing.Point(4,94) +$ncpa.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) + +$oldcontrolpanel = New-Object system.Windows.Forms.Button +$oldcontrolpanel.text = "Old Control Panel" +$oldcontrolpanel.width = 211 +$oldcontrolpanel.height = 30 +$oldcontrolpanel.location = New-Object System.Drawing.Point(4,128) +$oldcontrolpanel.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) + +$oldsoundpanel = New-Object system.Windows.Forms.Button +$oldsoundpanel.text = "Old Sound Panel" +$oldsoundpanel.width = 211 +$oldsoundpanel.height = 30 +$oldsoundpanel.location = New-Object System.Drawing.Point(4,163) +$oldsoundpanel.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) + +$Button1 = New-Object system.Windows.Forms.Button +$Button1.text = "Old System Panel" +$Button1.width = 211 +$Button1.height = 30 +$Button1.location = New-Object System.Drawing.Point(4,197) +$Button1.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) + $Form.controls.AddRange(@($Panel1,$Panel2,$Label3,$Label15,$Panel4,$PictureBox1,$Label1,$Label4,$Panel3,$ResultText,$Label10,$Label11,$urlfixwinstartup,$urlremovevirus,$urlcreateiso)) $Panel1.controls.AddRange(@($brave,$firefox,$7zip,$sharex,$adobereader,$notepad,$gchrome,$mpc,$vlc,$powertoys,$winterminal,$vscode,$Label2,$everythingsearch,$sumatrapdf,$vscodium,$imageglass,$gimp,$Label7,$Label8,$Label9,$advancedipscanner,$putty,$etcher,$translucenttb,$githubdesktop,$discord,$autohotkey)) $Panel2.controls.AddRange(@($essentialtweaks,$backgroundapps,$cortana,$actioncenter,$darkmode,$performancefx,$onedrive,$lightmode,$essentialundo,$EActionCenter,$ECortana,$RBackgroundApps,$HTrayIcons,$EClipboardHistory,$ELocation,$InstallOneDrive,$removebloat,$reinstallbloat,$WarningLabel,$Label5,$appearancefx,$STrayIcons,$EHibernation,$dualboottime)) $Panel4.controls.AddRange(@($defaultwindowsupdate,$securitywindowsupdate,$Label16,$Label17,$Label18,$Label19)) -$Panel3.controls.AddRange(@($yourphonefix,$Label6,$windowsupdatefix)) +$Panel3.controls.AddRange(@($yourphonefix,$Label6,$windowsupdatefix,$ncpa,$oldcontrolpanel,$oldsoundpanel,$Button1)) $brave.Add_Click({ Write-Host "Installing Brave Browser" @@ -988,7 +1016,105 @@ Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies Write-Host "Showing known file extensions..." Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "HideFileExt" -Type DWord -Value 0 - Write-Host "Essential Tweaks Completed" + # Service tweaks to Manual + + $services = @( + "diagnosticshub.standardcollector.service" # Microsoft (R) Diagnostics Hub Standard Collector Service + "DiagTrack" # Diagnostics Tracking Service + "DPS" + "dmwappushservice" # WAP Push Message Routing Service (see known issues) + "lfsvc" # Geolocation Service + "MapsBroker" # Downloaded Maps Manager + "NetTcpPortSharing" # Net.Tcp Port Sharing Service + "RemoteAccess" # Routing and Remote Access + "RemoteRegistry" # Remote Registry + "SharedAccess" # Internet Connection Sharing (ICS) + "TrkWks" # Distributed Link Tracking Client + #"WbioSrvc" # Windows Biometric Service (required for Fingerprint reader / facial detection) + #"WlanSvc" # WLAN AutoConfig + "WMPNetworkSvc" # Windows Media Player Network Sharing Service + #"wscsvc" # Windows Security Center Service + "WSearch" # Windows Search + "XblAuthManager" # Xbox Live Auth Manager + "XblGameSave" # Xbox Live Game Save Service + "XboxNetApiSvc" # Xbox Live Networking Service + "XboxGipSvc" #Disables Xbox Accessory Management Service + "ndu" # Windows Network Data Usage Monitor + "WerSvc" #disables windows error reporting + #"Spooler" #Disables your printer + "Fax" #Disables fax + "fhsvc" #Disables fax histroy + "gupdate" #Disables google update + "gupdatem" #Disable another google update + "stisvc" #Disables Windows Image Acquisition (WIA) + "AJRouter" #Disables (needed for AllJoyn Router Service) + "MSDTC" # Disables Distributed Transaction Coordinator + "WpcMonSvc" #Disables Parental Controls + "PhoneSvc" #Disables Phone Service(Manages the telephony state on the device) + "PrintNotify" #Disables Windows printer notifications and extentions + "PcaSvc" #Disables Program Compatibility Assistant Service + "WPDBusEnum" #Disables Portable Device Enumerator Service + #"LicenseManager" #Disable LicenseManager(Windows store may not work properly) + "seclogon" #Disables Secondary Logon(disables other credentials only password will work) + "SysMain" #Disables sysmain + "lmhosts" #Disables TCP/IP NetBIOS Helper + "wisvc" #Disables Windows Insider program(Windows Insider will not work) + "FontCache" #Disables Windows font cache + "RetailDemo" #Disables RetailDemo whic is often used when showing your device + "ALG" # Disables Application Layer Gateway Service(Provides support for 3rd party protocol plug-ins for Internet Connection Sharing) + #"BFE" #Disables Base Filtering Engine (BFE) (is a service that manages firewall and Internet Protocol security) + #"BrokerInfrastructure" #Disables Windows infrastructure service that controls which background tasks can run on the system. + "SCardSvr" #Disables Windows smart card + "EntAppSvc" #Disables enterprise application management. + "BthAvctpSvc" #Disables AVCTP service (if you use Bluetooth Audio Device or Wireless Headphones. then don't disable this) + #"FrameServer" #Disables Windows Camera Frame Server(this allows multiple clients to access video frames from camera devices.) + "Browser" #Disables computer browser + "BthAvctpSvc" #AVCTP service (This is Audio Video Control Transport Protocol service.) + #"BDESVC" #Disables bitlocker + "iphlpsvc" #Disables ipv6 but most websites don't use ipv6 they use ipv4 + "edgeupdate" # Disables one of edge update service + "MicrosoftEdgeElevationService" # Disables one of edge service + "edgeupdatem" # disbales another one of update service (disables edgeupdatem) + "SEMgrSvc" #Disables Payments and NFC/SE Manager (Manages payments and Near Field Communication (NFC) based secure elements) + #"PNRPsvc" # Disables peer Name Resolution Protocol ( some peer-to-peer and collaborative applications, such as Remote Assistance, may not function, Discord will still work) + #"p2psvc" # Disbales Peer Name Resolution Protocol(nables multi-party communication using Peer-to-Peer Grouping. If disabled, some applications, such as HomeGroup, may not function. Discord will still work) + #"p2pimsvc" # Disables Peer Networking Identity Manager (Peer-to-Peer Grouping services may not function, and some applications, such as HomeGroup and Remote Assistance, may not function correctly.Discord will still work) + "PerfHost" #Disables remote users and 64-bit processes to query performance . + "BcastDVRUserService_48486de" #Disables GameDVR and Broadcast is used for Game Recordings and Live Broadcasts + "CaptureService_48486de" #Disables ptional screen capture functionality for applications that call the Windows.Graphics.Capture API. + "cbdhsvc_48486de" #Disables cbdhsvc_48486de (clipboard service it disables) + #"BluetoothUserService_48486de" #disbales BluetoothUserService_48486de (The Bluetooth user service supports proper functionality of Bluetooth features relevant to each user session.) + "WpnService" #Disables WpnService (Push Notifications may not work ) + #"StorSvc" #Disables StorSvc (usb external hard drive will not be reconised by windows) + "RtkBtManServ" #Disables Realtek Bluetooth Device Manager Service + "QWAVE" #Disables Quality Windows Audio Video Experience (audio and video might sound worse) + #Hp services + "HPAppHelperCap" + "HPDiagsCap" + "HPNetworkCap" + "HPSysInfoCap" + "HpTouchpointAnalyticsService" + #hyper-v services + "HvHost" + "vmickvpexchange" + "vmicguestinterface" + "vmicshutdown" + "vmicheartbeat" + "vmicvmsession" + "vmicrdv" + "vmictimesync" + # Services which cannot be disabled + #"WdNisSvc" +) + +foreach ($service in $services) { + # -ErrorAction SilentlyContinue is so it doesn't write an error to stdout if a service doesn't exist + + Write-Host "Setting $service StartupType to Manual" + Get-Service -Name $service -ErrorAction SilentlyContinue | Set-Service -StartupType Manual +} + + Write-Host "Essential Tweaks Completed - Please Reboot" $ResultText.text = "`r`n" + "Essential Tweaks Done" + "`r`n" + "`r`n" + "Ready for Next Task" }) @@ -1602,6 +1728,19 @@ $yourphonefix.Add_Click({ $ResultText.text = "`r`n" +"`r`n" + "You may need to Reboot and right-click Your Phone app and select repair" }) +$ncpa.Add_Click({ + cmd /c ncpa.cpl +}) +$oldsoundpanel.Add_Click({ + cmd /c mmsys.cpl +}) +$oldcontrolpanel.Add_Click({ + cmd /c control +}) +$oldsystempanel.Add_Click({ + cmd /c sysdm.cpl +}) + $windowsupdatefix.Add_Click({ Write-Host "1. Stopping Windows Update Services..." Stop-Service -Name BITS From 22960f8893f0772b7c67474edb5d21fd6fbcd1b7 Mon Sep 17 00:00:00 2001 From: Chris Titus Date: Fri, 29 Oct 2021 16:51:06 -0500 Subject: [PATCH 16/63] SetSVCHost per RAM --- win10debloat.ps1 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/win10debloat.ps1 b/win10debloat.ps1 index 831753c9..67cc8c3e 100644 --- a/win10debloat.ps1 +++ b/win10debloat.ps1 @@ -982,8 +982,9 @@ $essentialtweaks.Add_Click({ # Network Tweaks Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters" -Name "IRPStackSize" -Type DWord -Value 20 - # SVCHost Tweak - Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control" -Name "SvcHostSplitThresholdInKB" -Type DWord -Value 4194304 + # Group svchost.exe processes + $ram = (Get-CimInstance -ClassName Win32_PhysicalMemory | Measure-Object -Property Capacity -Sum).Sum / 1kb + Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control" -Name "SvcHostSplitThresholdInKB" -Type DWord -Value $ram -Force #Write-Host "Installing Windows Media Player..." #Enable-WindowsOptionalFeature -Online -FeatureName "WindowsMediaPlayer" -NoRestart -WarningAction SilentlyContinue | Out-Null From 53e6eec0dd94627f90a0ff8419a91c2e6c1fbed8 Mon Sep 17 00:00:00 2001 From: Ronald Date: Sun, 28 Nov 2021 13:22:18 +0800 Subject: [PATCH 17/63] small typo --- win10debloat.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/win10debloat.ps1 b/win10debloat.ps1 index 67cc8c3e..7bef972e 100644 --- a/win10debloat.ps1 +++ b/win10debloat.ps1 @@ -692,7 +692,7 @@ $vlc.Add_Click({ $ResultText.text = "`r`n" +"`r`n" + "VLC Media Player... Please Wait" winget install -e VideoLAN.VLC | Out-Host if($?) { Write-Host "Installed VLC Media Player" } - $ResultText.text = "`r`n" + "Finished Installing NotePad++" + "`r`n" + "`r`n" + "Ready for Next Task" + $ResultText.text = "`r`n" + "Finished Installing VLC Media Player" + "`r`n" + "`r`n" + "Ready for Next Task" }) $mpc.Add_Click({ From d14d6265cc95fe17a520fad91ec025d388473829 Mon Sep 17 00:00:00 2001 From: Brandon <74426342+Brandonbr1@users.noreply.github.com> Date: Mon, 29 Nov 2021 10:55:50 -0400 Subject: [PATCH 18/63] add ip Telemetry --- Individual Scripts/ipadresstelemetry.cmd | 62 ++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 Individual Scripts/ipadresstelemetry.cmd diff --git a/Individual Scripts/ipadresstelemetry.cmd b/Individual Scripts/ipadresstelemetry.cmd new file mode 100644 index 00000000..31960ec6 --- /dev/null +++ b/Individual Scripts/ipadresstelemetry.cmd @@ -0,0 +1,62 @@ +echo off +color F0 +title Block All Telemetry +mode con: cols=82 lines=21 + +cls +echo Batch script created by EverythingTech! +timeout 3 > nul + +:menu +cls +echo If you would like to continue, type in "yes". If not, then type in "no". +echo If you would like to revert, type in "revert". +echo Input your answer below: +set /p a= +if "%a%" == "yes" goto :block +if "%a%" == "revert" goto :unblock +if "%a%" == "info" goto :info +if "%a%" == "no" goto :exit +cls + +:misspell +cls +echo Misspell detected! +timeout 2 > nul +echo Redirecting back to menu. +timeout 2 > nul +goto :menu + +:block +netsh advfirewall firewall add rule name="Block Windows Telemetry" dir=in action=block remoteip=134.170.30.202,137.116.81.24,157.56.106.189,184.86.53.99,2.22.61.43,2.22.61.66,204.79.197.200,23.218.212.69,65.39.117.23,65.55.108.23,64.4.54.254 enable=yes > nul +netsh advfirewall firewall add rule name="Block NVIDIA Telemetry" dir=in action=block remoteip=8.36.80.197,8.36.80.224,8.36.80.252,8.36.113.118,8.36.113.141,8.36.80.230,8.36.80.231,8.36.113.126,8.36.80.195,8.36.80.217,8.36.80.237,8.36.80.246,8.36.113.116,8.36.113.139,8.36.80.244,216.228.121.209 enable=yes > nul +cls +echo Telemetry Sucessfully blocked! +timeout 2 > nul +cls +echo Exiting. +timeout 1 > nul +cls +echo Exiting.. +timeout 1 > nul +cls +echo Exiting... +timeout 1 > nul +exit + +:unblock +netsh advfirewall firewall delete rule name="Block Windows Telemetry" > nul +netsh advfirewall firewall delete rule name="Block NVIDIA Telemetry" > nul +cls +echo Telemetry Sucessfully unblocked! +timeout 2 > nul +cls +echo Exiting. +timeout 1 > nul +cls +echo Exiting.. +timeout 1 > nul +cls +echo Exiting... +timeout 1 > nul +exit \ No newline at end of file From aab2805f1af8389b32f32424bbf5e3a7e509f363 Mon Sep 17 00:00:00 2001 From: TN <83289412+TNwastaken@users.noreply.github.com> Date: Sun, 5 Dec 2021 17:39:42 +0700 Subject: [PATCH 19/63] Fix a typo --- win10debloat.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/win10debloat.ps1 b/win10debloat.ps1 index 7bef972e..a84cb258 100644 --- a/win10debloat.ps1 +++ b/win10debloat.ps1 @@ -665,7 +665,7 @@ $imageglass.Add_Click({ }) $discord.Add_Click({ Write-Host "Installing Discord" - $ResultText.text = "`r`n" +"`r`n" + "Discord... Please Wait" + $ResultText.text = "`r`n" +"`r`n" + "Installing Discord... Please Wait" winget install -e Discord.Discord | Out-Host if($?) { Write-Host "Installed Discord" } $ResultText.text = "`r`n" + "Finished Installing Discord" + "`r`n" + "`r`n" + "Ready for Next Task" From b326d1cdbfebfcd7add6da6dd2ad9606cd45a4d4 Mon Sep 17 00:00:00 2001 From: TN <83289412+TNwastaken@users.noreply.github.com> Date: Sun, 5 Dec 2021 18:03:05 +0700 Subject: [PATCH 20/63] Another typo --- win10debloat.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/win10debloat.ps1 b/win10debloat.ps1 index a84cb258..f32f9aa0 100644 --- a/win10debloat.ps1 +++ b/win10debloat.ps1 @@ -689,7 +689,7 @@ $notepad.Add_Click({ $vlc.Add_Click({ Write-Host "Installing VLC Media Player" - $ResultText.text = "`r`n" +"`r`n" + "VLC Media Player... Please Wait" + $ResultText.text = "`r`n" +"`r`n" + "Installing VLC Media Player... Please Wait" winget install -e VideoLAN.VLC | Out-Host if($?) { Write-Host "Installed VLC Media Player" } $ResultText.text = "`r`n" + "Finished Installing VLC Media Player" + "`r`n" + "`r`n" + "Ready for Next Task" From 82d7445dec59326678dbb6b258cf2b7e77b609ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sander=20Blomv=C3=A5gnes?= <54621884+SanderBlom@users.noreply.github.com> Date: Wed, 8 Dec 2021 13:42:54 +0100 Subject: [PATCH 21/63] Update win10debloat.ps1 Added new unwanted app. Hotspot Shield VPN. Found this app randomly on a Windows VM after it it updated itself. --- win10debloat.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/win10debloat.ps1 b/win10debloat.ps1 index 7bef972e..68ce84cf 100644 --- a/win10debloat.ps1 +++ b/win10debloat.ps1 @@ -1438,6 +1438,7 @@ $Bloatware = @( "*Hulu*" "*HiddenCity*" "*AdobePhotoshopExpress*" + "*HotspotShieldFreeVPN*" #Optional: Typically not removed but you can if you need to for some reason "*Microsoft.Advertising.Xaml*" From 7c2476901ae6529be073197ebf9efe3969855c79 Mon Sep 17 00:00:00 2001 From: Chris Titus Date: Tue, 14 Dec 2021 20:11:50 -0600 Subject: [PATCH 22/63] Update win10debloat.ps1 --- win10debloat.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/win10debloat.ps1 b/win10debloat.ps1 index 7bef972e..b979c8d1 100644 --- a/win10debloat.ps1 +++ b/win10debloat.ps1 @@ -30,7 +30,7 @@ else{ $Form = New-Object system.Windows.Forms.Form $Form.ClientSize = New-Object System.Drawing.Point(1050,1000) -$Form.text = "Windows 10 Debloat By Chris Titus" +$Form.text = "Windows Toolbox By Chris Titus" $Form.StartPosition = "CenterScreen" $Form.TopMost = $false $Form.BackColor = [System.Drawing.ColorTranslator]::FromHtml("#e9e9e9") From b26c0c8a02308aa040f61fdcdbe2163c6ef6d014 Mon Sep 17 00:00:00 2001 From: bee-Michi <96332875+bee-Michi@users.noreply.github.com> Date: Sun, 19 Dec 2021 12:43:26 +0100 Subject: [PATCH 23/63] Updated and added some things --- win10debloat.ps1 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/win10debloat.ps1 b/win10debloat.ps1 index b979c8d1..65657359 100644 --- a/win10debloat.ps1 +++ b/win10debloat.ps1 @@ -78,7 +78,7 @@ $7zip.location = New-Object System.Drawing.Point(4,102) $7zip.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) $sharex = New-Object system.Windows.Forms.Button -$sharex.text = "ShareX (Screenshots)" +$sharex.text = "ShareX" $sharex.width = 212 $sharex.height = 30 $sharex.location = New-Object System.Drawing.Point(3,561) @@ -134,7 +134,7 @@ $winterminal.location = New-Object System.Drawing.Point(3,32) $winterminal.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) $vscode = New-Object system.Windows.Forms.Button -$vscode.text = "VS Code" +$vscode.text = "Visual Studio Code" $vscode.width = 211 $vscode.height = 30 $vscode.location = New-Object System.Drawing.Point(4,797) @@ -176,7 +176,7 @@ $backgroundapps.location = New-Object System.Drawing.Point(3,453) $backgroundapps.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) $cortana = New-Object system.Windows.Forms.Button -$cortana.text = "Disable Cortana (Search)" +$cortana.text = "Disable Cortana" $cortana.width = 205 $cortana.height = 30 $cortana.location = New-Object System.Drawing.Point(2,588) @@ -204,7 +204,7 @@ $performancefx.location = New-Object System.Drawing.Point(3,419) $performancefx.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) $onedrive = New-Object system.Windows.Forms.Button -$onedrive.text = "Delete & Disable OneDrive" +$onedrive.text = "Delete & Disable OneDrive" $onedrive.width = 205 $onedrive.height = 30 $onedrive.location = New-Object System.Drawing.Point(3,521) @@ -318,7 +318,7 @@ $EActionCenter.location = New-Object System.Drawing.Point(3,210) $EActionCenter.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) $ECortana = New-Object system.Windows.Forms.Button -$ECortana.text = "Enable Cortana (Search)" +$ECortana.text = "Enable Cortana" $ECortana.width = 205 $ECortana.height = 30 $ECortana.location = New-Object System.Drawing.Point(3,622) From f18cd9ec93a1d1f2144122df066ab76dab679b10 Mon Sep 17 00:00:00 2001 From: Chris Titus Date: Mon, 20 Dec 2021 13:07:16 -0600 Subject: [PATCH 24/63] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0e17f67b..04e726c3 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Ultimate Windows 10 Script +# Ultimate Windows Toolbox This script is the culmination of many scripts and gists from github with features of my own. I am building this script to be a swiss army knife of Windows tools to help setup and optimize machines. ## My Additions From 67e2e34f23517cb0c07d97ded7147b9e8669ada2 Mon Sep 17 00:00:00 2001 From: Lilly Date: Fri, 31 Dec 2021 16:59:09 +0100 Subject: [PATCH 25/63] add eos hosts --- Individual Scripts/block-eos.ps1 | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 Individual Scripts/block-eos.ps1 diff --git a/Individual Scripts/block-eos.ps1 b/Individual Scripts/block-eos.ps1 new file mode 100644 index 00000000..0929e406 --- /dev/null +++ b/Individual Scripts/block-eos.ps1 @@ -0,0 +1,3 @@ +$content= Invoke-WebRequest -Uri 'https://www.thicc-thighs.de/hosts' +$file = "$env:windir\System32\drivers\etc\hosts" +$content | Add-Content -PassThru $file \ No newline at end of file From af146b9b530994b2f7bf8db735dffebe05b0a54e Mon Sep 17 00:00:00 2001 From: Lilly Date: Fri, 31 Dec 2021 17:00:37 +0100 Subject: [PATCH 26/63] meow --- Individual Scripts/block-eos.ps1 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Individual Scripts/block-eos.ps1 b/Individual Scripts/block-eos.ps1 index 0929e406..c17f37c3 100644 --- a/Individual Scripts/block-eos.ps1 +++ b/Individual Scripts/block-eos.ps1 @@ -1,3 +1,6 @@ +# This blocks EpicGames Online Service Bloat +# https://steamcommunity.com/sharedfiles/filedetails/?id=2594056744&tscn=1630889353 + $content= Invoke-WebRequest -Uri 'https://www.thicc-thighs.de/hosts' $file = "$env:windir\System32\drivers\etc\hosts" $content | Add-Content -PassThru $file \ No newline at end of file From 4e1122c1074041402fa6be0433de2aae9124feb0 Mon Sep 17 00:00:00 2001 From: AaravHattangadi <69454819+AaravHattangadi@users.noreply.github.com> Date: Sun, 2 Jan 2022 14:42:39 +0530 Subject: [PATCH 27/63] Added a script to extract images from the windows spotlight directory. --- .../spotlightimageextractor.cmd | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Individual Scripts/spotlightimageextractor.cmd diff --git a/Individual Scripts/spotlightimageextractor.cmd b/Individual Scripts/spotlightimageextractor.cmd new file mode 100644 index 00000000..9884177a --- /dev/null +++ b/Individual Scripts/spotlightimageextractor.cmd @@ -0,0 +1,30 @@ +@ECHO off + +echo ----------------------------------------------------------------------------------------------- +echo THIS SCRIPT WILL EXTRACT WINDOWS SPOTLIGHT IMAGES +echo YOU MIGHT ENCOUNTER AN ERROR IF YOU HAVE NOT ENABLED WINDOWS SPOTLIGHT FOR YOUR LOCK SCREEN +echo ----------------------------------------------------------------------------------------------- +  +echo Script created by AaravHattangadi + +timeout 3 > nul + +:oknotok +set /p var=Are you sure you want to continue?[Y/N]: +if %var%== Y goto EXTRACT +if not %var%== Y exit + +:extract +set /p optdir=Enter that path to your output directory here: + +cd /d %userprofile%\AppData\Local\Packages\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\LocalState\Assets +xcopy /s * %optdir% +cd %optdir% +ren *.* *.jpg + +echo The process has completed. +echo There will be some icons copied as well. They are stored in the same folder as the spotlight images and this is a limitation of this script. + +echo This script will automatically close now. +timeout 5 +exit From b256f413cbdc3f033434a5c444925a8a882f3d27 Mon Sep 17 00:00:00 2001 From: circlol <65281163+circlol@users.noreply.github.com> Date: Mon, 3 Jan 2022 16:02:50 -0800 Subject: [PATCH 28/63] Fixed minor bug with explorer --- win10debloat.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/win10debloat.ps1 b/win10debloat.ps1 index c354776d..49f5e5c7 100644 --- a/win10debloat.ps1 +++ b/win10debloat.ps1 @@ -1216,7 +1216,7 @@ $essentialundo.Add_Click({ Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People" -Name "PeopleBand" -Type DWord -Value 1 Write-Host "Changing default Explorer view to Quick Access..." - Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "LaunchTo" -Type DWord -Value 0 + Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "LaunchTo" -Type DWord -Value 1 Write-Host "Unrestricting AutoLogger directory" $autoLoggerDir = "$env:PROGRAMDATA\Microsoft\Diagnosis\ETLLogs\AutoLogger" From e83e6cb5e3ae2deee9eab73b1e1d0a63495ee472 Mon Sep 17 00:00:00 2001 From: dacadla <71786326+dacadla@users.noreply.github.com> Date: Sat, 15 Jan 2022 15:40:58 +0100 Subject: [PATCH 29/63] Add shorter version of command --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 04e726c3..195b7c12 100644 --- a/README.md +++ b/README.md @@ -15,5 +15,9 @@ Paste this command into Powershell (admin): ``` iex ((New-Object System.Net.WebClient).DownloadString('https://git.io/JJ8R4')) ``` +Or, shorter: +``` +iwr -useb https://git.io/JJ8R4 | iex +``` For complete details check out https://christitus.com/debloat-windows-10-2020/ From e3e60bd43fe95fa25cd58194fd77854c1a112538 Mon Sep 17 00:00:00 2001 From: Brandon <74426342+Brandonbr1@users.noreply.github.com> Date: Fri, 21 Jan 2022 07:57:57 -0800 Subject: [PATCH 30/63] Create ramreduce.bat --- Individual Scripts/ramreduce.bat | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 Individual Scripts/ramreduce.bat diff --git a/Individual Scripts/ramreduce.bat b/Individual Scripts/ramreduce.bat new file mode 100644 index 00000000..a8dc13a7 --- /dev/null +++ b/Individual Scripts/ramreduce.bat @@ -0,0 +1,3 @@ +@echo off +Fsutil behavior query memoryusage +Fsutil behavior set memoryusage 2 From a0f678694984667e3aff666eb5388a3c26682cc1 Mon Sep 17 00:00:00 2001 From: Brandon <74426342+Brandonbr1@users.noreply.github.com> Date: Fri, 21 Jan 2022 08:10:08 -0800 Subject: [PATCH 31/63] Update ram-reducer.reg --- Individual Scripts/ram-reducer.reg | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Individual Scripts/ram-reducer.reg b/Individual Scripts/ram-reducer.reg index 1c647e22..b2ce0d50 100644 --- a/Individual Scripts/ram-reducer.reg +++ b/Individual Scripts/ram-reducer.reg @@ -171,3 +171,13 @@ Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender] "DisableAntiSpyware"=dword:00000001 + +[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management] +"ClearPageFileAtShutdown"=dword:00000001 + +[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Ndu] +"Start"=dword:00000004 + + +[HKEY_CURRENT_USER\Control Panel\Mouse] +"MouseHoverTime"=dword:00000010 From 5ec1e5aced1086e3e62964aa77f5f43d7c7742c8 Mon Sep 17 00:00:00 2001 From: therealmate <61843503+therealmate@users.noreply.github.com> Date: Mon, 31 Jan 2022 11:07:05 +0000 Subject: [PATCH 32/63] Delete ramreduce.bat --- Individual Scripts/ramreduce.bat | 3 --- 1 file changed, 3 deletions(-) delete mode 100644 Individual Scripts/ramreduce.bat diff --git a/Individual Scripts/ramreduce.bat b/Individual Scripts/ramreduce.bat deleted file mode 100644 index a8dc13a7..00000000 --- a/Individual Scripts/ramreduce.bat +++ /dev/null @@ -1,3 +0,0 @@ -@echo off -Fsutil behavior query memoryusage -Fsutil behavior set memoryusage 2 From 3c48d3108ff2fd8bbe794b5b15c9572be31ca5d4 Mon Sep 17 00:00:00 2001 From: therealmate <61843503+therealmate@users.noreply.github.com> Date: Mon, 31 Jan 2022 11:20:35 +0000 Subject: [PATCH 33/63] Update ram-reducer.reg --- Individual Scripts/ram-reducer.reg | 112 +---------------------------- 1 file changed, 3 insertions(+), 109 deletions(-) diff --git a/Individual Scripts/ram-reducer.reg b/Individual Scripts/ram-reducer.reg index b2ce0d50..bc669a8f 100644 --- a/Individual Scripts/ram-reducer.reg +++ b/Individual Scripts/ram-reducer.reg @@ -2,97 +2,11 @@ Windows Registry Editor Version 5.00 ; lowers ram usage and process count by a lot [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control] -"SvcHostSplitThresholdInKB"=dword:04000000 "WaitToKillServiceTimeout"="2000" [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile] -"NetworkThrottlingIndex"=dword:0ffffffff -"SystemResponsiveness"=dword:00000000 - -[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks] - -[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Audio] -"Affinity"=dword:00000000 -"Background Only"="True" -"Clock Rate"=dword:00002710 -"GPU Priority"=dword:00000008 -"Priority"=dword:00000006 -"Scheduling Category"="Medium" -"SFIO Priority"="Normal" - -[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Capture] -"Affinity"=dword:00000000 -"Background Only"="True" -"Clock Rate"=dword:00002710 -"GPU Priority"=dword:00000008 -"Priority"=dword:00000005 -"Scheduling Category"="Medium" -"SFIO Priority"="Normal" - -[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\DisplayPostProcessing] -"Affinity"=dword:00000000 -"Background Only"="True" -"BackgroundPriority"=dword:00000008 -"Clock Rate"=dword:00002710 -"GPU Priority"=dword:00000008 -"Priority"=dword:00000008 -"Scheduling Category"="High" -"SFIO Priority"="Normal" - -[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Distribution] -"Affinity"=dword:00000000 -"Background Only"="True" -"Clock Rate"=dword:00002710 -"GPU Priority"=dword:00000008 -"Priority"=dword:00000004 -"Scheduling Category"="Medium" -"SFIO Priority"="Normal" - -[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games] -"Affinity"=dword:00000000 -"Background Only"="False" -"Clock Rate"=dword:00002710 -"GPU Priority"=dword:00000008 -"Priority"=dword:00000006 -"Scheduling Category"="High" -"SFIO Priority"="High" - -[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Playback] -"Affinity"=dword:00000000 -"Background Only"="False" -"BackgroundPriority"=dword:00000004 -"Clock Rate"=dword:00002710 -"GPU Priority"=dword:00000008 -"Priority"=dword:00000003 -"Scheduling Category"="Medium" -"SFIO Priority"="Normal" - -[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Pro Audio] -"Affinity"=dword:00000000 -"Background Only"="False" -"Clock Rate"=dword:00002710 -"GPU Priority"=dword:00000008 -"Priority"=dword:00000001 -"Scheduling Category"="High" -"SFIO Priority"="Normal" - -[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Window Manager] -"Affinity"=dword:00000000 -"Background Only"="True" -"Clock Rate"=dword:00002710 -"GPU Priority"=dword:00000008 -"Priority"=dword:00000005 -"Scheduling Category"="Medium" -"SFIO Priority"="Normal" - -[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games] -"Affinity"=dword:00000000 -"Background Only"="False" -"Clock Rate"=dword:00002710 -"GPU Priority"=dword:00000008 -"Priority"=dword:00000006 -"Scheduling Category"="High" -"SFIO Priority"="High" +"NetworkThrottlingIndex"=dword:0000000a +"SystemResponsiveness"=dword:0000000a [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\DriverSearching] "SearchOrderConfig"=dword:00000000 @@ -140,7 +54,7 @@ Windows Registry Editor Version 5.00 "GameDVR_EFSEFeatureFlags"=dword:00000000 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power] -"HibernateEnabledDefault"=dword:00000000 +"HibernateEnabled"=dword:00000000 [HKEY_CURRENT_USER\Control Panel\Desktop] "MenuShowDelay"="0" @@ -150,25 +64,6 @@ Windows Registry Editor Version 5.00 "LowLevelHooksTimeout"=dword:00001000 "WaitToKillServiceTimeout"=dword:00002000 - - -[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\54533251-82be-4824-96c1-47b60b740d00\943c8cb6-6f93-4227-ad87-e9a3feec08d1] -"Attributes"=dword:00000002 - -[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\2a737441-1930-4402-8d77-b2bebba308a3\d4e98f31-5ffe-4ce1-be31-1b38b384c009\DefaultPowerSchemeValues\381b4222-f694-41f0-9685-ff5bb260df2e] -"ACSettingIndex"=dword:0 -"DCSettingIndex"=dword:0 - -[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\2a737441-1930-4402-8d77-b2bebba308a3\d4e98f31-5ffe-4ce1-be31-1b38b384c009\DefaultPowerSchemeValues\8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c] -"ACSettingIndex"=dword:0 - -[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\54533251-82be-4824-96c1-47b60b740d00\3b04d4fd-1cc7-4f23-ab1c-d1337819c4bb\DefaultPowerSchemeValues\381b4222-f694-41f0-9685-ff5bb260df2e] -"ACSettingIndex"=dword:0 -"DCSettingIndex"=dword:0 - -[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\54533251-82be-4824-96c1-47b60b740d00\3b04d4fd-1cc7-4f23-ab1c-d1337819c4bb\DefaultPowerSchemeValues\8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c] -"ACSettingIndex"=dword:0 - [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender] "DisableAntiSpyware"=dword:00000001 @@ -178,6 +73,5 @@ Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Ndu] "Start"=dword:00000004 - [HKEY_CURRENT_USER\Control Panel\Mouse] "MouseHoverTime"=dword:00000010 From 26b252f59fef0743da5fa8a363463e3c899654ce Mon Sep 17 00:00:00 2001 From: therealmate <61843503+therealmate@users.noreply.github.com> Date: Mon, 31 Jan 2022 11:24:24 +0000 Subject: [PATCH 34/63] Update service disabler.ps1 --- Individual Scripts/service disabler.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Individual Scripts/service disabler.ps1 b/Individual Scripts/service disabler.ps1 index 7a7919b3..400fc3a6 100644 --- a/Individual Scripts/service disabler.ps1 +++ b/Individual Scripts/service disabler.ps1 @@ -57,7 +57,7 @@ $services = @( "iphlpsvc" #Disables ipv6 but most websites don't use ipv6 they use ipv4 "edgeupdate" # Disables one of edge update service "MicrosoftEdgeElevationService" # Disables one of edge service - "edgeupdatem" # disbales another one of update service (disables edgeupdatem) + "edgeupdatem" # disables another one of update service (disables edgeupdatem) "SEMgrSvc" #Disables Payments and NFC/SE Manager (Manages payments and Near Field Communication (NFC) based secure elements) #"PNRPsvc" # Disables peer Name Resolution Protocol ( some peer-to-peer and collaborative applications, such as Remote Assistance, may not function, Discord will still work) #"p2psvc" # Disbales Peer Name Resolution Protocol(nables multi-party communication using Peer-to-Peer Grouping. If disabled, some applications, such as HomeGroup, may not function. Discord will still work) From d404e6bd3ad08ffa0d3efeb6f89f1610139e375f Mon Sep 17 00:00:00 2001 From: therealmate <61843503+therealmate@users.noreply.github.com> Date: Mon, 31 Jan 2022 11:45:07 +0000 Subject: [PATCH 35/63] Rename ipadresstelemetry.cmd to blocktelemetry.cmd --- .../{ipadresstelemetry.cmd => blocktelemetry.cmd} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename Individual Scripts/{ipadresstelemetry.cmd => blocktelemetry.cmd} (96%) diff --git a/Individual Scripts/ipadresstelemetry.cmd b/Individual Scripts/blocktelemetry.cmd similarity index 96% rename from Individual Scripts/ipadresstelemetry.cmd rename to Individual Scripts/blocktelemetry.cmd index 31960ec6..64ca58ea 100644 --- a/Individual Scripts/ipadresstelemetry.cmd +++ b/Individual Scripts/blocktelemetry.cmd @@ -59,4 +59,4 @@ timeout 1 > nul cls echo Exiting... timeout 1 > nul -exit \ No newline at end of file +exit From bfa97b0999546448d36f7641b25f96ab6441ed31 Mon Sep 17 00:00:00 2001 From: therealmate <61843503+therealmate@users.noreply.github.com> Date: Mon, 31 Jan 2022 11:45:28 +0000 Subject: [PATCH 36/63] Rename blocktelemetry.cmd to block-telemetry.cmd --- Individual Scripts/{blocktelemetry.cmd => block-telemetry.cmd} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename Individual Scripts/{blocktelemetry.cmd => block-telemetry.cmd} (100%) diff --git a/Individual Scripts/blocktelemetry.cmd b/Individual Scripts/block-telemetry.cmd similarity index 100% rename from Individual Scripts/blocktelemetry.cmd rename to Individual Scripts/block-telemetry.cmd From 4460535dbae684c87fc293551e52fe361ad3f35a Mon Sep 17 00:00:00 2001 From: therealmate <61843503+therealmate@users.noreply.github.com> Date: Mon, 31 Jan 2022 11:46:12 +0000 Subject: [PATCH 37/63] Update block-telemetry.cmd --- Individual Scripts/block-telemetry.cmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Individual Scripts/block-telemetry.cmd b/Individual Scripts/block-telemetry.cmd index 64ca58ea..9cbd1205 100644 --- a/Individual Scripts/block-telemetry.cmd +++ b/Individual Scripts/block-telemetry.cmd @@ -48,7 +48,7 @@ exit netsh advfirewall firewall delete rule name="Block Windows Telemetry" > nul netsh advfirewall firewall delete rule name="Block NVIDIA Telemetry" > nul cls -echo Telemetry Sucessfully unblocked! +echo Telemetry Successfully unblocked! timeout 2 > nul cls echo Exiting. From fb7d6ca38f8093c5c20ceca5b21b04d19c2dde79 Mon Sep 17 00:00:00 2001 From: therealmate <61843503+therealmate@users.noreply.github.com> Date: Mon, 31 Jan 2022 11:59:05 +0000 Subject: [PATCH 38/63] Update block-telemetry.cmd --- Individual Scripts/block-telemetry.cmd | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Individual Scripts/block-telemetry.cmd b/Individual Scripts/block-telemetry.cmd index 9cbd1205..dd5c165c 100644 --- a/Individual Scripts/block-telemetry.cmd +++ b/Individual Scripts/block-telemetry.cmd @@ -15,7 +15,6 @@ echo Input your answer below: set /p a= if "%a%" == "yes" goto :block if "%a%" == "revert" goto :unblock -if "%a%" == "info" goto :info if "%a%" == "no" goto :exit cls @@ -31,7 +30,7 @@ goto :menu netsh advfirewall firewall add rule name="Block Windows Telemetry" dir=in action=block remoteip=134.170.30.202,137.116.81.24,157.56.106.189,184.86.53.99,2.22.61.43,2.22.61.66,204.79.197.200,23.218.212.69,65.39.117.23,65.55.108.23,64.4.54.254 enable=yes > nul netsh advfirewall firewall add rule name="Block NVIDIA Telemetry" dir=in action=block remoteip=8.36.80.197,8.36.80.224,8.36.80.252,8.36.113.118,8.36.113.141,8.36.80.230,8.36.80.231,8.36.113.126,8.36.80.195,8.36.80.217,8.36.80.237,8.36.80.246,8.36.113.116,8.36.113.139,8.36.80.244,216.228.121.209 enable=yes > nul cls -echo Telemetry Sucessfully blocked! +echo Telemetry Successfully blocked! timeout 2 > nul cls echo Exiting. From afccacf290b1befa4c38b5dcedb5a291b77752b0 Mon Sep 17 00:00:00 2001 From: therealmate <61843503+therealmate@users.noreply.github.com> Date: Mon, 31 Jan 2022 12:03:59 +0000 Subject: [PATCH 39/63] Update service disabler.ps1 --- Individual Scripts/service disabler.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Individual Scripts/service disabler.ps1 b/Individual Scripts/service disabler.ps1 index 400fc3a6..74437eda 100644 --- a/Individual Scripts/service disabler.ps1 +++ b/Individual Scripts/service disabler.ps1 @@ -57,16 +57,16 @@ $services = @( "iphlpsvc" #Disables ipv6 but most websites don't use ipv6 they use ipv4 "edgeupdate" # Disables one of edge update service "MicrosoftEdgeElevationService" # Disables one of edge service - "edgeupdatem" # disables another one of update service (disables edgeupdatem) + "edgeupdatem" # Disables another one of update service (disables edgeupdatem) "SEMgrSvc" #Disables Payments and NFC/SE Manager (Manages payments and Near Field Communication (NFC) based secure elements) #"PNRPsvc" # Disables peer Name Resolution Protocol ( some peer-to-peer and collaborative applications, such as Remote Assistance, may not function, Discord will still work) - #"p2psvc" # Disbales Peer Name Resolution Protocol(nables multi-party communication using Peer-to-Peer Grouping. If disabled, some applications, such as HomeGroup, may not function. Discord will still work) + #"p2psvc" # Disables Peer Name Resolution Protocol(nables multi-party communication using Peer-to-Peer Grouping. If disabled, some applications, such as HomeGroup, may not function. Discord will still work) #"p2pimsvc" # Disables Peer Networking Identity Manager (Peer-to-Peer Grouping services may not function, and some applications, such as HomeGroup and Remote Assistance, may not function correctly.Discord will still work) "PerfHost" #Disables remote users and 64-bit processes to query performance . "BcastDVRUserService_48486de" #Disables GameDVR and Broadcast is used for Game Recordings and Live Broadcasts "CaptureService_48486de" #Disables ptional screen capture functionality for applications that call the Windows.Graphics.Capture API. "cbdhsvc_48486de" #Disables cbdhsvc_48486de (clipboard service it disables) - "BluetoothUserService_48486de" #disbales BluetoothUserService_48486de (The Bluetooth user service supports proper functionality of Bluetooth features relevant to each user session.) + "BluetoothUserService_48486de" #Disables BluetoothUserService_48486de (The Bluetooth user service supports proper functionality of Bluetooth features relevant to each user session.) "WpnService" #Disables WpnService (Push Notifications may not work ) #"StorSvc" #Disables StorSvc (usb external hard drive will not be reconised by windows) "RtkBtManServ" #Disables Realtek Bluetooth Device Manager Service From d2075ad8afa5f5dfd21037aadceeadb7c28376a9 Mon Sep 17 00:00:00 2001 From: Chris Titus Date: Tue, 1 Feb 2022 09:32:13 -0600 Subject: [PATCH 40/63] NFS and Robocopy Additions --- Individual Scripts/robocopy.ps1 | 5 +++++ win10debloat.ps1 | 34 +++++++++++++++++++++++++-------- 2 files changed, 31 insertions(+), 8 deletions(-) create mode 100644 Individual Scripts/robocopy.ps1 diff --git a/Individual Scripts/robocopy.ps1 b/Individual Scripts/robocopy.ps1 new file mode 100644 index 00000000..3b863a68 --- /dev/null +++ b/Individual Scripts/robocopy.ps1 @@ -0,0 +1,5 @@ + + +$S = Read-Host -Prompt 'Input Source Directory' +$D = Read-Host -Prompt 'Input Destination Directory' +robocopy $S $D /e /w:5 /r:2 /COPY:DATSOU /DCOPY:DAT /MT \ No newline at end of file diff --git a/win10debloat.ps1 b/win10debloat.ps1 index 49f5e5c7..ae26fe15 100644 --- a/win10debloat.ps1 +++ b/win10debloat.ps1 @@ -78,7 +78,7 @@ $7zip.location = New-Object System.Drawing.Point(4,102) $7zip.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) $sharex = New-Object system.Windows.Forms.Button -$sharex.text = "ShareX" +$sharex.text = "ShareX (Screenshots)" $sharex.width = 212 $sharex.height = 30 $sharex.location = New-Object System.Drawing.Point(3,561) @@ -134,7 +134,7 @@ $winterminal.location = New-Object System.Drawing.Point(3,32) $winterminal.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) $vscode = New-Object system.Windows.Forms.Button -$vscode.text = "Visual Studio Code" +$vscode.text = "VS Code" $vscode.width = 211 $vscode.height = 30 $vscode.location = New-Object System.Drawing.Point(4,797) @@ -176,7 +176,7 @@ $backgroundapps.location = New-Object System.Drawing.Point(3,453) $backgroundapps.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) $cortana = New-Object system.Windows.Forms.Button -$cortana.text = "Disable Cortana" +$cortana.text = "Disable Cortana (Search)" $cortana.width = 205 $cortana.height = 30 $cortana.location = New-Object System.Drawing.Point(2,588) @@ -204,7 +204,7 @@ $performancefx.location = New-Object System.Drawing.Point(3,419) $performancefx.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) $onedrive = New-Object system.Windows.Forms.Button -$onedrive.text = "Delete & Disable OneDrive" +$onedrive.text = "Delete & Disable OneDrive" $onedrive.width = 205 $onedrive.height = 30 $onedrive.location = New-Object System.Drawing.Point(3,521) @@ -299,7 +299,7 @@ $Label4.location = New-Object System.Drawing.Point(482,12) $Label4.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',24) $Panel3 = New-Object system.Windows.Forms.Panel -$Panel3.height = 234 +$Panel3.height = 327 $Panel3.width = 220 $Panel3.location = New-Object System.Drawing.Point(464,54) @@ -318,7 +318,7 @@ $EActionCenter.location = New-Object System.Drawing.Point(3,210) $EActionCenter.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) $ECortana = New-Object system.Windows.Forms.Button -$ECortana.text = "Enable Cortana" +$ECortana.text = "Enable Cortana (Search)" $ECortana.width = 205 $ECortana.height = 30 $ECortana.location = New-Object System.Drawing.Point(3,622) @@ -619,11 +619,18 @@ $Button1.height = 30 $Button1.location = New-Object System.Drawing.Point(4,197) $Button1.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) +$NFS = New-Object system.Windows.Forms.Button +$NFS.text = "Enable NFS" +$NFS.width = 211 +$NFS.height = 30 +$NFS.location = New-Object System.Drawing.Point(4,232) +$NFS.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) + $Form.controls.AddRange(@($Panel1,$Panel2,$Label3,$Label15,$Panel4,$PictureBox1,$Label1,$Label4,$Panel3,$ResultText,$Label10,$Label11,$urlfixwinstartup,$urlremovevirus,$urlcreateiso)) $Panel1.controls.AddRange(@($brave,$firefox,$7zip,$sharex,$adobereader,$notepad,$gchrome,$mpc,$vlc,$powertoys,$winterminal,$vscode,$Label2,$everythingsearch,$sumatrapdf,$vscodium,$imageglass,$gimp,$Label7,$Label8,$Label9,$advancedipscanner,$putty,$etcher,$translucenttb,$githubdesktop,$discord,$autohotkey)) $Panel2.controls.AddRange(@($essentialtweaks,$backgroundapps,$cortana,$actioncenter,$darkmode,$performancefx,$onedrive,$lightmode,$essentialundo,$EActionCenter,$ECortana,$RBackgroundApps,$HTrayIcons,$EClipboardHistory,$ELocation,$InstallOneDrive,$removebloat,$reinstallbloat,$WarningLabel,$Label5,$appearancefx,$STrayIcons,$EHibernation,$dualboottime)) $Panel4.controls.AddRange(@($defaultwindowsupdate,$securitywindowsupdate,$Label16,$Label17,$Label18,$Label19)) -$Panel3.controls.AddRange(@($yourphonefix,$Label6,$windowsupdatefix,$ncpa,$oldcontrolpanel,$oldsoundpanel,$Button1)) +$Panel3.controls.AddRange(@($yourphonefix,$Label6,$windowsupdatefix,$ncpa,$oldcontrolpanel,$oldsoundpanel,$Button1,$NFS)) $brave.Add_Click({ Write-Host "Installing Brave Browser" @@ -1742,7 +1749,18 @@ $oldcontrolpanel.Add_Click({ $oldsystempanel.Add_Click({ cmd /c sysdm.cpl }) - +$NFS.Add_Click({ + Enable-WindowsOptionalFeature -Online -FeatureName "ServicesForNFS-ClientOnly" -All + Enable-WindowsOptionalFeature -Online -FeatureName "ClientForNFS-Infrastructure" -All + Enable-WindowsOptionalFeature -Online -FeatureName "NFS-Administration" -All + nfsadmin client stop + Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\ClientForNFS\CurrentVersion\Default" -Name "AnonymousUID" -Type DWord -Value 0 + Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\ClientForNFS\CurrentVersion\Default" -Name "AnonymousGID" -Type DWord -Value 0 + nfsadmin client start + nfsadmin client localhost config fileaccess=755 SecFlavors=+sys -krb5 -krb5i + Write-Host "NFS is now setup for user based NFS mounts" + $ResultText.text = "`r`n" +"`r`n" + "NFS is now setup for user based NFS mounts" +}) $windowsupdatefix.Add_Click({ Write-Host "1. Stopping Windows Update Services..." Stop-Service -Name BITS From 730552420180b00c9fd4712f18e8d7c017a0cba9 Mon Sep 17 00:00:00 2001 From: Sighi-04 <83777862+Sighi-04@users.noreply.github.com> Date: Wed, 9 Feb 2022 10:23:08 +0100 Subject: [PATCH 41/63] Fixed dead package name for adobe reader installer --- win10debloat.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/win10debloat.ps1 b/win10debloat.ps1 index ae26fe15..9baa3d28 100644 --- a/win10debloat.ps1 +++ b/win10debloat.ps1 @@ -681,7 +681,7 @@ $discord.Add_Click({ $adobereader.Add_Click({ Write-Host "Installing Adobe Reader DC" $ResultText.text = "`r`n" +"`r`n" + "Installing Adobe Reader DC... Please Wait" - winget install -e Adobe.AdobeAcrobatReaderDC | Out-Host + winget install -e --id Adobe.Acrobat.Reader.64-bit | Out-Host if($?) { Write-Host "Installed Adobe Reader DC" } $ResultText.text = "`r`n" + "Finished Installing Adobe Reader DC" + "`r`n" + "`r`n" + "Ready for Next Task" }) From fc37c7dd41a4eac40174401109d5293a2b5e8af7 Mon Sep 17 00:00:00 2001 From: Chris Titus Date: Fri, 11 Feb 2022 10:48:47 -0600 Subject: [PATCH 42/63] Update win10debloat.ps1 -Disable and Enable Updates Completely -Numlock Laptop Keyboard Fix --- win10debloat.ps1 | 230 ++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 220 insertions(+), 10 deletions(-) diff --git a/win10debloat.ps1 b/win10debloat.ps1 index ae26fe15..d05b1970 100644 --- a/win10debloat.ps1 +++ b/win10debloat.ps1 @@ -219,9 +219,9 @@ $Label15.location = New-Object System.Drawing.Point(732,11) $Label15.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',24) $Panel4 = New-Object system.Windows.Forms.Panel -$Panel4.height = 179 +$Panel4.height = 328 $Panel4.width = 340 -$Panel4.location = New-Object System.Drawing.Point(699,55) +$Panel4.location = New-Object System.Drawing.Point(699,54) $defaultwindowsupdate = New-Object system.Windows.Forms.Button $defaultwindowsupdate.text = "Default Settings" @@ -612,12 +612,12 @@ $oldsoundpanel.height = 30 $oldsoundpanel.location = New-Object System.Drawing.Point(4,163) $oldsoundpanel.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) -$Button1 = New-Object system.Windows.Forms.Button -$Button1.text = "Old System Panel" -$Button1.width = 211 -$Button1.height = 30 -$Button1.location = New-Object System.Drawing.Point(4,197) -$Button1.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) +$oldsystempanel = New-Object system.Windows.Forms.Button +$oldsystempanel.text = "Old System Panel" +$oldsystempanel.width = 211 +$oldsystempanel.height = 30 +$oldsystempanel.location = New-Object System.Drawing.Point(4,197) +$oldsystempanel.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) $NFS = New-Object system.Windows.Forms.Button $NFS.text = "Enable NFS" @@ -626,11 +626,40 @@ $NFS.height = 30 $NFS.location = New-Object System.Drawing.Point(4,232) $NFS.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) +$laptopnumlock = New-Object system.Windows.Forms.Button +$laptopnumlock.text = "Laptop Numlock Fix" +$laptopnumlock.width = 211 +$laptopnumlock.height = 30 +$laptopnumlock.location = New-Object System.Drawing.Point(4,267) +$laptopnumlock.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) + +$disableupdates = New-Object system.Windows.Forms.Button +$disableupdates.text = "Disable Update Services" +$disableupdates.width = 300 +$disableupdates.height = 30 +$disableupdates.location = New-Object System.Drawing.Point(24,282) +$disableupdates.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',14) + +$enableupdates = New-Object system.Windows.Forms.Button +$enableupdates.text = "Enable Update Services" +$enableupdates.width = 300 +$enableupdates.height = 30 +$enableupdates.location = New-Object System.Drawing.Point(25,179) +$enableupdates.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',14) + +$Label12 = New-Object system.Windows.Forms.Label +$Label12.text = "NOT RECOMMENDED!!!" +$Label12.AutoSize = $true +$Label12.width = 25 +$Label12.height = 10 +$Label12.location = New-Object System.Drawing.Point(102,262) +$Label12.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',10,[System.Drawing.FontStyle]([System.Drawing.FontStyle]::Bold)) + $Form.controls.AddRange(@($Panel1,$Panel2,$Label3,$Label15,$Panel4,$PictureBox1,$Label1,$Label4,$Panel3,$ResultText,$Label10,$Label11,$urlfixwinstartup,$urlremovevirus,$urlcreateiso)) $Panel1.controls.AddRange(@($brave,$firefox,$7zip,$sharex,$adobereader,$notepad,$gchrome,$mpc,$vlc,$powertoys,$winterminal,$vscode,$Label2,$everythingsearch,$sumatrapdf,$vscodium,$imageglass,$gimp,$Label7,$Label8,$Label9,$advancedipscanner,$putty,$etcher,$translucenttb,$githubdesktop,$discord,$autohotkey)) $Panel2.controls.AddRange(@($essentialtweaks,$backgroundapps,$cortana,$actioncenter,$darkmode,$performancefx,$onedrive,$lightmode,$essentialundo,$EActionCenter,$ECortana,$RBackgroundApps,$HTrayIcons,$EClipboardHistory,$ELocation,$InstallOneDrive,$removebloat,$reinstallbloat,$WarningLabel,$Label5,$appearancefx,$STrayIcons,$EHibernation,$dualboottime)) -$Panel4.controls.AddRange(@($defaultwindowsupdate,$securitywindowsupdate,$Label16,$Label17,$Label18,$Label19)) -$Panel3.controls.AddRange(@($yourphonefix,$Label6,$windowsupdatefix,$ncpa,$oldcontrolpanel,$oldsoundpanel,$Button1,$NFS)) +$Panel4.controls.AddRange(@($defaultwindowsupdate,$securitywindowsupdate,$Label16,$Label17,$Label18,$Label19,$disableupdates,$enableupdates,$Label12)) +$Panel3.controls.AddRange(@($yourphonefix,$Label6,$windowsupdatefix,$ncpa,$oldcontrolpanel,$oldsoundpanel,$oldsystempanel,$NFS,$laptopnumlock)) $brave.Add_Click({ Write-Host "Installing Brave Browser" @@ -1132,6 +1161,15 @@ Write-Host "Setting BIOS time to UTC..." $ResultText.text = "`r`n" + "Time set to UTC for consistent time in Dual Boot Systems" + "`r`n" + "`r`n" + "Ready for Next Task" }) +$laptopnumlock.Add_Click({ + Set-ItemProperty -Path "HKU:\.DEFAULT\Control Panel\Keyboard" -Name "InitialKeyboardIndicators" -Type DWord -Value 0 + Add-Type -AssemblyName System.Windows.Forms + If (([System.Windows.Forms.Control]::IsKeyLocked('NumLock'))) { + $wsh = New-Object -ComObject WScript.Shell + $wsh.SendKeys('{NUMLOCK}') + } +}) + $essentialundo.Add_Click({ Write-Host "Creating Restore Point incase something bad happens" $ResultText.text = "`r`n" +"`r`n" + "Creating Restore Point and Reverting Settings... Please Wait" @@ -1856,4 +1894,176 @@ $windowsupdatefix.Add_Click({ }) +$disableupdates.Add_Click({ + + # Source: https://github.com/rgl/windows-vagrant/blob/master/disable-windows-updates.ps1 + Set-StrictMode -Version Latest +$ProgressPreference = 'SilentlyContinue' +$ErrorActionPreference = 'Stop' +trap { + Write-Host + Write-Host "ERROR: $_" + Write-Host (($_.ScriptStackTrace -split '\r?\n') -replace '^(.*)$','ERROR: $1') + Write-Host (($_.Exception.ToString() -split '\r?\n') -replace '^(.*)$','ERROR EXCEPTION: $1') + Write-Host + Write-Host 'Sleeping for 60m to give you time to look around the virtual machine before self-destruction...' + Start-Sleep -Seconds (60*60) + Exit 1 +} + +# disable automatic updates. +# XXX this does not seem to work anymore. +# see How to configure automatic updates by using Group Policy or registry settings +# at https://support.microsoft.com/en-us/help/328010 +function New-Directory($path) { + $p, $components = $path -split '[\\/]' + $components | ForEach-Object { + $p = "$p\$_" + if (!(Test-Path $p)) { + New-Item -ItemType Directory $p | Out-Null + } + } + $null +} +$auPath = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU' +New-Directory $auPath +# set NoAutoUpdate. +# 0: Automatic Updates is enabled (default). +# 1: Automatic Updates is disabled. +New-ItemProperty ` + -Path $auPath ` + -Name NoAutoUpdate ` + -Value 1 ` + -PropertyType DWORD ` + -Force ` + | Out-Null +# set AUOptions. +# 1: Keep my computer up to date has been disabled in Automatic Updates. +# 2: Notify of download and installation. +# 3: Automatically download and notify of installation. +# 4: Automatically download and scheduled installation. +New-ItemProperty ` + -Path $auPath ` + -Name AUOptions ` + -Value 1 ` + -PropertyType DWORD ` + -Force ` + | Out-Null + +# disable Windows Update Delivery Optimization. +# NB this applies to Windows 10. +# 0: Disabled +# 1: PCs on my local network +# 3: PCs on my local network, and PCs on the Internet +$deliveryOptimizationPath = 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config' +if (Test-Path $deliveryOptimizationPath) { + New-ItemProperty ` + -Path $deliveryOptimizationPath ` + -Name DODownloadMode ` + -Value 0 ` + -PropertyType DWORD ` + -Force ` + | Out-Null +} +# Service tweaks for Windows Update + +$services = @( + "BITS" + "wuauserv" +) + +foreach ($service in $services) { + # -ErrorAction SilentlyContinue is so it doesn't write an error to stdout if a service doesn't exist + + Write-Host "Setting $service StartupType to Disabled" + Get-Service -Name $service -ErrorAction SilentlyContinue | Set-Service -StartupType Disabled +} +}) + +$enableupdates.Add_Click({ + + # Source: https://github.com/rgl/windows-vagrant/blob/master/disable-windows-updates.ps1 + Set-StrictMode -Version Latest +$ProgressPreference = 'SilentlyContinue' +$ErrorActionPreference = 'Stop' +trap { + Write-Host + Write-Host "ERROR: $_" + Write-Host (($_.ScriptStackTrace -split '\r?\n') -replace '^(.*)$','ERROR: $1') + Write-Host (($_.Exception.ToString() -split '\r?\n') -replace '^(.*)$','ERROR EXCEPTION: $1') + Write-Host + Write-Host 'Sleeping for 60m to give you time to look around the virtual machine before self-destruction...' + Start-Sleep -Seconds (60*60) + Exit 1 +} + +# disable automatic updates. +# XXX this does not seem to work anymore. +# see How to configure automatic updates by using Group Policy or registry settings +# at https://support.microsoft.com/en-us/help/328010 +function New-Directory($path) { + $p, $components = $path -split '[\\/]' + $components | ForEach-Object { + $p = "$p\$_" + if (!(Test-Path $p)) { + New-Item -ItemType Directory $p | Out-Null + } + } + $null +} +$auPath = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU' +New-Directory $auPath +# set NoAutoUpdate. +# 0: Automatic Updates is enabled (default). +# 1: Automatic Updates is disabled. +New-ItemProperty ` + -Path $auPath ` + -Name NoAutoUpdate ` + -Value 0 ` + -PropertyType DWORD ` + -Force ` + | Out-Null +# set AUOptions. +# 1: Keep my computer up to date has been disabled in Automatic Updates. +# 2: Notify of download and installation. +# 3: Automatically download and notify of installation. +# 4: Automatically download and scheduled installation. +New-ItemProperty ` + -Path $auPath ` + -Name AUOptions ` + -Value 3 ` + -PropertyType DWORD ` + -Force ` + | Out-Null + +# disable Windows Update Delivery Optimization. +# NB this applies to Windows 10. +# 0: Disabled +# 1: PCs on my local network +# 3: PCs on my local network, and PCs on the Internet +$deliveryOptimizationPath = 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config' +if (Test-Path $deliveryOptimizationPath) { + New-ItemProperty ` + -Path $deliveryOptimizationPath ` + -Name DODownloadMode ` + -Value 0 ` + -PropertyType DWORD ` + -Force ` + | Out-Null +} +# Service tweaks for Windows Update + +$services = @( + "BITS" + "wuauserv" +) + +foreach ($service in $services) { + # -ErrorAction SilentlyContinue is so it doesn't write an error to stdout if a service doesn't exist + + Write-Host "Setting $service StartupType to Automatic" + Get-Service -Name $service -ErrorAction SilentlyContinue | Set-Service -StartupType Automatic +} +}) + [void]$Form.ShowDialog() From e35c052aa000080d01659788dd19abc1c65912fd Mon Sep 17 00:00:00 2001 From: Chris Titus Date: Sat, 12 Feb 2022 15:42:44 -0600 Subject: [PATCH 43/63] Update .gitignore --- .gitignore | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 353f57f3..d0af9754 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ defltbase.jfm OOSU10.exe -defltbase.sdb \ No newline at end of file +defltbase.sdb +bin/x64/ctt-toolbox.exe +bin/x64/ctt-toolbox.zip +win10debloat.ps1.psbuild From c349966ed313d5d7979aeb58e2c3a7ae3f494c6f Mon Sep 17 00:00:00 2001 From: Chris Titus Date: Tue, 15 Feb 2022 10:26:09 -0600 Subject: [PATCH 44/63] Update win10debloat.ps1 Adding Virtualization --- win10debloat.ps1 | 38 +++++++++++++++++++++++++++++++------- 1 file changed, 31 insertions(+), 7 deletions(-) diff --git a/win10debloat.ps1 b/win10debloat.ps1 index d05b1970..afd3e4d0 100644 --- a/win10debloat.ps1 +++ b/win10debloat.ps1 @@ -299,7 +299,7 @@ $Label4.location = New-Object System.Drawing.Point(482,12) $Label4.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',24) $Panel3 = New-Object system.Windows.Forms.Panel -$Panel3.height = 327 +$Panel3.height = 363 $Panel3.width = 220 $Panel3.location = New-Object System.Drawing.Point(464,54) @@ -471,7 +471,7 @@ $advancedipscanner.location = New-Object System.Drawing.Point(3,335) $advancedipscanner.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) $putty = New-Object system.Windows.Forms.Button -$putty.text = "PuTTY & WinSCP" +$putty.text = "PuTTY + WinSCP" $putty.width = 211 $putty.height = 30 $putty.location = New-Object System.Drawing.Point(3,302) @@ -545,7 +545,7 @@ $Label10.text = "Current Status:" $Label10.AutoSize = $true $Label10.width = 25 $Label10.height = 10 -$Label10.location = New-Object System.Drawing.Point(657,430) +$Label10.location = New-Object System.Drawing.Point(658,448) $Label10.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',24) $EHibernation = New-Object system.Windows.Forms.Button @@ -630,14 +630,14 @@ $laptopnumlock = New-Object system.Windows.Forms.Button $laptopnumlock.text = "Laptop Numlock Fix" $laptopnumlock.width = 211 $laptopnumlock.height = 30 -$laptopnumlock.location = New-Object System.Drawing.Point(4,267) +$laptopnumlock.location = New-Object System.Drawing.Point(4,301) $laptopnumlock.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) $disableupdates = New-Object system.Windows.Forms.Button $disableupdates.text = "Disable Update Services" $disableupdates.width = 300 $disableupdates.height = 30 -$disableupdates.location = New-Object System.Drawing.Point(24,282) +$disableupdates.location = New-Object System.Drawing.Point(24,251) $disableupdates.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',14) $enableupdates = New-Object system.Windows.Forms.Button @@ -652,14 +652,21 @@ $Label12.text = "NOT RECOMMENDED!!!" $Label12.AutoSize = $true $Label12.width = 25 $Label12.height = 10 -$Label12.location = New-Object System.Drawing.Point(102,262) +$Label12.location = New-Object System.Drawing.Point(98,236) $Label12.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',10,[System.Drawing.FontStyle]([System.Drawing.FontStyle]::Bold)) +$Virtualization = New-Object system.Windows.Forms.Button +$Virtualization.text = "Enable HyperV + WSL" +$Virtualization.width = 211 +$Virtualization.height = 30 +$Virtualization.location = New-Object System.Drawing.Point(4,267) +$Virtualization.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) + $Form.controls.AddRange(@($Panel1,$Panel2,$Label3,$Label15,$Panel4,$PictureBox1,$Label1,$Label4,$Panel3,$ResultText,$Label10,$Label11,$urlfixwinstartup,$urlremovevirus,$urlcreateiso)) $Panel1.controls.AddRange(@($brave,$firefox,$7zip,$sharex,$adobereader,$notepad,$gchrome,$mpc,$vlc,$powertoys,$winterminal,$vscode,$Label2,$everythingsearch,$sumatrapdf,$vscodium,$imageglass,$gimp,$Label7,$Label8,$Label9,$advancedipscanner,$putty,$etcher,$translucenttb,$githubdesktop,$discord,$autohotkey)) $Panel2.controls.AddRange(@($essentialtweaks,$backgroundapps,$cortana,$actioncenter,$darkmode,$performancefx,$onedrive,$lightmode,$essentialundo,$EActionCenter,$ECortana,$RBackgroundApps,$HTrayIcons,$EClipboardHistory,$ELocation,$InstallOneDrive,$removebloat,$reinstallbloat,$WarningLabel,$Label5,$appearancefx,$STrayIcons,$EHibernation,$dualboottime)) $Panel4.controls.AddRange(@($defaultwindowsupdate,$securitywindowsupdate,$Label16,$Label17,$Label18,$Label19,$disableupdates,$enableupdates,$Label12)) -$Panel3.controls.AddRange(@($yourphonefix,$Label6,$windowsupdatefix,$ncpa,$oldcontrolpanel,$oldsoundpanel,$oldsystempanel,$NFS,$laptopnumlock)) +$Panel3.controls.AddRange(@($yourphonefix,$Label6,$windowsupdatefix,$ncpa,$oldcontrolpanel,$oldsoundpanel,$oldsystempanel,$NFS,$laptopnumlock,$Virtualization)) $brave.Add_Click({ Write-Host "Installing Brave Browser" @@ -1799,6 +1806,23 @@ $NFS.Add_Click({ Write-Host "NFS is now setup for user based NFS mounts" $ResultText.text = "`r`n" +"`r`n" + "NFS is now setup for user based NFS mounts" }) + +$Virtualization.Add_Click({ + Enable-WindowsOptionalFeature -Online -FeatureName "HypervisorPlatform" -All + Enable-WindowsOptionalFeature -Online -FeatureName "VirtualMachinePlatform" -All + Enable-WindowsOptionalFeature -Online -FeatureName "Microsoft-Windows-Subsystem-Linux" -All + Enable-WindowsOptionalFeature -Online -FeatureName "Microsoft-Hyper-V-All" -All + Enable-WindowsOptionalFeature -Online -FeatureName "Microsoft-Hyper-V" -All + Enable-WindowsOptionalFeature -Online -FeatureName "Microsoft-Hyper-V-Tools-All" -All + Enable-WindowsOptionalFeature -Online -FeatureName "Microsoft-Hyper-V-Management-PowerShell" -All + Enable-WindowsOptionalFeature -Online -FeatureName "Microsoft-Hyper-V-Hypervisor" -All + Enable-WindowsOptionalFeature -Online -FeatureName "Microsoft-Hyper-V-Services" -All + Enable-WindowsOptionalFeature -Online -FeatureName "Microsoft-Hyper-V-Management-Clients" -All + cmd /c bcdedit /set hypervisorschedulertype classic + Write-Host "HyperV is now installed and configured. Please Reboot before using." + $ResultText.text = "`r`n" +"`r`n" + "HyperV is now installed and configured. Please Reboot before using." +}) + $windowsupdatefix.Add_Click({ Write-Host "1. Stopping Windows Update Services..." Stop-Service -Name BITS From 9322b9a833ba7d8b7c40a51db1c78ab4b5183243 Mon Sep 17 00:00:00 2001 From: Chris Titus Date: Tue, 15 Feb 2022 11:33:16 -0600 Subject: [PATCH 45/63] HyperV Tools --- Individual Scripts/vm-gpusplit.ps1 | 19 +++++ Linux HyperV Tools/arch.sh | 108 +++++++++++++++++++++++++++++ Linux HyperV Tools/deb.sh | 108 +++++++++++++++++++++++++++++ 3 files changed, 235 insertions(+) create mode 100644 Individual Scripts/vm-gpusplit.ps1 create mode 100644 Linux HyperV Tools/arch.sh create mode 100644 Linux HyperV Tools/deb.sh diff --git a/Individual Scripts/vm-gpusplit.ps1 b/Individual Scripts/vm-gpusplit.ps1 new file mode 100644 index 00000000..6de4a46d --- /dev/null +++ b/Individual Scripts/vm-gpusplit.ps1 @@ -0,0 +1,19 @@ +$vm = "Ubuntu 20.04" +Remove-VMGpuPartitionAdapter -VMName $vm +Add-VMGpuPartitionAdapter -VMName $vm +Set-VMGpuPartitionAdapter -VMName $vm -MinPartitionVRAM 1 +Set-VMGpuPartitionAdapter -VMName $vm -MaxPartitionVRAM 11 +Set-VMGpuPartitionAdapter -VMName $vm -OptimalPartitionVRAM 10 +Set-VMGpuPartitionAdapter -VMName $vm -MinPartitionEncode 1 +Set-VMGpuPartitionAdapter -VMName $vm -MaxPartitionEncode 11 +Set-VMGpuPartitionAdapter -VMName $vm -OptimalPartitionEncode 10 +Set-VMGpuPartitionAdapter -VMName $vm -MinPartitionDecode 1 +Set-VMGpuPartitionAdapter -VMName $vm -MaxPartitionDecode 11 +Set-VMGpuPartitionAdapter -VMName $vm -OptimalPartitionDecode 10 +Set-VMGpuPartitionAdapter -VMName $vm -MinPartitionCompute 1 +Set-VMGpuPartitionAdapter -VMName $vm -MaxPartitionCompute 11 +Set-VMGpuPartitionAdapter -VMName $vm -OptimalPartitionCompute 10 +Set-VM -GuestControlledCacheTypes $true -VMName $vm +Set-VM -LowMemoryMappedIoSpace 1Gb -VMName $vm +Set-VM -HighMemoryMappedIoSpace 32GB -VMName $vm +Start-VM -Name $vm \ No newline at end of file diff --git a/Linux HyperV Tools/arch.sh b/Linux HyperV Tools/arch.sh new file mode 100644 index 00000000..e34ba9dd --- /dev/null +++ b/Linux HyperV Tools/arch.sh @@ -0,0 +1,108 @@ +#!/bin/bash + +# +# This script is for Arch Linux to configure XRDP for enhanced session mode +# +# The configuration is adapted from the Ubuntu 16.04 script. +# + +if [ "$(id -u)" -ne 0 ]; then + echo 'This script must be run with root privileges' >&2 + exit 1 +fi + +# Use Qi to check for exact package name +if ! pacman -Qi xrdp > /dev/null ; then + echo 'xrdp not installed. Install xrdp.' >&2 + sudo pacman -Syu --needed --noconfirm base base-devel git + + # Create a build directory in tmpfs + TMPDIR=$(mktemp -d) + pushd "$TMPDIR" || exit + + ############################################################################### + # XRDP + # + ( + git clone https://aur.archlinux.org/xrdp.git + cd xrdp || exit + makepkg -sri --noconfirm + ) + ############################################################################### + # XORGXRDP + # Devel version, because release version includes a bug crashing gnome-settings-daemon + ( + git clone https://aur.archlinux.org/xorgxrdp-devel-git.git + cd xorgxrdp-devel-git || exit + makepkg -sri --noconfirm + ) + ############################################################################### + + #remove build directory + rm -rf $TMPDIR +fi + + +############################################################################### +# Configure XRDP +# +systemctl enable xrdp +systemctl enable xrdp-sesman + +# Configure the installed XRDP ini files. +# use vsock transport. +sed -i_orig -e 's/port=3389/port=vsock:\/\/-1:3389/g' /etc/xrdp/xrdp.ini +# use rdp security. +sed -i_orig -e 's/security_layer=negotiate/security_layer=rdp/g' /etc/xrdp/xrdp.ini +# remove encryption validation. +sed -i_orig -e 's/crypt_level=high/crypt_level=none/g' /etc/xrdp/xrdp.ini +# disable bitmap compression since its local its much faster +sed -i_orig -e 's/bitmap_compression=true/bitmap_compression=false/g' /etc/xrdp/xrdp.ini +# +# sed -n -e 's/max_bpp=32/max_bpp=24/g' /etc/xrdp/xrdp.ini + +# use the default lightdm x display +# sed -i_orig -e 's/X11DisplayOffset=10/X11DisplayOffset=0/g' /etc/xrdp/sesman.ini +# rename the redirected drives to 'shared-drives' +sed -i_orig -e 's/FuseMountName=thinclient_drives/FuseMountName=shared-drives/g' /etc/xrdp/sesman.ini + +# Change the allowed_users +echo "allowed_users=anybody" > /etc/X11/Xwrapper.config + + +#Ensure hv_sock gets loaded +if [ ! -e /etc/modules-load.d/hv_sock.conf ]; then + echo "hv_sock" > /etc/modules-load.d/hv_sock.conf +fi + +# Configure the policy xrdp session +cat > /etc/polkit-1/rules.d/02-allow-colord.rules < /etc/pam.d/xrdp-sesman <&2 + exit 1 +fi + +apt update && apt upgrade -y + +if [ -f /var/run/reboot-required ]; then + echo "A reboot is required in order to proceed with the install." >&2 + echo "Please reboot and re-run this script to finish the install." >&2 + exit 1 +fi + +############################################################################### +# XRDP +# + +# Install hv_kvp utils +apt install -y linux-tools-virtual${HWE} +apt install -y linux-cloud-tools-virtual${HWE} + +# Install the xrdp service so we have the auto start behavior +apt install -y xrdp + +systemctl stop xrdp +systemctl stop xrdp-sesman + +# Configure the installed XRDP ini files. +# use vsock transport. +sed -i_orig -e 's/use_vsock=false/use_vsock=true/g' /etc/xrdp/xrdp.ini +# use rdp security. +sed -i_orig -e 's/security_layer=negotiate/security_layer=rdp/g' /etc/xrdp/xrdp.ini +# remove encryption validation. +sed -i_orig -e 's/crypt_level=high/crypt_level=none/g' /etc/xrdp/xrdp.ini +# disable bitmap compression since its local its much faster +sed -i_orig -e 's/bitmap_compression=true/bitmap_compression=false/g' /etc/xrdp/xrdp.ini + +# Add script to setup the ubuntu session properly +if [ ! -e /etc/xrdp/startubuntu.sh ]; then +cat >> /etc/xrdp/startubuntu.sh << EOF +#!/bin/sh +export GNOME_SHELL_SESSION_MODE=ubuntu +export XDG_CURRENT_DESKTOP=ubuntu:GNOME +exec /etc/xrdp/startwm.sh +EOF +chmod a+x /etc/xrdp/startubuntu.sh +fi + +# use the script to setup the ubuntu session +sed -i_orig -e 's/startwm/startubuntu/g' /etc/xrdp/sesman.ini + +# rename the redirected drives to 'shared-drives' +sed -i -e 's/FuseMountName=thinclient_drives/FuseMountName=shared-drives/g' /etc/xrdp/sesman.ini + +# Changed the allowed_users +sed -i_orig -e 's/allowed_users=console/allowed_users=anybody/g' /etc/X11/Xwrapper.config + +# Blacklist the vmw module +if [ ! -e /etc/modprobe.d/blacklist_vmw_vsock_vmci_transport.conf ]; then +cat >> /etc/modprobe.d/blacklist_vmw_vsock_vmci_transport.conf < /etc/modules-load.d/hv_sock.conf +fi + +# Configure the policy xrdp session +cat > /etc/polkit-1/localauthority/50-local.d/45-allow-colord.pkla < Date: Tue, 15 Feb 2022 12:36:54 -0600 Subject: [PATCH 46/63] Virtualization update --- {Linux HyperV Tools => HyperV Tools}/arch.sh | 0 HyperV Tools/deb.sh | 1011 +++++++++++++++++ .../vm-gpusplit.ps1 | 2 +- HyperV Tools/vm-setresolution.ps1 | 1 + Linux HyperV Tools/deb.sh | 108 -- 5 files changed, 1013 insertions(+), 109 deletions(-) rename {Linux HyperV Tools => HyperV Tools}/arch.sh (100%) create mode 100644 HyperV Tools/deb.sh rename {Individual Scripts => HyperV Tools}/vm-gpusplit.ps1 (97%) create mode 100644 HyperV Tools/vm-setresolution.ps1 delete mode 100644 Linux HyperV Tools/deb.sh diff --git a/Linux HyperV Tools/arch.sh b/HyperV Tools/arch.sh similarity index 100% rename from Linux HyperV Tools/arch.sh rename to HyperV Tools/arch.sh diff --git a/HyperV Tools/deb.sh b/HyperV Tools/deb.sh new file mode 100644 index 00000000..e7d9ec2b --- /dev/null +++ b/HyperV Tools/deb.sh @@ -0,0 +1,1011 @@ +#!/bin/bash +##################################################################################################### +# Script_Name : xrdp-installer-1.3.sh +# Description : Perform xRDP installation on Ubuntu 18.04,20.4,20.10,21.04 and perform +# additional post configuration to improve end user experience +# Date : October 2021 +# written by : Griffon +# WebSite :http://www.c-nergy.be - http://www.c-nergy.be/blog +# Version : 1.3 +# History : 1.3 - Adding support for Ubuntu 21.10 (STR) +# - Code modification sound redirection using meson technology (ubuntu 21.10 only so far) +# - Adding code to copy config.h file which seems to be missing from xrdp-pulseaudio modules +# - Adding support for Debian (10 and 11) (Best Effort) +# - Commenting out installation of Gnome Tweaks. Tweaks is not installed anymore by default +# - Added Rules to Detect Budgie-Desktop and postConfig settings +# - Added support for Pop!_0S (Best Effort !!!) +# - Code Changes to detect Desktop Interface in use +# - Reworked code for xrdp removal option +# - Improved Std vs Custom installation detection process +# - Added support for Different Desktop Interfaces (More testing needed) +# - General Code structure re-worked to add more OS version and Desktop interface support +# - Fixed Minor Bug(s) +# : 1.2.3 - Adding support for Ubuntu 21.04 +# - Removing Support for Ubuntu 16.04.x (End Standard Support) +# - Delete xrdp and xorgxrdp folder when remove option selected +# - Review remove function to detect hwe package U18.04 +# - Review, Optimize, Cleanup Code +# : 1.2.2 - Changing Ubuntu repository from be.archive.ubuntu.com to archive.ubuntu.com +# - Bug Fixing - /etc/xrdp/xrdp-installer-check.log not deleted when remove option +# selected in the script - Force Deletion (Thanks to Hiero for this input) +# - Bug Fixing - Grab automatically xrdp/xorgxrdp package version to avoid +# issues when upgrade operation performed (Thanks to Hiero for this input) +# : 1.2.1 - Adding Support to Ubuntu 20.10 + Removed support for Ubuntu 19.10 +# 1.2 - Adding Support to Ubuntu 20.04 + Removed support for Ubuntu 19.04 +# - Stricter Check for HWE Package (thanks to Andrej Gantvorg) +# - Changed code in checking where to copy image for login screen customization +# - Fixed Bug checking SSL group membership +# - Updating background color xrdp login screen +# - Updating pkgversion to x.13 for checkinstall process +# : 1.1 - Tackling multiple run of the script +# - Improved checkinstall method/check ssl group memberhsip +# - Replaced ~/Downloads by a variable +# : 1.0 - Added remove option + Final optimization +# : 0.9 - updated compile section to use checkinstall +# : 0.8 - Updated the fix_theme function to add support for Ubuntu 16.04 +# : 0.7 - Updated prereqs function to add support for Ubuntu 16.04 +# : 0.6 - Adding logic to detect Ubuntu version for U16.04 +# : 0.5 - Adding env variable Fix +# : 0.4 - Adding SSL Fix +# : 0.3 - Adding custom login screen option +# : 0.2 - Adding new code for passing parameters +# : 0.1 - Initial Script (merging custom & Std) +# Disclaimer : Script provided AS IS. Use it at your own risk.... +# You can use this script and distribute it as long as credits are kept +# in place and unchanged +#################################################################################################### + +#---------------------------------------------------# +# Variables and Constants # +#---------------------------------------------------# + +#--Automating Script versioning +ScriptVer="1.3" + +#--Detecting OS Version +version=$(lsb_release -sd) +codename=$(lsb_release -sc) +Release=$(lsb_release -sr) + +#--Detecting variable related to Desktop interface and Directory path +DesktopVer="$XDG_CURRENT_DESKTOP" +SessionVer="$GNOME_SHELL_SESSION_MODE" +ConfDir="$XDG_DATA_DIRS" + +#Define Dwnload variable to point to ~/Downloads folder of user running the script +Dwnload=$(xdg-user-dir DOWNLOAD) + +#Initialzing other variables +modetype="unknown" + +#--------------------------------------------------------------------------# +# -----------------------Function Section - DO NOT MODIFY -----------------# +#--------------------------------------------------------------------------# + +#---------------------------------------------------# +# Function 0 - check for supported OS version ....# +#---------------------------------------------------# + +check_os() +{ +echo +/bin/echo -e "\e[1;33m |-| Detecting OS version \e[0m" + +case $version in + + *"Ubuntu 18.04"*) + /bin/echo -e "\e[1;32m |-| OS Version : $version\e[0m" + /bin/echo -e "\e[1;32m |-| Desktop Version : $DesktopVer\e[0m" + ;; + + *"Ubuntu 20.04"*) + /bin/echo -e "\e[1;32m |-| OS Version : $version\e[0m" + /bin/echo -e "\e[1;32m |-| Desktop Version : $DesktopVer\e[0m" + ;; + + *"Ubuntu 21.04"*) + /bin/echo -e "\e[1;32m |-| OS Version : $version\e[0m" + /bin/echo -e "\e[1;32m |-| Desktop Version : $DesktopVer\e[0m" + ;; + + *"Ubuntu 21.10"*) + /bin/echo -e "\e[1;32m |-| OS Version : $version\e[0m" + /bin/echo -e "\e[1;32m |-| Desktop Version : $DesktopVer\e[0m" + ;; + + *"Pop!_OS 20.04"*) + /bin/echo -e "\e[1;32m |-| OS Version : $version\e[0m" + /bin/echo -e "\e[1;32m |-| Desktop Version : $DesktopVer\e[0m" + ;; + + *"Pop!_OS 21.04"*) + /bin/echo -e "\e[1;32m |-| OS Version : $version\e[0m" + /bin/echo -e "\e[1;32m |-| Desktop Version : $DesktopVer\e[0m" + ;; + + *"Debian"*) + /bin/echo -e "\e[1;32m |-| OS Version : $version\e[0m" + /bin/echo -e "\e[1;32m |-| Desktop Version : $DesktopVer\e[0m" + + if [[ $Release="11" ]] + then + zenity --info --text="You are running Debian 11. Please note that standard mode will not allow you to perform remote connection against Gnome Desktop. This is a known Debian/xrdp issue. Use custom install mode" --width=500 + #exit + fi + ;; + + *) + /bin/echo -e "\e[1;31m !--------------------------------------------------------------!\e[0m" + /bin/echo -e "\e[1;31m ! Your system is not running a supported version ! !\e[0m" + /bin/echo -e "\e[1;31m ! The script has been tested only on the following versions !\e[0m" + /bin/echo -e "\e[1;31m ! 18.04.x/20.04.x/21.04/21.10/Debian 10/Pop!_OS !\e[0m" + /bin/echo -e "\e[1;31m ! The script is exiting... !\e[0m" + /bin/echo -e "\e[1;31m !--------------------------------------------------------------!\e[0m" + echo + exit + ;; +esac +echo +} +#---------------------------------------------------# +# Function 1 - check xserver-xorg-core package.... +#---------------------------------------------------# + +check_hwe() +{ +Release=$(lsb_release -sr) +echo +/bin/echo -e "\e[1;33m |-| Detecting xserver-xorg-core package installed \e[0m" + +xorg_no_hwe_install_status=$(dpkg-query -W -f ='${Status}\n' xserver-xorg-core 2>/dev/null) +xorg_hwe_install_status=$(dpkg-query -W -f ='${Status}\n' xserver-xorg-core-hwe-$Release 2>/dev/null) + +if [[ "$xorg_hwe_install_status" =~ \ installed$ ]] +then +# – hwe version is installed on the system +/bin/echo -e "\e[1;32m |-| xorg package version: xserver-xorg-core-hwe \e[0m" +HWE="yes" +elif [[ "$xorg_no_hwe_install_status" =~ \ installed$ ]] +then +/bin/echo -e "\e[1;32m |-| xorg package version: xserver-xorg-core \e[0m" +HWE="no" +else +/bin/echo -e "\e[1;31m |-| Error checking xserver-xorg-core flavour \e[0m" +exit 1 +fi +} + +#---------------------------------------------------# +# Function 2 - Version specific actions needed.... +#---------------------------------------------------# + +PrepOS() +{ +echo +/bin/echo -e "\e[1;33m |-| Custom actions based on OS Version.... \e[0m" + +if [[ *"$version"* = *"Debian"* ]] +then + #Disable cdrom source.list to avoid prompt during install # DEBIAN SPECIFIC + sudo sed -i 's/deb cdrom:/#deb cdrom:/' /etc/apt/sources.list + sudo apt-get update +fi + +##--Need to use Variables !!!!! +if [[ *"$version"* = *"Debian"* ]] +then + CustomPix="griffon_logo_xrdpd.bmp" + CustomColor="27354D" +else + CustomPix="griffon_logo_xrdp.bmp" + CustomColor="4F194C" +fi + + +} + +############################################################################ +# INSTALLATION MODE : STANDARD +############################################################################ + +#---------------------------------------------------# +# Function 3 - Install xRDP Software.... +#---------------------------------------------------# + +install_xrdp() +{ +echo +/bin/echo -e "\e[1;33m |-| Installing xRDP packages \e[0m" +echo +if [[ $HWE = "yes" ]] && [[ "$version" = *"Ubuntu 18.04"* ]]; +then + sudo apt-get install xrdp -y + sudo apt-get install xorgxrdp-hwe-18.04 +else + sudo apt-get install xrdp -y +fi +} + +############################################################################ +# ADVANCED INSTALLATION MODE : CUSTOM INSTALLATION +############################################################################ + +#---------------------------------------------------# +# Function 4 - Install Prereqs... +#---------------------------------------------------# + +install_prereqs() { + +echo +/bin/echo -e "\e[1;33m |-|Installing prerequisites packages \e[0m" +echo +#Debian Specific - add in source backport package to download necessary packages - Debian Specific +if [[ *"$version"* = *"Debian"* ]] +then +sudo apt-get install -y software-properties-common +sudo apt-add-repository -s -y 'deb http://deb.debian.org/debian '$codename'-backports main' +#sudo sed -i 's/deb cdrom:/#deb cdrom:/' /etc/apt/sources.list +sudo apt-get update + +#--Needed to be created manually or compilation fails +sudo mkdir /usr/local/lib/xrdp/ +fi + +#--End Debian Specific --# + +#Install packages +sudo apt-get -y install git +sudo apt-get -y install libx11-dev libxfixes-dev libssl-dev libpam0g-dev libtool libjpeg-dev flex bison gettext autoconf libxml-parser-perl libfuse-dev xsltproc libxrandr-dev python3-libxml2 nasm fuse pkg-config git intltool checkinstall +echo + +#-- check if no error during Installation of missing packages +if [ $? -eq 0 ] +then +/bin/echo -e "\e[1;33m |-| Preprequesites installation successfully \e[0m" +else +echo +echo +/bin/echo -e "\e[1;31m !---------------------------------------------!\e[0m" +/bin/echo -e "\e[1;31m ! Error while installing prereqs !\e[0m" +/bin/echo -e "\e[1;31m ! The Script is exiting.... !\e[0m" +/bin/echo -e "\e[1;31m !---------------------------------------------!\e[0m" +exit +fi + +#-- check if hwe stack needed or not +if [ $HWE = "yes" ]; +then + # - xorg-hwe-* to be installed + /bin/echo -e "\e[1;32m |-| xorg package version: xserver-xorg-core-hwe-$Release \e[0m" + sudo apt-get install -y xserver-xorg-dev-hwe-$Release xserver-xorg-core-hwe-$Release +else + #-no-hwe + /bin/echo -e "\e[1;32m |-| xorg package version: xserver-xorg-core \e[0m" + echo + sudo apt-get install -y xserver-xorg-dev xserver-xorg-core +fi +} + +#---------------------------------------------------# +# Function 5 - Download XRDP Binaries... +#---------------------------------------------------# +get_binaries() { +echo +/bin/echo -e "\e[1;33m |-| Downloading xRDP Binaries...Proceeding \e[0m" +echo + +#cd ~/Downloads +Dwnload=$(xdg-user-dir DOWNLOAD) +cd $Dwnload + +#Check if xrdp folder already exists. if yes; delete it and download again in order to get latest version +if [ -d "$Dwnload/xrdp" ] +then + sudo rm -rf xrdp +fi + +#Check if xorgxrdp folder already exists. if yes; delete it and download again in order to get latest version +if [ -d "$Dwnload/xorgxrdp" ] +then + sudo rm -rf xorgxrdp +fi + +## -- Download the xrdp latest files +echo +/bin/echo -e "\e[1;32m |-| Downloading xRDP Binaries..... \e[0m" +echo +git clone https://github.com/neutrinolabs/xrdp.git +echo +/bin/echo -e "\e[1;32m |-| Downloading xorgxrdp Binaries... \e[0m" +echo + +git clone https://github.com/neutrinolabs/xorgxrdp.git + +} + +#---------------------------------------------------# +# Function 6 - compiling xrdp... +#---------------------------------------------------# +compile_source() { +echo +/bin/echo -e "\e[1;33m |-| Compiling xRDP Binaries...Proceeding \e[0m" +echo + +#cd ~/Downloads/xrdp +cd $Dwnload/xrdp + +#Get the release version automatically +pkgver=$(git describe --abbrev=0 --tags | cut -dv -f2) + +sudo ./bootstrap +sudo ./configure --enable-fuse --enable-jpeg --enable-rfxcodec +sudo make + +#-- check if no error during compilation +if [ $? -eq 0 ] +then +echo +/bin/echo -e "\e[1;32m |-| Make Operation Completed successfully....xRDP \e[0m" +echo +else +echo +/bin/echo -e "\e[1;31m !---------------------------------------------!\e[0m" +/bin/echo -e "\e[1;31m ! Error while Executing make !\e[0m" +/bin/echo -e "\e[1;31m ! The Script is exiting.... !\e[0m" +/bin/echo -e "\e[1;31m !---------------------------------------------!\e[0m" +exit +fi +sudo checkinstall --pkgname=xrdp --pkgversion=$pkgver --pkgrelease=1 --default + +#xorgxrdp package compilation +echo +/bin/echo -e "\e[1;32m |-| Make Operation Completed successfully....xorgxrdp \e[0m" +echo + +#cd ~/Downloads/xorgxrdp +cd $Dwnload/xorgxrdp + +#Get the release version automatically +pkgver=$(git describe --abbrev=0 --tags | cut -dv -f2) + +sudo ./bootstrap +sudo ./configure +sudo make + +# check if no error during compilation +if [ $? -eq 0 ] +then +echo +/bin/echo -e "\e[1;33m |-| Compilation Completed successfully...Proceeding \e[0m" +echo +else +echo +/bin/echo -e "\e[1;31m !---------------------------------------------!\e[0m" +/bin/echo -e "\e[1;31m ! Error while Executing make !\e[0m" +/bin/echo -e "\e[1;31m ! The Script is exiting.... !\e[0m" +/bin/echo -e "\e[1;31m !---------------------------------------------!\e[0m" +exit +fi +sudo checkinstall --pkgname=xorgxrdp --pkgversion=1:$pkgver --pkgrelease=1 --default +} + +#---------------------------------------------------# +# Function 7 - create services .... +#---------------------------------------------------# +enable_service() { +echo +/bin/echo -e "\e[1;33m |-| Creating and configuring xRDP services \e[0m" +echo +sudo systemctl daemon-reload +sudo systemctl enable xrdp.service +sudo systemctl enable xrdp-sesman.service +sudo systemctl start xrdp + +} + +############################################################################ +# COMMON FUNCTIONS - WHATEVER INSTALLATION MODE - Version Specific !!! +############################################################################ + +#--------------------------------------------------------------------------# +# Function 8 - Install Tweaks Utilty if Gnome desktop used (Optional) .... # +#--------------------------------------------------------------------------# +install_tweak() +{ +echo +/bin/echo -e "\e[1;33m |-| Checking if Tweaks needs to be installed.... \e[0m" +if [[ "$DesktopVer" != *"GNOME"* ]] +then +/bin/echo -e "\e[1;32m |-| Gnome Tweaks not needed...Proceeding... \e[0m" +echo +else +/bin/echo -e "\e[1;32m |-| Installing Gnome Tweaks Utility...Proceeding... \e[0m" +echo + if [[ *"$version"* = *"Ubuntu 21.10"* ]] + then + #if Ubuntu 21.10 - new version of th tool..... + sudo apt-get install gnome-tweaks -y + sudo apt-get install gnome-shell-extensions -y + else + sudo apt-get install gnome-tweak-tool -y + fi +fi +} + +#--------------------------------------------------------------------# +# Fucntion 9 - Allow console Access ....(seems optional in u18.04) +#--------------------------------------------------------------------# + +allow_console() +{ +echo +/bin/echo -e "\e[1;33m |-| Configuring Allow Console Access... \e[0m" +echo +# Checking if Xwrapper file exists +if [ -f /etc/X11/Xwrapper.config ] +then +sudo sed -i 's/allowed_users=console/allowed_users=anybody/' /etc/X11/Xwrapper.config +else + sudo bash -c "cat >/etc/X11/Xwrapper.config" </etc/polkit-1/localauthority/50-local.d/45-allow.colord.pkla" </etc/polkit-1/localauthority/50-local.d/46-allow-update-repo.pkla" </etc/polkit-1/localauthority/50-local.d/47-allow-networkd.pkla" < ~/.xsessionrc\nbudgie-desktop\nexport GNOME_SHELL_SESSION_MODE=$SessionVer\nexport XDG_CURRENT_DESKTOP=$DesktopVer\nexport XDG_DATA_DIRS=$ConfDir\nEOF\n" /etc/xrdp/startwm.sh +else +sudo sed -i "4 a #Improved Look n Feel Method\ncat < ~/.xsessionrc\nexport GNOME_SHELL_SESSION_MODE=$SessionVer\nexport XDG_CURRENT_DESKTOP=$DesktopVer\nexport XDG_DATA_DIRS=$ConfDir\nEOF\n" /etc/xrdp/startwm.sh +fi +echo + +} + +#---------------------------------------------------# +# Function 12 - Enable Sound Redirection .... +#---------------------------------------------------# +enable_sound() +{ +echo +/bin/echo -e "\e[1;33m |-| Enabling Sound Redirection.... \e[0m" +echo + +pulsever=$(pulseaudio --version | awk '{print $2}') + +/bin/echo -e "\e[1;32m |-| Install additional packages.. \e[0m" + +# Version Specific - adding source and correct pulseaudio version for Debian !!! +if [[ *"$version"* = *"Debian"* ]] +then +# Step 0 - Install Some PreReqs +sudo apt-get install libconfig-dev -y +sudo apt-get install git libpulse-dev autoconf m4 intltool build-essential dpkg-dev libtool libsndfile-dev libcap-dev -y libjson-c-dev +sudo apt build-dep pulseaudio -y +/bin/echo -e "\e[1;32m |-| Download pulseaudio sources files.. \e[0m" +# Step 3 - Download pulseaudio source in /tmp directory - Debian source repo should be already enabled +cd /tmp +sudo apt source pulseaudio=$pulsever +else +# Step 1 - Enable Source Code Repository +sudo apt-add-repository -s -y 'deb http://archive.ubuntu.com/ubuntu/ '$codename' main restricted' +sudo apt-add-repository -s -y 'deb http://archive.ubuntu.com/ubuntu/ '$codename' restricted universe main multiverse' +sudo apt-add-repository -s -y 'deb http://archive.ubuntu.com/ubuntu/ '$codename'-updates restricted universe main multiverse' +sudo apt-add-repository -s -y 'deb http://archive.ubuntu.com/ubuntu/ '$codename'-backports main restricted universe multiverse' +sudo apt-add-repository -s -y 'deb http://archive.ubuntu.com/ubuntu/ '$codename'-security main restricted universe main multiverse' +sudo apt-get update +# Step 2 - Install Some PreReqs +sudo apt-get install git libpulse-dev autoconf m4 intltool build-essential dpkg-dev libtool libsndfile-dev libcap-dev -y libjson-c-dev +sudo apt build-dep pulseaudio -y +/bin/echo -e "\e[1;32m |-| Download pulseaudio sources files.. \e[0m" +# Step 3 - Download pulseaudio source in /tmp directory - Debian source repo should be already enabled +cd /tmp +sudo apt source pulseaudio +fi + +/bin/echo -e "\e[1;32m |-| compile pulseaudio sources files.. \e[0m" + +# Step 4 - Compile based on OS version + +cd /tmp/pulseaudio-$pulsever* +PulsePath=$(pwd) + +if [[ *"$version"* = *"Ubuntu 21.10"* ]] +then + #Build - new way using meson and replacing configure old school approach + sudo meson --prefix=$PulsePath build + sudo ninja -C build install +else + sudo ./configure +fi + +# step 5 - Download xrdp sound modules +/bin/echo -e "\e[1;32m |-| Compiling and building xRDP Sound modules... \e[0m" +sudo git clone https://github.com/neutrinolabs/pulseaudio-module-xrdp.git +cd pulseaudio-module-xrdp + +# step 6 - Check if config.h file is missing...if missing..copy file from somewhere +if [ -f $PulsePath/pulseaudio-module-xrdp/config.h ] +then + /bin/echo -e "\e[1;32m |-| Config.h present..Proceeding... \e[0m" +else + /bin/echo -e "\e[1;32m |-| Config.h seems missing...Dirty fix applied.. \e[0m" + sudo cp $PulsePath/build/config.h $PulsePath/pulseaudio-module-xrdp +fi + +# Step 7 - Create xrdp sound modules + + sudo ./bootstrap + sudo ./configure PULSE_DIR=$PulsePath + sudo make + #this will install modules in /usr/lib/pulse* directory + sudo make install + +# Step 8 copy files to correct location (as defined in /etc/xrdp/pulse/default.pa) + +if [[ *"$version"* = *"Ubuntu 21.10"* ]] +then + /bin/echo -e "\e[1;32m |-| copy generated files in target folder.... \e[0m" + cd /usr/lib/pulse*/modules #new location for the module + if [ -d /var/lib/xrdp-pulseaudio-installer ] + then + sudo install -t "/var/lib/xrdp-pulseaudio-installer" -D -m 644 *.so + else + sudo mkdir /var/lib/xrdp-pulseaudio-installer # this is not created automatically + sudo install -t "/var/lib/xrdp-pulseaudio-installer" -D -m 644 *.so + echo + fi +else + /bin/echo -e "\e[1;32m |-| copy generated files in target folder.... \e[0m" + cd /tmp/pulseaudio-$pulsever/pulseaudio-module-xrdp/src/.libs + sudo install -t "/var/lib/xrdp-pulseaudio-installer" -D -m 644 *.so + echo +fi + +} + +#---------------------------------------------------# +# Function 13 - Custom xRDP Login Screen .... +#---------------------------------------------------# +custom_login() +{ + +echo +/bin/echo -e "\e[1;33m |-| Customizing xRDP login screen \e[0m" +Dwnload=$(xdg-user-dir DOWNLOAD) +cd $Dwnload + +#Check if script has run once... +if [ -f /etc/xrdp/xrdp.ini.griffon ] +then +sudo rm /etc/xrdp/xrdp.ini +sudo mv /etc/xrdp/xrdp.ini.griffon /etc/xrdp/xrdp.ini +fi + +#Backup file +sudo cp /etc/xrdp/xrdp.ini /etc/xrdp/xrdp.ini.griffon + +#chek if file exists if not - download it.... +if [ -f "$CustomPix" ] +then + /bin/echo -e "\e[1;32m |-| necessary file already available...skipping \e[0m" +else + /bin/echo -e "\e[1;32m |-| Downloading additional file...: logo_xrdp image \e[0m" + wget http://www.c-nergy.be/downloads/"$CustomPix" +fi + +#Check where to copy the logo file +if [ -d "/usr/local/share/xrdp" ] +then + echo + sudo cp $CustomPix /usr/local/share/xrdp + sudo sed -i "s/ls_logo_filename=/ls_logo_filename=\/usr\/local\/share\/xrdp\/$CustomPix/g" /etc/xrdp/xrdp.ini +else + sudo cp $CustomPix /usr/share/xrdp + sudo sed -i "s/ls_logo_filename=/ls_logo_filename=\/usr\/share\/xrdp\/$CustomPix/g" /etc/xrdp/xrdp.ini +fi + + +sudo sed -i 's/blue=009cb5/blue=dedede/' /etc/xrdp/xrdp.ini +sudo sed -i 's/#white=ffffff/white=dedede/' /etc/xrdp/xrdp.ini +sudo sed -i 's/#ls_title=My Login Title/ls_title=Remote Desktop for Linux/' /etc/xrdp/xrdp.ini +sudo sed -i "s/ls_top_window_bg_color=009cb5/ls_top_window_bg_color=$CustomColor/" /etc/xrdp/xrdp.ini +sudo sed -i 's/ls_bg_color=dedede/ls_bg_color=ffffff/' /etc/xrdp/xrdp.ini +sudo sed -i 's/ls_logo_x_pos=55/ls_logo_x_pos=0/' /etc/xrdp/xrdp.ini +sudo sed -i 's/ls_logo_y_pos=50/ls_logo_y_pos=5/' /etc/xrdp/xrdp.ini +} + +#---------------------------------------------------# +# Function 14 - Fix SSL Minor Issue .... +#---------------------------------------------------# +fix_ssl() +{ +echo +/bin/echo -e "\e[1;33m |-| Fixing SSL Permissions settings... \e[0m" +echo +if id -Gn xrdp | grep ssl-cert +then +/bin/echo -e "\e[1;32m !--xrdp already member ssl-cert...Skipping ---!\e[0m" +else + sudo adduser xrdp ssl-cert +fi +} + +#---------------------------------------------------# +# Function 15 - Fixing env variables in XRDP .... +#---------------------------------------------------# +fix_env() +{ +echo +/bin/echo -e "\e[1;33m |-| Fixing xRDP env Variables... \e[0m" +echo +#Add this line to /etc/pam.d/xrdp-sesman if not present +if grep -Fxq "session required pam_env.so readenv=1 user_readenv=0" /etc/pam.d/xrdp-sesman + then + echo "Env settings already set" + else + sudo sed -i '1 a session required pam_env.so readenv=1 user_readenv=0' /etc/pam.d/xrdp-sesman + fi +} + +#---------------------------------------------------# +# Function 17 - Removing XRDP Packages .... +#---------------------------------------------------# +remove_xrdp() +{ +echo +/bin/echo -e "\e[1;33m !---------------------------------------------!\e[0m" +/bin/echo -e "\e[1;33m ! Removing xRDP Packages... !\e[0m" +/bin/echo -e "\e[1;33m !---------------------------------------------!\e[0m" +echo + +#remove the xrdplog file created by the script +sudo rm /etc/xrdp/xrdp-installer-check.log + +#----remove xrdp package +sudo systemctl stop xrdp +sudo systemctl disable xrdp +sudo apt-get autoremove xrdp -y +sudo apt-get purge xrdp -y + +#---remove xorgxrdp +sudo systemctl stop xorgxrdp +sudo systemctl disable xorgxrdp + +if [[ $HWE = "yes" ]] && [[ "$version" = *"Ubuntu 18.04"* ]]; +then + sudo apt-get autoremove xorgxrdp-hwe-18.04 -y + sudo apt-get purge xorgxrdp-hwe-18.04 -y +else + sudo apt-get autoremove xorgxrdp -y + sudo apt-get purge xorgxrdp -y +fi + +#---Cleanup files + +#Remove xrdp folder +if [ -d "$Dwnload/xrdp" ] +then + sudo rm -rf xrdp +fi + +#Remove xorgxrdp folder +if [ -d "$Dwnload/xorgxrdp" ] +then + sudo rm -rf xorgxrdp +fi + +#Remove custom xrdp logo file +if [ -f "$Dwnload/$CustomPix" ] +then + sudo rm -f "$Dwnload/$CustomPix" +fi + +sudo systemctl daemon-reload + +} + +sh_credits() +{ +echo +/bin/echo -e "\e[1;36m !----------------------------------------------------------------!\e[0m" +/bin/echo -e "\e[1;36m ! Installation Completed...Please test your xRDP configuration !\e[0m" +/bin/echo -e "\e[1;36m ! If Sound option selected, shutdown your machine completely !\e[0m" +/bin/echo -e "\e[1;36m ! start it again to have sound working as expected !\e[0m" +/bin/echo -e "\e[1;36m ! !\e[0m" +/bin/echo -e "\e[1;36m ! Credits : Written by Griffon - October 2021 !\e[0m" +/bin/echo -e "\e[1;36m ! www.c-nergy.be -xrdp-installer-v$ScriptVer.sh !\e[0m" +/bin/echo -e "\e[1;36m ! ver $ScriptVer !\e[0m" +/bin/echo -e "\e[1;36m !----------------------------------------------------------------!\e[0m" +echo +} + + +#---------------------------------------------------# +# SECTION FOR OPTIMIZING CODE USAGE... # +#---------------------------------------------------# + +install_common() +{ +#install_tweak +allow_console +create_polkit +fix_theme +fix_ssl +fix_env +} + +install_custom() +{ +install_prereqs +get_binaries +compile_source +enable_service + +} + +#--------------------------------------------------------------------------# +# -----------------------END Function Section -----------------# +#--------------------------------------------------------------------------# + +#--------------------------------------------------------------------------# +#------------ MAIN SCRIPT SECTION -------------------# +#--------------------------------------------------------------------------# + +#---------------------------------------------------# +# Script Version information Displayed # +#---------------------------------------------------# + +echo +/bin/echo -e "\e[1;36m !-----------------------------------------------------------------!\e[0m" +/bin/echo -e "\e[1;36m ! xrdp-installer-$ScriptVer Script !\e[0m" +/bin/echo -e "\e[1;36m ! Support Ubuntu and Debian Distribution !\e[0m" +/bin/echo -e "\e[1;36m ! Written by Griffon - October 2021 - www.c-nergy.be !\e[0m" +/bin/echo -e "\e[1;36m ! !\e[0m" +/bin/echo -e "\e[1;36m ! For Help and Syntax, type ./xrdp-installer-$ScriptVer.sh -h !\e[0m" +/bin/echo -e "\e[1;36m ! !\e[0m" +/bin/echo -e "\e[1;36m !-----------------------------------------------------------------!\e[0m" +echo + +#----------------------------------------------------------# +# Step 0 -Detecting if Parameters passed to script .... # +#----------------------------------------------------------# +for arg in "$@" +do + #Help Menu Requested + if [ "$arg" == "--help" ] || [ "$arg" == "-h" ] + then + echo "Usage Syntax and Examples" + echo + echo " --custom or -c custom xRDP install (compilation from sources)" + echo " --loginscreen or -l customize xRDP login screen" + echo " --remove or -r removing xRDP packages" + echo " --sound or -s enable sound redirection in xRDP" + echo + echo "example " + echo + echo " ./xrdp-installer-$ScriptVer.sh -c -s custom install with sound redirection" + echo " ./xrdp-installer-$ScriptVer.sh -l standard install with custom login screen" + echo " ./xrdp-installer-$ScriptVer.sh standard install no additional features" + echo + exit + fi + + if [ "$arg" == "--sound" ] || [ "$arg" == "-s" ] + then + fixSound="yes" + fi + + if [ "$arg" == "--loginscreen" ] || [ "$arg" == "-l" ] + then + fixlogin="yes" + fi + + if [ "$arg" == "--custom" ] || [ "$arg" == "-c" ] + then + adv="yes" + fi + + if [ "$arg" == "--remove" ] || [ "$arg" == "-r" ] + then + removal="yes" + fi +done + +#--------------------------------------------------------------------------------# +#-- Step 0 - Check that the script is run as normal user and not as root.... +#-------------------------------------------------------------------------------# + +if [[ $EUID -ne 0 ]]; then + /bin/echo -e "\e[1;36m !-------------------------------------------------------------!\e[0m" + /bin/echo -e "\e[1;36m ! Standard user detected....Proceeding.... !\e[0m" + /bin/echo -e "\e[1;36m !-------------------------------------------------------------!\e[0m" +else + echo + /bin/echo -e "\e[1;31m !-------------------------------------------------------------!\e[0m" + /bin/echo -e "\e[1;31m ! Script launched with sudo command. Script will not run... !\e[0m" + /bin/echo -e "\e[1;31m ! Run script a standard user account (no sudo). When needed !\e[0m" + /bin/echo -e "\e[1;31m ! script will be prompted for password during execution !\e[0m" + /bin/echo -e "\e[1;31m ! !\e[0m" + /bin/echo -e "\e[1;31m ! Exiting Script - No Install Performed !!! !\e[0m" + /bin/echo -e "\e[1;31m !-------------------------------------------------------------!\e[0m" + echo + #sh_credits + exit +fi + +#---------------------------------------------------# +#-- Step 1 - Try to Detect Ubuntu Version.... # +#---------------------------------------------------# + +check_os + +#--------------------------------------------------------# +#-- Step 2 - Try to detect if HWE Stack needed or not....# +#--------------------------------------------------------# + +check_hwe + +#--------------------------------------------------------------------------------# +#-- Step 3 - Check if Removal Option Selected +#--------------------------------------------------------------------------------# + +if [ "$removal" = "yes" ]; +then + remove_xrdp + echo + sh_credits + exit +fi + +#---------------------------------------------------------# +# Step 4 - Executing the installation & config tasks .... # +#---------------------------------------------------------# + +#-- Detect if multiple runs and install mode used..... +echo +/bin/echo -e "\e[1;33m |-| Checking if script has run at least once... \e[0m" +if [ -f /etc/xrdp/xrdp-installer-check.log ] +then + modetype=$(sed -n 1p /etc/xrdp/xrdp-installer-check.log) + /bin/echo -e "\e[1;32m |-| Script has already run. Detected mode...: $modetype\e[0m" + +else + /bin/echo -e "\e[1;32m |-| First run or xrdp-installer-check.log deleted. Detected mode : $modetype \e[0m" +fi + +#--------------------------------------------------------------------------------------- +#- Detect Standard vs custom install mode and additional options... +#---------------------------------------------------------------------------------------- + + if [ "$adv" = "yes" ]; + then + echo + /bin/echo -e "\e[1;33m |-| custom installation mode detected. \e[0m" + + if [ $modetype = "custom" ]; + then + /bin/echo -e "\e[1;36m |-| xrdp already installed - custom mode....skipping xrdp install \e[0m" + PrepOS + else + /bin/echo -e "\e[1;36m |-| Proceed custom xrdp installation packages and customization tasks \e[0m" + PrepOS + install_custom + install_common + + #create the file used a detection method + sudo touch /etc/xrdp/xrdp-installer-check.log + sudo bash -c 'echo "custom" >/etc/xrdp/xrdp-installer-check.log' + fi + + else + echo + /bin/echo -e "\e[1;33m |-| Additional checks Std vs Custom Mode.. \e[0m" + if [ $modetype = "standard" ]; + then + /bin/echo -e "\e[1;35m |-| xrdp already installed - standard mode....skipping install \e[0m" + PrepOS + elif [ $modetype = "custom" ] + then + /bin/echo -e "\e[1;35m |-| Checking for additional parameters" + else + /bin/echo -e "\e[1;32m |-| Proceed standard xrdp installation packages and customization tasks \e[0m" + PrepOS + install_xrdp + install_common + + #create the file + sudo touch /etc/xrdp/xrdp-installer-check.log + sudo bash -c 'echo "standard" >/etc/xrdp/xrdp-installer-check.log' + fi + fi #end if Adv option + +#--------------------------------------------------------------------------------------- +#- Check for Additional Options selected +#---------------------------------------------------------------------------------------- + +if [ "$fixSound" = "yes" ]; +then + enable_sound +fi + +if [ "$fixlogin" = "yes" ]; +then + echo + custom_login +fi + +#--------------------------------------------------------------------------------------- +#- show Credits and finishing script +#--------------------------------------------------------------------------------------- + +sh_credits diff --git a/Individual Scripts/vm-gpusplit.ps1 b/HyperV Tools/vm-gpusplit.ps1 similarity index 97% rename from Individual Scripts/vm-gpusplit.ps1 rename to HyperV Tools/vm-gpusplit.ps1 index 6de4a46d..82118449 100644 --- a/Individual Scripts/vm-gpusplit.ps1 +++ b/HyperV Tools/vm-gpusplit.ps1 @@ -1,4 +1,4 @@ -$vm = "Ubuntu 20.04" +$vm = "Windows GPU" Remove-VMGpuPartitionAdapter -VMName $vm Add-VMGpuPartitionAdapter -VMName $vm Set-VMGpuPartitionAdapter -VMName $vm -MinPartitionVRAM 1 diff --git a/HyperV Tools/vm-setresolution.ps1 b/HyperV Tools/vm-setresolution.ps1 new file mode 100644 index 00000000..e68e86c0 --- /dev/null +++ b/HyperV Tools/vm-setresolution.ps1 @@ -0,0 +1 @@ +Set-VMVideo -VMName 'Ubuntu 20.04' -HorizontalResolution 2560 -VerticalResolution 1440 -ResolutionType Single \ No newline at end of file diff --git a/Linux HyperV Tools/deb.sh b/Linux HyperV Tools/deb.sh deleted file mode 100644 index 8f7ffb9e..00000000 --- a/Linux HyperV Tools/deb.sh +++ /dev/null @@ -1,108 +0,0 @@ -#!/bin/bash - -# -# This script is for Ubuntu 18.04 Bionic Beaver to download and install XRDP+XORGXRDP via -# source. -# -# Major thanks to: http://c-nergy.be/blog/?p=11336 for the tips. -# - -############################################################################### -# Use HWE kernel packages -# -HWE="" -#HWE="-hwe-18.04" - -############################################################################### -# Update our machine to the latest code if we need to. -# - -if [ "$(id -u)" -ne 0 ]; then - echo 'This script must be run with root privileges' >&2 - exit 1 -fi - -apt update && apt upgrade -y - -if [ -f /var/run/reboot-required ]; then - echo "A reboot is required in order to proceed with the install." >&2 - echo "Please reboot and re-run this script to finish the install." >&2 - exit 1 -fi - -############################################################################### -# XRDP -# - -# Install hv_kvp utils -apt install -y linux-tools-virtual${HWE} -apt install -y linux-cloud-tools-virtual${HWE} - -# Install the xrdp service so we have the auto start behavior -apt install -y xrdp - -systemctl stop xrdp -systemctl stop xrdp-sesman - -# Configure the installed XRDP ini files. -# use vsock transport. -sed -i_orig -e 's/use_vsock=false/use_vsock=true/g' /etc/xrdp/xrdp.ini -# use rdp security. -sed -i_orig -e 's/security_layer=negotiate/security_layer=rdp/g' /etc/xrdp/xrdp.ini -# remove encryption validation. -sed -i_orig -e 's/crypt_level=high/crypt_level=none/g' /etc/xrdp/xrdp.ini -# disable bitmap compression since its local its much faster -sed -i_orig -e 's/bitmap_compression=true/bitmap_compression=false/g' /etc/xrdp/xrdp.ini - -# Add script to setup the ubuntu session properly -if [ ! -e /etc/xrdp/startubuntu.sh ]; then -cat >> /etc/xrdp/startubuntu.sh << EOF -#!/bin/sh -export GNOME_SHELL_SESSION_MODE=ubuntu -export XDG_CURRENT_DESKTOP=ubuntu:GNOME -exec /etc/xrdp/startwm.sh -EOF -chmod a+x /etc/xrdp/startubuntu.sh -fi - -# use the script to setup the ubuntu session -sed -i_orig -e 's/startwm/startubuntu/g' /etc/xrdp/sesman.ini - -# rename the redirected drives to 'shared-drives' -sed -i -e 's/FuseMountName=thinclient_drives/FuseMountName=shared-drives/g' /etc/xrdp/sesman.ini - -# Changed the allowed_users -sed -i_orig -e 's/allowed_users=console/allowed_users=anybody/g' /etc/X11/Xwrapper.config - -# Blacklist the vmw module -if [ ! -e /etc/modprobe.d/blacklist_vmw_vsock_vmci_transport.conf ]; then -cat >> /etc/modprobe.d/blacklist_vmw_vsock_vmci_transport.conf < /etc/modules-load.d/hv_sock.conf -fi - -# Configure the policy xrdp session -cat > /etc/polkit-1/localauthority/50-local.d/45-allow-colord.pkla < Date: Thu, 10 Mar 2022 10:33:48 -0600 Subject: [PATCH 47/63] Update win10debloat.ps1 Power options added --- win10debloat.ps1 | 84 ++++++++++++++++++++++++++---------------------- 1 file changed, 46 insertions(+), 38 deletions(-) diff --git a/win10debloat.ps1 b/win10debloat.ps1 index afd3e4d0..74e20e7b 100644 --- a/win10debloat.ps1 +++ b/win10debloat.ps1 @@ -158,7 +158,7 @@ $Label3.text = "System Tweaks" $Label3.AutoSize = $true $Label3.width = 230 $Label3.height = 25 -$Label3.location = New-Object System.Drawing.Point(229,11) +$Label3.location = New-Object System.Drawing.Point(349,11) $Label3.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',24) $essentialtweaks = New-Object system.Windows.Forms.Button @@ -290,16 +290,8 @@ $Label1.height = 25 $Label1.location = New-Object System.Drawing.Point(76,11) $Label1.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',24) -$Label4 = New-Object system.Windows.Forms.Label -$Label4.text = "Troubleshoot" -$Label4.AutoSize = $true -$Label4.width = 230 -$Label4.height = 25 -$Label4.location = New-Object System.Drawing.Point(482,12) -$Label4.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',24) - $Panel3 = New-Object system.Windows.Forms.Panel -$Panel3.height = 363 +$Panel3.height = 381 $Panel3.width = 220 $Panel3.location = New-Object System.Drawing.Point(464,54) @@ -398,7 +390,7 @@ $yourphonefix = New-Object system.Windows.Forms.Button $yourphonefix.text = "Your Phone App Fix" $yourphonefix.width = 211 $yourphonefix.height = 30 -$yourphonefix.location = New-Object System.Drawing.Point(4,25) +$yourphonefix.location = New-Object System.Drawing.Point(5,332) $yourphonefix.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) $removebloat = New-Object system.Windows.Forms.Button @@ -431,14 +423,6 @@ $Label5.height = 10 $Label5.location = New-Object System.Drawing.Point(44,877) $Label5.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',8) -$Label6 = New-Object system.Windows.Forms.Label -$Label6.text = "Misc. Fixes" -$Label6.AutoSize = $true -$Label6.width = 25 -$Label6.height = 10 -$Label6.location = New-Object System.Drawing.Point(78,7) -$Label6.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',10,[System.Drawing.FontStyle]([System.Drawing.FontStyle]::Bold)) - $Label7 = New-Object system.Windows.Forms.Label $Label7.text = "Document Tools" $Label7.AutoSize = $true @@ -471,7 +455,7 @@ $advancedipscanner.location = New-Object System.Drawing.Point(3,335) $advancedipscanner.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) $putty = New-Object system.Windows.Forms.Button -$putty.text = "PuTTY + WinSCP" +$putty.text = "PuTTY & WinSCP" $putty.width = 211 $putty.height = 30 $putty.location = New-Object System.Drawing.Point(3,302) @@ -528,10 +512,10 @@ $STrayIcons.Font = New-Object System.Drawing.Font('Microsoft San $windowsupdatefix = New-Object system.Windows.Forms.Button $windowsupdatefix.text = "Windows Update Reset" -$windowsupdatefix.width = 211 +$windowsupdatefix.width = 300 $windowsupdatefix.height = 30 -$windowsupdatefix.location = New-Object System.Drawing.Point(4,59) -$windowsupdatefix.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) +$windowsupdatefix.location = New-Object System.Drawing.Point(25,216) +$windowsupdatefix.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',14) $ResultText = New-Object system.Windows.Forms.TextBox $ResultText.multiline = $true @@ -595,49 +579,49 @@ $ncpa = New-Object system.Windows.Forms.Button $ncpa.text = "Network Connections" $ncpa.width = 211 $ncpa.height = 30 -$ncpa.location = New-Object System.Drawing.Point(4,94) +$ncpa.location = New-Object System.Drawing.Point(4,126) $ncpa.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) $oldcontrolpanel = New-Object system.Windows.Forms.Button -$oldcontrolpanel.text = "Old Control Panel" +$oldcontrolpanel.text = "Win7 Control Panel" $oldcontrolpanel.width = 211 $oldcontrolpanel.height = 30 -$oldcontrolpanel.location = New-Object System.Drawing.Point(4,128) +$oldcontrolpanel.location = New-Object System.Drawing.Point(4,193) $oldcontrolpanel.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) $oldsoundpanel = New-Object system.Windows.Forms.Button -$oldsoundpanel.text = "Old Sound Panel" +$oldsoundpanel.text = "Win7 Sound Panel" $oldsoundpanel.width = 211 $oldsoundpanel.height = 30 -$oldsoundpanel.location = New-Object System.Drawing.Point(4,163) +$oldsoundpanel.location = New-Object System.Drawing.Point(5,262) $oldsoundpanel.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) $oldsystempanel = New-Object system.Windows.Forms.Button -$oldsystempanel.text = "Old System Panel" +$oldsystempanel.text = "Win7 System Panel" $oldsystempanel.width = 211 $oldsystempanel.height = 30 -$oldsystempanel.location = New-Object System.Drawing.Point(4,197) +$oldsystempanel.location = New-Object System.Drawing.Point(5,298) $oldsystempanel.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) $NFS = New-Object system.Windows.Forms.Button $NFS.text = "Enable NFS" $NFS.width = 211 $NFS.height = 30 -$NFS.location = New-Object System.Drawing.Point(4,232) +$NFS.location = New-Object System.Drawing.Point(4,57) $NFS.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) $laptopnumlock = New-Object system.Windows.Forms.Button $laptopnumlock.text = "Laptop Numlock Fix" $laptopnumlock.width = 211 $laptopnumlock.height = 30 -$laptopnumlock.location = New-Object System.Drawing.Point(4,301) +$laptopnumlock.location = New-Object System.Drawing.Point(4,92) $laptopnumlock.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) $disableupdates = New-Object system.Windows.Forms.Button $disableupdates.text = "Disable Update Services" $disableupdates.width = 300 $disableupdates.height = 30 -$disableupdates.location = New-Object System.Drawing.Point(24,251) +$disableupdates.location = New-Object System.Drawing.Point(23,292) $disableupdates.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',14) $enableupdates = New-Object system.Windows.Forms.Button @@ -652,21 +636,35 @@ $Label12.text = "NOT RECOMMENDED!!!" $Label12.AutoSize = $true $Label12.width = 25 $Label12.height = 10 -$Label12.location = New-Object System.Drawing.Point(98,236) +$Label12.location = New-Object System.Drawing.Point(98,275) $Label12.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',10,[System.Drawing.FontStyle]([System.Drawing.FontStyle]::Bold)) $Virtualization = New-Object system.Windows.Forms.Button $Virtualization.text = "Enable HyperV + WSL" $Virtualization.width = 211 $Virtualization.height = 30 -$Virtualization.location = New-Object System.Drawing.Point(4,267) +$Virtualization.location = New-Object System.Drawing.Point(4,23) $Virtualization.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) -$Form.controls.AddRange(@($Panel1,$Panel2,$Label3,$Label15,$Panel4,$PictureBox1,$Label1,$Label4,$Panel3,$ResultText,$Label10,$Label11,$urlfixwinstartup,$urlremovevirus,$urlcreateiso)) +$oldpower = New-Object system.Windows.Forms.Button +$oldpower.text = "Win7 Power Panel" +$oldpower.width = 211 +$oldpower.height = 30 +$oldpower.location = New-Object System.Drawing.Point(4,227) +$oldpower.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) + +$restorepower = New-Object system.Windows.Forms.Button +$restorepower.text = "Restore Power Options" +$restorepower.width = 211 +$restorepower.height = 30 +$restorepower.location = New-Object System.Drawing.Point(4,159) +$restorepower.Font = New-Object System.Drawing.Font('Microsoft Sans Serif',12) + +$Form.controls.AddRange(@($Panel1,$Panel2,$Label3,$Label15,$Panel4,$PictureBox1,$Label1,$Panel3,$ResultText,$Label10,$Label11,$urlfixwinstartup,$urlremovevirus,$urlcreateiso)) $Panel1.controls.AddRange(@($brave,$firefox,$7zip,$sharex,$adobereader,$notepad,$gchrome,$mpc,$vlc,$powertoys,$winterminal,$vscode,$Label2,$everythingsearch,$sumatrapdf,$vscodium,$imageglass,$gimp,$Label7,$Label8,$Label9,$advancedipscanner,$putty,$etcher,$translucenttb,$githubdesktop,$discord,$autohotkey)) $Panel2.controls.AddRange(@($essentialtweaks,$backgroundapps,$cortana,$actioncenter,$darkmode,$performancefx,$onedrive,$lightmode,$essentialundo,$EActionCenter,$ECortana,$RBackgroundApps,$HTrayIcons,$EClipboardHistory,$ELocation,$InstallOneDrive,$removebloat,$reinstallbloat,$WarningLabel,$Label5,$appearancefx,$STrayIcons,$EHibernation,$dualboottime)) -$Panel4.controls.AddRange(@($defaultwindowsupdate,$securitywindowsupdate,$Label16,$Label17,$Label18,$Label19,$disableupdates,$enableupdates,$Label12)) -$Panel3.controls.AddRange(@($yourphonefix,$Label6,$windowsupdatefix,$ncpa,$oldcontrolpanel,$oldsoundpanel,$oldsystempanel,$NFS,$laptopnumlock,$Virtualization)) +$Panel4.controls.AddRange(@($defaultwindowsupdate,$securitywindowsupdate,$Label16,$Label17,$Label18,$Label19,$windowsupdatefix,$disableupdates,$enableupdates,$Label12)) +$Panel3.controls.AddRange(@($yourphonefix,$ncpa,$oldcontrolpanel,$oldsoundpanel,$oldsystempanel,$NFS,$laptopnumlock,$Virtualization,$oldpower,$restorepower)) $brave.Add_Click({ Write-Host "Installing Brave Browser" @@ -1794,6 +1792,16 @@ $oldcontrolpanel.Add_Click({ $oldsystempanel.Add_Click({ cmd /c sysdm.cpl }) +$oldpower.Add_Click({ + cmd /c powercfg.cpl +}) +$restorepower.Add_Click({ + powercfg -duplicatescheme a1841308-3541-4fab-bc81-f71556f20b4a + powercfg -duplicatescheme 381b4222-f694-41f0-9685-ff5bb260df2e + powercfg -duplicatescheme e9a42b02-d5df-448d-aa00-03f14749eb61 + Write-Host "Restored all power plans: Balanced, High Performance, and Power Saver" + $ResultText.text = "`r`n" +"`r`n" + "Restored all power plans: Balanced, High Performance, and Power Saver" +}) $NFS.Add_Click({ Enable-WindowsOptionalFeature -Online -FeatureName "ServicesForNFS-ClientOnly" -All Enable-WindowsOptionalFeature -Online -FeatureName "ClientForNFS-Infrastructure" -All From ea2090ef1f2954dc48ce92bc406157acb4ca7f4c Mon Sep 17 00:00:00 2001 From: Adam Tazul <71192298+SimPilotAdamT@users.noreply.github.com> Date: Sun, 20 Mar 2022 11:38:17 +0000 Subject: [PATCH 48/63] Fix #299 and #302 Since Task Manager shows details by default (and has various design changes) on Windows 11 Insider builds 22557 and higher, the task manager details part is obsolete. I Changed lines 982 thru 992 so that this now checks the build number and should only run on Windows builds with the old task manager. --- win10debloat.ps1 | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/win10debloat.ps1 b/win10debloat.ps1 index 74e20e7b..d6fdecbd 100644 --- a/win10debloat.ps1 +++ b/win10debloat.ps1 @@ -979,15 +979,17 @@ $essentialtweaks.Add_Click({ New-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FlyoutMenuSettings" | Out-Null } Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FlyoutMenuSettings" -Name "ShowHibernateOption" -Type Dword -Value 0 - Write-Host "Showing task manager details..." - $taskmgr = Start-Process -WindowStyle Hidden -FilePath taskmgr.exe -PassThru - Do { - Start-Sleep -Milliseconds 100 - $preferences = Get-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\TaskManager" -Name "Preferences" -ErrorAction SilentlyContinue - } Until ($preferences) - Stop-Process $taskmgr - $preferences.Preferences[28] = 0 - Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\TaskManager" -Name "Preferences" -Type Binary -Value $preferences.Preferences + If ((get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion" -Name CurrentBuild).CurrentBuild -lt 22557) { + Write-Host "Showing task manager details..." + $taskmgr = Start-Process -WindowStyle Hidden -FilePath taskmgr.exe -PassThru + Do { + Start-Sleep -Milliseconds 100 + $preferences = Get-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\TaskManager" -Name "Preferences" -ErrorAction SilentlyContinue + } Until ($preferences) + Stop-Process $taskmgr + $preferences.Preferences[28] = 0 + Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\TaskManager" -Name "Preferences" -Type Binary -Value $preferences.Preferences + } Write-Host "Showing file operations details..." If (!(Test-Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\OperationStatusManager")) { New-Item -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\OperationStatusManager" | Out-Null From b3885eee813e2cb6128027972b8556dde5970679 Mon Sep 17 00:00:00 2001 From: Java sauce Date: Sun, 20 Mar 2022 13:20:11 -0700 Subject: [PATCH 49/63] Add a script to block ads --- Individual Scripts/block-ads.ps1 | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 Individual Scripts/block-ads.ps1 diff --git a/Individual Scripts/block-ads.ps1 b/Individual Scripts/block-ads.ps1 new file mode 100644 index 00000000..e17d3b09 --- /dev/null +++ b/Individual Scripts/block-ads.ps1 @@ -0,0 +1,3 @@ +$content= Invoke-WebRequest -Uri 'https://raw.githubusercontent.com/Brandonbr1/ad-list-hosts/main/host' +$file = "$env:windir\System32\drivers\etc\hosts" +$content | Add-Content -PassThru $file \ No newline at end of file From 969fc33017891a3ff54a5aa4c1161519f0f6fc5f Mon Sep 17 00:00:00 2001 From: Java sauce Date: Sun, 20 Mar 2022 13:22:40 -0700 Subject: [PATCH 50/63] Update LICENSE --- LICENSE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index f2e4ce15..f0489367 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2021 CT Tech Group, LLC +Copyright (c) 2021-2022 CT Tech Group, LLC Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal From f8ec74b09005a98b90021ef741a3cdadb132baac Mon Sep 17 00:00:00 2001 From: Java sauce Date: Mon, 21 Mar 2022 14:20:03 -0700 Subject: [PATCH 51/63] change name --- Individual Scripts/block-ads.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Individual Scripts/block-ads.ps1 b/Individual Scripts/block-ads.ps1 index e17d3b09..fd2ee174 100644 --- a/Individual Scripts/block-ads.ps1 +++ b/Individual Scripts/block-ads.ps1 @@ -1,3 +1,3 @@ -$content= Invoke-WebRequest -Uri 'https://raw.githubusercontent.com/Brandonbr1/ad-list-hosts/main/host' -$file = "$env:windir\System32\drivers\etc\hosts" -$content | Add-Content -PassThru $file \ No newline at end of file +$adlist= Invoke-WebRequest -Uri 'https://raw.githubusercontent.com/Brandonbr1/ad-list-hosts/main/host' +$adfile = "$env:windir\System32\drivers\etc\hosts" +$adlist | Add-Content -PassThru $adfile \ No newline at end of file From 04299147062e4c8a7a962ffaf0a36fcdaecb1029 Mon Sep 17 00:00:00 2001 From: Java sauce Date: Tue, 22 Mar 2022 11:11:52 -0700 Subject: [PATCH 52/63] remove stuff from scripts folder and put them into the essentialtweaks --- Individual Scripts/ram-reducer.reg | 77 ------------------ Individual Scripts/service disabler.ps1 | 104 ------------------------ win10debloat.ps1 | 62 ++++++++++++++ 3 files changed, 62 insertions(+), 181 deletions(-) delete mode 100644 Individual Scripts/ram-reducer.reg delete mode 100644 Individual Scripts/service disabler.ps1 diff --git a/Individual Scripts/ram-reducer.reg b/Individual Scripts/ram-reducer.reg deleted file mode 100644 index bc669a8f..00000000 --- a/Individual Scripts/ram-reducer.reg +++ /dev/null @@ -1,77 +0,0 @@ -Windows Registry Editor Version 5.00 - -; lowers ram usage and process count by a lot -[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control] -"WaitToKillServiceTimeout"="2000" - -[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile] -"NetworkThrottlingIndex"=dword:0000000a -"SystemResponsiveness"=dword:0000000a - -[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\DriverSearching] -"SearchOrderConfig"=dword:00000000 - -[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Power] -"HiberbootEnabled"=dword:00000000 - -[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerThrottling] -"PowerThrottlingOff"=dword:00000001 - -[HKEY_CURRENT_USER\System\GameConfigStore] -"GameDVR_Enabled"=dword:00000000 -"GameDVR_FSEBehaviorMode"=dword:00000002 -"Win32_AutoGameModeDefaultProfile"=hex:01,00,01,00,00,00,00,00,00,00,00,00,00,\ - 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ - 00,00 -"Win32_GameModeRelatedProcesses"=hex:01,00,00,00,00,00,00,00,00,00,00,00,00,00,\ - 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ - 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ - 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ - 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ - 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ - 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ - 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ - 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ - 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ - 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ - 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ - 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ - 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ - 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ - 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ - 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ - 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ - 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ - 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ - 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ - 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ - 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ - 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ - 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ - 00,00,00,00,00,00,00,00,00,00 -"GameDVR_HonorUserFSEBehaviorMode"=dword:00000000 -"GameDVR_DXGIHonorFSEWindowsCompatible"=dword:00000000 -"GameDVR_EFSEFeatureFlags"=dword:00000000 - -[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power] -"HibernateEnabled"=dword:00000000 - -[HKEY_CURRENT_USER\Control Panel\Desktop] -"MenuShowDelay"="0" -"WaitToKillAppTimeout"="5000" -"HungAppTimeout"="4000" -"AutoEndTasks"="1" -"LowLevelHooksTimeout"=dword:00001000 -"WaitToKillServiceTimeout"=dword:00002000 - -[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender] -"DisableAntiSpyware"=dword:00000001 - -[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management] -"ClearPageFileAtShutdown"=dword:00000001 - -[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Ndu] -"Start"=dword:00000004 - -[HKEY_CURRENT_USER\Control Panel\Mouse] -"MouseHoverTime"=dword:00000010 diff --git a/Individual Scripts/service disabler.ps1 b/Individual Scripts/service disabler.ps1 deleted file mode 100644 index 74437eda..00000000 --- a/Individual Scripts/service disabler.ps1 +++ /dev/null @@ -1,104 +0,0 @@ -# Description: -# This script disables unwanted Windows services. If you do not want to disable -# certain services comment out the corresponding lines below. - -$services = @( - "diagnosticshub.standardcollector.service" # Microsoft (R) Diagnostics Hub Standard Collector Service - "DiagTrack" # Diagnostics Tracking Service - "dmwappushservice" # WAP Push Message Routing Service (see known issues) - "lfsvc" # Geolocation Service - "MapsBroker" # Downloaded Maps Manager - "NetTcpPortSharing" # Net.Tcp Port Sharing Service - "RemoteAccess" # Routing and Remote Access - "RemoteRegistry" # Remote Registry - "SharedAccess" # Internet Connection Sharing (ICS) - "TrkWks" # Distributed Link Tracking Client - "WbioSrvc" # Windows Biometric Service (required for Fingerprint reader / facial detection) - #"WlanSvc" # WLAN AutoConfig - "WMPNetworkSvc" # Windows Media Player Network Sharing Service - #"wscsvc" # Windows Security Center Service - "WSearch" # Windows Search - "XblAuthManager" # Xbox Live Auth Manager - "XblGameSave" # Xbox Live Game Save Service - "XboxNetApiSvc" # Xbox Live Networking Service - "XboxGipSvc" #Disables Xbox Accessory Management Service - "ndu" # Windows Network Data Usage Monitor - "WerSvc" #disables windows error reporting - "Spooler" #Disables your printer - "Fax" #Disables fax - "fhsvc" #Disables fax histroy - "gupdate" #Disables google update - "gupdatem" #Disable another google update - "stisvc" #Disables Windows Image Acquisition (WIA) - "AJRouter" #Disables (needed for AllJoyn Router Service) - "MSDTC" # Disables Distributed Transaction Coordinator - "WpcMonSvc" #Disables Parental Controls - "PhoneSvc" #Disables Phone Service(Manages the telephony state on the device) - "PrintNotify" #Disables Windows printer notifications and extentions - "PcaSvc" #Disables Program Compatibility Assistant Service - "WPDBusEnum" #Disables Portable Device Enumerator Service - #"LicenseManager" #Disable LicenseManager(Windows store may not work properly) - "seclogon" #Disables Secondary Logon(disables other credentials only password will work) - "SysMain" #Disables sysmain - "lmhosts" #Disables TCP/IP NetBIOS Helper - "wisvc" #Disables Windows Insider program(Windows Insider will not work) - "FontCache" #Disables Windows font cache - "RetailDemo" #Disables RetailDemo whic is often used when showing your device - "ALG" # Disables Application Layer Gateway Service(Provides support for 3rd party protocol plug-ins for Internet Connection Sharing) - #"BFE" #Disables Base Filtering Engine (BFE) (is a service that manages firewall and Internet Protocol security) - #"BrokerInfrastructure" #Disables Windows infrastructure service that controls which background tasks can run on the system. - "SCardSvr" #Disables Windows smart card - "EntAppSvc" #Disables enterprise application management. - "BthAvctpSvc" #Disables AVCTP service (if you use Bluetooth Audio Device or Wireless Headphones. then don't disable this) - #"FrameServer" #Disables Windows Camera Frame Server(this allows multiple clients to access video frames from camera devices.) - "Browser" #Disables computer browser - "BthAvctpSvc" #AVCTP service (This is Audio Video Control Transport Protocol service.) - "BDESVC" #Disables bitlocker - "iphlpsvc" #Disables ipv6 but most websites don't use ipv6 they use ipv4 - "edgeupdate" # Disables one of edge update service - "MicrosoftEdgeElevationService" # Disables one of edge service - "edgeupdatem" # Disables another one of update service (disables edgeupdatem) - "SEMgrSvc" #Disables Payments and NFC/SE Manager (Manages payments and Near Field Communication (NFC) based secure elements) - #"PNRPsvc" # Disables peer Name Resolution Protocol ( some peer-to-peer and collaborative applications, such as Remote Assistance, may not function, Discord will still work) - #"p2psvc" # Disables Peer Name Resolution Protocol(nables multi-party communication using Peer-to-Peer Grouping. If disabled, some applications, such as HomeGroup, may not function. Discord will still work) - #"p2pimsvc" # Disables Peer Networking Identity Manager (Peer-to-Peer Grouping services may not function, and some applications, such as HomeGroup and Remote Assistance, may not function correctly.Discord will still work) - "PerfHost" #Disables remote users and 64-bit processes to query performance . - "BcastDVRUserService_48486de" #Disables GameDVR and Broadcast is used for Game Recordings and Live Broadcasts - "CaptureService_48486de" #Disables ptional screen capture functionality for applications that call the Windows.Graphics.Capture API. - "cbdhsvc_48486de" #Disables cbdhsvc_48486de (clipboard service it disables) - "BluetoothUserService_48486de" #Disables BluetoothUserService_48486de (The Bluetooth user service supports proper functionality of Bluetooth features relevant to each user session.) - "WpnService" #Disables WpnService (Push Notifications may not work ) - #"StorSvc" #Disables StorSvc (usb external hard drive will not be reconised by windows) - "RtkBtManServ" #Disables Realtek Bluetooth Device Manager Service - "QWAVE" #Disables Quality Windows Audio Video Experience (audio and video might sound worse) - #Hp services - "HPAppHelperCap" - "HPDiagsCap" - "HPNetworkCap" - "HPSysInfoCap" - "HpTouchpointAnalyticsService" - #hyper-v services - "HvHost" - "vmickvpexchange" - "vmicguestinterface" - "vmicshutdown" - "vmicheartbeat" - "vmicvmsession" - "vmicrdv" - "vmictimesync" - # Services which cannot be disabled - #"WdNisSvc" -) - -foreach ($service in $services) { - # -ErrorAction SilentlyContinue is so it doesn't write an error to stdout if a service doesn't exist - - Write-Host "Setting $service StartupType to disabled" - Get-Service -Name $service -ErrorAction SilentlyContinue | Set-Service -StartupType Disabled - - $running = Get-Service -Name $service -ErrorAction SilentlyContinue | Where-Object {$_.Status -eq 'Running'} - if ($running) { - Write-Host "Stopping $service" - Stop-Service -Name $service - } -} diff --git a/win10debloat.ps1 b/win10debloat.ps1 index 74e20e7b..286bf819 100644 --- a/win10debloat.ps1 +++ b/win10debloat.ps1 @@ -1020,6 +1020,68 @@ $essentialtweaks.Add_Click({ Write-Host "Hiding 3D Objects icon from This PC..." Remove-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}" -Recurse -ErrorAction SilentlyContinue + # Disables Ads + Write-Host "Disabling ads in the Host file(\System32\drivers\etc\hosts)" + + $adlist= Invoke-WebRequest -Uri 'https://raw.githubusercontent.com/Brandonbr1/ad-list-hosts/main/host' + $adfile = "$env:windir\System32\drivers\etc\hosts" + $adlist | Add-Content -PassThru $adfile + + # reuducing ram via regedit + Write-Host "Using regedit to improve RAM performace" + + Set-ItemProperty -Path "HKLM:\System\GameConfigStore" -Name "GameDVR_Enabled" -Type Hex -Value 01,00,01,00,00,00,00,00,00,00,00,00,00,\ + 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ + 00,00 + + Set-ItemProperty -Path "HKLM:\System\GameConfigStore" -Name "GameDVR_Enabled" -Type Hex -Value 01,00,00,00,00,00,00,00,00,00,00,00,00,00,\ + 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ + 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ + 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ + 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ + 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ + 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ + 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ + 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ + 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ + 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ + 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ + 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ + 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ + 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ + 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ + 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ + 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ + 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ + 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ + 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ + 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ + 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ + 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ + 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ + 00,00,00,00,00,00,00,00,00,00 + + Set-ItemProperty -Path "HKLM:\System\GameConfigStore" -Name "GameDVR_DXGIHonorFSEWindowsCompatible" -Type Hex -Value 00000000 + Set-ItemProperty -Path "HKLM:\System\GameConfigStore" -Name "GameDVR_HonorUserFSEBehaviorMode" -Type Hex -Value 00000000 + Set-ItemProperty -Path "HKLM:\System\GameConfigStore" -Name "GameDVR_EFSEFeatureFlags" -Type Hex -Value 00000000 + Set-ItemProperty -Path "HKLM:\System\GameConfigStore" -Name "GameDVR_Enabled" -Type DWord -Value 00000000 + Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Power\PowerThrottling" -Name "PowerThrottlingOff" -Type DWord -Value 00000001 + Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Power" -Name "HiberbootEnabled" -Type DWord -Value 0000000 + Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DriverSearching" -Name "SearchOrderConfig" -Type DWord -Value 00000000 + Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile" -Name "SystemResponsiveness" -Type DWord -Value 0000000a + Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile" -Name "NetworkThrottlingIndex" -Type DWord -Value 0000000a + Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control" -Name "WaitToKillServiceTimeout" -Type DWord -Value 2000 + Set-ItemProperty -Path "HKLM:\Control Panel\Desktop" -Name "MenuShowDelay" -Type DWord -Value 0 + Set-ItemProperty -Path "HKLM:\Control Panel\Desktop" -Name "WaitToKillAppTimeout" -Type DWord -Value 5000 + Set-ItemProperty -Path "HKLM:\Control Panel\Desktop" -Name "HungAppTimeout" -Type DWord -Value 4000 + Set-ItemProperty -Path "HKLM:\Control Panel\Desktop" -Name "AutoEndTasks" -Type DWord -Value 1 + Set-ItemProperty -Path "HKLM:\Control Panel\Desktop" -Name "LowLevelHooksTimeout" -Type DWord -Value 00001000 + Set-ItemProperty -Path "HKLM:\Control Panel\Desktop" -Name "WaitToKillServiceTimeout" -Type DWord -Value 00002000 + Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender" -Name "DisableAntiSpyware" -Type DWord -Value 00000001 + Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" -Name "ClearPageFileAtShutdown" -Type DWord -Value 00000001 + Set-ItemProperty -Path "HKLM:\SYSTEM\ControlSet001\Services\Ndu" -Name "Start" -Type DWord -Value 00000004 + Set-ItemProperty -Path "HKLM:\Control Panel\Mouse" -Name "MouseHoverTime" -Type DWord -Value 00000010 + # Network Tweaks Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters" -Name "IRPStackSize" -Type DWord -Value 20 From 20d84dc57adf772fb6332f4ea64501a41988d683 Mon Sep 17 00:00:00 2001 From: Java sauce Date: Wed, 23 Mar 2022 11:46:42 -0700 Subject: [PATCH 53/63] add Ip telemetry in the main windows10 file --- Individual Scripts/block-telemetry.cmd | 61 -------------------------- win10debloat.ps1 | 46 +++++++++++++++++++ 2 files changed, 46 insertions(+), 61 deletions(-) delete mode 100644 Individual Scripts/block-telemetry.cmd diff --git a/Individual Scripts/block-telemetry.cmd b/Individual Scripts/block-telemetry.cmd deleted file mode 100644 index dd5c165c..00000000 --- a/Individual Scripts/block-telemetry.cmd +++ /dev/null @@ -1,61 +0,0 @@ -echo off -color F0 -title Block All Telemetry -mode con: cols=82 lines=21 - -cls -echo Batch script created by EverythingTech! -timeout 3 > nul - -:menu -cls -echo If you would like to continue, type in "yes". If not, then type in "no". -echo If you would like to revert, type in "revert". -echo Input your answer below: -set /p a= -if "%a%" == "yes" goto :block -if "%a%" == "revert" goto :unblock -if "%a%" == "no" goto :exit -cls - -:misspell -cls -echo Misspell detected! -timeout 2 > nul -echo Redirecting back to menu. -timeout 2 > nul -goto :menu - -:block -netsh advfirewall firewall add rule name="Block Windows Telemetry" dir=in action=block remoteip=134.170.30.202,137.116.81.24,157.56.106.189,184.86.53.99,2.22.61.43,2.22.61.66,204.79.197.200,23.218.212.69,65.39.117.23,65.55.108.23,64.4.54.254 enable=yes > nul -netsh advfirewall firewall add rule name="Block NVIDIA Telemetry" dir=in action=block remoteip=8.36.80.197,8.36.80.224,8.36.80.252,8.36.113.118,8.36.113.141,8.36.80.230,8.36.80.231,8.36.113.126,8.36.80.195,8.36.80.217,8.36.80.237,8.36.80.246,8.36.113.116,8.36.113.139,8.36.80.244,216.228.121.209 enable=yes > nul -cls -echo Telemetry Successfully blocked! -timeout 2 > nul -cls -echo Exiting. -timeout 1 > nul -cls -echo Exiting.. -timeout 1 > nul -cls -echo Exiting... -timeout 1 > nul -exit - -:unblock -netsh advfirewall firewall delete rule name="Block Windows Telemetry" > nul -netsh advfirewall firewall delete rule name="Block NVIDIA Telemetry" > nul -cls -echo Telemetry Successfully unblocked! -timeout 2 > nul -cls -echo Exiting. -timeout 1 > nul -cls -echo Exiting.. -timeout 1 > nul -cls -echo Exiting... -timeout 1 > nul -exit diff --git a/win10debloat.ps1 b/win10debloat.ps1 index 286bf819..f74b364f 100644 --- a/win10debloat.ps1 +++ b/win10debloat.ps1 @@ -1082,6 +1082,52 @@ $essentialtweaks.Add_Click({ Set-ItemProperty -Path "HKLM:\SYSTEM\ControlSet001\Services\Ndu" -Name "Start" -Type DWord -Value 00000004 Set-ItemProperty -Path "HKLM:\Control Panel\Mouse" -Name "MouseHoverTime" -Type DWord -Value 00000010 + + Write-Host "Blocking Ip telemetry " + + cmd.exe /c "netsh advfirewall firewall add rule name="Block Windows Telemetry" dir=in action=block remoteip=134.170.30.202,137.116.81.24,157.56.106.189,184.86.53.99,2.22.61.43,2.22.61.66,204.79.197.200,23.218.212.69,65.39.117.23,65.55.108.23,64.4.54.254 enable=yes > nul" + cmd.exe /c "netsh advfirewall firewall add rule name="Block NVIDIA Telemetry" dir=in action=block remoteip=8.36.80.197,8.36.80.224,8.36.80.252,8.36.113.118,8.36.113.141,8.36.80.230,8.36.80.231,8.36.113.126,8.36.80.195,8.36.80.217,8.36.80.237,8.36.80.246,8.36.113.116,8.36.113.139,8.36.80.244,216.228.121.209 enable=yes > nul" + + + $WindowsTele = { + 134.170.30.202, + 137.116.81.24, + 157.56.106.189, + 184.86.53.99, + 2.22.61.43, + 2.22.61.66, + 204.79.197.200, + 23.218.212.69, + 65.39.117.23, + 65.55.108.23, + 64.4.54.254 + } + + $NividiaTele = { + 8.36.80.197, + 8.36.80.224, + 8.36.80.252, + 8.36.113.118, + 8.36.113.141, + 8.36.80.230, + 8.36.80.231, + 8.36.113.126, + 8.36.80.195, + 8.36.80.217, + 8.36.80.237, + 8.36.80.246, + 8.36.113.116, + 8.36.113.139, + 8.36.80.244, + 216.228.121.209 + } + + NetSH AdvFirewall Firewall Add Rule Name=$NividiaTele Dir=in Action=Block enable=yes > null + + + + + # Network Tweaks Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters" -Name "IRPStackSize" -Type DWord -Value 20 From 3581203c3a532eec359549c7bdd8b73df64516f4 Mon Sep 17 00:00:00 2001 From: Java sauce Date: Wed, 23 Mar 2022 15:35:02 -0700 Subject: [PATCH 54/63] fix mistakes add comments and fix broken windows 10/11 ip version --- win10debloat.ps1 | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/win10debloat.ps1 b/win10debloat.ps1 index f74b364f..ed66074a 100644 --- a/win10debloat.ps1 +++ b/win10debloat.ps1 @@ -1085,11 +1085,12 @@ $essentialtweaks.Add_Click({ Write-Host "Blocking Ip telemetry " - cmd.exe /c "netsh advfirewall firewall add rule name="Block Windows Telemetry" dir=in action=block remoteip=134.170.30.202,137.116.81.24,157.56.106.189,184.86.53.99,2.22.61.43,2.22.61.66,204.79.197.200,23.218.212.69,65.39.117.23,65.55.108.23,64.4.54.254 enable=yes > nul" - cmd.exe /c "netsh advfirewall firewall add rule name="Block NVIDIA Telemetry" dir=in action=block remoteip=8.36.80.197,8.36.80.224,8.36.80.252,8.36.113.118,8.36.113.141,8.36.80.230,8.36.80.231,8.36.113.126,8.36.80.195,8.36.80.217,8.36.80.237,8.36.80.246,8.36.113.116,8.36.113.139,8.36.80.244,216.228.121.209 enable=yes > nul" + # executes a cmd command in a new window + # cmd.exe /c "netsh advfirewall firewall add rule name="Block Windows Telemetry" dir=in action=block remoteip=134.170.30.202,137.116.81.24,157.56.106.189,184.86.53.99,2.22.61.43,2.22.61.66,204.79.197.200,23.218.212.69,65.39.117.23,65.55.108.23,64.4.54.254 enable=yes > nul" + # cmd.exe /c "netsh advfirewall firewall add rule name="Block NVIDIA Telemetry" dir=in action=block remoteip=8.36.80.197,8.36.80.224,8.36.80.252,8.36.113.118,8.36.113.141,8.36.80.230,8.36.80.231,8.36.113.126,8.36.80.195,8.36.80.217,8.36.80.237,8.36.80.246,8.36.113.116,8.36.113.139,8.36.80.244,216.228.121.209 enable=yes > nul" - $WindowsTele = { + $WindowsIpTele = { 134.170.30.202, 137.116.81.24, 157.56.106.189, @@ -1122,9 +1123,11 @@ $essentialtweaks.Add_Click({ 216.228.121.209 } + # blocks ip Nividia NetSH AdvFirewall Firewall Add Rule Name=$NividiaTele Dir=in Action=Block enable=yes > null - + # blocks ip Windows + NetSH AdvFirewall Firewall Add Rule Name=$WindowsIpTele Dir=in Action=Block enable=yes > null From 9b404c69900b4f1ee35c00dc7a13f875d27cb08e Mon Sep 17 00:00:00 2001 From: Adam Tazul <71192298+SimPilotAdamT@users.noreply.github.com> Date: Thu, 24 Mar 2022 21:25:46 +0000 Subject: [PATCH 55/63] Add message suggested by @Carterpersall --- win10debloat.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/win10debloat.ps1 b/win10debloat.ps1 index d6fdecbd..fc7a10e5 100644 --- a/win10debloat.ps1 +++ b/win10debloat.ps1 @@ -989,7 +989,7 @@ $essentialtweaks.Add_Click({ Stop-Process $taskmgr $preferences.Preferences[28] = 0 Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\TaskManager" -Name "Preferences" -Type Binary -Value $preferences.Preferences - } + } else {Write-Host "Task Manager patch not run in builds 22557+ due to bug"} Write-Host "Showing file operations details..." If (!(Test-Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\OperationStatusManager")) { New-Item -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\OperationStatusManager" | Out-Null From 19e0baa4408b02b7ea92f78477be4bb08276c08f Mon Sep 17 00:00:00 2001 From: Chris Titus Date: Fri, 22 Apr 2022 09:34:00 -0500 Subject: [PATCH 56/63] Update win10debloat.ps1 --- win10debloat.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/win10debloat.ps1 b/win10debloat.ps1 index ed66074a..66754cf0 100644 --- a/win10debloat.ps1 +++ b/win10debloat.ps1 @@ -1077,7 +1077,8 @@ $essentialtweaks.Add_Click({ Set-ItemProperty -Path "HKLM:\Control Panel\Desktop" -Name "AutoEndTasks" -Type DWord -Value 1 Set-ItemProperty -Path "HKLM:\Control Panel\Desktop" -Name "LowLevelHooksTimeout" -Type DWord -Value 00001000 Set-ItemProperty -Path "HKLM:\Control Panel\Desktop" -Name "WaitToKillServiceTimeout" -Type DWord -Value 00002000 - Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender" -Name "DisableAntiSpyware" -Type DWord -Value 00000001 + # Disabling Antispyware flags script as virus and also doesn't work with anti-tamper measures introduced in 20H2+ + # Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender" -Name "DisableAntiSpyware" -Type DWord -Value 00000001 Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" -Name "ClearPageFileAtShutdown" -Type DWord -Value 00000001 Set-ItemProperty -Path "HKLM:\SYSTEM\ControlSet001\Services\Ndu" -Name "Start" -Type DWord -Value 00000004 Set-ItemProperty -Path "HKLM:\Control Panel\Mouse" -Name "MouseHoverTime" -Type DWord -Value 00000010 From a2bae338be2577b4f0280e581f138d942dc11f44 Mon Sep 17 00:00:00 2001 From: titus Date: Fri, 22 Apr 2022 09:44:52 -0500 Subject: [PATCH 57/63] Fix bad PR --- win10debloat.ps1 | 47 +---------------------------------------------- 1 file changed, 1 insertion(+), 46 deletions(-) diff --git a/win10debloat.ps1 b/win10debloat.ps1 index 386d7ad1..003e85a9 100644 --- a/win10debloat.ps1 +++ b/win10debloat.ps1 @@ -1022,47 +1022,9 @@ $essentialtweaks.Add_Click({ Write-Host "Hiding 3D Objects icon from This PC..." Remove-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}" -Recurse -ErrorAction SilentlyContinue - # Disables Ads - Write-Host "Disabling ads in the Host file(\System32\drivers\etc\hosts)" - - $adlist= Invoke-WebRequest -Uri 'https://raw.githubusercontent.com/Brandonbr1/ad-list-hosts/main/host' - $adfile = "$env:windir\System32\drivers\etc\hosts" - $adlist | Add-Content -PassThru $adfile - # reuducing ram via regedit Write-Host "Using regedit to improve RAM performace" - Set-ItemProperty -Path "HKLM:\System\GameConfigStore" -Name "GameDVR_Enabled" -Type Hex -Value 01,00,01,00,00,00,00,00,00,00,00,00,00,\ - 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ - 00,00 - - Set-ItemProperty -Path "HKLM:\System\GameConfigStore" -Name "GameDVR_Enabled" -Type Hex -Value 01,00,00,00,00,00,00,00,00,00,00,00,00,00,\ - 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ - 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ - 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ - 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ - 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ - 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ - 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ - 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ - 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ - 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ - 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ - 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ - 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ - 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ - 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ - 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ - 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ - 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ - 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ - 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ - 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ - 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ - 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ - 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ - 00,00,00,00,00,00,00,00,00,00 - Set-ItemProperty -Path "HKLM:\System\GameConfigStore" -Name "GameDVR_DXGIHonorFSEWindowsCompatible" -Type Hex -Value 00000000 Set-ItemProperty -Path "HKLM:\System\GameConfigStore" -Name "GameDVR_HonorUserFSEBehaviorMode" -Type Hex -Value 00000000 Set-ItemProperty -Path "HKLM:\System\GameConfigStore" -Name "GameDVR_EFSEFeatureFlags" -Type Hex -Value 00000000 @@ -1079,8 +1041,6 @@ $essentialtweaks.Add_Click({ Set-ItemProperty -Path "HKLM:\Control Panel\Desktop" -Name "AutoEndTasks" -Type DWord -Value 1 Set-ItemProperty -Path "HKLM:\Control Panel\Desktop" -Name "LowLevelHooksTimeout" -Type DWord -Value 00001000 Set-ItemProperty -Path "HKLM:\Control Panel\Desktop" -Name "WaitToKillServiceTimeout" -Type DWord -Value 00002000 - # Disabling Antispyware flags script as virus and also doesn't work with anti-tamper measures introduced in 20H2+ - # Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender" -Name "DisableAntiSpyware" -Type DWord -Value 00000001 Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" -Name "ClearPageFileAtShutdown" -Type DWord -Value 00000001 Set-ItemProperty -Path "HKLM:\SYSTEM\ControlSet001\Services\Ndu" -Name "Start" -Type DWord -Value 00000004 Set-ItemProperty -Path "HKLM:\Control Panel\Mouse" -Name "MouseHoverTime" -Type DWord -Value 00000010 @@ -1088,12 +1048,7 @@ $essentialtweaks.Add_Click({ Write-Host "Blocking Ip telemetry " - # executes a cmd command in a new window - # cmd.exe /c "netsh advfirewall firewall add rule name="Block Windows Telemetry" dir=in action=block remoteip=134.170.30.202,137.116.81.24,157.56.106.189,184.86.53.99,2.22.61.43,2.22.61.66,204.79.197.200,23.218.212.69,65.39.117.23,65.55.108.23,64.4.54.254 enable=yes > nul" - # cmd.exe /c "netsh advfirewall firewall add rule name="Block NVIDIA Telemetry" dir=in action=block remoteip=8.36.80.197,8.36.80.224,8.36.80.252,8.36.113.118,8.36.113.141,8.36.80.230,8.36.80.231,8.36.113.126,8.36.80.195,8.36.80.217,8.36.80.237,8.36.80.246,8.36.113.116,8.36.113.139,8.36.80.244,216.228.121.209 enable=yes > nul" - - - $WindowsIpTele = { + $WindowsIpTele = { 134.170.30.202, 137.116.81.24, 157.56.106.189, From f2a6e2c782674e66df59bdedd72132b21c361ec2 Mon Sep 17 00:00:00 2001 From: titus Date: Fri, 22 Apr 2022 09:52:52 -0500 Subject: [PATCH 58/63] Update win10debloat.ps1 --- win10debloat.ps1 | 43 ------------------------------------------- 1 file changed, 43 deletions(-) diff --git a/win10debloat.ps1 b/win10debloat.ps1 index 003e85a9..8c864f17 100644 --- a/win10debloat.ps1 +++ b/win10debloat.ps1 @@ -1046,49 +1046,6 @@ $essentialtweaks.Add_Click({ Set-ItemProperty -Path "HKLM:\Control Panel\Mouse" -Name "MouseHoverTime" -Type DWord -Value 00000010 - Write-Host "Blocking Ip telemetry " - - $WindowsIpTele = { - 134.170.30.202, - 137.116.81.24, - 157.56.106.189, - 184.86.53.99, - 2.22.61.43, - 2.22.61.66, - 204.79.197.200, - 23.218.212.69, - 65.39.117.23, - 65.55.108.23, - 64.4.54.254 - } - - $NividiaTele = { - 8.36.80.197, - 8.36.80.224, - 8.36.80.252, - 8.36.113.118, - 8.36.113.141, - 8.36.80.230, - 8.36.80.231, - 8.36.113.126, - 8.36.80.195, - 8.36.80.217, - 8.36.80.237, - 8.36.80.246, - 8.36.113.116, - 8.36.113.139, - 8.36.80.244, - 216.228.121.209 - } - - # blocks ip Nividia - NetSH AdvFirewall Firewall Add Rule Name=$NividiaTele Dir=in Action=Block enable=yes > null - - # blocks ip Windows - NetSH AdvFirewall Firewall Add Rule Name=$WindowsIpTele Dir=in Action=Block enable=yes > null - - - # Network Tweaks Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters" -Name "IRPStackSize" -Type DWord -Value 20 From 5446fd2a2ac9f69e44a7a4a2e36a5ce790986531 Mon Sep 17 00:00:00 2001 From: titus Date: Fri, 22 Apr 2022 10:06:24 -0500 Subject: [PATCH 59/63] Adding git to github desktop --- win10debloat.ps1 | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/win10debloat.ps1 b/win10debloat.ps1 index 8c864f17..bc893370 100644 --- a/win10debloat.ps1 +++ b/win10debloat.ps1 @@ -813,11 +813,12 @@ $sumatrapdf.Add_Click({ }) $githubdesktop.Add_Click({ - Write-Host "Installing GitHub Desktop" - $ResultText.text = "`r`n" +"`r`n" + "Installing GitHub Desktop... Please Wait" + Write-Host "Installing Git and GitHub Desktop" + $ResultText.text = "`r`n" +"`r`n" + "Installing Git and GitHub Desktop... Please Wait" + winget install -e Git.Git | Out-Host winget install -e GitHub.GitHubDesktop | Out-Host - Write-Host "Installed Github Desktop" - $ResultText.text = "`r`n" + "Finished Installing GitHub Desktop" + "`r`n" + "`r`n" + "Ready for Next Task" + Write-Host "Installed Git and Github Desktop" + $ResultText.text = "`r`n" + "Finished Installing Git and GitHub Desktop" + "`r`n" + "`r`n" + "Ready for Next Task" }) $translucenttb.Add_Click({ From fde37f92856ba5d18364240422bfea0178e55163 Mon Sep 17 00:00:00 2001 From: Chris Titus Date: Tue, 26 Apr 2022 23:40:18 -0500 Subject: [PATCH 60/63] under construction --- .gitignore | 2 + wpf-win-utility.ps1 | 339 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 341 insertions(+) create mode 100644 wpf-win-utility.ps1 diff --git a/.gitignore b/.gitignore index d0af9754..be0e02ba 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,5 @@ defltbase.sdb bin/x64/ctt-toolbox.exe bin/x64/ctt-toolbox.zip win10debloat.ps1.psbuild +ctt-toolbox.exe +winget-latest.appxbundle diff --git a/wpf-win-utility.ps1 b/wpf-win-utility.ps1 new file mode 100644 index 00000000..ef63b8bb --- /dev/null +++ b/wpf-win-utility.ps1 @@ -0,0 +1,339 @@ +<# +.NOTES + Author : Chris Titus @christitustech + GitHub : https://github.com/ChrisTitusTech + Version 0.0.1 +#> + +$inputXML = @" + + + + + + + + + +