diff --git a/README.md b/README.md index a8f11673..ec818022 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,16 @@ Or shorter Thanks to [#144](/../../issues/144) ``` irm https://christitus.com/win | iex ``` -If you are having TLS 1.2 Issues or You cannot find or resolve `christitus.com/win` then run with the following command: +### Issues: + +- If you can't resolve christitus.com/win and getting errors launching India Region is BLOCKING raw github files and you need to VPN outside India. + +Source: + +- AntiVirus is also blocking the script. You can disable it temporarily to run the script. The script is flagged for malware because it runs under the administrator and makes system changes. + +- If you are having TLS 1.2 Issues or You cannot find or resolve `christitus.com/win` then run with the following command: + ``` [Net.ServicePointManager]::SecurityProtocol=[Net.SecurityProtocolType]::Tls12;iex(New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/ChrisTitusTech/winutil/main/winutil.ps1') ``` @@ -29,6 +38,10 @@ If you are still having issues try changing your DNS provider to 1.1.1.1 or 8.8. - This project needs a ⭐️ from you. Don't forget to leave a star ⭐️. - EXE Wrapper for $10 @ https://www.cttstore.com/windows-toolbox +## Tutorial + +[![Watch the video](https://img.youtube.com/vi/6UQZ5oQg8XA/hqdefault.jpg)](https://www.youtube.com/watch?v=6UQZ5oQg8XA) + ## Overview - Install @@ -62,7 +75,7 @@ If you are still having issues try changing your DNS provider to 1.1.1.1 or 8.8. - Updates: - Default (Out of Box) Settings: Provides the default settings that come with Windows for updates. - - Security (Recommended) Settings: Offers recommended settings, including a slight delay of feature updates by 2 days and installation of security updates 4 days after release. + - Security (Recommended) Settings: Offers recommended settings, including a slight delay of feature updates by 2 years and installation of security updates 4 days after release. - Disable All Updates (Not Recommended!): Allows users to disable all Windows updates, but it's not recommended due to potential security risks. diff --git a/config/applications.json b/config/applications.json index 8c63bbf7..7b02c6ae 100755 --- a/config/applications.json +++ b/config/applications.json @@ -1,582 +1,598 @@ -{ - "WPFInstalladobe": { - "winget": "Adobe.Acrobat.Reader.64-bit", - "choco": "adobereader" - }, - "WPFInstalladvancedip": { - "winget": "Famatech.AdvancedIPScanner", - "choco": "advanced-ip-scanner" - }, - "WPFInstallanydesk": { - "winget": "AnyDeskSoftwareGmbH.AnyDesk", - "choco": "anydesk" - }, - "WPFInstallaudacity": { - "winget": "Audacity.Audacity", - "choco": "audacity" - }, - "WPFInstallautohotkey": { - "winget": "AutoHotkey.AutoHotkey", - "choco": "autohotkey" - }, - "WPFInstallbitwarden": { - "winget": "Bitwarden.Bitwarden", - "choco": "bitwarden" - }, - "WPFInstallblender": { - "winget": "BlenderFoundation.Blender", - "choco": "blender" - }, - "WPFInstallbrave": { - "winget": "Brave.Brave", - "choco": "brave" - }, - "WPFInstallbulkcrapuninstaller": { - "winget": "Klocman.BulkCrapUninstaller", - "choco": "bulk-crap-uninstaller" - }, - "WPFInstallchrome": { - "winget": "Google.Chrome", - "choco": "googlechrome" - }, - "WPFInstallchromium": { - "winget": "eloston.ungoogled-chromium", - "choco": "chromium" - }, - "WPFInstallcpuz": { - "winget": "CPUID.CPU-Z", - "choco": "cpu-z" - }, - "WPFInstalldeluge": { - "winget": "DelugeTeam.Deluge", - "choco": "deluge" - }, - "WPFInstalldiscord": { - "winget": "Discord.Discord", - "choco": "discord" - }, - "WPFInstalleartrumpet": { - "winget": "File-New-Project.EarTrumpet", - "choco": "eartrumpet" - }, - "WPFInstallepicgames": { - "winget": "EpicGames.EpicGamesLauncher", - "choco": "epicgameslauncher" - }, - "WPFInstallesearch": { - "winget": "voidtools.Everything", - "choco": "everything" - }, - "WPFInstalletcher": { - "winget": "Balena.Etcher", - "choco": "etcher" - }, - "WPFInstallfirefox": { - "winget": "Mozilla.Firefox", - "choco": "firefox" - }, - "WPFInstallflameshot": { - "winget": "Flameshot.Flameshot", - "choco": "na" - }, - "WPFInstallfoobar": { - "winget": "PeterPawlowski.foobar2000", - "choco": "foobar2000" - }, - "WPFInstallgeforcenow": { - "winget": "Nvidia.GeForceNow", - "choco": "nvidia-geforce-now" - }, - "WPFInstallgimp": { - "winget": "GIMP.GIMP", - "choco": "gimp" - }, - "WPFInstallgithubdesktop": { - "winget": "Git.Git;GitHub.GitHubDesktop", - "choco": "git;github-desktop" - }, - "WPFInstalldockerdesktop": { - "winget": "Docker.DockerDesktop", - "choco": "docker-desktop" - }, - "WPFInstallgog": { - "winget": "GOG.Galaxy", - "choco": "goggalaxy" - }, - "WPFInstallheroiclauncher": { - "winget": "HeroicGamesLauncher.HeroicGamesLauncher", - "choco": "na" - }, - "WPFInstallgpuz": { - "winget": "TechPowerUp.GPU-Z", - "choco": "gpu-z" - }, - "WPFInstallgreenshot": { - "winget": "Greenshot.Greenshot", - "choco": "greenshot" - }, - "WPFInstallhandbrake": { - "winget": "HandBrake.HandBrake", - "choco": "handbrake" - }, - "WPFInstallhexchat": { - "winget": "HexChat.HexChat", - "choco": "hexchat" - }, - "WPFInstallhwinfo": { - "winget": "REALiX.HWiNFO", - "choco": "hwinfo" - }, - "WPFInstallnomacs": { - "winget": "nomacs.nomacs", - "choco": "nomacs" - }, - "WPFInstallimageglass": { - "winget": "DuongDieuPhap.ImageGlass", - "choco": "imageglass" - }, - "WPFInstallinkscape": { - "winget": "Inkscape.Inkscape", - "choco": "inkscape" - }, - "WPFInstalljava16": { - "winget": "AdoptOpenJDK.OpenJDK.16", - "choco": "temurin16jre" - }, - "WPFInstalljava18": { - "winget": "EclipseAdoptium.Temurin.18.JRE", - "choco": "temurin18jre" - }, - "WPFInstalljava8": { - "winget": "EclipseAdoptium.Temurin.8.JRE", - "choco": "temurin8jre" - }, - "WPFInstalljava19": { - "winget": "EclipseAdoptium.Temurin.19.JRE", - "choco": "temurin19jre" - }, - "WPFInstalljava17": { - "winget": "EclipseAdoptium.Temurin.17.JRE", - "choco": "temurin17jre" - }, - "WPFInstalljava11": { - "winget": "EclipseAdoptium.Temurin.11.JRE", - "choco": "javaruntime" - }, - "WPFInstalljava20": { - "winget": "Azul.Zulu.20.JDK", - "choco": "na" - }, - "WPFInstalljetbrains": { - "winget": "JetBrains.Toolbox", - "choco": "jetbrainstoolbox" - }, - "WPFInstallkeepass": { - "winget": "KeePassXCTeam.KeePassXC", - "choco": "keepassxc" - }, - "WPFInstalllibrewolf": { - "winget": "LibreWolf.LibreWolf", - "choco": "librewolf" - }, - "WPFInstallmalwarebytes": { - "winget": "Malwarebytes.Malwarebytes", - "choco": "malwarebytes" - }, - "WPFInstallmatrix": { - "winget": "Element.Element", - "choco": "element-desktop" - }, - "WPFInstallmonitorian": { - "winget": "emoacht.Monitorian", - "choco": "monitorian" - }, - "WPFInstallmpc": { - "winget": "clsid2.mpc-hc", - "choco": "mpc-hc" - }, - "WPFInstallmremoteng": { - "winget": "mRemoteNG.mRemoteNG", - "choco": "mremoteng" - }, - "WPFInstallnaps2": { - "winget": "Cyanfish.NAPS2", - "choco": "naps2" - }, - "WPFInstallnodejs": { - "winget": "OpenJS.NodeJS", - "choco": "nodejs" - }, - "WPFInstallnodejslts": { - "winget": "OpenJS.NodeJS.LTS", - "choco": "nodejs-lts" - }, - "WPFInstallnotepadplus": { - "winget": "Notepad++.Notepad++", - "choco": "notepadplusplus" - }, - "WPFInstallnvclean": { - "winget": "TechPowerUp.NVCleanstall", - "choco": "na" - }, - "WPFInstallobs": { - "winget": "OBSProject.OBSStudio", - "choco": "obs-studio" - }, - "WPFInstallobsidian": { - "winget": "Obsidian.Obsidian", - "choco": "obsidian" - }, - "WPFInstallpowertoys": { - "winget": "Microsoft.PowerToys", - "choco": "powertoys" - }, - "WPFInstallputty": { - "winget": "PuTTY.PuTTY", - "choco": "putty" - }, - "WPFInstallpython3": { - "winget": "Python.Python.3.11", - "choco": "python" - }, - "WPFInstallrevo": { - "winget": "RevoUninstaller.RevoUninstaller", - "choco": "revo-uninstaller" - }, - "WPFInstallrufus": { - "winget": "Rufus.Rufus", - "choco": "rufus" - }, - "WPFInstallsevenzip": { - "winget": "7zip.7zip", - "choco": "7zip" - }, - "WPFInstallsharex": { - "winget": "ShareX.ShareX", - "choco": "sharex" - }, - "WPFInstallsignal": { - "winget": "OpenWhisperSystems.Signal", - "choco": "signal" - }, - "WPFInstallskype": { - "winget": "Microsoft.Skype", - "choco": "skype" - }, - "WPFInstallslack": { - "winget": "SlackTechnologies.Slack", - "choco": "slack" - }, - "WPFInstallsteam": { - "winget": "Valve.Steam", - "choco": "steam-client" - }, - "WPFInstallsublime": { - "winget": "SublimeHQ.SublimeText.4", - "choco": "sublimetext4" - }, - "WPFInstallsumatra": { - "winget": "SumatraPDF.SumatraPDF", - "choco": "sumatrapdf" - }, - "WPFInstallteams": { - "winget": "Microsoft.Teams", - "choco": "microsoft-teams" - }, - "WPFInstallteamviewer": { - "winget": "TeamViewer.TeamViewer", - "choco": "teamviewer9" - }, - "WPFInstallterminal": { - "winget": "Microsoft.WindowsTerminal", - "choco": "microsoft-windows-terminal" - }, - "WPFInstalltreesize": { - "winget": "JAMSoftware.TreeSize.Free", - "choco": "treesizefree" - }, - "WPFInstallttaskbar": { - "winget": "9PF4KZ2VN4W9", - "choco": "translucenttb" - }, - "WPFInstallvisualstudio": { - "winget": "Microsoft.VisualStudio.2022.Community", - "choco": "visualstudio2022community" - }, - "WPFInstallvivaldi": { - "winget": "VivaldiTechnologies.Vivaldi", - "choco": "vivaldi" - }, - "WPFInstallvlc": { - "winget": "VideoLAN.VLC", - "choco": "vlc" - }, - "WPFInstallvoicemeeter": { - "winget": "VB-Audio.Voicemeeter", - "choco": "voicemeeter" - }, - "WPFInstallvscode": { - "winget": "Git.Git;Microsoft.VisualStudioCode", - "choco": "vscode" - }, - "WPFInstallvscodium": { - "winget": "Git.Git;VSCodium.VSCodium", - "choco": "vscodium" - }, - "WPFInstallwindirstat": { - "winget": "WinDirStat.WinDirStat", - "choco": "windirstat" - }, - "WPFInstallscp": { - "winget": "WinSCP.WinSCP", - "choco": "winscp" - }, - "WPFInstallwireshark": { - "winget": "WiresharkFoundation.Wireshark", - "choco": "wireshark" - }, - "WPFInstallzoom": { - "winget": "Zoom.Zoom", - "choco": "zoom" - }, - "WPFInstalllibreoffice": { - "winget": "TheDocumentFoundation.LibreOffice", - "choco": "libreoffice-fresh" - }, - "WPFInstallshell": { - "winget": "Nilesoft.Shell", - "choco": "na" - }, - "WPFInstallsdio": { - "winget": "GlennDelahoy.SnappyDriverInstallerOrigin", - "choco": "na" - }, - "WPFInstallklite": { - "winget": "CodecGuide.K-LiteCodecPack.Standard", - "choco": "k-litecodecpack-standard" - }, - "WPFInstallsandboxie": { - "winget": "Sandboxie.Plus", - "choco": "sandboxie" - }, - "WPFInstallprocesslasso": { - "winget": "BitSum.ProcessLasso", - "choco": "plasso" - }, - "WPFInstallwinmerge": { - "winget": "WinMerge.WinMerge", - "choco": "winmerge" - }, - "WPFInstalldotnet3": { - "winget": "Microsoft.DotNet.DesktopRuntime.3_1", - "choco": "dotnetcore3-desktop-runtime" - }, - "WPFInstalldotnet5": { - "winget": "Microsoft.DotNet.DesktopRuntime.5", - "choco": "dotnet-5.0-runtime" - }, - "WPFInstalldotnet6": { - "winget": "Microsoft.DotNet.DesktopRuntime.6", - "choco": "dotnet-6.0-runtime" - }, - "WPFInstallvc2015_64": { - "winget": "Microsoft.VCRedist.2015+.x64", - "choco": "na" - }, - "WPFInstallvc2015_32": { - "winget": "Microsoft.VCRedist.2015+.x86", - "choco": "na" - }, - "WPFInstallfoxpdf": { - "winget": "Foxit.PhantomPDF", - "choco": "na" - }, - "WPFInstallonlyoffice": { - "winget": "ONLYOFFICE.DesktopEditors", - "choco": "onlyoffice" - }, - "WPFInstallflux": { - "winget": "flux.flux", - "choco": "flux" - }, - "WPFInstallitunes": { - "winget": "Apple.iTunes", - "choco": "itunes" - }, - "WPFInstallcider": { - "winget": "CiderCollective.Cider", - "choco": "cider" - }, - "WPFInstalljoplin": { - "winget": "Joplin.Joplin", - "choco": "joplin" - }, - "WPFInstallopenoffice": { - "winget": "Apache.OpenOffice", - "choco": "openoffice" - }, - "WPFInstallrustdesk": { - "winget": "RustDesk.RustDesk", - "choco": "rustdesk.portable" - }, - "WPFInstalljami": { - "winget": "SFLinux.Jami", - "choco": "jami" - }, - "WPFInstalljdownloader": { - "winget": "AppWork.JDownloader", - "choco": "jdownloader" - }, - "WPFInstallsimplewall": { - "Winget": "Henry++.simplewall", - "choco": "simplewall" - }, - "WPFInstallrustlang": { - "Winget": "Rustlang.Rust.MSVC", - "choco": "rust" - }, - "WPFInstallgolang": { - "Winget": "GoLang.Go.1.19", - "choco": "golang" - }, - "WPFInstallalacritty": { - "Winget": "Alacritty.Alacritty", - "choco": "alacritty" - }, - "WPFInstallkdenlive": { - "Winget": "KDE.Kdenlive", - "choco": "kdenlive" - }, - "WPFInstallglaryutilities": { - "Winget": "Glarysoft.GlaryUtilities", - "choco": "glaryutilities-free" - }, - "WPFInstalltwinkletray": { - "Winget": "xanderfrangos.twinkletray", - "choco": "na" - }, - "WPFInstallidm": { - "Winget": "Tonec.InternetDownloadManager", - "choco": "internet-download-manager" - }, - "WPFInstallviber": { - "Winget": "Viber.Viber", - "choco": "viber" - }, - "WPFInstallgit": { - "Winget": "Git.Git", - "choco": "git" - }, - "WPFInstallwiztree": { - "Winget": "AntibodySoftware.WizTree", - "choco": "wiztree\\" - }, - "WPFInstalltor": { - "Winget": "TorProject.TorBrowser", - "choco": "tor-browser" - }, - "WPFInstallkrita": { - "winget": "KDE.Krita", - "choco": "krita" - }, - "WPFInstallnglide": { - "winget": "ZeusSoftware.nGlide", - "choco": "na" - }, - "WPFInstallkodi": { - "winget": "XBMCFoundation.Kodi", - "choco": "kodi" - }, - "WPFInstalltelegram": { - "winget": "Telegram.TelegramDesktop", - "choco": "telegram" - }, - "WPFInstallunity": { - "winget": "Unity.UnityHub", - "choco": "unityhub" - }, - "WPFInstallqbittorrent": { - "winget": "qBittorrent.qBittorrent", - "choco": "qbittorrent" - }, - "WPFInstalleaapp": { - "winget": "ElectronicArts.EADesktop", - "choco": "ea-app" - }, - "WPFInstallopenshell": { - "winget": "Open-Shell.Open-Shell-Menu", - "choco": "open-shell" - }, - "WPFInstallbluestacks": { - "winget": "BlueStack.BlueStacks", - "choco": "na" - }, - "WPFInstallstrawberry": { - "winget": "StrawberryMusicPlayer.Strawberry", - "choco": "strawberrymusicplayer" - }, - "WPFInstallsqlstudio": { - "winget": "Microsoft.SQLServerManagementStudio", - "choco": "sql-server-management-studio" - }, - "WPFInstallwaterfox": { - "winget": "Waterfox.Waterfox", - "choco": "waterfox" - }, - "WPFInstallpowershell": { - "winget": "Microsoft.PowerShell", - "choco": "powershell-core" - }, - "WPFInstallprocessmonitor": { - "winget": "Microsoft.Sysinternals.ProcessMonitor", - "choco": "procexp" - }, - "WPFInstallonedrive": { - "winget": "Microsoft.OneDrive", - "choco": "onedrive" - }, - "WPFInstalledge": { - "winget": "Microsoft.Edge", - "choco": "microsoft-edge" - }, - "WPFInstallubisoft": { - "winget": "Ubisoft.Connect", - "choco": "ubisoft-connect" - }, - "WPFInstallnuget": { - "winget": "Microsoft.NuGet", - "choco": "nuget.commandline" - }, - "WPFInstallwinrar": { - "winget": "RARLab.WinRAR", - "choco": "winrar" - }, - "WPFInstallnano": { - "winget": "GNU.Nano", - "choco": "nano" - }, - "WPFInstallneovim": { - "winget": "Neovim.Neovim", - "choco": "neovim" - }, - "WPFInstallnvm": { - "winget": "CoreyButler.NVMforWindows", - "choco": "nvm" - }, - "WPFInstallpostman": { - "winget": "Postman.Postman", - "choco": "postman" - }, - "WPFInstallgsudo": { - "winget": "gerardog.gsudo", - "choco": "gsudo" - }, - "WPFInstallwingetui": { - "winget": "SomePythonThings.WingetUIStore", - "choco": "na" - }, - "WPFInstallprismlauncher": { - "winget": "PrismLauncher.PrismLauncher", - "choco": "na" - } -} +{ + "WPFInstall7zip": { + "winget": "7zip.7zip", + "choco": "7zip" + }, + "WPFInstalladobe": { + "winget": "Adobe.Acrobat.Reader.64-bit", + "choco": "adobereader" + }, + "WPFInstalladvancedip": { + "winget": "Famatech.AdvancedIPScanner", + "choco": "advanced-ip-scanner" + }, + "WPFInstallalacritty": { + "Winget": "Alacritty.Alacritty", + "choco": "alacritty" + }, + "WPFInstallanydesk": { + "winget": "AnyDeskSoftwareGmbH.AnyDesk", + "choco": "anydesk" + }, + "WPFInstallaudacity": { + "winget": "Audacity.Audacity", + "choco": "audacity" + }, + "WPFInstallautohotkey": { + "winget": "AutoHotkey.AutoHotkey", + "choco": "autohotkey" + }, + "WPFInstallbitwarden": { + "winget": "Bitwarden.Bitwarden", + "choco": "bitwarden" + }, + "WPFInstallblender": { + "winget": "BlenderFoundation.Blender", + "choco": "blender" + }, + "WPFInstallbluestacks": { + "winget": "BlueStack.BlueStacks", + "choco": "na" + }, + "WPFInstallbrave": { + "winget": "Brave.Brave", + "choco": "brave" + }, + "WPFInstallbulkcrapuninstaller": { + "winget": "Klocman.BulkCrapUninstaller", + "choco": "bulk-crap-uninstaller" + }, + "WPFInstallchrome": { + "winget": "Google.Chrome", + "choco": "googlechrome" + }, + "WPFInstallchromium": { + "winget": "eloston.ungoogled-chromium", + "choco": "chromium" + }, + "WPFInstallcider": { + "winget": "CiderCollective.Cider", + "choco": "cider" + }, + "WPFInstallcpuz": { + "winget": "CPUID.CPU-Z", + "choco": "cpu-z" + }, + "WPFInstallddu": { + "winget": "ddu", + "choco": "ddu" + }, + "WPFInstalldeluge": { + "winget": "DelugeTeam.Deluge", + "choco": "deluge" + }, + "WPFInstalldiscord": { + "winget": "Discord.Discord", + "choco": "discord" + }, + "WPFInstalldockerdesktop": { + "winget": "Docker.DockerDesktop", + "choco": "docker-desktop" + }, + "WPFInstalldotnet3": { + "winget": "Microsoft.DotNet.DesktopRuntime.3_1", + "choco": "dotnetcore3-desktop-runtime" + }, + "WPFInstalldotnet5": { + "winget": "Microsoft.DotNet.DesktopRuntime.5", + "choco": "dotnet-5.0-runtime" + }, + "WPFInstalldotnet6": { + "winget": "Microsoft.DotNet.DesktopRuntime.6", + "choco": "dotnet-6.0-runtime" + }, + "WPFInstalleaapp": { + "winget": "ElectronicArts.EADesktop", + "choco": "ea-app" + }, + "WPFInstalleartrumpet": { + "winget": "File-New-Project.EarTrumpet", + "choco": "eartrumpet" + }, + "WPFInstalledge": { + "winget": "Microsoft.Edge", + "choco": "microsoft-edge" + }, + "WPFInstallepicgames": { + "winget": "EpicGames.EpicGamesLauncher", + "choco": "epicgameslauncher" + }, + "WPFInstallesearch": { + "winget": "voidtools.Everything", + "choco": "everything" + }, + "WPFInstalletcher": { + "winget": "Balena.Etcher", + "choco": "etcher" + }, + "WPFInstallfirefox": { + "winget": "Mozilla.Firefox", + "choco": "firefox" + }, + "WPFInstallflameshot": { + "winget": "Flameshot.Flameshot", + "choco": "na" + }, + "WPFInstallflux": { + "winget": "flux.flux", + "choco": "flux" + }, + "WPFInstallfoobar": { + "winget": "PeterPawlowski.foobar2000", + "choco": "foobar2000" + }, + "WPFInstallfoxpdf": { + "winget": "Foxit.PhantomPDF", + "choco": "na" + }, + "WPFInstallgeforcenow": { + "winget": "Nvidia.GeForceNow", + "choco": "nvidia-geforce-now" + }, + "WPFInstallgimp": { + "winget": "GIMP.GIMP", + "choco": "gimp" + }, + "WPFInstallgit": { + "Winget": "Git.Git", + "choco": "git" + }, + "WPFInstallgithubdesktop": { + "winget": "Git.Git;GitHub.GitHubDesktop", + "choco": "git;github-desktop" + }, + "WPFInstallglaryutilities": { + "Winget": "Glarysoft.GlaryUtilities", + "choco": "glaryutilities-free" + }, + "WPFInstallgog": { + "winget": "GOG.Galaxy", + "choco": "goggalaxy" + }, + "WPFInstallgolang": { + "Winget": "GoLang.Go", + "choco": "golang" + }, + "WPFInstallgpuz": { + "winget": "TechPowerUp.GPU-Z", + "choco": "gpu-z" + }, + "WPFInstallgreenshot": { + "winget": "Greenshot.Greenshot", + "choco": "greenshot" + }, + "WPFInstallgsudo": { + "winget": "gerardog.gsudo", + "choco": "gsudo" + }, + "WPFInstallhandbrake": { + "winget": "HandBrake.HandBrake", + "choco": "handbrake" + }, + "WPFInstallheroiclauncher": { + "winget": "HeroicGamesLauncher.HeroicGamesLauncher", + "choco": "na" + }, + "WPFInstallhexchat": { + "winget": "HexChat.HexChat", + "choco": "hexchat" + }, + "WPFInstallhwinfo": { + "winget": "REALiX.HWiNFO", + "choco": "hwinfo" + }, + "WPFInstallimageglass": { + "winget": "DuongDieuPhap.ImageGlass", + "choco": "imageglass" + }, + "WPFInstallinkscape": { + "winget": "Inkscape.Inkscape", + "choco": "inkscape" + }, + "WPFInstallitunes": { + "winget": "Apple.iTunes", + "choco": "itunes" + }, + "WPFInstalljami": { + "winget": "SFLinux.Jami", + "choco": "jami" + }, + "WPFInstalljava8": { + "winget": "EclipseAdoptium.Temurin.8.JRE", + "choco": "temurin8jre" + }, + "WPFInstalljava11": { + "winget": "EclipseAdoptium.Temurin.11.JRE", + "choco": "javaruntime" + }, + "WPFInstalljava16": { + "winget": "AdoptOpenJDK.OpenJDK.16", + "choco": "temurin16jre" + }, + "WPFInstalljava17": { + "winget": "EclipseAdoptium.Temurin.17.JRE", + "choco": "temurin17jre" + }, + "WPFInstalljava18": { + "winget": "EclipseAdoptium.Temurin.18.JRE", + "choco": "temurin18jre" + }, + "WPFInstalljava19": { + "winget": "EclipseAdoptium.Temurin.19.JRE", + "choco": "temurin19jre" + }, + "WPFInstalljava20": { + "winget": "Azul.Zulu.20.JDK", + "choco": "na" + }, + "WPFInstalljdownloader": { + "winget": "AppWork.JDownloader", + "choco": "jdownloader" + }, + "WPFInstalljetbrains": { + "winget": "JetBrains.Toolbox", + "choco": "jetbrainstoolbox" + }, + "WPFInstalljoplin": { + "winget": "Joplin.Joplin", + "choco": "joplin" + }, + "WPFInstallkdenlive": { + "Winget": "KDE.Kdenlive", + "choco": "kdenlive" + }, + "WPFInstallkeepass": { + "winget": "KeePassXCTeam.KeePassXC", + "choco": "keepassxc" + }, + "WPFInstallklite": { + "winget": "CodecGuide.K-LiteCodecPack.Standard", + "choco": "k-litecodecpack-standard" + }, + "WPFInstallkodi": { + "winget": "XBMCFoundation.Kodi", + "choco": "kodi" + }, + "WPFInstallkrita": { + "winget": "KDE.Krita", + "choco": "krita" + }, + "WPFInstalllibreoffice": { + "winget": "TheDocumentFoundation.LibreOffice", + "choco": "libreoffice-fresh" + }, + "WPFInstalllibrewolf": { + "winget": "LibreWolf.LibreWolf", + "choco": "librewolf" + }, + "WPFInstallmalwarebytes": { + "winget": "Malwarebytes.Malwarebytes", + "choco": "malwarebytes" + }, + "WPFInstallmatrix": { + "winget": "Element.Element", + "choco": "element-desktop" + }, + "WPFInstallmonitorian": { + "winget": "emoacht.Monitorian", + "choco": "monitorian" + }, + "WPFInstallmpc": { + "winget": "clsid2.mpc-hc", + "choco": "mpc-hc" + }, + "WPFInstallmremoteng": { + "winget": "mRemoteNG.mRemoteNG", + "choco": "mremoteng" + }, + "WPFInstallmusicbee": { + "winget": "MusicBee.MusicBee", + "choco": "musicbee" + }, + "WPFInstallnano": { + "winget": "GNU.Nano", + "choco": "nano" + }, + "WPFInstallnaps2": { + "winget": "Cyanfish.NAPS2", + "choco": "naps2" + }, + "WPFInstallneovim": { + "winget": "Neovim.Neovim", + "choco": "neovim" + }, + "WPFInstallnglide": { + "winget": "ZeusSoftware.nGlide", + "choco": "na" + }, + "WPFInstallnodejs": { + "winget": "OpenJS.NodeJS", + "choco": "nodejs" + }, + "WPFInstallnodejslts": { + "winget": "OpenJS.NodeJS.LTS", + "choco": "nodejs-lts" + }, + "WPFInstallnomacs": { + "winget": "nomacs.nomacs", + "choco": "nomacs" + }, + "WPFInstallnotepadplus": { + "winget": "Notepad++.Notepad++", + "choco": "notepadplusplus" + }, + "WPFInstallnuget": { + "winget": "Microsoft.NuGet", + "choco": "nuget.commandline" + }, + "WPFInstallnvclean": { + "winget": "TechPowerUp.NVCleanstall", + "choco": "na" + }, + "WPFInstallnvm": { + "winget": "CoreyButler.NVMforWindows", + "choco": "nvm" + }, + "WPFInstallobs": { + "winget": "OBSProject.OBSStudio", + "choco": "obs-studio" + }, + "WPFInstallobsidian": { + "winget": "Obsidian.Obsidian", + "choco": "obsidian" + }, + "WPFInstallonedrive": { + "winget": "Microsoft.OneDrive", + "choco": "onedrive" + }, + "WPFInstallonlyoffice": { + "winget": "ONLYOFFICE.DesktopEditors", + "choco": "onlyoffice" + }, + "WPFInstallopenoffice": { + "winget": "Apache.OpenOffice", + "choco": "openoffice" + }, + "WPFInstallopenshell": { + "winget": "Open-Shell.Open-Shell-Menu", + "choco": "open-shell" + }, + "WPFInstallpeazip": { + "winget": "Giorgiotani.Peazip", + "choco": "peazip" + }, + "WPFInstallpostman": { + "winget": "Postman.Postman", + "choco": "postman" + }, + "WPFInstallpowershell": { + "winget": "Microsoft.PowerShell", + "choco": "powershell-core" + }, + "WPFInstallpowertoys": { + "winget": "Microsoft.PowerToys", + "choco": "powertoys" + }, + "WPFInstallprismlauncher": { + "winget": "PrismLauncher.PrismLauncher", + "choco": "na" + }, + "WPFInstallprocesslasso": { + "winget": "BitSum.ProcessLasso", + "choco": "plasso" + }, + "WPFInstallprocessmonitor": { + "winget": "Microsoft.Sysinternals.ProcessMonitor", + "choco": "procexp" + }, + "WPFInstallputty": { + "winget": "PuTTY.PuTTY", + "choco": "putty" + }, + "WPFInstallpython3": { + "winget": "Python.Python.3.11", + "choco": "python" + }, + "WPFInstallqbittorrent": { + "winget": "qBittorrent.qBittorrent", + "choco": "qbittorrent" + }, + "WPFInstallrevo": { + "winget": "RevoUninstaller.RevoUninstaller", + "choco": "revo-uninstaller" + }, + "WPFInstallrufus": { + "winget": "Rufus.Rufus", + "choco": "rufus" + }, + "WPFInstallrustdesk": { + "winget": "RustDesk.RustDesk", + "choco": "rustdesk.portable" + }, + "WPFInstallrustlang": { + "Winget": "Rustlang.Rust.MSVC", + "choco": "rust" + }, + "WPFInstallsandboxie": { + "winget": "Sandboxie.Plus", + "choco": "sandboxie" + }, + "WPFInstallsdio": { + "winget": "GlennDelahoy.SnappyDriverInstallerOrigin", + "choco": "na" + }, + "WPFInstallsharex": { + "winget": "ShareX.ShareX", + "choco": "sharex" + }, + "WPFInstallshell": { + "winget": "Nilesoft.Shell", + "choco": "na" + }, + "WPFInstallsignal": { + "winget": "OpenWhisperSystems.Signal", + "choco": "signal" + }, + "WPFInstallsimplewall": { + "Winget": "Henry++.simplewall", + "choco": "simplewall" + }, + "WPFInstallskype": { + "winget": "Microsoft.Skype", + "choco": "skype" + }, + "WPFInstallslack": { + "winget": "SlackTechnologies.Slack", + "choco": "slack" + }, + "WPFInstallsqlstudio": { + "winget": "Microsoft.SQLServerManagementStudio", + "choco": "sql-server-management-studio" + }, + "WPFInstallsteam": { + "winget": "Valve.Steam", + "choco": "steam-client" + }, + "WPFInstallstrawberry": { + "winget": "StrawberryMusicPlayer.Strawberry", + "choco": "strawberrymusicplayer" + }, + "WPFInstallsublime": { + "winget": "SublimeHQ.SublimeText.4", + "choco": "sublimetext4" + }, + "WPFInstallsumatra": { + "winget": "SumatraPDF.SumatraPDF", + "choco": "sumatrapdf" + }, + "WPFInstalltcpview": { + "winget": "Microsoft.Sysinternals.Tcpview", + "choco": "tcpview" + }, + "WPFInstallteams": { + "winget": "Microsoft.Teams", + "choco": "microsoft-teams" + }, + "WPFInstallteamviewer": { + "winget": "TeamViewer.TeamViewer", + "choco": "teamviewer9" + }, + "WPFInstalltelegram": { + "winget": "Telegram.TelegramDesktop", + "choco": "telegram" + }, + "WPFInstallterminal": { + "winget": "Microsoft.WindowsTerminal", + "choco": "microsoft-windows-terminal" + }, + "WPFInstalltor": { + "Winget": "TorProject.TorBrowser", + "choco": "tor-browser" + }, + "WPFInstalltreesize": { + "winget": "JAMSoftware.TreeSize.Free", + "choco": "treesizefree" + }, + "WPFInstallttaskbar": { + "winget": "9PF4KZ2VN4W9", + "choco": "translucenttb" + }, + "WPFInstalltwinkletray": { + "Winget": "xanderfrangos.twinkletray", + "choco": "na" + }, + "WPFInstallubisoft": { + "winget": "Ubisoft.Connect", + "choco": "ubisoft-connect" + }, + "WPFInstallunity": { + "winget": "Unity.UnityHub", + "choco": "unityhub" + }, + "WPFInstallvc2015_32": { + "winget": "Microsoft.VCRedist.2015+.x86", + "choco": "na" + }, + "WPFInstallvc2015_64": { + "winget": "Microsoft.VCRedist.2015+.x64", + "choco": "na" + }, + "WPFInstallviber": { + "Winget": "Viber.Viber", + "choco": "viber" + }, + "WPFInstallvisualstudio": { + "winget": "Microsoft.VisualStudio.2022.Community", + "choco": "visualstudio2022community" + }, + "WPFInstallvivaldi": { + "winget": "VivaldiTechnologies.Vivaldi", + "choco": "vivaldi" + }, + "WPFInstallvlc": { + "winget": "VideoLAN.VLC", + "choco": "vlc" + }, + "WPFInstallvoicemeeter": { + "winget": "VB-Audio.Voicemeeter", + "choco": "voicemeeter" + }, + "WPFInstallvscode": { + "winget": "Git.Git;Microsoft.VisualStudioCode", + "choco": "vscode" + }, + "WPFInstallvscodium": { + "winget": "Git.Git;VSCodium.VSCodium", + "choco": "vscodium" + }, + "WPFInstallwaterfox": { + "winget": "Waterfox.Waterfox", + "choco": "waterfox" + }, + "WPFInstallwindirstat": { + "winget": "WinDirStat.WinDirStat", + "choco": "windirstat" + }, + "WPFInstallwingetui": { + "winget": "SomePythonThings.WingetUIStore", + "choco": "na" + }, + "WPFInstallwinmerge": { + "winget": "WinMerge.WinMerge", + "choco": "winmerge" + }, + "WPFInstallwinrar": { + "winget": "RARLab.WinRAR", + "choco": "winrar" + }, + "WPFInstallwinscp": { + "winget": "WinSCP.WinSCP", + "choco": "winscp" + }, + "WPFInstallwireshark": { + "winget": "WiresharkFoundation.Wireshark", + "choco": "wireshark" + }, + "WPFInstallwiztree": { + "Winget": "AntibodySoftware.WizTree", + "choco": "wiztree" + }, + "WPFInstallxdm": { + "winget": "subhra74.XtremeDownloadManager", + "choco": "xdm" + }, + "WPFInstallzoom": { + "winget": "Zoom.Zoom", + "choco": "zoom" + } +} \ No newline at end of file diff --git a/config/tweaks.json b/config/tweaks.json index 00215852..b7bc843f 100644 --- a/config/tweaks.json +++ b/config/tweaks.json @@ -29,14 +29,14 @@ { "Path": "HKLM:\\System\\CurrentControlSet\\Control\\Session Manager\\Power", "Name": "HibernateEnabled", - "Type": "Dword", + "Type": "DWord", "Value": "0", "OriginalValue": "1" }, { "Path": "HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\FlyoutMenuSettings", "Name": "ShowHibernateOption", - "Type": "Dword", + "Type": "DWord", "Value": "0", "OriginalValue": "1" } @@ -71,21 +71,21 @@ { "Path": "HKLM:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Sensor\\Overrides\\{BFA794E4-F964-4FDB-90F6-51056BFE4B44}", "Name": "SensorPermissionState", - "Type": "Dword", + "Type": "DWord", "Value": "0", "OriginalValue": "1" }, { "Path": "HKLM:\\SYSTEM\\CurrentControlSet\\Services\\lfsvc\\Service\\Configuration", "Name": "Status", - "Type": "Dword", + "Type": "DWord", "Value": "0", "OriginalValue": "1" }, { "Path": "HKLM:\\SYSTEM\\Maps", "Name": "AutoUpdateEnabled", - "Type": "Dword", + "Type": "DWord", "Value": "0", "OriginalValue": "1" } @@ -1561,8 +1561,8 @@ "registry": [ { "Path": "HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\DataCollection", - "type": "Dword", - "value": 0, + "type": "DWord", + "value": "0", "name": "AllowTelemetry", "OriginalValue": "1" }, @@ -1570,169 +1570,169 @@ "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\DataCollection", "OriginalValue": "1", "name": "AllowTelemetry", - "value": 0, - "type": "Dword" + "value": "0", + "type": "DWord" }, { "Path": "HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\ContentDeliveryManager", "OriginalValue": "1", "name": "ContentDeliveryAllowed", - "value": 0, - "type": "Dword" + "value": "0", + "type": "DWord" }, { "Path": "HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\ContentDeliveryManager", "OriginalValue": "1", "name": "OemPreInstalledAppsEnabled", - "value": 0, - "type": "Dword" + "value": "0", + "type": "DWord" }, { "Path": "HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\ContentDeliveryManager", "OriginalValue": "1", "name": "PreInstalledAppsEnabled", - "value": 0, - "type": "Dword" + "value": "0", + "type": "DWord" }, { "Path": "HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\ContentDeliveryManager", "OriginalValue": "1", "name": "PreInstalledAppsEverEnabled", - "value": 0, - "type": "Dword" + "value": "0", + "type": "DWord" }, { "Path": "HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\ContentDeliveryManager", "OriginalValue": "1", "name": "SilentInstalledAppsEnabled", - "value": 0, - "type": "Dword" + "value": "0", + "type": "DWord" }, { "Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\ContentDeliveryManager", "OriginalValue": "1", "name": "SubscribedContent-338387Enabled", - "value": 0, - "type": "Dword" + "value": "0", + "type": "DWord" }, { "Path": "HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\ContentDeliveryManager", "OriginalValue": "1", "name": "SubscribedContent-338388Enabled", - "value": 0, - "type": "Dword" + "value": "0", + "type": "DWord" }, { "Path": "HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\ContentDeliveryManager", "OriginalValue": "1", "name": "SubscribedContent-338389Enabled", - "value": 0, - "type": "Dword" + "value": "0", + "type": "DWord" }, { "Path": "HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\ContentDeliveryManager", "OriginalValue": "1", "name": "SubscribedContent-353698Enabled", - "value": 0, - "type": "Dword" + "value": "0", + "type": "DWord" }, { "Path": "HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\ContentDeliveryManager", "OriginalValue": "1", "name": "SystemPaneSuggestionsEnabled", - "value": 0, - "type": "Dword" + "value": "0", + "type": "DWord" }, { "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\CloudContent", "OriginalValue": "0", "name": "DisableWindowsConsumerFeatures", - "value": 1, - "type": "Dword" + "value": "1", + "type": "DWord" }, { "Path": "HKCU:\\SOFTWARE\\Microsoft\\Siuf\\Rules", "OriginalValue": "0", "name": "NumberOfSIUFInPeriod", - "value": 0, - "type": "Dword" + "value": "0", + "type": "DWord" }, { "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\DataCollection", "OriginalValue": "0", "name": "DoNotShowFeedbackNotifications", - "value": 1, - "type": "Dword" + "value": "1", + "type": "DWord" }, { "Path": "HKCU:\\SOFTWARE\\Policies\\Microsoft\\Windows\\CloudContent", "OriginalValue": "0", "name": "DisableTailoredExperiencesWithDiagnosticData", - "value": 1, - "type": "Dword" + "value": "1", + "type": "DWord" }, { "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\AdvertisingInfo", "OriginalValue": "0", "name": "DisabledByGroupPolicy", - "value": 1, - "type": "Dword" + "value": "1", + "type": "DWord" }, { "Path": "HKLM:\\SOFTWARE\\Microsoft\\Windows\\Windows Error Reporting", "OriginalValue": "0", "name": "Disabled", - "value": 1, - "type": "Dword" + "value": "1", + "type": "DWord" }, { "Path": "HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\DeliveryOptimization\\Config", "OriginalValue": "1", "name": "DODownloadMode", - "value": 1, - "type": "Dword" + "value": "1", + "type": "DWord" }, { "Path": "HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Remote Assistance", "OriginalValue": "1", "name": "fAllowToGetHelp", - "value": 0, - "type": "Dword" + "value": "0", + "type": "DWord" }, { "Path": "HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\OperationStatusManager", "OriginalValue": "0", "name": "EnthusiastMode", - "value": 1, - "type": "Dword" + "value": "1", + "type": "DWord" }, { "Path": "HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced", "OriginalValue": "1", "name": "ShowTaskViewButton", - "value": 0, - "type": "Dword" + "value": "0", + "type": "DWord" }, { "Path": "HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced\\People", "OriginalValue": "1", "name": "PeopleBand", - "value": 0, - "type": "Dword" + "value": "0", + "type": "DWord" }, { "Path": "HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced", "OriginalValue": "1", "name": "LaunchTo", - "value": 1, - "type": "Dword" + "value": "1", + "type": "DWord" }, { "Path": "HKLM:\\SYSTEM\\CurrentControlSet\\Control\\FileSystem", "OriginalValue": "0", "name": "LongPathsEnabled", - "value": 1, - "type": "Dword" + "value": "1", + "type": "DWord" }, { "_Comment" : "Driver searching is a function that should be left in", @@ -1740,49 +1740,49 @@ "OriginalValue": "1", "name": "SearchOrderConfig", "value": "1", - "type": "Dword" + "type": "DWord" }, { "Path": "HKLM:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Multimedia\\SystemProfile", "OriginalValue": "1", "name": "SystemResponsiveness", "value": "0", - "type": "Dword" + "type": "DWord" }, { "Path": "HKLM:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Multimedia\\SystemProfile", "OriginalValue": "1", "name": "NetworkThrottlingIndex", "value": "4294967295", - "type": "Dword" + "type": "DWord" }, { "Path": "HKCU:\\Control Panel\\Desktop", "OriginalValue": "1", "name": "MenuShowDelay", "value": "1", - "type": "Dword" + "type": "DWord" }, { "Path": "HKCU:\\Control Panel\\Desktop", "OriginalValue": "1", "name": "AutoEndTasks", "value": "1", - "type": "Dword" + "type": "DWord" }, { "Path": "HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Memory Management", "OriginalValue": "0", "name": "ClearPageFileAtShutdown", "value": "0", - "type": "Dword" + "type": "DWord" }, { "Path": "HKLM:\\SYSTEM\\ControlSet001\\Services\\Ndu", "OriginalValue": "1", "name": "Start", "value": "2", - "type": "Dword" + "type": "DWord" }, { "Path": "HKCU:\\Control Panel\\Mouse", @@ -1796,42 +1796,42 @@ "OriginalValue": "20", "name": "IRPStackSize", "value": "30", - "type": "Dword" + "type": "DWord" }, { "Path": "HKCU:\\SOFTWARE\\Policies\\Microsoft\\Windows\\Windows Feeds", "OriginalValue": "1", "name": "EnableFeeds", "value": "0", - "type": "Dword" + "type": "DWord" }, { "Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Feeds", "OriginalValue": "1", "name": "ShellFeedsTaskbarViewMode", "value": "2", - "type": "Dword" + "type": "DWord" }, { "Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer", "OriginalValue": "1", "name": "HideSCAMeetNow", "value": "1", - "type": "Dword" + "type": "DWord" }, { "Path": "HKLM:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Multimedia\\SystemProfile\\Tasks\\Games", "OriginalValue": "1", "name": "GPU Priority", "value": "8", - "type": "Dword" + "type": "DWord" }, { "Path": "HKLM:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Multimedia\\SystemProfile\\Tasks\\Games", "OriginalValue": "1", "name": "Priority", "value": "6", - "type": "Dword" + "type": "DWord" }, { "Path": "HKLM:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Multimedia\\SystemProfile\\Tasks\\Games", @@ -1885,42 +1885,6 @@ } ] }, - "WPFMiscTweaksLapPower": { - "registry": [ - { - "Path": "HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Power\\PowerThrottling", - "Name": "PowerThrottlingOff", - "Type": "DWord", - "Value": "00000000", - "OriginalValue": "00000001" - }, - { - "Path": "HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Power", - "Name": "HiberbootEnabled", - "Type": "DWord", - "Value": "0000001", - "OriginalValue": "0000000" - } - ] - }, - "WPFMiscTweaksPower": { - "registry": [ - { - "Path": "HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Power\\PowerThrottling", - "Name": "PowerThrottlingOff", - "Type": "DWord", - "Value": "00000001", - "OriginalValue": "00000000" - }, - { - "Path": "HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Power", - "Name": "HiberbootEnabled", - "Type": "DWord", - "Value": "0000000", - "OriginalValue": "00000001" - } - ] - }, "WPFMiscTweaksExt": { "registry": [ { @@ -2035,7 +1999,7 @@ "name": "SearchboxTaskbarMode", "value": "0", "type": "DWord" - } + }, ], "InvokeScript": [ "Set-ItemProperty -Path \"HKCU:\\Control Panel\\Desktop\" -Name \"UserPreferencesMask\" -Type Binary -Value ([byte[]](144,18,3,128,16,0,0,0))" @@ -2208,7 +2172,87 @@ " ], "UndoScript": [ - "winget install Microsoft.Edge" + " + Write-Host \"Install Microsoft Edge\" + Start-Process -FilePath winget -ArgumentList \"install -e --accept-source-agreements --accept-package-agreements --silent Microsoft.Edge \" -NoNewWindow -Wait + " + ] + }, + "WPFEssTweaksRemoveOnedrive": { + "InvokeScript": [ + " + + Write-Host \"Kill OneDrive process\" + taskkill.exe /F /IM \"OneDrive.exe\" + taskkill.exe /F /IM \"explorer.exe\" + + Write-Host \"Copy all OneDrive to Root UserProfile\" + Start-Process -FilePath robocopy -ArgumentList \"$env:USERPROFILE\\OneDrive $env:USERPROFILE /e /xj\" -NoNewWindow -Wait + + Write-Host \"Remove OneDrive\" + Start-Process -FilePath winget -ArgumentList \"uninstall -e --purge --force --silent Microsoft.OneDrive \" -NoNewWindow -Wait + + Write-Host \"Removing OneDrive leftovers\" + Remove-Item -Recurse -Force -ErrorAction SilentlyContinue \"$env:localappdata\\Microsoft\\OneDrive\" + Remove-Item -Recurse -Force -ErrorAction SilentlyContinue \"$env:programdata\\Microsoft OneDrive\" + Remove-Item -Recurse -Force -ErrorAction SilentlyContinue \"$env:systemdrive\\OneDriveTemp\" + # check if directory is empty before removing: + If ((Get-ChildItem \"$env:userprofile\\OneDrive\" -Recurse | Measure-Object).Count -eq 0) { + Remove-Item -Recurse -Force -ErrorAction SilentlyContinue \"$env:userprofile\\OneDrive\" + } + + Write-Host \"Remove Onedrive from explorer sidebar\" + Set-ItemProperty -Path \"HKCR:\\CLSID\\{018D5C66-4533-4307-9B53-224DE2ED1FE6}\" -Name \"System.IsPinnedToNameSpaceTree\" -Value 0 + Set-ItemProperty -Path \"HKCR:\\Wow6432Node\\CLSID\\{018D5C66-4533-4307-9B53-224DE2ED1FE6}\" -Name \"System.IsPinnedToNameSpaceTree\" -Value 0 + + Write-Host \"Removing run hook for new users\" + reg load \"hku\\Default\" \"C:\\Users\\Default\\NTUSER.DAT\" + reg delete \"HKEY_USERS\\Default\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run\" /v \"OneDriveSetup\" /f + reg unload \"hku\\Default\" + + Write-Host \"Removing startmenu entry\" + Remove-Item -Force -ErrorAction SilentlyContinue \"$env:userprofile\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\OneDrive.lnk\" + + Write-Host \"Removing scheduled task\" + Get-ScheduledTask -TaskPath '\\' -TaskName 'OneDrive*' -ea SilentlyContinue | Unregister-ScheduledTask -Confirm:$false + + # Add Shell folders restoring default locations + Write-Host \"Shell Fixing\" + Set-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders\" -Name \"AppData\" -Value \"$env:userprofile\\AppData\\Roaming\" -Type ExpandString + Set-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders\" -Name \"Cache\" -Value \"$env:userprofile\\AppData\\Local\\Microsoft\\Windows\\INetCache\" -Type ExpandString + Set-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders\" -Name \"Cookies\" -Value \"$env:userprofile\\AppData\\Local\\Microsoft\\Windows\\INetCookies\" -Type ExpandString + Set-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders\" -Name \"Favorites\" -Value \"$env:userprofile\\Favorites\" -Type ExpandString + Set-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders\" -Name \"History\" -Value \"$env:userprofile\\AppData\\Local\\Microsoft\\Windows\\History\" -Type ExpandString + Set-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders\" -Name \"Local AppData\" -Value \"$env:userprofile\\AppData\\Local\" -Type ExpandString + Set-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders\" -Name \"My Music\" -Value \"$env:userprofile\\Music\" -Type ExpandString + Set-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders\" -Name \"My Video\" -Value \"$env:userprofile\\Videos\" -Type ExpandString + Set-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders\" -Name \"NetHood\" -Value \"$env:userprofile\\AppData\\Roaming\\Microsoft\\Windows\\Network Shortcuts\" -Type ExpandString + Set-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders\" -Name \"PrintHood\" -Value \"$env:userprofile\\AppData\\Roaming\\Microsoft\\Windows\\Printer Shortcuts\" -Type ExpandString + Set-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders\" -Name \"Programs\" -Value \"$env:userprofile\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\" -Type ExpandString + Set-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders\" -Name \"Recent\" -Value \"$env:userprofile\\AppData\\Roaming\\Microsoft\\Windows\\Recent\" -Type ExpandString + Set-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders\" -Name \"SendTo\" -Value \"$env:userprofile\\AppData\\Roaming\\Microsoft\\Windows\\SendTo\" -Type ExpandString + Set-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders\" -Name \"Start Menu\" -Value \"$env:userprofile\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\" -Type ExpandString + Set-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders\" -Name \"Startup\" -Value \"$env:userprofile\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\" -Type ExpandString + Set-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders\" -Name \"Templates\" -Value \"$env:userprofile\\AppData\\Roaming\\Microsoft\\Windows\\Templates\" -Type ExpandString + Set-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders\" -Name \"{374DE290-123F-4565-9164-39C4925E467B}\" -Value \"$env:userprofile\\Downloads\" -Type ExpandString + Set-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders\" -Name \"Desktop\" -Value \"$env:userprofile\\Desktop\" -Type ExpandString + Set-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders\" -Name \"My Pictures\" -Value \"$env:userprofile\\Pictures\" -Type ExpandString + Set-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders\" -Name \"Personal\" -Value \"$env:userprofile\\Documents\" -Type ExpandString + Set-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders\" -Name \"{F42EE2D3-909F-4907-8871-4C22FC0BF756}\" -Value \"$env:userprofile\\Documents\" -Type ExpandString + Set-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders\" -Name \"{0DDD015D-B06C-45D5-8C4C-F59713854639}\" -Value \"$env:userprofile\\Pictures\" -Type ExpandString + Write-Host \"Restarting explorer\" + Start-Process \"explorer.exe\" + + Write-Host \"Waiting for explorer to complete loading\" + Write-Host \"Please Note - OneDrive folder may still have items in it. You must manually delete it, but all the files should already be copied to the base user folder.\" + Start-Sleep 5 + " + ], + "UndoScript": [ + " + Write-Host \"Install OneDrive\" + Start-Process -FilePath winget -ArgumentList \"install -e --accept-source-agreements --accept-package-agreements --silent Microsoft.OneDrive \" -NoNewWindow -Wait + " ] }, "WPFMiscTweaksDisableNotifications": { @@ -2248,17 +2292,6 @@ " ] }, - "WPFMiscTweaksDisableTPMCheck": { - "registry": [ - { - "Path": "HKLM:\\SYSTEM\\Setup\\MoSetup", - "Name": "AllowUpgradesWithUnsupportedTPM", - "Type": "DWord", - "Value": "1", - "OriginalValue": "0" - } - ] - }, "WPFMiscTweaksDisableUAC": { "registry": [ { @@ -2337,15 +2370,6 @@ Get-ChildItem -Path $env:TEMP *.* -Recurse | Remove-Item -Force -Recurse" ] }, - "WPFEssTweaksRemoveCortana": { - "InvokeScript": [ - "Get-AppxPackage -allusers Microsoft.549981C3F5F10 | Remove-AppxPackage" - ], - "UndoScript": [ - "Get-AppxPackage -allusers | where Name -like \"Microsoft.549981C3F5F10\" | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register \"$($_.InstallLocation)\\AppXManifest.xml\"} - " - ] - }, "WPFEssTweaksDVR": { "registry": [ { @@ -2398,9 +2422,25 @@ "OriginalValue": "1", "Name": "BingSearchEnabled", "Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Search", - "Type": "DWORD", + "Type": "DWord", "Value": "0" } ] + }, + "WPFMiscTweaksDisableipsix": { + "InvokeScript": [ + "Disable-NetAdapterBinding -Name '*' -ComponentID ms_tcpip6" + ], + "UndoScript": [ + "Enable-NetAdapterBinding -Name '*' -ComponentID ms_tcpip6" + ] + }, + "WPFMiscTweaksEnableipsix": { + "InvokeScript": [ + "Enable-NetAdapterBinding -Name '*' -ComponentID ms_tcpip6" + ], + "UndoScript": [ + "Disable-NetAdapterBinding -Name '*' -ComponentID ms_tcpip6" + ] } } diff --git a/edgeremoval.bat b/edgeremoval.bat index 572e8213..059a7363 100644 --- a/edgeremoval.bat +++ b/edgeremoval.bat @@ -4,121 +4,173 @@ sp 'HKCU:\Volatile Environment' 'Edge_Removal' @' $also_remove_webview = 1 -$host.ui.RawUI.WindowTitle = 'Edge Removal - AveYo, 2023.07.08' -## targets -$remove_win32 = @("Microsoft Edge","Microsoft Edge Update"); $remove_appx = @("MicrosoftEdge") -if ($also_remove_webview -eq 1) {$remove_win32 += "Microsoft EdgeWebView"; $remove_appx += "Win32WebViewHost"} -## enable admin privileges +$host.ui.RawUI.WindowTitle = 'Edge Removal - AveYo, 2023.09.09' +$remove_win32 = @("Microsoft Edge","Microsoft Edge Update"); $remove_appx = @("MicrosoftEdge"); $skip = @() # @("DevTools") +if ($also_remove_webview -eq 1) {$remove_win32 += "Microsoft EdgeWebView"; $remove_appx += "WebExperience","Win32WebViewHost"} + +## 1 bonus! enter into powershell console: firefox / edge / webview to install a browser / reinstall edge or webview after removal +function global:firefox { $url = 'https://download.mozilla.org/?product=firefox-stub' + $setup = "$((new-object -ComObject Shell.Application).NameSpace('shell:Downloads').Self.Path)\Firefox Installer.exe" + write-host $url; Invoke-WebRequest $url -OutFile $setup; start $setup +} +function global:edge { $url = 'https://go.microsoft.com/fwlink/?linkid=2108834&Channel=Stable&language=en' + $setup = "$((new-object -ComObject Shell.Application).NameSpace('shell:Downloads').Self.Path)\MicrosoftEdgeSetup.exe" + write-host $url; Invoke-WebRequest $url -OutFile $setup; prepare_edge; start $setup +} +function global:webview { $url = 'https://go.microsoft.com/fwlink/p/?LinkId=2124703' + $setup = "$((new-object -ComObject Shell.Application).NameSpace('shell:Downloads').Self.Path)\MicrosoftEdgeWebview2Setup.exe" + write-host $url; Invoke-WebRequest $url -OutFile $setup; prepare_webview; start $setup +} +## helper for set-itemproperty remove-itemproperty new-item remove-item with auto test-path +function global:sp_test_path { if (test-path $args[0]) {Microsoft.PowerShell.Management\Set-ItemProperty @args} else { + Microsoft.PowerShell.Management\New-Item $args[0] -force -ea 0 >''; Microsoft.PowerShell.Management\Set-ItemProperty @args} } +function global:rp_test_path { if (test-path $args[0]) {Microsoft.PowerShell.Management\Remove-ItemProperty @args} } +function global:ni_test_path { if (-not (test-path $args[0])) {Microsoft.PowerShell.Management\New-Item @args} } +function global:ri_test_path { if (test-path $args[0]) {Microsoft.PowerShell.Management\Remove-Item @args} } +foreach ($f in 'sp','rp','ni','ri') {set-alias -Name $f -Value "${f}_test_path" -Scope Local -Option AllScope -force -ea 0} +## helper for edge reinstall - remove bundled OpenWebSearch redirector and edgeupdate policies +function global:prepare_edge { + foreach ($f in 'ni','ri','sp','rp') {set-alias -Name $f -Value "${f}_test_path" -Scope Local -Option AllScope -force -ea 0} + $MS=($env:ProgramFiles,${env:ProgramFiles(x86)})[[Environment]::Is64BitOperatingSystem]+'\Microsoft\Edge\Application\msedge.exe' + ri "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\msedge.exe" -recurse -force -ea 0 + ri "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\ie_to_edge_stub.exe" -recurse -force -ea 0 + ri 'Registry::HKEY_Users\S-1-5-21*\Software\Classes\microsoft-edge' -recurse -force -ea 0 + ri 'Registry::HKEY_Users\S-1-5-21*\Software\Classes\MSEdgeHTM' -recurse -force -ea 0 + ni "HKLM:\SOFTWARE\Classes\microsoft-edge\shell\open\command" -force -ea 0 >'' + sp "HKLM:\SOFTWARE\Classes\microsoft-edge\shell\open\command" '(Default)' "`"$MS`" --single-argument %%1" -force -ea 0 + ni "HKLM:\SOFTWARE\Classes\MSEdgeHTM\shell\open\command" -force -ea 0 >'' + sp "HKLM:\SOFTWARE\Classes\MSEdgeHTM\shell\open\command" '(Default)' "`"$MS`" --single-argument %%1" -force -ea 0 + foreach ($p in 'HKLM:\SOFTWARE\Policies','HKLM:\SOFTWARE','HKLM:\SOFTWARE\WOW6432Node') { + rp "$p\Microsoft\EdgeUpdate" 'InstallDefault' -force -ea 0 + rp "$p\Microsoft\EdgeUpdate" 'Install{56EB18F8-B008-4CBD-B6D2-8C97FE7E9062}' -force -ea 0 + rp "$p\Microsoft\EdgeUpdate" 'Install{F3017226-FE2A-4295-8BDF-00C3A9A7E4C5}' -force -ea 0 + } + $edgeupdate='Microsoft\EdgeUpdate\Clients\{56EB18F8-B008-4CBD-B6D2-8C97FE7E9062}' + $webvupdate='Microsoft\EdgeUpdate\Clients\{F3017226-FE2A-4295-8BDF-00C3A9A7E4C5}' + $on_actions='on-os-upgrade','on-logon','on-logon-autolaunch','on-logon-startup-boost' + foreach ($p in 'HKLM:\SOFTWARE','HKLM:\SOFTWARE\Wow6432Node') { foreach ($launch in $on_actions) { + ri "$p\$edgeupdate\Commands\$launch" -force -ea 0; ri "$p\$webvupdate\Commands\$launch" -force -ea 0 + }} +} +## helper for webview reinstall - restore webexperience (widgets) if available +function global:prepare_webview { + $cfg = @{Register=$true; ForceApplicationShutdown=$true; ForceUpdateFromAnyVersion=$true; DisableDevelopmentMode=$true} + dir "$env:ProgramFiles\WindowsApps\MicrosoftWindows.Client.WebExperience*\AppxManifest.xml" -rec -ea 0 | Add-AppxPackage @cfg + dir "$env:SystemRoot\SystemApps\Microsoft.Win32WebViewHost*\AppxManifest.xml" -rec -ea 0 | Add-AppxPackage @cfg + kill -name explorer -ea 0; if ((get-process -name 'explorer' -ea 0) -eq $null) {start explorer} +} + +## 2 enable admin privileges $D1=[uri].module.gettype('System.Diagnostics.Process')."GetM`ethods"(42) |where {$_.Name -eq 'SetPrivilege'} #`:no-ev-warn 'SeSecurityPrivilege','SeTakeOwnershipPrivilege','SeBackupPrivilege','SeRestorePrivilege'|foreach {$D1.Invoke($null, @("$_",2))} -## set useless policies -foreach ($p in 'HKLM\SOFTWARE\Policies','HKLM\SOFTWARE','HKLM\SOFTWARE\WOW6432Node') { - cmd /c "reg add ""$p\Microsoft\EdgeUpdate"" /f /v InstallDefault /d 0 /t reg_dword >nul 2>nul" - cmd /c "reg add ""$p\Microsoft\EdgeUpdate"" /f /v Install{56EB18F8-B008-4CBD-B6D2-8C97FE7E9062} /d 0 /t reg_dword >nul 2>nul" - cmd /c "reg add ""$p\Microsoft\EdgeUpdate"" /f /v Install{F3017226-FE2A-4295-8BDF-00C3A9A7E4C5} /d 1 /t reg_dword >nul 2>nul" - cmd /c "reg add ""$p\Microsoft\EdgeUpdate"" /f /v DoNotUpdateToEdgeWithChromium /d 1 /t reg_dword >nul 2>nul" -} -$edgeupdate='Microsoft\EdgeUpdate\Clients\{56EB18F8-B008-4CBD-B6D2-8C97FE7E9062}' -foreach ($p in 'HKLM\SOFTWARE','HKLM\SOFTWARE\Wow6432Node') { - cmd /c "reg add ""$p\$edgeupdate\Commands\on-logon-autolaunch"" /f /v CommandLine /d systray.exe >nul 2>nul" - cmd /c "reg add ""$p\$edgeupdate\Commands\on-logon-startup-boost"" /f /v CommandLine /d systray.exe >nul 2>nul" - cmd /c "reg add ""$p\$edgeupdate\Commands\on-os-upgrade"" /f /v CommandLine /d systray.exe >nul 2>nul" -} -## clear win32 uninstall block -foreach ($hk in 'HKCU','HKLM') {foreach ($wow in '','\Wow6432Node') {foreach ($i in $remove_win32) { - cmd /c "reg delete ""$hk\SOFTWARE${wow}\Microsoft\Windows\CurrentVersion\Uninstall\$i"" /f /v NoRemove >nul 2>nul" - cmd /c "reg add ""$hk\SOFTWARE${wow}\Microsoft\EdgeUpdateDev"" /f /v AllowUninstall /d 1 /t reg_dword >nul 2>nul" -}}} -## find all Edge setup.exe and gather BHO paths -$setup = @(); $bho = @(); $bho += "$env:ProgramData\ie_to_edge_stub.exe"; $bho += "$env:Public\ie_to_edge_stub.exe" -"LocalApplicationData","ProgramFilesX86","ProgramFiles" |foreach { - $setup += dir $($([Environment]::GetFolderPath($_)) + '\Microsoft\Edge*\setup.exe') -rec -ea 0 - $bho += dir $($([Environment]::GetFolderPath($_)) + '\Microsoft\Edge*\ie_to_edge_stub.exe') -rec -ea 0 +## 3 shut edge & webview clone stuff down and gather install paths +$shut = 'explorer','Widgets','widgetservice','msedgewebview2','MicrosoftEdge*','chredge','msedge','edge' +$shut+= 'msteams','msfamily','WebViewHost','Clipchamp' +cd $env:systemdrive; taskkill /im explorer.exe /f 2>&1 >''; foreach ($p in $shut) {kill -name $p -force -ea 0} +prepare_edge +## clear win32 uninstall block +foreach ($hk in 'HKCU:','HKLM:') { foreach ($wow in '','\Wow6432Node') { foreach ($i in $remove_win32) { + rp "$hk\SOFTWARE${wow}\Microsoft\Windows\CurrentVersion\Uninstall\$i" 'NoRemove' -force -ea 0 + ni "$hk\SOFTWARE${wow}\Microsoft\EdgeUpdateDev" -force >'' + sp "$hk\SOFTWARE${wow}\Microsoft\EdgeUpdateDev" 'AllowUninstall' 1 -type Dword -force +}}} +## find all Edge setup.exe and gather BHO paths for OpenWebSearch / MSEdgeRedirect usage +$edges = @(); $bho = @(); 'LocalApplicationData','ProgramFilesX86','ProgramFiles' |foreach { + $folder = [Environment]::GetFolderPath($_); $bho += dir "$folder\Microsoft\Edge*\ie_to_edge_stub.exe" -rec -ea 0 + if ($also_remove_webview -eq 1) {$edges += dir "$folder\Microsoft\Edge*\setup.exe" -rec -ea 0 |where {$_ -like '*EdgeWebView*'}} + $edges += dir "$folder\Microsoft\Edge*\setup.exe" -rec -ea 0 |where {$_ -notlike '*EdgeWebView*'} } -## shut edge down -foreach ($p in 'MicrosoftEdgeUpdate','chredge','msedge','edge','msedgewebview2','Widgets') { kill -name $p -force -ea 0 } -## use dedicated C:\Scripts path due to Sigma rules FUD -$DIR = "$env:SystemDrive\Scripts"; $null = mkdir $DIR -ea 0 -## export OpenWebSearch innovative redirector +## use dedicated C:\Scripts path to save OpenWebSearch (due to Sigma rules FUD) +$DIR = "$env:SystemDrive\Scripts"; mkdir $DIR -ea 0 >'' +## export OpenWebSearch innovative redirector - used by MSEdgeRedirect as well foreach ($b in $bho) { if (test-path $b) { try {copy $b "$DIR\ie_to_edge_stub.exe" -force -ea 0} catch{} } } -## clear appx uninstall block and remove -$provisioned = get-appxprovisionedpackage -online; $appxpackage = get-appxpackage -allusers -$store = 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore'; $store_reg = $store.replace(':','') -$users = @('S-1-5-18'); if (test-path $store) {$users += $((dir $store |where {$_ -like '*S-1-5-21*'}).PSChildName)} + +## 4 remove found *Edge* appx packages with unblock tricks +$provisioned = get-appxprovisionedpackage -online; $appxpackage = get-appxpackage -allusers; $eol = @() +$store = 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore' +$users = @('S-1-5-18'); if (test-path $store) {$users += $((dir $store -ea 0 |where {$_ -like '*S-1-5-21*'}).PSChildName)} foreach ($choice in $remove_appx) { if ('' -eq $choice.Trim()) {continue} foreach ($appx in $($provisioned |where {$_.PackageName -like "*$choice*"})) { - $PackageFamilyName = ($appxpackage |where {$_.Name -eq $appx.DisplayName}).PackageFamilyName; $PackageFamilyName - cmd /c "reg add ""$store_reg\Deprovisioned\$PackageFamilyName"" /f >nul 2>nul" - cmd /c "dism /online /remove-provisionedappxpackage /packagename:$($appx.PackageName) >nul 2>nul" - #powershell -nop -c remove-appxprovisionedpackage -packagename "'$($appx.PackageName)'" -online 2>&1 >'' + $next = !1; foreach ($no in $skip) {if ($appx.PackageName -like "*$no*") {$next = !0}} ; if ($next) {continue} + $PackageName = $appx.PackageName; $PackageFamilyName = ($appxpackage |where {$_.Name -eq $appx.DisplayName}).PackageFamilyName + ni "$store\Deprovisioned\$PackageFamilyName" -force >''; $PackageFamilyName + foreach ($sid in $users) {ni "$store\EndOfLife\$sid\$PackageName" -force >''} ; $eol += $PackageName + dism /online /set-nonremovableapppolicy /packagefamily:$PackageFamilyName /nonremovable:0 >'' + remove-appxprovisionedpackage -packagename $PackageName -online -allusers >'' } foreach ($appx in $($appxpackage |where {$_.PackageFullName -like "*$choice*"})) { - $inbox = (gp "$store\InboxApplications\*$($appx.Name)*" Path).PSChildName - $PackageFamilyName = $appx.PackageFamilyName; $PackageFullName = $appx.PackageFullName; $PackageFullName - foreach ($app in $inbox) {cmd /c "reg delete ""$store_reg\InboxApplications\$app"" /f >nul 2>nul" } - cmd /c "reg add ""$store_reg\Deprovisioned\$PackageFamilyName"" /f >nul 2>nul" - foreach ($sid in $users) {cmd /c "reg add ""$store_reg\EndOfLife\$sid\$PackageFullName"" /f >nul 2>nul"} - cmd /c "dism /online /set-nonremovableapppolicy /packagefamily:$PackageFamilyName /nonremovable:0 >nul 2>nul" - powershell -nop -c "remove-appxpackage -package '$PackageFullName' -AllUsers" 2>&1 >'' - foreach ($sid in $users) {cmd /c "reg delete ""$store_reg\EndOfLife\$sid\$PackageFullName"" /f >nul 2>nul"} + $next = !1; foreach ($no in $skip) {if ($appx.PackageFullName -like "*$no*") {$next = !0}} ; if ($next) {continue} + $PackageFullName = $appx.PackageFullName; + ni "$store\Deprovisioned\$appx.PackageFamilyName" -force >''; $PackageFullName + foreach ($sid in $users) {ni "$store\EndOfLife\$sid\$PackageFullName" -force >''} ; $eol += $PackageFullName + dism /online /set-nonremovableapppolicy /packagefamily:$PackageFamilyName /nonremovable:0 >'' + remove-appxpackage -package $PackageFullName -allusers >'' } } -## remove OpenWebSearch before running edge setup -$IFEO = 'HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options' -$MSEP = ($env:ProgramFiles,${env:ProgramFiles(x86)})[[Environment]::Is64BitOperatingSystem] + '\Microsoft\Edge\Application' -cmd /c "reg delete HKCR\microsoft-edge /f /v ""NoOpenWith"" >nul 2>nul" -cmd /c "reg add HKCR\microsoft-edge\shell\open\command /f /ve /d ""\""$MSEP\msedge.exe\"" --single-argument %%1"" >nul" -cmd /c "reg delete HKCR\MSEdgeHTM /f /v ""NoOpenWith"" >nul 2>nul" -cmd /c "reg add HKCR\MSEdgeHTM\shell\open\command /f /ve /d ""\""$MSEP\msedge.exe\"" --single-argument %%1"" >nul" -cmd /c "reg delete ""$IFEO\ie_to_edge_stub.exe"" /f >nul 2>nul" -cmd /c "reg delete ""$IFEO\msedge.exe"" /f >nul 2>nul" +## 5 run found *Edge* setup.exe with uninstall args and wait in-between +foreach ($setup in $edges) { if (test-path $setup) { + if ($setup -like '*EdgeWebView*') {$target = "--msedgewebview"} else {$target = "--msedge"} + $removal = "--uninstall $target --system-level --verbose-logging --force-uninstall" + try {write-host $setup $removal; start -wait $setup -args $removal} catch {} + do {sleep 3} while ((get-process -name 'setup','MicrosoftEdge*' -ea 0).Path -like '*\Microsoft\Edge*') +}} -## shut edge down, again -foreach ($p in 'MicrosoftEdgeUpdate','chredge','msedge','edge','msedgewebview2','Widgets') { kill -name $p -force -ea 0 } -## brute-run found Edge setup.exe with uninstall args -$purge = '--uninstall --force-uninstall --system-level' # --delete-old-versions --channel=stable -if ($also_remove_webview -eq 1) { foreach ($s in $setup) { try{ start -wait $s -args "--msedgewebview $purge" } catch{} } } -foreach ($s in $setup) { try{ start -wait $s -args "--msedge $purge" } catch{} } - -## prevent latest cumulative update (LCU) failing due to non-matching EndOfLife Edge entries -foreach ($i in $remove_appx) { - dir "$store\EndOfLife" -rec -ea 0 |where {$_ -like "*${i}*"} |foreach {cmd /c "reg delete ""$($_.Name)"" /f >nul 2>nul"} - dir "$store\Deleted\EndOfLife" -rec -ea 0 |where {$_ -like "*${i}*"} |foreach {cmd /c "reg delete ""$($_.Name)"" /f >nul 2>nul"} -} - -## extra cleanup +## 6 extra cleanup +foreach ($PF in $env:ProgramFiles,${env:ProgramFiles(x86)}) { if (test-path "$PF\Microsoft\EdgeUpdate\MicrosoftEdgeUpdate.exe") { + write-host "$PF\Microsoft\EdgeUpdate\MicrosoftEdgeUpdate.exe /uninstall" + start -wait "$PF\Microsoft\EdgeUpdate\MicrosoftEdgeUpdate.exe" -args '/uninstall' + do {sleep 3} while ((get-process -name 'setup','MicrosoftEdge*' -ea 0).Path -like '*\Microsoft\Edge*') + if ($also_remove_webview -eq 1) { foreach ($hk in 'HKCU:','HKLM:') { foreach ($wow in '','\Wow6432Node') { + ri "$hk\SOFTWARE${wow}\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge Update" -rec -force -ea 0 }} + ri "$PF\Microsoft\EdgeUpdate" -rec -force -ea 0; Unregister-ScheduledTask -TaskName MicrosoftEdgeUpdate* -Confirm:$false -ea 0 + } +}} $appdata = $([Environment]::GetFolderPath('ApplicationData')) -$desktop = $([Environment]::GetFolderPath('Desktop')) -$public_desktop = $([Environment]::GetFolderPath('CommonDesktopDirectory')) -$start_menu_programs = $([Environment]::GetFolderPath('CommonPrograms')) -del "$appdata\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\Tombstones\Microsoft Edge.lnk" -force -ea 0 -del "$appdata\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\Microsoft Edge.lnk" -force -ea 0 -del "$appdata\Microsoft\Internet Explorer\Quick Launch\Microsoft Edge.lnk" -force -ea 0 -del "$desktop\Microsoft Edge.lnk" -force -ea 0 -del "$public_desktop\Microsoft Edge.lnk" -force -ea 0 -del "$start_menu_programs\Microsoft Edge.lnk" -force -ea 0 -#pushd "${env:ProgramFiles(x86)}\Microsoft" -#rmdir -LiteralPath 'Edge','EdgeCore','EdgeUpdate' -recurse -force -ea 0 +ri "$appdata\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\Tombstones\Microsoft Edge.lnk" -force +ri "$appdata\Microsoft\Internet Explorer\Quick Launch\Microsoft Edge.lnk" -force -## add OpenWebSearch to redirect microsoft-edge: anti-competitive links to the default browser -$IFEO = 'HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options' +## undo eol unblock trick to prevent latest cumulative update (LCU) failing +foreach ($sid in $users) { foreach ($PackageName in $eol) {ri "$store\EndOfLife\$sid\$PackageName" -force >''} } + +## set (almost) useless policies to prevent unsolicited reinstalls +foreach ($p in 'HKLM:\SOFTWARE\Policies','HKLM:\SOFTWARE','HKLM:\SOFTWARE\WOW6432Node') { + ni "$p\Microsoft\EdgeUpdate" -force >'' + sp "$p\Microsoft\EdgeUpdate" 'InstallDefault' 0 -type Dword -force + sp "$p\Microsoft\EdgeUpdate" 'Install{56EB18F8-B008-4CBD-B6D2-8C97FE7E9062}' 0 -type Dword -force + sp "$p\Microsoft\EdgeUpdate" 'Install{F3017226-FE2A-4295-8BDF-00C3A9A7E4C5}' 1 -type Dword -force + sp "$p\Microsoft\EdgeUpdate" 'DoNotUpdateToEdgeWithChromium' 1 -type Dword -force +} +$edgeupdate='Microsoft\EdgeUpdate\Clients\{56EB18F8-B008-4CBD-B6D2-8C97FE7E9062}' +$webvupdate='Microsoft\EdgeUpdate\Clients\{F3017226-FE2A-4295-8BDF-00C3A9A7E4C5}' +$on_actions='on-os-upgrade','on-logon','on-logon-autolaunch','on-logon-startup-boost' +foreach ($p in 'HKLM:\SOFTWARE','HKLM:\SOFTWARE\Wow6432Node') { foreach ($launch in $on_actions) { + ni "$p\$edgeupdate\Commands\$launch" -force >''; sp "$p\$edgeupdate\Commands\$launch" 'CommandLine' 'systray.exe' -force + ni "$p\$webvupdate\Commands\$launch" -force >''; sp "$p\$webvupdate\Commands\$launch" 'CommandLine' 'systray.exe' -force +}} + +## 7 add bundled OpenWebSearch script to redirect microsoft-edge: anti-competitive links to the default browser $MSEP = ($env:ProgramFiles,${env:ProgramFiles(x86)})[[Environment]::Is64BitOperatingSystem] + '\Microsoft\Edge\Application' +$IFEO = 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options' $MIN = ('--headless','--width 1 --height 1')[([environment]::OSVersion.Version.Build) -gt 25179] $CMD = "$env:systemroot\system32\conhost.exe $MIN" # AveYo: minimize prompt - see Terminal issue #13914 -cmd /c "reg add HKCR\microsoft-edge /f /ve /d URL:microsoft-edge >nul" -cmd /c "reg add HKCR\microsoft-edge /f /v ""URL Protocol"" /d """" >nul" -cmd /c "reg add HKCR\microsoft-edge /f /v NoOpenWith /d """" >nul" -cmd /c "reg add HKCR\microsoft-edge\shell\open\command /f /ve /d ""$DIR\ie_to_edge_stub.exe %1"" >nul" -cmd /c "reg add HKCR\MSEdgeHTM /f /v NoOpenWith /d """" >nul" -cmd /c "reg add HKCR\MSEdgeHTM\shell\open\command /f /ve /d ""$DIR\ie_to_edge_stub.exe %1"" >nul" -cmd /c "reg add ""$IFEO\ie_to_edge_stub.exe"" /f /v UseFilter /d 1 /t reg_dword >nul >nul" -cmd /c "reg add ""$IFEO\ie_to_edge_stub.exe\0"" /f /v FilterFullPath /d ""$DIR\ie_to_edge_stub.exe"" >nul" -cmd /c "reg add ""$IFEO\ie_to_edge_stub.exe\0"" /f /v Debugger /d ""$CMD $DIR\OpenWebSearch.cmd"" >nul" -cmd /c "reg add ""$IFEO\msedge.exe"" /f /v UseFilter /d 1 /t reg_dword >nul" -cmd /c "reg add ""$IFEO\msedge.exe\0"" /f /v FilterFullPath /d ""$MSEP\msedge.exe"" >nul" -cmd /c "reg add ""$IFEO\msedge.exe\0"" /f /v Debugger /d ""$CMD $DIR\OpenWebSearch.cmd"" >nul" +ni "HKLM:\SOFTWARE\Classes\microsoft-edge\shell\open\command" -force >'' +sp "HKLM:\SOFTWARE\Classes\microsoft-edge" '(Default)' 'URL:microsoft-edge' -force +sp "HKLM:\SOFTWARE\Classes\microsoft-edge" 'URL Protocol' '' -force +sp "HKLM:\SOFTWARE\Classes\microsoft-edge" 'NoOpenWith' '' -force +sp "HKLM:\SOFTWARE\Classes\microsoft-edge\shell\open\command" '(Default)' "`"$DIR\ie_to_edge_stub.exe`" %1" -force +ni "HKLM:\SOFTWARE\Classes\MSEdgeHTM\shell\open\command" -force >'' +sp "HKLM:\SOFTWARE\Classes\MSEdgeHTM" 'NoOpenWith' '' -force +sp "HKLM:\SOFTWARE\Classes\MSEdgeHTM\shell\open\command" '(Default)' "`"$DIR\ie_to_edge_stub.exe`" %1" -force +ni "$IFEO\ie_to_edge_stub.exe\0" -force >'' +sp "$IFEO\ie_to_edge_stub.exe" 'UseFilter' 1 -type Dword -force +sp "$IFEO\ie_to_edge_stub.exe\0" 'FilterFullPath' "$DIR\ie_to_edge_stub.exe" -force +sp "$IFEO\ie_to_edge_stub.exe\0" 'Debugger' "$CMD $DIR\OpenWebSearch.cmd" -force +ni "$IFEO\msedge.exe\0" -force >'' +sp "$IFEO\msedge.exe" 'UseFilter' 1 -type Dword -force +sp "$IFEO\msedge.exe\0" 'FilterFullPath' "$MSEP\msedge.exe" -force +sp "$IFEO\msedge.exe\0" 'Debugger' "$CMD $DIR\OpenWebSearch.cmd" -force $OpenWebSearch = @$ @title OpenWebSearch Redux & echo off & set ?= open start menu web search, widgets links or help in your chosen browser - by AveYo @@ -167,16 +219,18 @@ endlocal& set "URL=%.:}=!%" & exit /b rem done $@ -[io.file]::WriteAllText("$DIR\OpenWebSearch.cmd", $OpenWebSearch) >'' -## cleanup -$cleanup = gp 'Registry::HKEY_Users\S-1-5-21*\Volatile*' Edge_Removal -ea 0 -if ($cleanup) {rp $cleanup.PSPath Edge_Removal -force -ea 0} +[io.file]::WriteAllText("$DIR\OpenWebSearch.cmd", $OpenWebSearch) -write-host -nonew -fore green -back black "`n EDGE REMOVED!" +## 8 done +$done = gp 'Registry::HKEY_Users\S-1-5-21*\Volatile*' Edge_Removal -ea 0; if ($done) {rp $done.PSPath Edge_Removal -force -ea 0} +if ((get-process -name 'explorer' -ea 0) -eq $null) {start explorer} -## ask to run script as admin -'@.replace("$@","'@").replace("@$","@'") -force -ea 0; -$A = '-nop -noe -c & {iex((gp ''Registry::HKEY_Users\S-1-5-21*\Volatile*'' Edge_Removal -ea 0)[0].Edge_Removal)}' -start powershell -args $A -verb runas +## 9 bonus enter into powershell console: firefox / edge / webview to install a browser / reinstall edge or webview after removal +${.} = [char]27; $firefox = "${.}[38;2;255;165;0m firefox"; $edge = "${.}[94m edge${.}[97m"; $webview = "${.}[94mwebview ${.}[97m" +write-host "`n${.}[40;32m EDGE REMOVED! ${.}[97m -GET-ANOTHER-BROWSER? ENTER:$firefox ${.}[97m -REINSTALL? ENTER:$edge / $webview" + +## 0 ask to run script as admin +'@.replace("$@","'@").replace("@$","@'") -force -ea 0; $code='gp ''Registry::HKEY_Users\S-1-5-21*\Volatile*'' Edge_Removal -ea 0' +start powershell -args "-nop -noe -c & {iex(($code)[0].Edge_Removal)}" -verb runas $_Press_Enter #:: diff --git a/functions/private/Install-WinUtilProgramWinget.ps1 b/functions/private/Install-WinUtilProgramWinget.ps1 index 80cfb60d..13b2afde 100644 --- a/functions/private/Install-WinUtilProgramWinget.ps1 +++ b/functions/private/Install-WinUtilProgramWinget.ps1 @@ -26,7 +26,7 @@ Function Install-WinUtilProgramWinget { Start-Process -FilePath winget -ArgumentList "install -e --accept-source-agreements --accept-package-agreements --silent $Program" -NoNewWindow -Wait } if($manage -eq "Uninstalling"){ - Start-Process -FilePath winget -ArgumentList "remove -e --purge --force --silent $Program" -NoNewWindow -Wait + Start-Process -FilePath winget -ArgumentList "uninstall -e --purge --force --silent $Program" -NoNewWindow -Wait } $X++ diff --git a/functions/private/Invoke-WinUtilCurrentSystem.ps1 b/functions/private/Invoke-WinUtilCurrentSystem.ps1 index 556288ce..ba8d3022 100644 --- a/functions/private/Invoke-WinUtilCurrentSystem.ps1 +++ b/functions/private/Invoke-WinUtilCurrentSystem.ps1 @@ -26,12 +26,10 @@ Function Invoke-WinUtilCurrentSystem { $filter = Get-WinUtilVariables -Type Checkbox | Where-Object {$psitem -like "WPFInstall*"} $sync.GetEnumerator() | Where-Object {$psitem.Key -in $filter} | ForEach-Object { - $dependencies = $($sync.configs.applications.$($psitem.Key).winget -split ";") + $dependencies = @($sync.configs.applications.$($psitem.Key).winget -split ";") - Foreach ($dependency in $dependencies) { - if($dependency -in $sync.InstalledPrograms.Id){ - Write-Output $psitem.name - } + if ($dependencies[-1] -in $sync.InstalledPrograms.Id) { + Write-Output $psitem.name } } } diff --git a/winutil.ps1 b/winutil.ps1 index e6620ce1..35165168 100755 --- a/winutil.ps1 +++ b/winutil.ps1 @@ -10,7 +10,7 @@ Author : Chris Titus @christitustech Runspace Author: @DeveloperDurp GitHub : https://github.com/ChrisTitusTech - Version : 23.09.07 + Version : 23.09.13 #> Start-Transcript $ENV:TEMP\Winutil.log -Append @@ -21,7 +21,7 @@ Add-Type -AssemblyName System.Windows.Forms # variable to sync between runspaces $sync = [Hashtable]::Synchronized(@{}) $sync.PSScriptRoot = $PSScriptRoot -$sync.version = "23.09.07" +$sync.version = "23.09.13" $sync.configs = @{} $sync.ProcessRunning = $false @@ -270,7 +270,7 @@ Function Install-WinUtilProgramWinget { Start-Process -FilePath winget -ArgumentList "install -e --accept-source-agreements --accept-package-agreements --silent $Program" -NoNewWindow -Wait } if($manage -eq "Uninstalling"){ - Start-Process -FilePath winget -ArgumentList "remove -e --purge --force --silent $Program" -NoNewWindow -Wait + Start-Process -FilePath winget -ArgumentList "uninstall -e --purge --force --silent $Program" -NoNewWindow -Wait } $X++ @@ -386,12 +386,10 @@ Function Invoke-WinUtilCurrentSystem { $filter = Get-WinUtilVariables -Type Checkbox | Where-Object {$psitem -like "WPFInstall*"} $sync.GetEnumerator() | Where-Object {$psitem.Key -in $filter} | ForEach-Object { - $dependencies = $($sync.configs.applications.$($psitem.Key).winget -split ";") + $dependencies = @($sync.configs.applications.$($psitem.Key).winget -split ";") - Foreach ($dependency in $dependencies) { - if($dependency -in $sync.InstalledPrograms.Id){ - Write-Output $psitem.name - } + if ($dependencies[-1] -in $sync.InstalledPrograms.Id) { + Write-Output $psitem.name } } } @@ -2367,29 +2365,31 @@ $inputXML = '