Repository: ChrisTitusTech/winutil Branch: main Commit: edfed488e8ae Files: 246 Total size: 1002.6 KB Directory structure: gitextract_6r0r9y67/ ├── .gitattributes ├── .github/ │ ├── CODEOWNERS │ ├── CODE_OF_CONDUCT.md │ ├── CONTRIBUTING.md │ ├── FUNDING.yml │ ├── ISSUE_TEMPLATE/ │ │ ├── bug_report.yaml │ │ ├── config.yml │ │ └── feature_request.yaml │ ├── PULL_REQUEST_TEMPLATE.md │ ├── SECURITY.md │ ├── dependabot.yml │ ├── release-drafter.yml │ └── workflows/ │ ├── auto-merge-docs.yaml │ ├── close-discussion-on-pr.yaml │ ├── close-old-issues.yaml │ ├── compile-check.yaml │ ├── docs.yaml │ ├── issue-slash-commands.yaml │ ├── label-pr.yaml │ ├── pre-release.yaml │ ├── remove-winutil.yaml │ ├── sponsors.yaml │ └── unittests.yaml ├── .gitignore ├── Compile.ps1 ├── LICENSE ├── README.md ├── config/ │ ├── applications.json │ ├── appnavigation.json │ ├── dns.json │ ├── feature.json │ ├── preset.json │ ├── themes.json │ └── tweaks.json ├── docs/ │ ├── archetypes/ │ │ └── default.md │ ├── content/ │ │ ├── CONTRIBUTING.md │ │ ├── KnownIssues.md │ │ ├── _index.md │ │ ├── dev/ │ │ │ ├── _index.md │ │ │ ├── architecture.md │ │ │ ├── features/ │ │ │ │ ├── Features/ │ │ │ │ │ ├── DisableLegacyRecovery.md │ │ │ │ │ ├── EnableLegacyRecovery.md │ │ │ │ │ ├── RegBackup.md │ │ │ │ │ ├── Sandbox.md │ │ │ │ │ ├── _index.md │ │ │ │ │ ├── dotnet.md │ │ │ │ │ ├── hyperv.md │ │ │ │ │ ├── legacymedia.md │ │ │ │ │ ├── nfs.md │ │ │ │ │ └── wsl.md │ │ │ │ ├── Fixes/ │ │ │ │ │ ├── Autologin.md │ │ │ │ │ ├── DISM.md │ │ │ │ │ ├── Network.md │ │ │ │ │ ├── Update.md │ │ │ │ │ ├── Winget.md │ │ │ │ │ └── _index.md │ │ │ │ ├── Legacy-Windows-Panels/ │ │ │ │ │ ├── Computer.md │ │ │ │ │ ├── Control.md │ │ │ │ │ ├── Network.md │ │ │ │ │ ├── Power.md │ │ │ │ │ ├── Printer.md │ │ │ │ │ ├── Region.md │ │ │ │ │ ├── Restore.md │ │ │ │ │ ├── Sound.md │ │ │ │ │ ├── System.md │ │ │ │ │ ├── Timedate.md │ │ │ │ │ └── _index.md │ │ │ │ ├── Powershell-Profile-Powershell-7--Only/ │ │ │ │ │ ├── InstallPSProfile.md │ │ │ │ │ ├── UninstallPSProfile.md │ │ │ │ │ └── _index.md │ │ │ │ ├── Remote-Access/ │ │ │ │ │ ├── SSHServer.md │ │ │ │ │ └── _index.md │ │ │ │ └── _index.md │ │ │ └── tweaks/ │ │ │ ├── Customize-Preferences/ │ │ │ │ ├── BingSearch.md │ │ │ │ ├── DarkMode.md │ │ │ │ ├── DetailedBSoD.md │ │ │ │ ├── DisableCrossDeviceResume.md │ │ │ │ ├── HiddenFiles.md │ │ │ │ ├── HideSettingsHome.md │ │ │ │ ├── MouseAcceleration.md │ │ │ │ ├── MultiplaneOverlay.md │ │ │ │ ├── NewOutlook.md │ │ │ │ ├── NumLock.md │ │ │ │ ├── S3Sleep.md │ │ │ │ ├── ShowExt.md │ │ │ │ ├── StandbyFix.md │ │ │ │ ├── StartMenuRecommendations.md │ │ │ │ ├── StickyKeys.md │ │ │ │ ├── TaskView.md │ │ │ │ ├── TaskbarAlignment.md │ │ │ │ ├── TaskbarSearch.md │ │ │ │ ├── VerboseLogon.md │ │ │ │ └── _index.md │ │ │ ├── Essential-Tweaks/ │ │ │ │ ├── Activity.md │ │ │ │ ├── ConsumerFeatures.md │ │ │ │ ├── DeleteTempFiles.md │ │ │ │ ├── DisableExplorerAutoDiscovery.md │ │ │ │ ├── DisableStoreSearch.md │ │ │ │ ├── DiskCleanup.md │ │ │ │ ├── EndTaskOnTaskbar.md │ │ │ │ ├── Hiber.md │ │ │ │ ├── Location.md │ │ │ │ ├── Powershell7Tele.md │ │ │ │ ├── RestorePoint.md │ │ │ │ ├── RevertStartMenu.md │ │ │ │ ├── Services.md │ │ │ │ ├── Telemetry.md │ │ │ │ ├── WPBT.md │ │ │ │ ├── Widget.md │ │ │ │ └── _index.md │ │ │ ├── Performance-Plans/ │ │ │ │ ├── AddUltPerf.md │ │ │ │ ├── RemoveUltPerf.md │ │ │ │ └── _index.md │ │ │ ├── _index.md │ │ │ └── z--Advanced-Tweaks---CAUTION/ │ │ │ ├── BlockAdobeNet.md │ │ │ ├── BraveDebloat.md │ │ │ ├── DeBloat.md │ │ │ ├── DisableBGapps.md │ │ │ ├── DisableFSO.md │ │ │ ├── DisableIPv6.md │ │ │ ├── DisableNotifications.md │ │ │ ├── Display.md │ │ │ ├── EdgeDebloat.md │ │ │ ├── IPv46.md │ │ │ ├── OOSUbutton.md │ │ │ ├── RazerBlock.md │ │ │ ├── RemoveCopilot.md │ │ │ ├── RemoveEdge.md │ │ │ ├── RemoveGallery.md │ │ │ ├── RemoveHome.md │ │ │ ├── RemoveOneDrive.md │ │ │ ├── RightClickMenu.md │ │ │ ├── Storage.md │ │ │ ├── Teredo.md │ │ │ ├── UTC.md │ │ │ ├── XboxRemoval.md │ │ │ ├── _index.md │ │ │ └── changedns.md │ │ ├── faq.md │ │ └── userguide/ │ │ ├── _index.md │ │ ├── application/ │ │ │ └── _index.md │ │ ├── automation/ │ │ │ └── _index.md │ │ ├── features/ │ │ │ └── _index.md │ │ ├── getting-started/ │ │ │ └── _index.md │ │ ├── tweaks/ │ │ │ └── _index.md │ │ ├── updates/ │ │ │ └── _index.md │ │ └── win11Creator/ │ │ └── _index.md │ ├── go.mod │ ├── go.sum │ ├── hugo.toml │ ├── i18n/ │ │ └── en.yaml │ ├── layouts/ │ │ └── shortcodes/ │ │ ├── autolinks.html │ │ └── image.html │ └── static/ │ ├── CNAME │ └── site.webmanifest ├── functions/ │ ├── private/ │ │ ├── Add-SelectedAppsMenuItem.ps1 │ │ ├── Find-AppsByNameOrDescription.ps1 │ │ ├── Find-TweaksByNameOrDescription.ps1 │ │ ├── Get-LocalizedYesNo.ps1 │ │ ├── Get-WPFObjectName.ps1 │ │ ├── Get-WinUtilInstallerProcess.ps1 │ │ ├── Get-WinUtilSelectedPackages.ps1 │ │ ├── Get-WinUtilToggleStatus.ps1 │ │ ├── Get-WinUtilVariables.ps1 │ │ ├── Hide-WPFInstallAppBusy.ps1 │ │ ├── Initialize-InstallAppArea.ps1 │ │ ├── Initialize-InstallAppEntry.ps1 │ │ ├── Initialize-InstallCategoryAppList.ps1 │ │ ├── Install-WinUtilChoco.ps1 │ │ ├── Install-WinUtilProgramChoco.ps1 │ │ ├── Install-WinUtilProgramWinget.ps1 │ │ ├── Install-WinUtilWinget.ps1 │ │ ├── Invoke-WinUtilAssets.ps1 │ │ ├── Invoke-WinUtilCurrentSystem.ps1 │ │ ├── Invoke-WinUtilExplorerUpdate.ps1 │ │ ├── Invoke-WinUtilFeatureInstall.ps1 │ │ ├── Invoke-WinUtilFontScaling.ps1 │ │ ├── Invoke-WinUtilISO.ps1 │ │ ├── Invoke-WinUtilISOScript.ps1 │ │ ├── Invoke-WinUtilISOUSB.ps1 │ │ ├── Invoke-WinUtilInstallPSProfile.ps1 │ │ ├── Invoke-WinUtilSSHServer.ps1 │ │ ├── Invoke-WinUtilScript.ps1 │ │ ├── Invoke-WinUtilSponsors.ps1 │ │ ├── Invoke-WinUtilTweaks.ps1 │ │ ├── Invoke-WinUtilUninstallPSProfile.ps1 │ │ ├── Invoke-WinutilThemeChange.ps1 │ │ ├── Remove-WinUtilAPPX.ps1 │ │ ├── Reset-WPFCheckBoxes.ps1 │ │ ├── Set-Preferences.ps1 │ │ ├── Set-WinUtilDNS.ps1 │ │ ├── Set-WinUtilProgressbar.ps1 │ │ ├── Set-WinUtilRegistry.ps1 │ │ ├── Set-WinUtilScheduledTask.ps1 │ │ ├── Set-WinUtilService.ps1 │ │ ├── Set-WinUtilTaskbarItem.ps1 │ │ ├── Show-CustomDialog.ps1 │ │ ├── Show-WPFInstallAppBusy.ps1 │ │ ├── Test-WinUtilPackageManager.ps1 │ │ ├── Update-WinUtilProgramWinget.ps1 │ │ └── Update-WinUtilSelections.ps1 │ └── public/ │ ├── Initialize-WPFUI.ps1 │ ├── Invoke-WPFButton.ps1 │ ├── Invoke-WPFFeatureInstall.ps1 │ ├── Invoke-WPFFixesNetwork.ps1 │ ├── Invoke-WPFFixesUpdate.ps1 │ ├── Invoke-WPFFixesWinget.ps1 │ ├── Invoke-WPFGetInstalled.ps1 │ ├── Invoke-WPFImpex.ps1 │ ├── Invoke-WPFInstall.ps1 │ ├── Invoke-WPFInstallUpgrade.ps1 │ ├── Invoke-WPFOOSU.ps1 │ ├── Invoke-WPFPanelAutologin.ps1 │ ├── Invoke-WPFPopup.ps1 │ ├── Invoke-WPFPresets.ps1 │ ├── Invoke-WPFRunspace.ps1 │ ├── Invoke-WPFSSHServer.ps1 │ ├── Invoke-WPFSelectedCheckboxesUpdate.ps1 │ ├── Invoke-WPFSystemRepair.ps1 │ ├── Invoke-WPFTab.ps1 │ ├── Invoke-WPFToggleAllCategories.ps1 │ ├── Invoke-WPFUIElements.ps1 │ ├── Invoke-WPFUIThread.ps1 │ ├── Invoke-WPFUltimatePerformance.ps1 │ ├── Invoke-WPFUnInstall.ps1 │ ├── Invoke-WPFUpdatesdefault.ps1 │ ├── Invoke-WPFUpdatesdisable.ps1 │ ├── Invoke-WPFUpdatessecurity.ps1 │ ├── Invoke-WPFtweaksbutton.ps1 │ ├── Invoke-WPFundoall.ps1 │ ├── Invoke-WinUtilAutoRun.ps1 │ ├── Invoke-WinUtilRemoveEdge.ps1 │ └── Show-CTTLogo.ps1 ├── lint/ │ └── PSScriptAnalyser.ps1 ├── overrides/ │ └── main.html ├── pester/ │ ├── configs.Tests.ps1 │ └── functions.Tests.ps1 ├── scripts/ │ ├── main.ps1 │ └── start.ps1 ├── sign.bat ├── tools/ │ ├── Invoke-Preprocessing.ps1 │ ├── autounattend.xml │ ├── devdocs-generator.md │ └── devdocs-generator.ps1 ├── windev.ps1 └── xaml/ └── inputXML.xaml ================================================ FILE CONTENTS ================================================ ================================================ FILE: .gitattributes ================================================ * text=auto *.ps1 text eol=crlf *.json text eol=crlf *.cfg text eol=crlf *.png binary *.jpg binary config/* diff config/applications.json diff *.json diff ================================================ FILE: .github/CODEOWNERS ================================================ # Chris rules EVERYTHING (including paths listed below) * @ChrisTitusTech ================================================ FILE: .github/CODE_OF_CONDUCT.md ================================================ # Contributor Covenant Code of Conduct ## Our Pledge We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation. We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community. ## Our Standards Examples of behavior that contributes to a positive environment for our community include: * Demonstrating empathy and kindness toward other people * Being respectful of differing opinions, viewpoints, and experiences * Giving and gracefully accepting constructive feedback * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience * Focusing on what is best not just for us as individuals, but for the overall community Examples of unacceptable behavior include: * The use of sexualized language or imagery, and sexual attention or advances of any kind * Trolling, insulting or derogatory comments, and personal or political attacks * Public or private harassment * Publishing others' private information, such as a physical or email address, without their explicit permission * Other conduct which could reasonably be considered inappropriate in a professional setting ## Enforcement Responsibilities Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful. Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate. ## Scope This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. ## Enforcement Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at contact@christitus.com. All complaints will be reviewed and investigated promptly and fairly. All community leaders are obligated to respect the privacy and security of the reporter of any incident. ## Enforcement Guidelines Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct: ### 1. Correction **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community. **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested. ### 2. Warning **Community Impact**: A violation through a single incident or series of actions. **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban. ### 3. Temporary Ban **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior. **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban. ### 4. Permanent Ban **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals. **Consequence**: A permanent ban from any sort of public interaction within the community. ## Attribution This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0, available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html. Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity). [homepage]: https://www.contributor-covenant.org For answers to common questions about this code of conduct, see the FAQ at https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations. ================================================ FILE: .github/CONTRIBUTING.md ================================================ # How to Contribute? ## Testing * Test the latest changes to WinUtil by running the pre-release and reporting issues you are encountering to help us continually improve WinUtil! #### **Run the latest pre-release** ```ps1 irm https://christitus.com/windev | iex ``` !!! bug "Keep in mind" This is a pre-release and should be treated as such. It exists for developers to test the utility and report or fix bugs before they get added to the stable release. Don't use it in production! ## Issues * If you encounter any challenges or problems with the script, I kindly request that you submit them via the "Issues" tab on the GitHub repository. By filling out the provided template, you can provide specific details about the issue, allowing me (and others in the community) to promptly address any bugs or consider feature requests. ## Contribute Code * Pull requests are now handled directly on the **MAIN branch**. This was done since we can now select specific releases to launch via releases in GitHub. * If you're doing code changes, then you can submit a PR to `main` branch, but I am very selective about these. !!! warning "Important" Do not use a code formatter, make massive amounts of line changes, or make multiple feature changes. EACH FEATURE CHANGE SHOULD BE IT'S OWN PULL REQUEST! * When creating pull requests, it is essential to thoroughly document all changes made. This includes, but is not limited to, documenting any additions made to the `tweaks` section and corresponding `undo tweak`, so users are able to remove the newly added tweaks if necessary, and comprehensive documentation is required for all code changes. Document your changes and briefly explain why you made your changes in your Pull Request Description. Failure to adhere to this format may result in the denial of the pull request. Additionally, any code lacking sufficient documentation may also be denied. * By following these guidelines, we can maintain a high standard of quality and ensure that the codebase remains organized and well-documented. !!! note When creating a function, please include "WPF" or "WinUtil" in the file name so it can be loaded into the runspace. ## Walk through * This is a guide for beginners. If you are still having issues, look at the following official GitHub documentation: * [Commit through WEB](https://docs.github.com/en/pull-requests/committing-changes-to-your-project/creating-and-editing-commits/about-commits) * [Commit through GitHub Desktop](https://docs.github.com/en/desktop/making-changes-in-a-branch/committing-and-reviewing-changes-to-your-project-in-github-desktop#about-commits) * [Create a Pull Request](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request) ### Overview ``` mermaid %%{init: {"flowchart": {"curve": "cardinal"}} }%% graph TD   A[Fork Project] --> B[Clone Repository];   B --> C[Create New Branch];   C --> D[Make Changes];   D --> G[Test Changes];   G --> H{Tests Passed?};   H -->|Yes| E[Commit Changes];   H -->|No| J[Fix Issues];   J --> G;   E --> F[Push Branch];   F --> K[Create Pull Request];   K --> L[Fill out PR template]; classDef default stroke:#333,stroke-width:4px,font-size:12pt; ``` !!! info This is a diagram to guide you through the process. It may vary depending on the type of change you're making. ### Fork the Repo * Fork the WinUtil Repository [here](https://github.com/ChrisTitusTech/winutil) to create a copy that will be available in your repository list. ![Fork Image](/docs/assets/images/Fork-Button-Dark.png#gh-dark-mode-only) ![Fork Image](/docs/assets/images/Fork-Button-Light.png#only-light#gh-light-mode-only) ### Clone the Fork !!! tip While you can make your changes directly through the Web, we recommend cloning the repo to your device using the application GitHub Desktop (available in WinUtil) to test your fork easily. * Install GitHub Desktop if it is not already installed. * Log in using the same GitHub account you used to fork WinUtil. * Choose the fork under "Your Repositories" and press "clone {repo name}" * Create a new branch and name it something relatable to your changes. * Now you can modify WinUtil to your liking using your preferred text editor. ### Testing your changes * To test to see if your changes work as intended run following commands in a powershell terminal as admin: * Change the directory where you are running the commands to the forked project. * `cd {path to the folder with the compile.ps1}` * Run the following command to compile and run WinUtil: * `.\Compile.ps1 -run` ![Compile](/docs/assets/images/Complie.png) * After seeing that your changes work properly, feel free to commit the changes to the repository and make a PR. For help on that, follow the documentation below. ### Committing the changes * Before committing your changes, please discard changes made to the `winutil.ps1` file, like the following: ![Push Commit Image](/docs/assets/images/Discard-GHD.png) * Now, commit your changes once you are happy with the result. ![Commit Image](/docs/assets/images/Commit-GHD.png) * Push the changes to upload them to your fork on github.com. ![Push Commit Image](/docs/assets/images/Push-Commit.png) ### Making a PR * To make a PR on your repo under a new branch linking to the main branch, a button will show and say Preview and Create pull request. Click that button and fill in all the information that is provided on the template. Once all the information is filled in correctly, check your PR to make sure there is not a WinUtil.ps1 file attached to the PR. Once everything is good, make the PR and wait for Chris (the maintainer) to accept or deny your PR. Once it is accepted by Chris, you will be able to see your changes in the "/windev" build. * If you do not see your feature in the main "/win" build, that is fine. All new changes go into the /windev build to make sure everything is working OK before going fully public. * Congratulations! You just submitted your first PR. Thank you so much for contributing to WinUtil. ================================================ FILE: .github/FUNDING.yml ================================================ custom: https://www.cttstore.com/windows-toolbox github: christitustech ================================================ FILE: .github/ISSUE_TEMPLATE/bug_report.yaml ================================================ name: "Bug report" description: "Report a bug to help us identify and fix issues in the project." labels: ["bug"] body: - type: markdown attributes: value: | - Remember, we only support Windows 11. If you encounter problems on Windows 10, please consider upgrading to Windows 11. - For general questions, join our Community-driven [Discord Server](https://discord.gg/RUbZUZyByQ). - type: dropdown id: affected_part attributes: label: What part of Winutil are you having issues with? options: - Program Install Tab - Tweaks Tab - Config Tab - Updates Tab - Win11 Creator Tab validations: required: false - type: textarea id: issue_description attributes: label: Provide a clear and concise description of the issue. validations: required: true - type: textarea id: error_output attributes: label: Paste the full error output (if available) or Screenshot. placeholder: "Include any relevant logs or error messages." ================================================ FILE: .github/ISSUE_TEMPLATE/config.yml ================================================ blank_issues_enabled: false contact_links: - name: 💻 Community Discord url: https://discord.gg/RUbZUZyByQ about: Join our Community Discord server to chat with other users in the Winutil community. ================================================ FILE: .github/ISSUE_TEMPLATE/feature_request.yaml ================================================ name: "Feature request" description: "Suggest a new feature or improvement for the project." labels: ["enhancement"] body: - type: markdown attributes: value: | # ✨ **Feature request** Thank you for taking the time to suggest a feature! Please provide as much detail as possible to help us understand and evaluate your request. ## ⚠️ **IMPORTANT** - 🛠️ **Supported environments only:** We only support Windows 11. - 💡 For general questions, use the [Discussions section](https://github.com/Christitustech/winutil/discussions) or join our Community-driven [Discord Server](https://discord.gg/RUbZUZyByQ). - type: textarea id: proposed_solution attributes: label: 💡 Describe the solution you'd like placeholder: "Provide a clear and concise description." validations: required: true ================================================ FILE: .github/PULL_REQUEST_TEMPLATE.md ================================================ ## Type of Change - [ ] New feature - [ ] Bug fix - [ ] Documentation update - [ ] UI/UX improvement ## Description ## Issue related to PR - Resolves # ================================================ FILE: .github/SECURITY.md ================================================ # Security Policy If you find a security issue please make post it in the issues tab. If you think it should be private you can email me at contact@christitus.com. For immediate response check out our discord server @ [![](https://dcbadge.limes.pink/api/server/https://discord.gg/RUbZUZyByQ?theme=default-inverted&style=for-the-badge)](https://discord.gg/RUbZUZyByQ) ================================================ FILE: .github/dependabot.yml ================================================ version: 2 updates: - package-ecosystem: "github-actions" directory: "/" schedule: interval: "weekly" ignore: - dependency-name: "actions/stale" versions: '>= 9' ================================================ FILE: .github/release-drafter.yml ================================================ tag-prefix: '' categories: - title: '🚀 Features' labels: - 'feature' - 'enhancement' - 'new feature' - title: '🐛 Bug Fixes' labels: - 'hotfix' - 'bugfix' - 'bug' - title: '📚 Documentation' label: 'documentation' - title: '🎨 UI/UX Improvements' label: 'ui update' change-template: '- $TITLE @$AUTHOR (#$NUMBER)' template: | ## Changes $CHANGES change-title-escapes: '\<*_&"''' autolabeler: - label: 'documentation' files: - '*.md' branch: - '/docs{0,1}\/.+/' - label: 'bug' branch: - '/fix\/.+/' title: - '/fix/i' - label: 'new feature' branch: - '/feature\/.+/' body: - '/[A-Z]+-[0-9]+/' - label: 'documentation' files: - '**/*.md' - 'docs/**/*' replacers: - search: /"/g replace: '' - search: /'/g replace: '' exclude-labels: - 'skip-changelog' filter-by-commitish: true ================================================ FILE: .github/workflows/auto-merge-docs.yaml ================================================ name: Auto-merge Docs PRs on: pull_request: types: [opened, synchronize, reopened] branches: - main jobs: auto-merge: if: github.event.pull_request.head.ref == 'docs-update' && (github.event.pull_request.user.login == 'ChrisTitusTech' || github.event.pull_request.user.login == 'github-actions[bot]') runs-on: ubuntu-latest permissions: pull-requests: write contents: write steps: - name: Checkout uses: actions/checkout@v6 - name: Auto-approve PR if: github.event.pull_request.user.login == 'github-actions[bot]' run: gh pr review "$PR_NUMBER" --approve env: PR_NUMBER: ${{ github.event.pull_request.number }} GH_TOKEN: ${{ secrets.AUTO_MERGE }} - name: Enable auto-merge run: gh pr merge "$PR_NUMBER" --squash --delete-branch --admin env: PR_NUMBER: ${{ github.event.pull_request.number }} GH_TOKEN: ${{ secrets.AUTO_MERGE }} ================================================ FILE: .github/workflows/close-discussion-on-pr.yaml ================================================ name: Close Discussion on PR Merge on: pull_request: types: [closed] jobs: closeDiscussion: runs-on: ubuntu-latest steps: - name: Checkout repository uses: actions/checkout@v6 - name: Check if PR was merged if: github.event.pull_request.merged == true run: echo "PR was merged" - name: Extract Discussion Number & Close If any Were Found env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} if: github.event.pull_request.merged == true id: extract-discussion run: | pr_body="${{ github.event.pull_request.body }}" discussion_ids=$(echo "$pr_body" | grep -oP '(?i)(resolve|fix|close)[s|d]? #\K[0-9]+') if [ -z "$discussion_ids" ]; then echo "No discussion IDs found." exit 0 fi for discussion_id in $discussion_ids; do echo "Attempting to close discussion #$discussion_id" response=$(curl -s -X PATCH -H "Authorization: token $GITHUB_TOKEN" \ -H "Accept: application/vnd.github.v3+json" \ -d '{"state": "closed"}' \ "https://api.github.com/repos/${{ github.repository }}/discussions/$discussion_id") if echo "$response" | jq -e '.id' > /dev/null; then echo "Successfully closed discussion #$discussion_id" else error_message=$(echo "$response" | jq -r '.message // "Unknown error"') echo "Warning: Failed to close discussion #$discussion_id. Error: $error_message" echo "Full response: $response" fi done shell: bash continue-on-error: true ================================================ FILE: .github/workflows/close-old-issues.yaml ================================================ name: Close Inactive Issues on: schedule: - cron: '0 0 * * *' # Run daily workflow_dispatch: # This line enables manual triggering jobs: close-issues: runs-on: ubuntu-latest permissions: issues: write # Ensure necessary permissions for issues pull-requests: none contents: none steps: - name: Close inactive issues uses: actions/stale@v10 with: # A list of labels to reference when looking through issues, # and only when one (or even more) of these labels are found.. # then skip this issue, and never try to stale and/or close it. exempt-issue-labels: "Keep Issue Open" # Split it into two weeks, after one week the issue will be marked as stale, # after another week have pasted without any update.. the issue will then be closed. days-before-issue-stale: 90 days-before-issue-close: 365 # NEVER mark PRs as Stale or Close + this workflow should never have write permissions on PRs, EVER! days-before-pr-stale: -1 days-before-pr-close: -1 # Sends a message for both the Stale and Close events of an issue. stale-issue-message: "This issue was marked as stale due to inactivity." close-issue-message: "This issue was closed after remaining stale without updates." # Increase this value if the project receives a lot of # PRs (yes.. apparently they're processed no matter what) & Issues. # Default value for it (according to the docs) is 30 operations-per-run: 200 # Make this field equal true if you want to test your configuration if it works correctly or not debug-only: false repo-token: ${{ secrets.GITHUB_TOKEN }} ================================================ FILE: .github/workflows/compile-check.yaml ================================================ name: Compile & Check on: push: branches: ["main"] pull_request: branches: ["main"] workflow_dispatch: # Manual trigger added workflow_call: # Allow other Actions to call this workflow jobs: Compile-and-Check: runs-on: windows-latest steps: - name: Checkout Sources uses: actions/checkout@v6 - name: Compile and Syntaxcheck winutil.ps1 shell: pwsh run: | Set-ExecutionPolicy Bypass -Scope Process -Force; ./Compile.ps1 continue-on-error: false # Directly fail the job on error, removing the need for a separate check ================================================ FILE: .github/workflows/docs.yaml ================================================ name: Deploy Hugo site to Pages on: push: branches: - main paths: - "docs/**" - "config/tweaks.json" - "config/feature.json" - "functions/**" workflow_dispatch: permissions: contents: read pages: write id-token: write pull-requests: write concurrency: group: "pages" cancel-in-progress: false defaults: run: shell: bash jobs: build: if: github.repository == 'ChrisTitusTech/winutil' runs-on: ubuntu-latest env: HUGO_VERSION: 0.156.0 HUGO_ENVIRONMENT: production TZ: America/Chicago steps: - name: Install Hugo CLI run: | wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \ && sudo dpkg -i ${{ runner.temp }}/hugo.deb - name: Checkout uses: actions/checkout@v6 with: submodules: recursive fetch-depth: 0 persist-credentials: false - name: Setup Pages id: pages uses: actions/configure-pages@v5 - name: Generate Dev Docs from JSON shell: pwsh run: | Set-Location tools ./devdocs-generator.ps1 - name: Create Pull Request id: cpr uses: peter-evans/create-pull-request@v8 with: token: ${{ secrets.AUTO_MERGE }} commit-message: 'chore: Update generated dev docs' title: 'chore: Update Generated Dev Docs' body: 'Automated update of generated documentation from JSON sources' branch: docs-update delete-branch: true add-paths: | docs/content/dev/ config/tweaks.json config/feature.json labels: | automated documentation - name: Check outputs run: | echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}" echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}" - name: Install Node.js dependencies run: "cd docs && [[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true" - name: Cache Restore id: cache-restore uses: actions/cache/restore@v5 with: path: | ${{ runner.temp }}/hugo_cache key: hugo-${{ github.run_id }} restore-keys: hugo- - name: Build with Hugo run: | hugo \ --gc \ --minify \ --cleanDestinationDir \ --source docs \ --cacheDir "${{ runner.temp }}/hugo_cache" - name: Cache Save id: cache-save uses: actions/cache/save@v5 with: path: | ${{ runner.temp }}/hugo_cache key: ${{ steps.cache-restore.outputs.cache-primary-key }} - name: Upload artifact uses: actions/upload-pages-artifact@v4 with: path: ./docs/public deploy: if: github.repository == 'ChrisTitusTech/winutil' environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest needs: build steps: - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v4 ================================================ FILE: .github/workflows/issue-slash-commands.yaml ================================================ name: Issue slash commands on: issue_comment: types: [created, edited] jobs: issueCommands: # Skip this job if the comment was created/edited on a PR if: ${{ !github.event.issue.pull_request }} runs-on: ubuntu-latest permissions: issues: write pull-requests: none contents: read steps: - run: echo "command=false" >> $GITHUB_ENV - name: Check for /label command id: check_label_command run: | if [[ "${{ contains(github.event.comment.body, '/label') }}" == "true" ]]; then echo "command=true" >> $GITHUB_ENV LABEL_NAME=$(echo "${{ github.event.comment.body }}" | awk -F"/label" '/\/label/ { match($2, /'\''([^'\'']*)'\''/, arr); if (arr[1] != "") print arr[1] }') echo "label_command=true" >> $GITHUB_ENV echo "label_name=${LABEL_NAME}" >> $GITHUB_ENV else echo "label_command=false" >> $GITHUB_ENV fi - name: Check for /unlabel command id: check_unlabel_command run: | if [[ "${{ contains(github.event.comment.body, '/unlabel') }}" == "true" ]]; then echo "command=true" >> $GITHUB_ENV UNLABEL_NAME=$(echo "${{ github.event.comment.body }}" | awk -F"/unlabel" '/\/unlabel/ { match($2, /'\''([^'\'']*)'\''/, arr); if (arr[1] != "") print arr[1] }') echo "unlabel_command=true" >> $GITHUB_ENV echo "unlabel_name=${UNLABEL_NAME}" >> $GITHUB_ENV else echo "unlabel_command=false" >> $GITHUB_ENV fi - name: Check for /close command id: check_close_command run: | if [[ "${{ contains(github.event.comment.body, '/close') }}" == "true" ]]; then echo "command=true" >> $GITHUB_ENV echo "close_command=true" >> $GITHUB_ENV echo "reopen_command=false" >> $GITHUB_ENV else echo "close_command=false" >> $GITHUB_ENV fi - name: Check for /open or /reopen command id: check_reopen_command run: | if [[ "${{ contains(github.event.comment.body, '/open') }}" == "true" ]] || [[ "${{ contains(github.event.comment.body, '/reopen') }}" == "true" ]]; then echo "command=true" >> $GITHUB_ENV echo "reopen_command=true" >> $GITHUB_ENV echo "close_command=false" >> $GITHUB_ENV else echo "reopen_command=false" >> $GITHUB_ENV fi - name: Check if the user is allowed id: check_user if: env.command == 'true' run: | ALLOWED_USERS=("ChrisTitusTech" "og-mrk" "Marterich" "MyDrift-user" "Real-MullaC" "CodingWonders" "GabiNun") if [[ " ${ALLOWED_USERS[@]} " =~ " ${{ github.event.comment.user.login }} " ]]; then echo "user=true" >> $GITHUB_ENV else exit 0 fi - name: Close issue if: env.close_command == 'true' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} ISSUE_NUMBER: ${{ github.event.issue.number }} run: | echo Closing the issue... if [[ "${{ contains(github.event.comment.body, 'not planned') }}" == "true" ]]; then gh issue close $ISSUE_NUMBER --repo ${{ github.repository }} --reason 'not planned' else gh issue close $ISSUE_NUMBER --repo ${{ github.repository }} fi - name: Reopen issue if: env.reopen_command == 'true' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} ISSUE_NUMBER: ${{ github.event.issue.number }} run: | echo Reopening the issue... gh issue reopen $ISSUE_NUMBER --repo ${{ github.repository }} - name: Label issue if: env.label_command == 'true' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} ISSUE_NUMBER: ${{ github.event.issue.number }} run: | echo Labeling the issue... gh issue edit $ISSUE_NUMBER --repo ${{ github.repository }} --add-label "${{ env.label_name }}" - name: Remove labels if: env.unlabel_command == 'true' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} ISSUE_NUMBER: ${{ github.event.issue.number }} run: | echo Unlabeling the issue... gh issue edit $ISSUE_NUMBER --repo ${{ github.repository }} --remove-label "${{ env.unlabel_name }}" ================================================ FILE: .github/workflows/label-pr.yaml ================================================ name: Label PRs by Type of Change on: pull_request_target: types: [opened, edited, synchronize] jobs: label-pr: runs-on: ubuntu-latest permissions: pull-requests: write issues: write contents: read # Often needed for github-script steps: - name: Check PR body for Type of Change uses: actions/github-script@v8 with: script: | const prBody = context.payload.pull_request.body || ''; const labelsToAdd = []; if (/\[x\]\s*New feature/i.test(prBody)) { labelsToAdd.push('new feature'); } if (/\[x\]\s*Bug fix/i.test(prBody)) { labelsToAdd.push('bug'); } if (/\[x\]\s*Documentation update/i.test(prBody)) { labelsToAdd.push('documentation'); } if (/\[x\]\s*Hotfix/i.test(prBody)) { labelsToAdd.push('hotfix'); } if (/\[x\]\s*UI\/UX improvement/i.test(prBody)) { labelsToAdd.push('ui update'); } if (labelsToAdd.length > 0) { await github.rest.issues.addLabels({ owner: context.repo.owner, repo: context.repo.repo, issue_number: context.payload.pull_request.number, labels: labelsToAdd }); } ================================================ FILE: .github/workflows/pre-release.yaml ================================================ name: Pre-Release WinUtil permissions: contents: write actions: read pull-requests: write on: workflow_dispatch: # Manual trigger added jobs: build-runspace: runs-on: windows-latest env: CERTIFICATE_BASE64: ${{ secrets.CERTIFICATE_BASE64 }} steps: - name: Checkout Repository uses: actions/checkout@v6 - name: Generate Dev Docs and Update JSON Links shell: pwsh run: | Set-Location tools ./devdocs-generator.ps1 - name: Compile project shell: pwsh run: | Set-ExecutionPolicy Bypass -Scope Process -Force; ./Compile.ps1 continue-on-error: false # Directly fail the job on error, removing the need for a separate check - name: Create Pull Request for Updated JSON Links id: cpr uses: peter-evans/create-pull-request@v8 with: token: ${{ secrets.AUTO_MERGE }} commit-message: 'chore: Update documentation links in JSON configs' title: 'chore: Update Generated Dev Docs' body: 'Automated update of documentation links in JSON configs from pre-release build' branch: docs-update delete-branch: true add-paths: | config/tweaks.json config/feature.json labels: | automated documentation - name: Check outputs shell: bash run: | echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}" echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}" - name: Set Version to Todays Date id: extract_version run: | $version = (Get-Date -Format "yy.MM.dd") echo "VERSION=$version" >> $env:GITHUB_ENV shell: pwsh - name: Create Tag id: create_tag run: | $tagExists = git tag -l $env:VERSION if ($tagExists -eq "") { git tag $env:VERSION if ($LASTEXITCODE -ne 0) { Write-Error "Failed to create tag $env:VERSION" exit 1 } git push origin $env:VERSION if ($LASTEXITCODE -ne 0) { Write-Error "Failed to push tag $env:VERSION" exit 1 } } else { Write-Host "Tag $env:VERSION already exists, skipping tag creation" } shell: pwsh - name: Generate Release Notes id: generate_notes uses: release-drafter/release-drafter@v7 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: config-name: release-drafter.yml version: ${{ env.VERSION }} - name: Create and Upload Release id: create_release uses: softprops/action-gh-release@v2 with: tag_name: ${{ env.VERSION }} name: Pre-Release ${{ env.VERSION }} body: | ${{ steps.generate_notes.outputs.body }} ![GitHub Downloads (specific asset, specific tag)](https://img.shields.io/github/downloads/ChrisTitusTech/winutil/${{ env.VERSION }}/winutil.ps1) append_body: false files: ./winutil.ps1 prerelease: true env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} ================================================ FILE: .github/workflows/remove-winutil.yaml ================================================ name: Remove winutil.ps1 if included in a Push on: push: branches: - '**' jobs: check-and-delete-file: runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v6 - name: Check if winutil.ps1 exists id: check_existence run: | if [ -f "winutil.ps1" ]; then echo "winutil_exists=true" >> $GITHUB_OUTPUT else echo "winutil_exists=false" >> $GITHUB_OUTPUT fi - name: Delete winutil.ps1 if it exists if: steps.check_existence.outputs.winutil_exists == 'true' run: | git config --global user.email "winutil-action@noreply.github.com" git config --global user.name "winutil-action" git rm winutil.ps1 git commit -m "Delete winutil.ps1 as it is not allowed" git push origin HEAD:${{ github.ref }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} ================================================ FILE: .github/workflows/sponsors.yaml ================================================ name: Generate Sponsors README on: workflow_dispatch: schedule: - cron: 30 15 * * 0-6 permissions: contents: write pull-requests: write jobs: deploy: runs-on: ubuntu-latest if: (github.event_name == 'schedule' && github.repository == 'ChrisTitusTech/winutil') || (github.event_name != 'schedule') steps: - name: Checkout 🛎️ uses: actions/checkout@v6 with: persist-credentials: false - name: Generate Sponsors 💖 uses: JamesIves/github-sponsors-readme-action@v1 with: token: ${{ secrets.PAT }} file: 'README.md' - name: Create Pull Request 🚀 id: cpr uses: peter-evans/create-pull-request@v8 with: token: ${{ secrets.GITHUB_TOKEN }} commit-message: 'Update sponsors in README' title: 'chore: Update Sponsors README' body: 'Automated update of sponsors section' branch: sponsors-update delete-branch: true labels: automated - name: Check outputs run: | echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}" echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}" ================================================ FILE: .github/workflows/unittests.yaml ================================================ name: Unit Tests on: push: jobs: lint: name: PS Script Analyzer runs-on: ubuntu-latest steps: - uses: actions/checkout@v6 - name: lint uses: devblackops/github-action-psscriptanalyzer@master with: sendComment: false settingsPath: lint/PSScriptAnalyser.ps1 failOnErrors: false failOnWarnings: false failOnInfos: false test: runs-on: windows-latest steps: - name: Checkout code uses: actions/checkout@v6 - name: Install Pester run: | Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process Install-Module -Name Pester -Force -SkipPublisherCheck -AllowClobber shell: pwsh - name: Run Pester tests run: | Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process Invoke-Pester -Path 'pester/*.Tests.ps1' -Output Detailed shell: pwsh env: TEMP: ${{ runner.temp }} ================================================ FILE: .gitignore ================================================ ### VSCode ### # Configuration folder .vscode/ .idea/ ### Visual Studio ### # Visual Studio user-specific files .vs/ winutil.pdb ### Preprocessor Hashes ### .preprocessor_hashes.json ### Windows ### # Folder config file [Dd]esktop.ini # Ignore Generated XAML Files xaml/inputApp.xaml xaml/inputFeatures.xaml xaml/inputTweaks.xaml # Executables and Configs winget.msixbundle pester.ps1 *.psd* ooshutup10.cfg winutil.exe.config Microsoft.UI.Xaml* license1.xml winutil.ps1 # Libraries System.Management.Automation.dll Microsoft.PowerShell.ConsoleHost.dll # Compressed files *.zip ### MacOS ### # General .DS_Store True test.ps1 winutil.ps1 # temporary excludes for docs .github/site/ binary/ .preprocessor_hashes.json # Hugo Files docs/public/ docs/.hugo_build.lock docs/resources/ ================================================ FILE: Compile.ps1 ================================================ param ( [switch]$Run, [string]$Arguments ) if ((Get-Item ".\winutil.ps1" -ErrorAction SilentlyContinue).IsReadOnly) { Remove-Item ".\winutil.ps1" -Force } $OFS = "`r`n" $scriptname = "winutil.ps1" $workingdir = $PSScriptRoot # Variable to sync between runspaces $sync = [Hashtable]::Synchronized(@{}) $sync.configs = @{} function Update-Progress { param ( [Parameter(Mandatory, position=0)] [string]$StatusMessage, [Parameter(Mandatory, position=1)] [ValidateRange(0,100)] [int]$Percent, [Parameter(position=2)] [string]$Activity = "Compiling" ) Write-Progress -Activity $Activity -Status $StatusMessage -PercentComplete $Percent } Update-Progress "Pre-req: Running Preprocessor..." 0 # Dot source the 'Invoke-Preprocessing' Function from 'tools/Invoke-Preprocessing.ps1' Script $preprocessingFilePath = ".\tools\Invoke-Preprocessing.ps1" . $preprocessingFilePath $excludedFiles = @() # Add directories only if they exist if (Test-Path '.\.git\') { $excludedFiles += '.\.git\' } if (Test-Path '.\binary\') { $excludedFiles += '.\binary\' } # Add files that should always be excluded $excludedFiles += @( '.\.gitignore', '.\.gitattributes', '.\.github\CODEOWNERS', '.\LICENSE', "$preprocessingFilePath", '*.png', '.\.preprocessor_hashes.json' ) $msg = "Pre-req: Code Formatting" Invoke-Preprocessing -WorkingDir "$workingdir" -ExcludedFiles $excludedFiles -ProgressStatusMessage $msg # Create the script in memory. Update-Progress "Pre-req: Allocating Memory" 0 $script_content = [System.Collections.Generic.List[string]]::new() Update-Progress "Adding: Version" 10 $script_content.Add($(Get-Content "scripts\start.ps1").replace('#{replaceme}',"$(Get-Date -Format yy.MM.dd)")) Update-Progress "Adding: Functions" 20 Get-ChildItem "functions" -Recurse -File | ForEach-Object { $script_content.Add($(Get-Content $psitem.FullName)) } Update-Progress "Adding: Config *.json" 40 Get-ChildItem "config" | Where-Object {$psitem.extension -eq ".json"} | ForEach-Object { $json = (Get-Content $psitem.FullName -Raw) $jsonAsObject = $json | ConvertFrom-Json # Add 'WPFInstall' as a prefix to every entry-name in 'applications.json' file if ($psitem.Name -eq "applications.json") { foreach ($appEntryName in $jsonAsObject.PSObject.Properties.Name) { $appEntryContent = $jsonAsObject.$appEntryName $jsonAsObject.PSObject.Properties.Remove($appEntryName) $jsonAsObject | Add-Member -MemberType NoteProperty -Name "WPFInstall$appEntryName" -Value $appEntryContent } } # Line 90 requires no whitespace inside the here-strings, to keep formatting of the JSON in the final script. $json = @" $($jsonAsObject | ConvertTo-Json -Depth 3) "@ $sync.configs.$($psitem.BaseName) = $json | ConvertFrom-Json $script_content.Add($(Write-Output "`$sync.configs.$($psitem.BaseName) = @'`r`n$json`r`n'@ `| ConvertFrom-Json" )) } # Read the entire XAML file as a single string, preserving line breaks $xaml = Get-Content "$workingdir\xaml\inputXML.xaml" -Raw Update-Progress "Adding: Xaml " 90 # Add the XAML content to $script_content using a here-string $script_content.Add(@" `$inputXML = @' $xaml '@ "@) Update-Progress "Adding: autounattend.xml" 95 $autounattendRaw = Get-Content "$workingdir\tools\autounattend.xml" -Raw # Strip XML comments (, including multi-line) $autounattendRaw = [regex]::Replace($autounattendRaw, '', '', [System.Text.RegularExpressions.RegexOptions]::Singleline) # Drop blank lines and trim trailing whitespace per line $autounattendXml = ($autounattendRaw -split "`r?`n" | Where-Object { $_.Trim() -ne '' } | ForEach-Object { $_.TrimEnd() }) -join "`r`n" $script_content.Add(@" `$WinUtilAutounattendXml = @' $autounattendXml '@ "@) $script_content.Add($(Get-Content "scripts\main.ps1")) Update-Progress "Removing temporary files" 99 Remove-Item "xaml\inputApp.xaml" -ErrorAction SilentlyContinue Remove-Item "xaml\inputTweaks.xaml" -ErrorAction SilentlyContinue Remove-Item "xaml\inputFeatures.xaml" -ErrorAction SilentlyContinue Set-Content -Path "$scriptname" -Value ($script_content -join "`r`n") -Encoding ascii Write-Progress -Activity "Compiling" -Completed Update-Progress -Activity "Validating" -StatusMessage "Checking winutil.ps1 Syntax" -Percent 0 try { Get-Command -Syntax .\winutil.ps1 | Out-Null } catch { Write-Warning "Syntax Validation for 'winutil.ps1' has failed" Write-Host "$($Error[0])" -ForegroundColor Red exit 1 } Write-Progress -Activity "Validating" -Completed if ($run) { Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass .\Winutil.ps1 $Arguments break } ================================================ FILE: LICENSE ================================================ MIT License Copyright (c) 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 in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ================================================ FILE: README.md ================================================ # Chris Titus Tech's Windows Utility [![Version](https://img.shields.io/github/v/release/ChrisTitusTech/winutil?color=%230567ff&label=Latest%20Release&style=for-the-badge)](https://github.com/ChrisTitusTech/winutil/releases/latest) ![GitHub Downloads (specific asset, all releases)](https://img.shields.io/github/downloads/ChrisTitusTech/winutil/winutil.ps1?label=Total%20Downloads&style=for-the-badge) [![](https://dcbadge.limes.pink/api/server/https://discord.gg/RUbZUZyByQ?theme=default-inverted&style=for-the-badge)](https://discord.gg/RUbZUZyByQ) [![Static Badge](https://img.shields.io/badge/Documentation-_?style=for-the-badge&logo=bookstack&color=grey)](https://winutil.christitus.com/) This utility is a compilation of Windows tasks I perform on each Windows system I use. It is meant to streamline *installs*, debloat with *tweaks*, troubleshoot with *config*, and fix Windows *updates*. I am extremely picky about any contributions to keep this project clean and efficient. ![screen-install](/docs/assets/images/Title-Screen.png) ## 💡 Usage Winutil must be run in Admin mode because it performs system-wide tweaks. To achieve this, run PowerShell as an administrator. Here are a few ways to do it: 1. **Start menu Method:** - Right-click on the start menu. - Choose "Windows PowerShell (Admin)" (for Windows 10) or "Terminal (Admin)" (for Windows 11). 2. **Search and Launch Method:** - Press the Windows key. - Type "PowerShell" or "Terminal" (for Windows 11). - Press `Ctrl + Shift + Enter` or Right-click and choose "Run as administrator" to launch it with administrator privileges. ### Launch Command #### Stable Branch (Recommended) ```ps1 irm "https://christitus.com/win" | iex ``` #### Dev Branch ```ps1 irm "https://christitus.com/windev" | iex ``` If you have Issues, refer to [Known Issues](https://winutil.christitus.com/knownissues/) or [Create Issue](https://github.com/ChrisTitusTech/winutil/issues) ## 🎓 Documentation ### [WinUtil Official Documentation](https://winutil.christitus.com/) ### [YouTube Tutorial](https://www.youtube.com/watch?v=6UQZ5oQg8XA) ### [ChrisTitus.com Article](https://christitus.com/windows-tool/) ## 🛠️ Build & Develop > [!NOTE] > Winutil is a relatively large script, so it's split into multiple files which're combined into a single `.ps1` file using a custom compiler. This makes maintaining the project a lot easier. Get a copy of the source code, this can be done using GitHub UI (`Code -> Download ZIP`), or by cloning (downloading) the repo using git. If git is installed, run the following commands under a PowerShell window to clone and move into project's directory: ```ps1 git clone --depth 1 "https://github.com/ChrisTitusTech/winutil.git" cd winutil ``` To build the project, run the Compile Script under a PowerShell window (admin permissions IS NOT required): ```ps1 .\Compile.ps1 ``` You'll see a new file named `winutil.ps1`, which's created by `Compile.ps1` script, now you can run it as admin and a new window will popup, enjoy your own compiled version of WinUtil :) > [!TIP] > For more info on using WinUtil and how to develop for it, please consider reading [the Contribution Guidelines](https://winutil.christitus.com/contributing/), if you don't know where to start, or have questions, you can ask over on our [Discord Community Server](https://discord.gg/RUbZUZyByQ) and active project members will answer when they can. ## 💖 Support - To morally and mentally support the project, make sure to leave a ⭐️! - EXE Wrapper for $10 @ https://www.cttstore.com/windows-toolbox ## 💖 Sponsors These are the sponsors that help keep this project alive with monthly contributions. User avatar: User avatar: Martin StockzellUser avatar: Jason A. DiegmuellerUser avatar: RMSUser avatar: StefanUser avatar: PaulUser avatar: Dave J  (WhamGeek)User avatar: Anthony MendezUser avatar: User avatar: DursleyGuyUser avatar: User avatar: Kiera MeredithUser avatar: Miguel DiazUser avatar: Andrew PUser avatar: Nathan Fernandes PedrozaUser avatar: Enzo Ferroni ## 🏅 Thanks to all Contributors Thanks a lot for spending your time helping Winutil grow. Thanks a lot! Keep rocking 🍻. [![Contributors](https://contrib.rocks/image?repo=ChrisTitusTech/winutil)](https://github.com/ChrisTitusTech/winutil/graphs/contributors) ## 📊 GitHub Stats ![Alt](https://repobeats.axiom.co/api/embed/aad37eec9114c507f109d34ff8d38a59adc9503f.svg "Repobeats analytics image") ================================================ FILE: config/applications.json ================================================ { "1password": { "category": "Utilities", "choco": "1password", "content": "1Password", "description": "1Password is a password manager that allows you to store and manage your passwords securely.", "link": "https://1password.com/", "winget": "AgileBits.1Password" }, "7zip": { "category": "Utilities", "choco": "7zip", "content": "7-Zip", "description": "7-Zip is a free and open-source file archiver utility. It supports several compression formats and provides a high compression ratio, making it a popular choice for file compression.", "link": "https://www.7-zip.org/", "winget": "7zip.7zip", "foss": true }, "adobe": { "category": "Document", "choco": "adobereader", "content": "Adobe Acrobat Reader", "description": "Adobe Acrobat Reader is a free PDF viewer with essential features for viewing, printing, and annotating PDF documents.", "link": "https://www.adobe.com/acrobat/pdf-reader.html", "winget": "Adobe.Acrobat.Reader.64-bit" }, "advancedip": { "category": "Pro Tools", "choco": "advanced-ip-scanner", "content": "Advanced IP Scanner", "description": "Advanced IP Scanner is a fast and easy-to-use network scanner. It is designed to analyze LAN networks and provides information about connected devices.", "link": "https://www.advanced-ip-scanner.com/", "winget": "Famatech.AdvancedIPScanner" }, "affine": { "category": "Document", "choco": "na", "content": "AFFiNE", "description": "AFFiNE is an open-source alternative to Notion. Write, draw, plan all at once. Selfhost it to sync across devices.", "link": "https://affine.pro/", "winget": "ToEverything.AFFiNE", "foss": true }, "ai-as-workspace": { "category": "AI-Automation", "choco": "na", "content": "AI as Workspace", "description": "Workspace-style AI chat client with multiple workspaces, plugins, and local-first design; open-source (BSD-3-Clause).", "link": "https://aiaw.app/", "winget": "NitroRCr.AIasWorkspace", "foss": true }, "aimp": { "category": "Multimedia Tools", "choco": "aimp", "content": "AIMP (Music Player)", "description": "AIMP is a feature-rich music player with support for various audio formats, playlists, and customizable user interface.", "link": "https://www.aimp.ru/", "winget": "AIMP.AIMP" }, "alacritty": { "category": "Utilities", "choco": "alacritty", "content": "Alacritty Terminal", "description": "Alacritty is a fast, cross-platform, and GPU-accelerated terminal emulator. It is designed for performance and aims to be the fastest terminal emulator available.", "link": "https://alacritty.org/", "winget": "Alacritty.Alacritty", "foss": true }, "anaconda3": { "category": "Development", "choco": "anaconda3", "content": "Anaconda", "description": "Anaconda is a distribution of the Python and R programming languages for scientific computing.", "link": "https://www.anaconda.com/products/distribution", "winget": "Anaconda.Anaconda3" }, "angryipscanner": { "category": "Pro Tools", "choco": "angryip", "content": "Angry IP Scanner", "description": "Angry IP Scanner is an open-source and cross-platform network scanner. It is used to scan IP addresses and ports, providing information about network connectivity.", "link": "https://angryip.org/", "winget": "angryziber.AngryIPScanner", "foss": true }, "anki": { "category": "Document", "choco": "anki", "content": "Anki", "description": "Anki is a flashcard application that helps you memorize information with intelligent spaced repetition.", "link": "https://apps.ankiweb.net/", "winget": "Anki.Anki", "foss": true }, "anydesk": { "category": "Utilities", "choco": "anydesk", "content": "AnyDesk", "description": "AnyDesk is a remote desktop software that enables users to access and control computers remotely. It is known for its fast connection and low latency.", "link": "https://anydesk.com/", "winget": "AnyDesk.AnyDesk" }, "anythingllm": { "category": "AI-Automation", "choco": "na", "content": "AnythingLLM", "description": "Desktop AI application for chat with documents (RAG) and agent workflows; offers a Windows installer and an open-source codebase.", "link": "https://anythingllm.com/", "winget": "na", "foss": true }, "audacity": { "category": "Multimedia Tools", "choco": "audacity", "content": "Audacity", "description": "Audacity is a free and open-source audio editing software known for its powerful recording and editing capabilities.", "link": "https://www.audacityteam.org/", "winget": "Audacity.Audacity", "foss": true }, "autoruns": { "category": "Microsoft Tools", "choco": "autoruns", "content": "Autoruns", "description": "This utility shows you what programs are configured to run during system bootup or login.", "link": "https://learn.microsoft.com/en-us/sysinternals/downloads/autoruns", "winget": "Microsoft.Sysinternals.Autoruns" }, "rdcman": { "category": "Microsoft Tools", "choco": "rdcman", "content": "RDCMan", "description": "RDCMan manages multiple remote desktop connections. It is useful for managing server labs where you need regular access to each machine such as automated checkin systems and data centers.", "link": "https://learn.microsoft.com/en-us/sysinternals/downloads/rdcman", "winget": "Microsoft.Sysinternals.RDCMan" }, "autohotkey": { "category": "Utilities", "choco": "autohotkey", "content": "AutoHotkey", "description": "AutoHotkey is a scripting language for Windows that allows users to create custom automation scripts and macros. It is often used for automating repetitive tasks and customizing keyboard shortcuts.", "link": "https://www.autohotkey.com/", "winget": "AutoHotkey.AutoHotkey", "foss": true }, "autoit": { "category": "AI-Automation", "choco": "autoit.install", "content": "AutoIt", "description": "Windows GUI automation scripting tool (freeware) used to automate keystrokes, mouse actions, and window/control interactions.", "link": "https://www.autoitscript.com/site/autoit/", "winget": "na", "foss": false }, "azuredatastudio": { "category": "Microsoft Tools", "choco": "azure-data-studio", "content": "Microsoft Azure Data Studio", "description": "Azure Data Studio is a data management tool that enables you to work with SQL Server, Azure SQL DB and SQL DW from Windows, macOS and Linux.", "link": "https://docs.microsoft.com/sql/azure-data-studio/what-is-azure-data-studio", "winget": "Microsoft.AzureDataStudio" }, "barrier": { "category": "Utilities", "choco": "barrier", "content": "Barrier", "description": "Barrier is an open-source software KVM (keyboard, video, and mouseswitch). It allows users to control multiple computers with a single keyboard and mouse, even if they have different operating systems.", "link": "https://github.com/debauchee/barrier", "winget": "DebaucheeOpenSourceGroup.Barrier", "foss": true }, "bat": { "category": "Utilities", "choco": "bat", "content": "Bat (Cat)", "description": "Bat is a cat command clone with syntax highlighting. It provides a user-friendly and feature-rich alternative to the traditional cat command for viewing and concatenating files.", "link": "https://github.com/sharkdp/bat", "winget": "sharkdp.bat", "foss": true }, "beeper": { "category": "Communications", "choco": "na", "content": "Beeper", "description": "All your chats in one app.", "link": "https://www.beeper.com/", "winget": "Beeper.Beeper" }, "bitwarden": { "category": "Utilities", "choco": "bitwarden", "content": "Bitwarden", "description": "Bitwarden is an open-source password management solution. It allows users to store and manage their passwords in a secure and encrypted vault, accessible across multiple devices.", "link": "https://bitwarden.com/", "winget": "Bitwarden.Bitwarden", "foss": true }, "bleachbit": { "category": "Utilities", "choco": "bleachbit", "content": "BleachBit", "description": "Clean Your System and Free Disk Space.", "link": "https://www.bleachbit.org/", "winget": "BleachBit.BleachBit", "foss": true }, "blender": { "category": "Multimedia Tools", "choco": "blender", "content": "Blender (3D Graphics)", "description": "Blender is a powerful open-source 3D creation suite, offering modeling, sculpting, animation, and rendering tools.", "link": "https://www.blender.org/", "winget": "BlenderFoundation.Blender", "foss": true }, "brave": { "category": "Browsers", "choco": "brave", "content": "Brave", "description": "Brave is a privacy-focused web browser that blocks ads and trackers, offering a faster and safer browsing experience.", "link": "https://www.brave.com", "winget": "Brave.Brave", "foss": true }, "bulkcrapuninstaller": { "category": "Utilities", "choco": "bulk-crap-uninstaller", "content": "Bulk Crap Uninstaller", "description": "Bulk Crap Uninstaller is a free and open-source uninstaller utility for Windows. It helps users remove unwanted programs and clean up their system by uninstalling multiple applications at once.", "link": "https://www.bcuninstaller.com/", "winget": "Klocman.BulkCrapUninstaller", "foss": true }, "bulkrenameutility": { "category": "Utilities", "choco": "bulkrenameutility", "content": "Bulk Rename Utility", "description": "Bulk Rename Utility allows you to easily rename files and folders recursively based upon find-replace, character place, fields, sequences, regular expressions, EXIF data, and more.", "link": "https://www.bulkrenameutility.co.uk", "winget": "TGRMNSoftware.BulkRenameUtility" }, "buzz": { "category": "AI-Automation", "choco": "na", "content": "Buzz", "description": "Offline audio transcription and translation desktop app powered by Whisper, packaged for Windows and available via WinGet.", "link": "https://github.com/chidiwilliams/buzz", "winget": "ChidiWilliams.Buzz", "foss": true }, "AdvancedRenamer": { "category": "Utilities", "choco": "advanced-renamer", "content": "Advanced Renamer", "description": "Advanced Renamer is a program for renaming multiple files and folders at once. By configuring renaming methods the names can be manipulated in various ways.", "link": "https://www.advancedrenamer.com/", "winget": "HulubuluSoftware.AdvancedRenamer" }, "citrixworkspaceapp": { "category": "Utilities", "choco": "citrix-workspace", "content": "Citrix Workspace app", "description": "a secure, unified client application that provides instant access to virtual desktops, SaaS, web, and Windows apps from any device (Windows, macOS, Linux, iOS, Android) or browser.", "link": "https://www.citrix.com/downloads/workspace-app/", "winget": "Citrix.Workspace", }, "calibre": { "category": "Document", "choco": "calibre", "content": "Calibre", "description": "Calibre is a powerful and easy-to-use e-book manager, viewer, and converter.", "link": "https://calibre-ebook.com/", "winget": "calibre.calibre", "foss": true }, "carnac": { "category": "Utilities", "choco": "carnac", "content": "Carnac", "description": "Carnac is a keystroke visualizer for Windows. It displays keystrokes in an overlay, making it useful for presentations, tutorials, and live demonstrations.", "link": "https://carnackeys.com/", "winget": "code52.Carnac", "foss": true }, "cemu": { "category": "Games", "choco": "cemu", "content": "Cemu", "description": "Cemu is a highly experimental software to emulate Wii U applications on PC.", "link": "https://cemu.info/", "winget": "Cemu.Cemu", "foss": true }, "chatgpt": { "category": "AI-Automation", "choco": "na", "content": "ChatGPT", "description": "ChatGPT desktop app provides direct access to OpenAI's conversational AI assistant for writing, analysis, and productivity tasks.", "link": "https://openai.com/chatgpt/desktop/", "winget": "OpenAI.ChatGPT" }, "chatterino": { "category": "Communications", "choco": "chatterino", "content": "Chatterino", "description": "Chatterino is a chat client for Twitch chat that offers a clean and customizable interface for a better streaming experience.", "link": "https://www.chatterino.com/", "winget": "ChatterinoTeam.Chatterino", "foss": true }, "chrome": { "category": "Browsers", "choco": "googlechrome", "content": "Chrome", "description": "Google Chrome is a widely used web browser known for its speed, simplicity, and seamless integration with Google services.", "link": "https://www.google.com/chrome/", "winget": "Google.Chrome" }, "chromium": { "category": "Browsers", "choco": "chromium", "content": "Chromium", "description": "Chromium is the open-source project that serves as the foundation for various web browsers, including Chrome.", "link": "https://github.com/Hibbiki/chromium-win64", "winget": "Hibbiki.Chromium", "foss": true }, "claude": { "category": "AI-Automation", "choco": "claude", "content": "Claude", "description": "Anthropic's Claude desktop application for Windows, designed for focused AI-assisted work and chat.", "link": "https://claude.ai/", "winget": "Anthropic.Claude", "foss": false }, "claude-code": { "category": "AI-Automation", "choco": "claude-code", "content": "Claude Code", "description": "Anthropic's agentic coding tool for the terminal/IDE workflows, available on Windows and distributed via WinGet.", "link": "https://code.claude.com/", "winget": "Anthropic.ClaudeCode", "foss": false }, "clementine": { "category": "Multimedia Tools", "choco": "clementine", "content": "Clementine", "description": "Clementine is a modern music player and library organizer, supporting various audio formats and online radio services.", "link": "https://www.clementine-player.org/", "winget": "Clementine.Clementine", "foss": true }, "clink": { "category": "Development", "choco": "clink", "content": "Clink", "description": "Clink is a powerful Bash-compatible command-line interface (CLIenhancement for Windows, adding features like syntax highlighting and improved history).", "link": "https://mridgers.github.io/clink/", "winget": "chrisant996.Clink", "foss": true }, "clonehero": { "category": "Games", "choco": "na", "content": "Clone Hero", "description": "Clone Hero is a free rhythm game, which can be played with any 5 or 6 button guitar controller.", "link": "https://clonehero.net/", "winget": "CloneHeroTeam.CloneHero" }, "cmake": { "category": "Development", "choco": "cmake", "content": "CMake", "description": "CMake is an open-source, cross-platform family of tools designed to build, test and package software.", "link": "https://cmake.org/", "winget": "Kitware.CMake", "foss": true }, "copyq": { "category": "Utilities", "choco": "copyq", "content": "CopyQ (Clipboard Manager)", "description": "CopyQ is a clipboard manager with advanced features, allowing you to store, edit, and retrieve clipboard history.", "link": "https://copyq.readthedocs.io/", "winget": "hluk.CopyQ", "foss": true }, "cpuz": { "category": "Utilities", "choco": "cpu-z", "content": "CPU-Z", "description": "CPU-Z is a system monitoring and diagnostic tool for Windows. It provides detailed information about the computer's hardware components, including the CPU, memory, and motherboard.", "link": "https://www.cpuid.com/softwares/cpu-z.html", "winget": "CPUID.CPU-Z" }, "crystaldiskinfo": { "category": "Utilities", "choco": "crystaldiskinfo", "content": "Crystal Disk Info", "description": "Crystal Disk Info is a disk health monitoring tool that provides information about the status and performance of hard drives. It helps users anticipate potential issues and monitor drive health.", "link": "https://crystalmark.info/en/software/crystaldiskinfo/", "winget": "CrystalDewWorld.CrystalDiskInfo", "foss": true }, "capframex": { "category": "Utilities", "choco": "na", "content": "CapFrameX", "description": "Frametimes capture and analysis tool based on Intel's PresentMon. Overlay provided by Rivatuner Statistics Server.", "link": "https://www.capframex.com/", "winget": "CXWorld.CapFrameX", "foss": true }, "crystaldiskmark": { "category": "Utilities", "choco": "crystaldiskmark", "content": "Crystal Disk Mark", "description": "Crystal Disk Mark is a disk benchmarking tool that measures the read and write speeds of storage devices. It helps users assess the performance of their hard drives and SSDs.", "link": "https://crystalmark.info/en/software/crystaldiskmark/", "winget": "CrystalDewWorld.CrystalDiskMark", "foss": true }, "cursor": { "category": "Development", "choco": "cursoride", "content": "Cursor", "description": "AI-powered code editor (VS Code-based) with agentic coding features and integrated AI assistance for development workflows.", "link": "https://cursor.com/", "winget": "Anysphere.Cursor", "foss": false }, "darktable": { "category": "Multimedia Tools", "choco": "darktable", "content": "darktable", "description": "Open-source photo editing tool, offering an intuitive interface, advanced editing capabilities, and a non-destructive workflow for seamless image enhancement.", "link": "https://www.darktable.org/install/", "winget": "darktable.darktable", "foss": true }, "DaxStudio": { "category": "Development", "choco": "daxstudio", "content": "DaxStudio", "description": "DAX (Data Analysis eXpressions) Studio is the ultimate tool for executing and analyzing DAX queries against Microsoft Tabular models.", "link": "https://daxstudio.org/", "winget": "DaxStudio.DaxStudio", "foss": true }, "ddu": { "category": "Utilities", "choco": "ddu", "content": "Display Driver Uninstaller", "description": "Display Driver Uninstaller (DDU) is a tool for completely uninstalling graphics drivers from NVIDIA, AMD, and Intel. It is useful for troubleshooting graphics driver-related issues.", "link": "https://www.wagnardsoft.com/display-driver-uninstaller-DDU-", "winget": "Wagnardsoft.DisplayDriverUninstaller" }, "deepl": { "category": "AI-Automation", "choco": "deepl", "content": "DeepL", "description": "DeepL desktop translation and writing assistant for Windows, including shortcuts and in-app writing improvement features.", "link": "https://www.deepl.com/en/windows-app", "winget": "DeepL.DeepL", "foss": false }, "deluge": { "category": "Utilities", "choco": "deluge", "content": "Deluge", "description": "Deluge is a free and open-source BitTorrent client. It features a user-friendly interface, support for plugins, and the ability to manage torrents remotely.", "link": "https://deluge-torrent.org/", "winget": "DelugeTeam.Deluge", "foss": true }, "devtoys": { "category": "Utilities", "choco": "devtoys", "content": "DevToys", "description": "DevToys is a collection of development-related utilities and tools for Windows. It includes tools for file management, code formatting, and productivity enhancements for developers.", "link": "https://devtoys.app/", "winget": "DevToys-app.DevToys", "foss": true }, "digikam": { "category": "Multimedia Tools", "choco": "digikam", "content": "digiKam", "description": "digiKam is an advanced open-source photo management software with features for organizing, editing, and sharing photos.", "link": "https://www.digikam.org/", "winget": "KDE.digikam", "foss": true }, "discord": { "category": "Communications", "choco": "discord", "content": "Discord", "description": "Discord is a popular communication platform with voice, video, and text chat, designed for gamers but used by a wide range of communities.", "link": "https://discord.com/", "winget": "Discord.Discord" }, "dismtools": { "category": "Microsoft Tools", "choco": "na", "content": "DISMTools", "description": "DISMTools is a fast, customizable GUI for the DISM utility, supporting Windows images from Windows 7 onward. It handles installations on any drive, offers project support, and lets users tweak settings like color modes, language, and DISM versions; powered by both native DISM and a managed DISM API.", "link": "https://github.com/CodingWonders/DISMTools", "winget": "CodingWondersSoftware.DISMTools.Stable", "foss": true }, "ntlite": { "category": "Microsoft Tools", "choco": "ntlite-free", "content": "NTLite", "description": "Integrate updates, drivers, automate Windows and application setup, speedup Windows deployment process and have it all set for the next time.", "link": "https://ntlite.com", "winget": "Nlitesoft.NTLite" }, "ditto": { "category": "Utilities", "choco": "ditto", "content": "Ditto", "description": "Ditto is an extension to the standard windows clipboard.", "link": "https://github.com/sabrogden/Ditto", "winget": "Ditto.Ditto", "foss": true }, "dockerdesktop": { "category": "Development", "choco": "docker-desktop", "content": "Docker Desktop", "description": "Docker Desktop is a powerful tool for containerized application development and deployment.", "link": "https://www.docker.com/products/docker-desktop", "winget": "Docker.DockerDesktop" }, "dotnet3": { "category": "Microsoft Tools", "choco": "dotnetcore3-desktop-runtime", "content": ".NET Desktop Runtime 3.1", "description": ".NET Desktop Runtime 3.1 is a runtime environment required for running applications developed with .NET Core 3.1.", "link": "https://dotnet.microsoft.com/download/dotnet/3.1", "winget": "Microsoft.DotNet.DesktopRuntime.3_1" }, "dotnet5": { "category": "Microsoft Tools", "choco": "dotnet-5.0-runtime", "content": ".NET Desktop Runtime 5", "description": ".NET Desktop Runtime 5 is a runtime environment required for running applications developed with .NET 5.", "link": "https://dotnet.microsoft.com/download/dotnet/5.0", "winget": "Microsoft.DotNet.DesktopRuntime.5" }, "dotnet6": { "category": "Microsoft Tools", "choco": "dotnet-6.0-runtime", "content": ".NET Desktop Runtime 6", "description": ".NET Desktop Runtime 6 is a runtime environment required for running applications developed with .NET 6.", "link": "https://dotnet.microsoft.com/download/dotnet/6.0", "winget": "Microsoft.DotNet.DesktopRuntime.6" }, "dotnet7": { "category": "Microsoft Tools", "choco": "dotnet-7.0-runtime", "content": ".NET Desktop Runtime 7", "description": ".NET Desktop Runtime 7 is a runtime environment required for running applications developed with .NET 7.", "link": "https://dotnet.microsoft.com/download/dotnet/7.0", "winget": "Microsoft.DotNet.DesktopRuntime.7" }, "dotnet8": { "category": "Microsoft Tools", "choco": "dotnet-8.0-runtime", "content": ".NET Desktop Runtime 8", "description": ".NET Desktop Runtime 8 is a runtime environment required for running applications developed with .NET 8.", "link": "https://dotnet.microsoft.com/download/dotnet/8.0", "winget": "Microsoft.DotNet.DesktopRuntime.8" }, "dotnet9": { "category": "Microsoft Tools", "choco": "dotnet-9.0-runtime", "content": ".NET Desktop Runtime 9", "description": ".NET Desktop Runtime 9 is a runtime environment required for running applications developed with .NET 9.", "link": "https://dotnet.microsoft.com/download/dotnet/9.0", "winget": "Microsoft.DotNet.DesktopRuntime.9" }, "dotnet10": { "category": "Microsoft Tools", "choco": "dotnet-10.0-runtime", "content": ".NET Desktop Runtime 10", "description": ".NET Desktop Runtime 10 is a runtime environment required for running applications developed with .NET 10.", "link": "https://dotnet.microsoft.com/download/dotnet/10.0", "winget": "Microsoft.DotNet.DesktopRuntime.10" }, "dmt": { "winget": "GNE.DualMonitorTools", "choco": "dual-monitor-tools", "category": "Utilities", "content": "Dual Monitor Tools", "link": "https://dualmonitortool.sourceforge.net/", "description": "Dual Monitor Tools (DMT) is a FOSS app that allows you to customize the handling of multiple monitors. Useful for fullscreen games and apps that handle a second monitor poorly and can improve your workflow.", "foss": true }, "duplicati": { "category": "Utilities", "choco": "duplicati", "content": "Duplicati", "description": "Duplicati is an open-source backup solution that supports encrypted, compressed, and incremental backups. It is designed to securely store data on cloud storage services.", "link": "https://www.duplicati.com/", "winget": "Duplicati.Duplicati", "foss": true }, "eaapp": { "category": "Games", "choco": "ea-app", "content": "EA App", "description": "EA App is a platform for accessing and playing Electronic Arts games.", "link": "https://www.ea.com/ea-app", "winget": "ElectronicArts.EADesktop" }, "eartrumpet": { "category": "Multimedia Tools", "choco": "eartrumpet", "content": "EarTrumpet (Audio)", "description": "EarTrumpet is an audio control app for Windows, providing a simple and intuitive interface for managing sound settings.", "link": "https://eartrumpet.app/", "winget": "File-New-Project.EarTrumpet", "foss": true }, "edge": { "category": "Browsers", "choco": "microsoft-edge", "content": "Edge", "description": "Microsoft Edge is a modern web browser built on Chromium, offering performance, security, and integration with Microsoft services.", "link": "https://www.microsoft.com/edge", "winget": "Microsoft.Edge" }, "efibooteditor": { "category": "Pro Tools", "choco": "na", "content": "EFI Boot Editor", "description": "EFI Boot Editor is a tool for managing the EFI/UEFI boot entries on your system. It allows you to customize the boot configuration of your computer.", "link": "https://www.easyuefi.com/", "winget": "EFIBootEditor.EFIBootEditor" }, "emulationstation": { "category": "Games", "choco": "emulationstation", "content": "Emulation Station", "description": "Emulation Station is a graphical and themeable emulator front-end that allows you to access all your favorite games in one place.", "link": "https://emulationstation.org/", "winget": "Emulationstation.Emulationstation", "foss": true }, "enteauth": { "category": "Utilities", "choco": "ente-auth", "content": "Ente Auth", "description": "Ente Auth is a free, cross-platform, end-to-end encrypted authenticator app.", "link": "https://ente.io/auth/", "winget": "ente-io.auth-desktop", "foss": true }, "epicgames": { "category": "Games", "choco": "epicgameslauncher", "content": "Epic Games Launcher", "description": "Epic Games Launcher is the client for accessing and playing games from the Epic Games Store.", "link": "https://www.epicgames.com/store/en-US/", "winget": "EpicGames.EpicGamesLauncher" }, "esearch": { "category": "Utilities", "choco": "everything", "content": "Everything Search", "description": "Everything Search is a fast and efficient file search utility for Windows.", "link": "https://www.voidtools.com/", "winget": "voidtools.Everything" }, "espanso": { "category": "Utilities", "choco": "espanso", "content": "Espanso", "description": "Cross-platform and open-source Text Expander written in Rust.", "link": "https://espanso.org/", "winget": "Espanso.Espanso", "foss": true }, "ffmpeg": { "category": "Utilities", "choco": "na", "content": "FFmpeg Batch AV Converter", "description": "FFmpeg Batch AV Converter is a universal audio and video encoder, that allows to use the full potential of ffmpeg command line with a few mouse clicks in a convenient GUI with drag and drop, progress information.", "link": "https://ffmpeg-batch.sourceforge.io/", "winget": "eibol.FFmpegBatchAVConverter", "foss": true }, "falkon": { "category": "Browsers", "choco": "falkon", "content": "Falkon", "description": "Falkon is a lightweight and fast web browser with a focus on user privacy and efficiency.", "link": "https://www.falkon.org/", "winget": "KDE.Falkon", "foss": true }, "fastfetch": { "category": "Utilities", "choco": "na", "content": "Fastfetch", "description": "Fastfetch is a neofetch-like tool for fetching system information and displaying them in a pretty way.", "link": "https://github.com/fastfetch-cli/fastfetch/", "winget": "Fastfetch-cli.Fastfetch", "foss": true }, "ferdium": { "category": "Communications", "choco": "ferdium", "content": "Ferdium", "description": "Ferdium is a messaging application that combines multiple messaging services into a single app for easy management.", "link": "https://ferdium.org/", "winget": "Ferdium.Ferdium", "foss": true }, "ffmpeg-full": { "category": "Multimedia Tools", "choco": "ffmpeg-full", "content": "FFmpeg (full)", "description": "FFmpeg is a powerful multimedia processing tool that enables users to convert, edit, and stream audio and video files with a vast range of codecs and formats. | Note: FFmpeg can not be uninstalled using winget.", "link": "https://ffmpeg.org/", "winget": "Gyan.FFmpeg" }, "fileconverter": { "category": "Utilities", "choco": "file-converter", "content": "File-Converter", "description": "File Converter is a very simple tool which allows you to convert and compress one or several file(s) using the context menu in Windows Explorer.", "link": "https://file-converter.io/", "winget": "AdrienAllard.FileConverter", "foss": true }, "files": { "category": "Utilities", "choco": "files", "content": "Files", "description": "Alternative file explorer.", "link": "https://github.com/files-community/Files", "winget": "na", "foss": true }, "firealpaca": { "category": "Multimedia Tools", "choco": "firealpaca", "content": "Fire Alpaca", "description": "Fire Alpaca is a free digital painting software that provides a wide range of drawing tools and a user-friendly interface.", "link": "https://firealpaca.com/", "winget": "FireAlpaca.FireAlpaca" }, "firefox": { "category": "Browsers", "choco": "firefox", "content": "Firefox", "description": "Mozilla Firefox is an open-source web browser known for its customization options, privacy features, and extensions.", "link": "https://www.mozilla.org/en-US/firefox/new/", "winget": "Mozilla.Firefox", "foss": true }, "firefoxesr": { "category": "Browsers", "choco": "FirefoxESR", "content": "Firefox ESR", "description": "Mozilla Firefox is an open-source web browser known for its customization options, privacy features, and extensions. Firefox ESR (Extended Support Release) receives major updates every 42 weeks with minor updates such as crash fixes, security fixes and policy updates as needed, but at least every four weeks.", "link": "https://www.mozilla.org/en-US/firefox/enterprise/", "winget": "Mozilla.Firefox.ESR", "foss": true }, "flameshot": { "category": "Multimedia Tools", "choco": "flameshot", "content": "Flameshot (Screenshots)", "description": "Flameshot is a powerful yet simple to use screenshot software, offering annotation and editing features.", "link": "https://flameshot.org/", "winget": "Flameshot.Flameshot", "foss": true }, "lightshot": { "category": "Multimedia Tools", "choco": "lightshot", "content": "Lightshot (Screenshots)", "description": "Ligthshot is an easy-to-use, light-weight screenshot software tool, where you can optionally edit your screenshots using different tools, share them via Internet and/or save to disk, and customize the available options.", "link": "https://app.prntscr.com/", "winget": "Skillbrains.Lightshot" }, "floorp": { "category": "Browsers", "choco": "na", "content": "Floorp", "description": "Floorp is an open-source web browser project that aims to provide a simple and fast browsing experience.", "link": "https://floorp.app/", "winget": "Ablaze.Floorp", "foss": true }, "flow": { "category": "Utilities", "choco": "flow-launcher", "content": "Flow launcher", "description": "Keystroke launcher for Windows to search, manage and launch files, folders bookmarks, websites and more.", "link": "https://www.flowlauncher.com/", "winget": "Flow-Launcher.Flow-Launcher", "foss": true }, "flux": { "category": "Utilities", "choco": "flux", "content": "F.lux", "description": "f.lux adjusts the color temperature of your screen to reduce eye strain during nighttime use.", "link": "https://justgetflux.com/", "winget": "flux.flux" }, "foobar": { "category": "Multimedia Tools", "choco": "foobar2000", "content": "foobar2000 (Music Player)", "description": "foobar2000 is a highly customizable and extensible music player for Windows, known for its modular design and advanced features.", "link": "https://www.foobar2000.org/", "winget": "PeterPawlowski.foobar2000" }, "foxpdfeditor": { "category": "Document", "choco": "na", "content": "Foxit PDF Editor", "description": "Foxit PDF Editor is a feature-rich PDF editor and viewer with a familiar ribbon-style interface.", "link": "https://www.foxit.com/pdf-editor/", "winget": "Foxit.PhantomPDF" }, "foxpdfreader": { "category": "Document", "choco": "foxitreader", "content": "Foxit PDF Reader", "description": "Foxit PDF Reader is a free PDF viewer with a familiar ribbon-style interface.", "link": "https://www.foxit.com/pdf-reader/", "winget": "Foxit.FoxitReader" }, "freecad": { "category": "Multimedia Tools", "choco": "freecad", "content": "FreeCAD", "description": "FreeCAD is a parametric 3D CAD modeler, designed for product design and engineering tasks, with a focus on flexibility and extensibility.", "link": "https://www.freecadweb.org/", "winget": "FreeCAD.FreeCAD", "foss": true }, "fxsound": { "category": "Multimedia Tools", "choco": "fxsound", "content": "FxSound", "description": "FxSound is free open-source software to boost sound quality, volume, and bass. Including an equalizer, effects, and presets for customized audio.", "link": "https://www.fxsound.com/", "winget": "FxSound.FxSound", "foss": true }, "fzf": { "category": "Utilities", "choco": "fzf", "content": "Fzf", "description": "A command-line fuzzy finder.", "link": "https://github.com/junegunn/fzf/", "winget": "junegunn.fzf", "foss": true }, "geforcenow": { "category": "Games", "choco": "nvidia-geforce-now", "content": "GeForce NOW", "description": "GeForce NOW is a cloud gaming service that allows you to play high-quality PC games on your device.", "link": "https://www.nvidia.com/en-us/geforce-now/", "winget": "Nvidia.GeForceNow" }, "gimp": { "category": "Multimedia Tools", "choco": "gimp", "content": "GIMP (Image Editor)", "description": "GIMP is a versatile open-source raster graphics editor used for tasks such as photo retouching, image editing, and image composition.", "link": "https://www.gimp.org/", "winget": "GIMP.GIMP.3", "foss": true }, "git": { "category": "Development", "choco": "git", "content": "Git", "description": "Git is a distributed version control system widely used for tracking changes in source code during software development.", "link": "https://git-scm.com/", "winget": "Git.Git", "foss": true }, "gitbutler": { "category": "Development", "choco": "na", "content": "Git Butler", "description": "A Git client for simultaneous branches on top of your existing workflow.", "link": "https://gitbutler.com/", "winget": "GitButler.GitButler" }, "gitextensions": { "category": "Development", "choco": "git;gitextensions", "content": "Git Extensions", "description": "Git Extensions is a graphical user interface for Git, providing additional features for easier source code management.", "link": "https://gitextensions.github.io/", "winget": "GitExtensionsTeam.GitExtensions" }, "githubcli": { "category": "Development", "choco": "git;gh", "content": "GitHub CLI", "description": "GitHub CLI is a command-line tool that simplifies working with GitHub directly from the terminal.", "link": "https://cli.github.com/", "winget": "GitHub.cli", "foss": true }, "github-copilot-cli": { "category": "AI-Automation", "choco": "na", "content": "GitHub Copilot CLI", "description": "GitHub Copilot experience for the command line: natural-language assistance for commands and development tasks; distributed via WinGet.", "link": "https://github.com/github/copilot-cli", "winget": "GitHub.Copilot", "foss": false }, "githubdesktop": { "category": "Development", "choco": "git;github-desktop", "content": "GitHub Desktop", "description": "GitHub Desktop is a visual Git client that simplifies collaboration on GitHub repositories with an easy-to-use interface.", "link": "https://desktop.github.com/", "winget": "GitHub.GitHubDesktop", "foss": true }, "gitkrakenclient": { "category": "Development", "choco": "gitkraken", "content": "GitKraken Client", "description": "GitKraken Client is a powerful visual Git client from Axosoft that works with ALL git repositories on any hosting environment.", "link": "https://www.gitkraken.com/git-client", "winget": "Axosoft.GitKraken" }, "glaryutilities": { "category": "Utilities", "choco": "glaryutilities-free", "content": "Glary Utilities", "description": "Glary Utilities is a comprehensive system optimization and maintenance tool for Windows.", "link": "https://www.glarysoft.com/glary-utilities/", "winget": "Glarysoft.GlaryUtilities" }, "godotengine": { "category": "Development", "choco": "godot", "content": "Godot Engine", "description": "Godot Engine is a free, open-source 2D and 3D game engine with a focus on usability and flexibility.", "link": "https://godotengine.org/", "winget": "GodotEngine.GodotEngine", "foss": true }, "gog": { "category": "Games", "choco": "goggalaxy", "content": "GOG Galaxy", "description": "GOG Galaxy is a gaming client that offers DRM-free games, additional content, and more.", "link": "https://www.gog.com/galaxy", "winget": "GOG.Galaxy" }, "gitify": { "category": "Development", "choco": "na", "content": "Gitify", "description": "GitHub notifications on your menu bar.", "link": "https://www.gitify.io/", "winget": "Gitify.Gitify", "foss": true }, "golang": { "category": "Development", "choco": "golang", "content": "Go", "description": "Go (or Golang) is a statically typed, compiled programming language designed for simplicity, reliability, and efficiency.", "link": "https://go.dev/", "winget": "GoLang.Go", "foss": true }, "googledrive": { "category": "Utilities", "choco": "googledrive", "content": "Google Drive", "description": "File syncing across devices all tied to your Google account.", "link": "https://www.google.com/drive/", "winget": "Google.GoogleDrive" }, "gpt4all": { "category": "AI-Automation", "choco": "gpt4all", "content": "GPT4All", "description": "Open-source desktop application to run LLMs locally with an emphasis on privacy (MIT-licensed codebase).", "link": "https://nomic.ai/gpt4all", "winget": "nomic.gpt4all", "foss": true }, "gpuz": { "category": "Utilities", "choco": "gpu-z", "content": "GPU-Z", "description": "GPU-Z provides detailed information about your graphics card and GPU.", "link": "https://www.techpowerup.com/gpuz/", "winget": "TechPowerUp.GPU-Z" }, "greenshot": { "category": "Multimedia Tools", "choco": "greenshot", "content": "Greenshot (Screenshots)", "description": "Greenshot is a light-weight screenshot software tool with built-in image editor and customizable capture options.", "link": "https://getgreenshot.org/", "winget": "Greenshot.Greenshot", "foss": true }, "gsudo": { "category": "Utilities", "choco": "gsudo", "content": "Gsudo", "description": "Gsudo is a sudo implementation for Windows, allowing elevated privilege execution.", "link": "https://gerardog.github.io/gsudo/", "winget": "gerardog.gsudo" }, "handbrake": { "category": "Multimedia Tools", "choco": "handbrake", "content": "HandBrake", "description": "HandBrake is an open-source video transcoder, allowing you to convert video from nearly any format to a selection of widely supported codecs.", "link": "https://handbrake.fr/", "winget": "HandBrake.HandBrake", "foss": true }, "harmonoid": { "category": "Multimedia Tools", "choco": "na", "content": "Harmonoid", "description": "Plays and manages your music library. Looks beautiful and juicy. Playlists, visuals, synced lyrics, pitch shift, volume boost and more.", "link": "https://harmonoid.com/", "winget": "Harmonoid.Harmonoid", "foss": true }, "heidisql": { "category": "Pro Tools", "choco": "heidisql", "content": "HeidiSQL", "description": "HeidiSQL is a powerful and easy-to-use client for MySQL, MariaDB, Microsoft SQL Server, and PostgreSQL databases. It provides tools for database management and development.", "link": "https://www.heidisql.com/", "winget": "HeidiSQL.HeidiSQL", "foss": true }, "helix": { "category": "Development", "choco": "helix", "content": "Helix", "description": "Helix is a neovim alternative built in Rust.", "link": "https://helix-editor.com/", "winget": "Helix.Helix", "foss": true }, "heroiclauncher": { "category": "Games", "choco": "na", "content": "Heroic Games Launcher", "description": "Heroic Games Launcher is an open-source alternative game launcher for Epic Games Store.", "link": "https://heroicgameslauncher.com/", "winget": "HeroicGamesLauncher.HeroicGamesLauncher", "foss": true }, "hexchat": { "category": "Communications", "choco": "hexchat", "content": "Hexchat", "description": "HexChat is a free, open-source IRC (Internet Relay Chat) client with a graphical interface for easy communication.", "link": "https://hexchat.github.io/", "winget": "HexChat.HexChat", "foss": true }, "hwinfo": { "category": "Utilities", "choco": "hwinfo", "content": "HWiNFO", "description": "HWiNFO provides comprehensive hardware information and diagnostics for Windows.", "link": "https://www.hwinfo.com/", "winget": "REALiX.HWiNFO" }, "hwmonitor": { "category": "Utilities", "choco": "hwmonitor", "content": "HWMonitor", "description": "HWMonitor is a hardware monitoring program that reads PC systems main health sensors.", "link": "https://www.cpuid.com/softwares/hwmonitor.html", "winget": "CPUID.HWMonitor" }, "imhex": { "category": "Development", "choco": "na", "content": "ImHex (Hex Editor)", "description": "A modern, featureful Hex Editor for Reverse Engineers and Developers.", "link": "https://imhex.werwolv.net/", "winget": "WerWolv.ImHex", "foss": true }, "imageglass": { "category": "Multimedia Tools", "choco": "imageglass", "content": "ImageGlass (Image Viewer)", "description": "ImageGlass is a versatile image viewer with support for various image formats and a focus on simplicity and speed.", "link": "https://imageglass.org/", "winget": "DuongDieuPhap.ImageGlass", "foss": true }, "imgburn": { "category": "Multimedia Tools", "choco": "imgburn", "content": "ImgBurn", "description": "ImgBurn is a lightweight CD, DVD, HD-DVD, and Blu-ray burning application with advanced features for creating and burning disc images.", "link": "https://www.imgburn.com/", "winget": "LIGHTNINGUK.ImgBurn" }, "inkscape": { "category": "Multimedia Tools", "choco": "inkscape", "content": "Inkscape", "description": "Inkscape is a powerful open-source vector graphics editor, suitable for tasks such as illustrations, icons, logos, and more.", "link": "https://inkscape.org/", "winget": "Inkscape.Inkscape", "foss": true }, "itch": { "category": "Games", "choco": "itch", "content": "Itch.io", "description": "Itch.io is a digital distribution platform for indie games and creative projects.", "link": "https://itch.io/", "winget": "ItchIo.Itch", "foss": true }, "itunes": { "category": "Multimedia Tools", "choco": "itunes", "content": "iTunes", "description": "iTunes is a media player, media library, and online radio broadcaster application developed by Apple Inc.", "link": "https://www.apple.com/itunes/", "winget": "Apple.iTunes" }, "jami": { "category": "Communications", "choco": "jami", "content": "Jami", "description": "Jami is a secure and privacy-focused communication platform that offers audio and video calls, messaging, and file sharing.", "link": "https://jami.net/", "winget": "SFLinux.Jami", "foss": true }, "jan": { "category": "AI-Automation", "choco": "jan", "content": "Jan", "description": "Open-source ChatGPT alternative that runs on your computer (offline-first desktop AI assistant / local model runner).", "link": "https://jan.ai/", "winget": "Jan.Jan", "foss": true }, "java8": { "category": "Development", "choco": "corretto8jdk", "content": "Amazon Corretto 8 (LTS)", "description": "Amazon Corretto is a no-cost, multiplatform, production-ready distribution of the Open Java Development Kit (OpenJDK).", "link": "https://aws.amazon.com/corretto", "winget": "Amazon.Corretto.8.JDK", "foss": true }, "java11": { "category": "Development", "choco": "corretto11jdk", "content": "Amazon Corretto 11 (LTS)", "description": "Amazon Corretto is a no-cost, multiplatform, production-ready distribution of the Open Java Development Kit (OpenJDK).", "link": "https://aws.amazon.com/corretto", "winget": "Amazon.Corretto.11.JDK", "foss": true }, "java17": { "category": "Development", "choco": "corretto17jdk", "content": "Amazon Corretto 17 (LTS)", "description": "Amazon Corretto is a no-cost, multiplatform, production-ready distribution of the Open Java Development Kit (OpenJDK).", "link": "https://aws.amazon.com/corretto", "winget": "Amazon.Corretto.17.JDK", "foss": true }, "java21": { "category": "Development", "choco": "corretto21jdk", "content": "Amazon Corretto 21 (LTS)", "description": "Amazon Corretto is a no-cost, multiplatform, production-ready distribution of the Open Java Development Kit (OpenJDK).", "link": "https://aws.amazon.com/corretto", "winget": "Amazon.Corretto.21.JDK", "foss": true }, "java25": { "category": "Development", "choco": "corretto25jdk", "content": "Amazon Corretto 25 (LTS)", "description": "Amazon Corretto is a no-cost, multiplatform, production-ready distribution of the Open Java Development Kit (OpenJDK).", "link": "https://aws.amazon.com/corretto", "winget": "Amazon.Corretto.25.JDK", "foss": true }, "jdownloader": { "category": "Utilities", "choco": "jdownloader", "content": "JDownloader", "description": "JDownloader is a feature-rich download manager with support for various file hosting services.", "link": "https://jdownloader.org/", "winget": "AppWork.JDownloader" }, "jellyfinmediaplayer": { "category": "Multimedia Tools", "choco": "jellyfin-media-player", "content": "Jellyfin Media Player", "description": "Jellyfin Media Player is a client application for the Jellyfin media server, providing access to your media library.", "link": "https://github.com/jellyfin/jellyfin-media-player", "winget": "Jellyfin.JellyfinMediaPlayer", "foss": true }, "jellyfinserver": { "category": "Multimedia Tools", "choco": "jellyfin", "content": "Jellyfin Server", "description": "Jellyfin Server is an open-source media server software, allowing you to organize and stream your media library.", "link": "https://jellyfin.org/", "winget": "Jellyfin.Server", "foss": true }, "jetbrains": { "category": "Development", "choco": "jetbrainstoolbox", "content": "Jetbrains Toolbox", "description": "Jetbrains Toolbox is a platform for easy installation and management of JetBrains developer tools.", "link": "https://www.jetbrains.com/toolbox/", "winget": "JetBrains.Toolbox" }, "joplin": { "category": "Document", "choco": "joplin", "content": "Joplin (FOSS Notes)", "description": "Joplin is an open-source note-taking and to-do application with synchronization capabilities.", "link": "https://joplinapp.org/", "winget": "Joplin.Joplin", "foss": true }, "jpegview": { "category": "Utilities", "choco": "jpegview", "content": "JPEG View", "description": "JPEGView is a lean, fast and highly configurable viewer/editor for JPEG, BMP, PNG, WEBP, TGA, GIF, JXL, HEIC, HEIF, AVIF and TIFF images with a minimal GUI.", "link": "https://github.com/sylikc/jpegview", "winget": "sylikc.JPEGView", "foss": true }, "kdeconnect": { "category": "Utilities", "choco": "kdeconnect-kde", "content": "KDE Connect", "description": "KDE Connect allows seamless integration between your KDE desktop and mobile devices.", "link": "https://community.kde.org/KDEConnect", "winget": "KDE.KDEConnect", "foss": true }, "kdenlive": { "category": "Multimedia Tools", "choco": "kdenlive", "content": "Kdenlive (Video Editor)", "description": "Kdenlive is an open-source video editing software with powerful features for creating and editing professional-quality videos.", "link": "https://kdenlive.org/", "winget": "KDE.Kdenlive", "foss": true }, "keepass": { "category": "Utilities", "choco": "keepassxc", "content": "KeePassXC", "description": "KeePassXC is a cross-platform, open-source password manager with strong encryption features.", "link": "https://keepassxc.org/", "winget": "KeePassXCTeam.KeePassXC", "foss": true }, "klite": { "category": "Multimedia Tools", "choco": "k-litecodecpack-standard", "content": "K-Lite Codec Standard", "description": "K-Lite Codec Pack Standard is a collection of audio and video codecs and related tools, providing essential components for media playback.", "link": "https://www.codecguide.com/", "winget": "CodecGuide.K-LiteCodecPack.Standard" }, "kodi": { "category": "Multimedia Tools", "choco": "kodi", "content": "Kodi Media Center", "description": "Kodi is an open-source media center application that allows you to play and view most videos, music, podcasts, and other digital media files.", "link": "https://kodi.tv/", "winget": "XBMCFoundation.Kodi", "foss": true }, "krita": { "category": "Multimedia Tools", "choco": "krita", "content": "Krita (Image Editor)", "description": "Krita is a powerful open-source painting application. It is designed for concept artists, illustrators, matte and texture artists, and the VFX industry.", "link": "https://krita.org/en/features/", "winget": "KDE.Krita", "foss": true }, "lazygit": { "category": "Development", "choco": "lazygit", "content": "Lazygit", "description": "Simple terminal UI for git commands.", "link": "https://github.com/jesseduffield/lazygit/", "winget": "JesseDuffield.lazygit", "foss": true }, "libreoffice": { "category": "Document", "choco": "libreoffice-fresh", "content": "LibreOffice", "description": "LibreOffice is a powerful and free office suite, compatible with other major office suites.", "link": "https://www.libreoffice.org/", "winget": "TheDocumentFoundation.LibreOffice", "foss": true }, "librewolf": { "category": "Browsers", "choco": "librewolf", "content": "LibreWolf", "description": "LibreWolf is a privacy-focused web browser based on Firefox, with additional privacy and security enhancements.", "link": "https://librewolf-community.gitlab.io/", "winget": "LibreWolf.LibreWolf", "foss": true }, "linkshellextension": { "category": "Utilities", "choco": "linkshellextension", "content": "Link Shell extension", "description": "Link Shell Extension (LSE) provides for the creation of Hardlinks, Junctions, Volume Mountpoints, Symbolic Links, a folder cloning process that utilises Hardlinks or Symbolic Links and a copy process taking care of Junctions, Symbolic Links, and Hardlinks. LSE, as its name implies is implemented as a Shell extension and is accessed from Windows Explorer, or similar file/folder managers.", "link": "https://schinagl.priv.at/nt/hardlinkshellext/hardlinkshellext.html", "winget": "HermannSchinagl.LinkShellExtension" }, "linphone": { "category": "Communications", "choco": "linphone", "content": "Linphone", "description": "Linphone is an open-source voice over IP (VoIPservice that allows for audio and video calls, messaging, and more.", "link": "https://www.linphone.org/", "winget": "BelledonneCommunications.Linphone", "foss": true }, "livelywallpaper": { "category": "Utilities", "choco": "lively", "content": "Lively Wallpaper", "description": "Free and open-source software that allows users to set animated desktop wallpapers and screensavers.", "link": "https://www.rocksdanister.com/lively/", "winget": "rocksdanister.LivelyWallpaper", "foss": true }, "lm-studio": { "category": "AI-Automation", "choco": "lm-studio", "content": "LM Studio", "description": "Desktop app to discover, download, and run local LLMs on your machine, with a built-in chat UI and local inference tooling.", "link": "https://lmstudio.ai/", "winget": "ElementLabs.LMStudio", "foss": false }, "localsend": { "category": "Utilities", "choco": "localsend.install", "content": "LocalSend", "description": "An open-source cross-platform alternative to AirDrop.", "link": "https://localsend.org/", "winget": "LocalSend.LocalSend", "foss": true }, "lockhunter": { "category": "Utilities", "choco": "lockhunter", "content": "LockHunter", "description": "LockHunter is a free tool to delete files blocked by something you do not know.", "link": "https://lockhunter.com/", "winget": "CrystalRich.LockHunter" }, "logseq": { "category": "Document", "choco": "logseq", "content": "Logseq", "description": "Logseq is a versatile knowledge management and note-taking application designed for the digital thinker. With a focus on the interconnectedness of ideas, Logseq allows users to seamlessly organize their thoughts through a combination of hierarchical outlines and bi-directional linking. It supports both structured and unstructured content, enabling users to create a personalized knowledge graph that adapts to their evolving ideas and insights.", "link": "https://logseq.com/", "winget": "Logseq.Logseq", "foss": true }, "logitechghub": { "category": "Utilities", "choco": "lghub", "content": "Logitech G Hub", "description": "Official software for managing Logitech gaming peripherals (mice, keyboards, headsets, lighting profiles, etc.).", "link": "https://www.logitechg.com/en-us/software/ghub", "winget": "Logitech.GHUB" }, "malwarebytes": { "category": "Utilities", "choco": "malwarebytes", "content": "Malwarebytes", "description": "Malwarebytes is an anti-malware software that provides real-time protection against threats.", "link": "https://www.malwarebytes.com/", "winget": "Malwarebytes.Malwarebytes" }, "masscode": { "category": "Document", "choco": "na", "content": "massCode (Snippet Manager)", "description": "massCode is a fast and efficient open-source code snippet manager for developers.", "link": "https://masscode.io/", "winget": "antonreshetov.massCode", "foss": true }, "matrix": { "category": "Communications", "choco": "element-desktop", "content": "Element", "description": "Element is a client for Matrix; an open network for secure, decentralized communication.", "link": "https://element.io/", "winget": "Element.Element", "foss": true }, "meld": { "category": "Utilities", "choco": "meld", "content": "Meld", "description": "Meld is a visual diff and merge tool for files and directories.", "link": "https://meldmerge.org/", "winget": "Meld.Meld", "foss": true }, "microsoft-aishell": { "category": "AI-Automation", "choco": "na", "content": "Microsoft AI Shell", "description": "CLI shell that connects to AI assistance providers ('agents') for command-line productivity; distributed via WinGet.", "link": "https://github.com/PowerShell/AIShell", "winget": "Microsoft.AIShell", "foss": true }, "microsoft-copilot": { "category": "AI-Automation", "choco": "na", "content": "Microsoft Copilot", "description": "Microsoft Copilot desktop app for Windows (consumer Copilot), distributed via Microsoft Store and commonly installed via its Store ID.", "link": "https://apps.microsoft.com/detail/9nht9rb2f4hd", "winget": "9NHT9RB2F4HD", "foss": false }, "ModernFlyouts": { "category": "Multimedia Tools", "choco": "na", "content": "Modern Flyouts", "description": "An open-source, modern, Fluent Design-based set of flyouts for Windows.", "link": "https://github.com/ModernFlyouts-Community/ModernFlyouts/", "winget": "ModernFlyouts.ModernFlyouts", "foss": true }, "monitorian": { "category": "Utilities", "choco": "monitorian", "content": "Monitorian", "description": "Monitorian is a utility for adjusting monitor brightness and contrast on Windows.", "link": "https://github.com/emoacht/Monitorian", "winget": "emoacht.Monitorian", "foss": true }, "moonlight": { "category": "Games", "choco": "moonlight-qt", "content": "Moonlight/GameStream Client", "description": "Moonlight/GameStream Client allows you to stream PC games to other devices over your local network.", "link": "https://moonlight-stream.org/", "winget": "MoonlightGameStreamingProject.Moonlight", "foss": true }, "Motrix": { "category": "Utilities", "choco": "motrix", "content": "Motrix Download Manager", "description": "A full-featured download manager.", "link": "https://motrix.app/", "winget": "agalwood.Motrix", "foss": true }, "mpchc": { "category": "Multimedia Tools", "choco": "mpc-hc-clsid2", "content": "Media Player Classic - Home Cinema", "description": "Media Player Classic - Home Cinema (MPC-HC) is a free and open-source video and audio player for Windows. MPC-HC is based on the original Guliverkli project and contains many additional features and bug fixes.", "link": "https://github.com/clsid2/mpc-hc/", "winget": "clsid2.mpc-hc", "foss": true }, "mremoteng": { "category": "Pro Tools", "choco": "mremoteng", "content": "mRemoteNG", "description": "mRemoteNG is a free and open-source remote connections manager. It allows you to view and manage multiple remote sessions in a single interface.", "link": "https://mremoteng.org/", "winget": "mRemoteNG.mRemoteNG", "foss": true }, "msedgeredirect": { "category": "Utilities", "choco": "msedgeredirect", "content": "MSEdgeRedirect", "description": "A Tool to Redirect News, Search, Widgets, Weather, and More to your default browser.", "link": "https://github.com/rcmaehl/MSEdgeRedirect", "winget": "rcmaehl.MSEdgeRedirect", "foss": true }, "msiafterburner": { "category": "Utilities", "choco": "msiafterburner", "content": "MSI Afterburner", "description": "MSI Afterburner is a graphics card overclocking utility with advanced features.", "link": "https://www.msi.com/Landing/afterburner", "winget": "Guru3D.Afterburner" }, "mullvadvpn": { "category": "Pro Tools", "choco": "mullvad-app", "content": "Mullvad VPN", "description": "This is the VPN client software for the Mullvad VPN service.", "link": "https://github.com/mullvad/mullvadvpn-app", "winget": "MullvadVPN.MullvadVPN", "foss": true }, "BorderlessGaming": { "category": "Utilities", "choco": "borderlessgaming", "content": "Borderless Gaming", "description": "Play your favorite games in a borderless window; no more time consuming alt-tabs.", "link": "https://github.com/Codeusa/Borderless-Gaming", "winget": "Codeusa.BorderlessGaming", "foss": true }, "EqualizerAPO": { "category": "Multimedia Tools", "choco": "equalizerapo", "content": "Equalizer APO", "description": "Equalizer APO is a parametric / graphic equalizer for Windows.", "link": "https://sourceforge.net/projects/equalizerapo", "winget": "na", "foss": true }, "CompactGUI": { "category": "Utilities", "choco": "compactgui", "content": "Compact GUI", "description": "Transparently compress active games and programs using Windows 10/11 APIs", "link": "https://github.com/IridiumIO/CompactGUI", "winget": "IridiumIO.CompactGUI", "foss": true }, "ExifCleaner": { "category": "Utilities", "choco": "na", "content": "ExifCleaner", "description": "Desktop app to clean metadata from images, videos, PDFs, and other files.", "link": "https://github.com/szTheory/exifcleaner", "winget": "szTheory.exifcleaner", "foss": true }, "mullvadbrowser": { "category": "Browsers", "choco": "na", "content": "Mullvad Browser", "description": "Mullvad Browser is a privacy-focused web browser, developed in partnership with the Tor Project.", "link": "https://mullvad.net/browser", "winget": "MullvadVPN.MullvadBrowser", "foss": true }, "musescore": { "category": "Multimedia Tools", "choco": "musescore", "content": "MuseScore", "description": "Create, play back and print beautiful sheet music with free and easy to use music notation software MuseScore.", "link": "https://musescore.org/en", "winget": "Musescore.Musescore", "foss": true }, "musicbee": { "category": "Multimedia Tools", "choco": "musicbee", "content": "MusicBee (Music Player)", "description": "MusicBee is a customizable music player with support for various audio formats. It includes features like an integrated search function, tag editing, and more.", "link": "https://getmusicbee.com/", "winget": "MusicBee.MusicBee" }, "mp3tag": { "category": "Multimedia Tools", "choco": "mp3tag", "content": "Mp3tag (Metadata Audio Editor)", "description": "Mp3tag is a powerful and yet easy-to-use tool to edit metadata of common audio formats.", "link": "https://www.mp3tag.de/en/", "winget": "Mp3tag.Mp3tag" }, "tagscanner": { "category": "Multimedia Tools", "choco": "tagscanner", "content": "TagScanner (Tag Scanner)", "description": "TagScanner is a powerful tool for organizing and managing your music collection.", "link": "https://www.xdlab.ru/en/", "winget": "SergeySerkov.TagScanner" }, "nanazip": { "category": "Utilities", "choco": "nanazip", "content": "NanaZip", "description": "NanaZip is a fast and efficient file compression and decompression tool.", "link": "https://github.com/M2Team/NanaZip", "winget": "M2Team.NanaZip", "foss": true }, "netbird": { "category": "Pro Tools", "choco": "netbird", "content": "NetBird", "description": "NetBird is a open-source alternative comparable to TailScale that can be connected to a selfhosted Server.", "link": "https://netbird.io/", "winget": "netbird", "foss": true }, "naps2": { "category": "Document", "choco": "naps2", "content": "NAPS2 (Document Scanner)", "description": "NAPS2 is a document scanning application that simplifies the process of creating electronic documents.", "link": "https://www.naps2.com/", "winget": "Cyanfish.NAPS2", "foss": true }, "neofetchwin": { "category": "Utilities", "choco": "na", "content": "Neofetch", "description": "Neofetch is a command-line utility for displaying system information in a visually appealing way.", "link": "https://github.com/nepnep39/neofetch-win", "winget": "nepnep.neofetch-win", "foss": true }, "neovim": { "category": "Development", "choco": "neovim", "content": "Neovim", "description": "Neovim is a highly extensible text editor and an improvement over the original Vim editor.", "link": "https://neovim.io/", "winget": "Neovim.Neovim" }, "nextclouddesktop": { "category": "Utilities", "choco": "nextcloud-client", "content": "Nextcloud Desktop", "description": "Nextcloud Desktop is the official desktop client for the Nextcloud file synchronization and sharing platform.", "link": "https://nextcloud.com/install/#install-clients", "winget": "Nextcloud.NextcloudDesktop", "foss": true }, "nglide": { "category": "Multimedia Tools", "choco": "na", "content": "nGlide (3dfx compatibility)", "description": "nGlide is a 3Dfx Voodoo Glide wrapper. It allows you to play games that use Glide API on modern graphics cards without the need for a 3Dfx Voodoo graphics card.", "link": "https://www.zeus-software.com/downloads/nglide", "winget": "ZeusSoftware.nGlide" }, "nmap": { "category": "Pro Tools", "choco": "nmap", "content": "Nmap", "description": "Nmap (Network Mapper) is an open-source tool for network exploration and security auditing. It discovers devices on a network and provides information about their ports and services.", "link": "https://nmap.org/", "winget": "Insecure.Nmap", "foss": true }, "nodejs": { "category": "Development", "choco": "nodejs", "content": "NodeJS", "description": "NodeJS is a JavaScript runtime built on Chrome's V8 JavaScript engine for building server-side and networking applications.", "link": "https://nodejs.org/", "winget": "OpenJS.NodeJS", "foss": true }, "nodejslts": { "category": "Development", "choco": "nodejs-lts", "content": "NodeJS LTS", "description": "NodeJS LTS provides Long-Term Support releases for stable and reliable server-side JavaScript development.", "link": "https://nodejs.org/", "winget": "OpenJS.NodeJS.LTS" }, "nomacs": { "category": "Multimedia Tools", "choco": "nomacs", "content": "Nomacs (Image viewer)", "description": "Nomacs is a free, open-source image viewer that supports multiple platforms. It features basic image editing capabilities and supports a variety of image formats.", "link": "https://nomacs.org/", "winget": "nomacs.nomacs", "foss": true }, "notepadplus": { "category": "Document", "choco": "notepadplusplus", "content": "Notepad++", "description": "Notepad++ is a free, open-source code editor and Notepad replacement with support for multiple languages.", "link": "https://notepad-plus-plus.org/", "winget": "Notepad++.Notepad++", "foss": true }, "nuget": { "category": "Microsoft Tools", "choco": "nuget.commandline", "content": "NuGet", "description": "NuGet is a package manager for the .NET framework, enabling developers to manage and share libraries in their .NET applications.", "link": "https://www.nuget.org/", "winget": "Microsoft.NuGet", "foss": true }, "nushell": { "category": "Utilities", "choco": "nushell", "content": "Nushell", "description": "Nushell is a new shell that takes advantage of modern hardware and systems to provide a powerful, expressive, and fast experience.", "link": "https://www.nushell.sh/", "winget": "Nushell.Nushell", "foss": true }, "nvclean": { "category": "Utilities", "choco": "na", "content": "NVCleanstall", "description": "NVCleanstall is a tool designed to customize NVIDIA driver installations, allowing advanced users to control more aspects of the installation process.", "link": "https://www.techpowerup.com/nvcleanstall/", "winget": "TechPowerUp.NVCleanstall" }, "nvm": { "category": "Development", "choco": "nvm", "content": "Node Version Manager", "description": "Node Version Manager (NVM) for Windows allows you to easily switch between multiple Node.js versions.", "link": "https://github.com/coreybutler/nvm-windows", "winget": "CoreyButler.NVMforWindows", "foss": true }, "obs": { "category": "Multimedia Tools", "choco": "obs-studio", "content": "OBS Studio", "description": "OBS Studio is a free and open-source software for video recording and live streaming. It supports real-time video/audio capturing and mixing, making it popular among content creators.", "link": "https://obsproject.com/", "winget": "OBSProject.OBSStudio", "foss": true }, "obsidian": { "category": "Document", "choco": "obsidian", "content": "Obsidian", "description": "Obsidian is a powerful note-taking and knowledge management application.", "link": "https://obsidian.md/", "winget": "Obsidian.Obsidian" }, "okular": { "category": "Document", "choco": "okular", "content": "Okular", "description": "Okular is a versatile document viewer with advanced features.", "link": "https://okular.kde.org/", "winget": "KDE.Okular", "foss": true }, "ollama": { "category": "AI-Automation", "choco": "na", "content": "Ollama", "description": "Ollama lets you run and manage local large language models on your desktop.", "link": "https://ollama.com/", "winget": "Ollama.Ollama", "foss": true }, "onedrive": { "category": "Microsoft Tools", "choco": "onedrive", "content": "OneDrive", "description": "OneDrive is a cloud storage service provided by Microsoft, allowing users to store and share files securely across devices.", "link": "https://onedrive.live.com/", "winget": "Microsoft.OneDrive" }, "onlyoffice": { "category": "Document", "choco": "onlyoffice", "content": "ONLYOffice Desktop", "description": "ONLYOffice Desktop is a comprehensive office suite for document editing and collaboration.", "link": "https://www.onlyoffice.com/desktop.aspx", "winget": "ONLYOFFICE.DesktopEditors", "foss": true }, "OPAutoClicker": { "category": "Utilities", "choco": "autoclicker", "content": "OPAutoClicker", "description": "A full-fledged autoclicker with two modes of autoclicking, at your dynamic cursor location or at a prespecified location.", "link": "https://www.opautoclicker.com", "winget": "OPAutoClicker.OPAutoClicker" }, "openhashtab": { "category": "Utilities", "choco": "openhashtab", "content": "OpenHashTab", "description": "OpenHashTab is a shell extension for conveniently calculating and checking file hashes from file properties.", "link": "https://github.com/namazso/OpenHashTab/", "winget": "namazso.OpenHashTab", "foss": true }, "openrgb": { "category": "Utilities", "choco": "openrgb", "content": "OpenRGB", "description": "OpenRGB is an open-source RGB lighting control software designed to manage and control RGB lighting for various components and peripherals.", "link": "https://openrgb.org/", "winget": "OpenRGB.OpenRGB", "foss": true }, "openscad": { "category": "Multimedia Tools", "choco": "openscad", "content": "OpenSCAD", "description": "OpenSCAD is a free and open-source script-based 3D CAD modeler. It is especially useful for creating parametric designs for 3D printing.", "link": "https://www.openscad.org/", "winget": "OpenSCAD.OpenSCAD", "foss": true }, "openshell": { "category": "Utilities", "choco": "open-shell", "content": "Open Shell (Start Menu)", "description": "Open Shell is a Windows Start Menu replacement with enhanced functionality and customization options.", "link": "https://github.com/Open-Shell/Open-Shell-Menu", "winget": "Open-Shell.Open-Shell-Menu", "foss": true }, "OpenVPN": { "category": "Pro Tools", "choco": "openvpn-connect", "content": "OpenVPN Connect", "description": "OpenVPN Connect is an open-source VPN client that allows you to connect securely to a VPN server. It provides a secure and encrypted connection for protecting your online privacy.", "link": "https://openvpn.net/", "winget": "OpenVPNTechnologies.OpenVPNConnect", "foss": true }, "OVirtualBox": { "category": "Utilities", "choco": "virtualbox", "content": "Oracle VirtualBox", "description": "Oracle VirtualBox is a powerful and free open-source virtualization tool for x86 and AMD64/Intel64 architectures.", "link": "https://www.virtualbox.org/", "winget": "Oracle.VirtualBox", "foss": true }, "ownclouddesktop": { "category": "Utilities", "choco": "owncloud-client", "content": "ownCloud Desktop", "description": "ownCloud Desktop is the official desktop client for the ownCloud file synchronization and sharing platform.", "link": "https://owncloud.com/desktop-app/", "winget": "ownCloud.ownCloudDesktop", "foss": true }, "policyplus": { "category": "Multimedia Tools", "choco": "na", "content": "Policy Plus", "description": "Local Group Policy Editor plus more, for all Windows editions.", "link": "https://github.com/Fleex255/PolicyPlus", "winget": "Fleex255.PolicyPlus", "foss": true }, "potplayer": { "category": "Multimedia Tools", "choco": "na", "content": "PotPlayer", "description": "PotPlayer is a free Windows media player with wide format support, high performance, built-in codecs, and extensive customization options.", "link": "https://potplayer.tv/", "winget": "Daum.PotPlayer" }, "power-automate-desktop": { "category": "AI-Automation", "choco": "na", "content": "Power Automate for desktop", "description": "Microsoft's Windows RPA tool for building desktop flows to automate repetitive tasks across apps and services.", "link": "https://powerautomate.microsoft.com/desktop/", "winget": "na", "foss": false }, "processexplorer": { "category": "Microsoft Tools", "choco": "na", "content": "Process Explorer", "description": "Process Explorer is a task manager and system monitor.", "link": "https://learn.microsoft.com/sysinternals/downloads/process-explorer", "winget": "Microsoft.Sysinternals.ProcessExplorer" }, "Paintdotnet": { "category": "Multimedia Tools", "choco": "paint.net", "content": "Paint.NET", "description": "Paint.NET is a free image and photo editing software for Windows. It features an intuitive user interface and supports a wide range of powerful editing tools.", "link": "https://www.getpaint.net/", "winget": "dotPDN.PaintDotNet" }, "parsec": { "category": "Utilities", "choco": "parsec", "content": "Parsec", "description": "Parsec is a low-latency, high-quality remote desktop sharing application for collaborating and gaming across devices.", "link": "https://parsec.app/", "winget": "Parsec.Parsec" }, "pdf-xchange": { "category": "Document", "choco": "pdfxchangeeditor", "content": "PDF-XChangeEditor", "description": "a comprehensive Windows-based software suite and editor for creating, viewing, editing, annotating, and signing PDF files.", "link": "https://www.pdf-xchange.com/", "winget": "TrackerSoftware.PDF-XChangeEditor" }, "pdf24creator": { "category": "Document", "choco": "pdf24", "content": "PDF24 creator", "description": "Free and easy-to-use online/desktop PDF tools that make you more productive", "link": "https://tools.pdf24.org/en/", "winget": "geeksoftwareGmbH.PDF24Creator" }, "pdfsam": { "category": "Document", "choco": "pdfsam", "content": "PDFsam Basic", "description": "PDFsam Basic is a free and open-source tool for splitting, merging, and rotating PDF files.", "link": "https://pdfsam.org/", "winget": "PDFsam.PDFsam", "foss": true }, "peazip": { "category": "Utilities", "choco": "peazip", "content": "PeaZip", "description": "PeaZip is a free, open-source file archiver utility that supports multiple archive formats and provides encryption features.", "link": "https://peazip.github.io/", "winget": "Giorgiotani.Peazip", "foss": true }, "piimager": { "category": "Utilities", "choco": "rpi-imager", "content": "Raspberry Pi Imager", "description": "Raspberry Pi Imager is a utility for writing operating system images to SD cards for Raspberry Pi devices.", "link": "https://www.raspberrypi.com/software/", "winget": "RaspberryPiFoundation.RaspberryPiImager" }, "playnite": { "category": "Games", "choco": "playnite", "content": "Playnite", "description": "Playnite is an open-source video game library manager with one simple goal: To provide a unified interface for all of your games.", "link": "https://playnite.link/", "winget": "Playnite.Playnite", "foss": true }, "plex": { "category": "Multimedia Tools", "choco": "plexmediaserver", "content": "Plex Media Server", "description": "Plex Media Server is a media server software that allows you to organize and stream your media library. It supports various media formats and offers a wide range of features.", "link": "https://www.plex.tv/your-media/", "winget": "Plex.PlexMediaServer" }, "plexdesktop": { "category": "Multimedia Tools", "choco": "plex", "content": "Plex Desktop", "description": "Plex Desktop for Windows is the front end for Plex Media Server.", "link": "https://www.plex.tv", "winget": "Plex.Plex" }, "Portmaster": { "category": "Pro Tools", "choco": "portmaster", "content": "Portmaster", "description": "Portmaster is a free and open-source application that puts you back in charge over all your computers network connections.", "link": "https://safing.io/", "winget": "Safing.Portmaster", "foss": true }, "posh": { "category": "Development", "choco": "oh-my-posh", "content": "Oh My Posh (Prompt)", "description": "Oh My Posh is a cross-platform prompt theme engine for any shell.", "link": "https://ohmyposh.dev/", "winget": "JanDeDobbeleer.OhMyPosh", "foss": true }, "postman": { "category": "Development", "choco": "postman", "content": "Postman", "description": "Postman is a collaboration platform for API development that simplifies the process of developing APIs.", "link": "https://www.postman.com/", "winget": "Postman.Postman" }, "powerautomate": { "category": "Microsoft Tools", "choco": "powerautomatedesktop", "content": "Power Automate", "description": "Using Power Automate Desktop you can automate tasks on the desktop as well as the Web.", "link": "https://www.microsoft.com/en-us/power-platform/products/power-automate", "winget": "Microsoft.PowerAutomateDesktop" }, "powerbi": { "category": "Microsoft Tools", "choco": "powerbi", "content": "Power BI", "description": "Create stunning reports and visualizations with Power BI Desktop. It puts visual analytics at your fingertips with intuitive report authoring. Drag-and-drop to place content exactly where you want it on the flexible and fluid canvas. Quickly discover patterns as you explore a single unified view of linked, interactive visualizations.", "link": "https://www.microsoft.com/en-us/power-platform/products/power-bi/", "winget": "Microsoft.PowerBI" }, "powershell": { "category": "Microsoft Tools", "choco": "powershell-core", "content": "PowerShell", "description": "PowerShell is a task automation framework and scripting language designed for system administrators, offering powerful command-line capabilities.", "link": "https://github.com/PowerShell/PowerShell", "winget": "Microsoft.PowerShell", "foss": true }, "powertoys": { "category": "Microsoft Tools", "choco": "powertoys", "content": "PowerToys", "description": "PowerToys is a set of utilities for power users to enhance productivity, featuring tools like FancyZones, PowerRename, and more.", "link": "https://github.com/microsoft/PowerToys", "winget": "Microsoft.PowerToys", "foss": true }, "prismlauncher": { "category": "Games", "choco": "prismlauncher", "content": "Prism Launcher", "description": "Prism Launcher is an open-source Minecraft launcher with the ability to manage multiple instances, accounts and mods.", "link": "https://prismlauncher.org/", "winget": "PrismLauncher.PrismLauncher", "foss": true }, "processlasso": { "category": "Utilities", "choco": "plasso", "content": "Process Lasso", "description": "Process Lasso is a system optimization and automation tool that improves system responsiveness and stability by adjusting process priorities and CPU affinities.", "link": "https://bitsum.com/", "winget": "BitSum.ProcessLasso" }, "protonauth": { "category": "Utilities", "choco": "protonauth", "content": "Proton Authenticator", "description": "2FA app from Proton to securely sync and backup 2FA codes.", "link": "https://proton.me/authenticator", "winget": "Proton.ProtonAuthenticator", "foss": true }, "processmonitor": { "category": "Microsoft Tools", "choco": "procexp", "content": "SysInternals Process Monitor", "description": "SysInternals Process Monitor is an advanced monitoring tool that shows real-time file system, registry, and process/thread activity.", "link": "https://docs.microsoft.com/en-us/sysinternals/downloads/procmon", "winget": "Microsoft.Sysinternals.ProcessMonitor" }, "orcaslicer": { "category": "Utilities", "choco": "orcaslicer", "content": "OrcaSlicer", "description": "G-code generator for 3D printers (Bambu, Prusa, Voron, VzBot, RatRig, Creality, etc.).", "link": "https://github.com/SoftFever/OrcaSlicer", "winget": "SoftFever.OrcaSlicer", "foss": true }, "prucaslicer": { "category": "Utilities", "choco": "prusaslicer", "content": "PrusaSlicer", "description": "PrusaSlicer is a powerful and easy-to-use slicing software for 3D printing with Prusa 3D printers.", "link": "https://www.prusa3d.com/prusaslicer/", "winget": "Prusa3d.PrusaSlicer", "foss": true }, "psremoteplay": { "category": "Games", "choco": "ps-remote-play", "content": "PS Remote Play", "description": "PS Remote Play is a free application that allows you to stream games from your PlayStation console to a PC or mobile device.", "link": "https://remoteplay.dl.playstation.net/remoteplay/lang/gb/", "winget": "PlayStation.PSRemotePlay" }, "putty": { "category": "Pro Tools", "choco": "putty", "content": "PuTTY", "description": "PuTTY is a free and open-source terminal emulator, serial console, and network file transfer application. It supports various network protocols such as SSH, Telnet, and SCP.", "link": "https://www.chiark.greenend.org.uk/~sgtatham/putty/", "winget": "PuTTY.PuTTY", "foss": true }, "python3": { "category": "Development", "choco": "python", "content": "Python3", "description": "Python is a versatile programming language used for web development, data analysis, artificial intelligence, and more.", "link": "https://www.python.org/", "winget": "Python.Python.3.14", "foss": true }, "qbittorrent": { "category": "Utilities", "choco": "qbittorrent", "content": "qBittorrent", "description": "qBittorrent is a free and open-source BitTorrent client that aims to provide a feature-rich and lightweight alternative to other torrent clients.", "link": "https://www.qbittorrent.org/", "winget": "qBittorrent.qBittorrent", "foss": true }, "transmission": { "category": "Utilities", "choco": "transmission", "content": "Transmission", "description": "Transmission is a cross-platform BitTorrent client that is open-source, easy, powerful, and lean.", "link": "https://transmissionbt.com/", "winget": "Transmission.Transmission", "foss": true }, "tixati": { "category": "Utilities", "choco": "tixati.portable", "content": "Tixati", "description": "Tixati is a cross-platform BitTorrent client written in C++ that has been designed to be light on system resources.", "link": "https://www.tixati.com/", "winget": "Tixati.Tixati.Portable" }, "qtox": { "category": "Communications", "choco": "qtox", "content": "QTox", "description": "QTox is a free and open-source messaging app that prioritizes user privacy and security in its design.", "link": "https://qtox.github.io/", "winget": "Tox.qTox", "foss": true }, "quicklook": { "category": "Utilities", "choco": "quicklook", "content": "Quicklook", "description": "Bring macOS \u201cQuick Look\u201d feature to Windows.", "link": "https://github.com/QL-Win/QuickLook", "winget": "QL-Win.QuickLook", "foss": true }, "rainmeter": { "category": "Utilities", "choco": "na", "content": "Rainmeter", "description": "Rainmeter is a desktop customization tool that allows you to create and share customizable skins for your desktop.", "link": "https://www.rainmeter.net/", "winget": "Rainmeter.Rainmeter", "foss": true }, "revo": { "category": "Utilities", "choco": "revo-uninstaller", "content": "Revo Uninstaller", "description": "Revo Uninstaller is an advanced uninstaller tool that helps you remove unwanted software and clean up your system.", "link": "https://www.revouninstaller.com/", "winget": "RevoUninstaller.RevoUninstaller" }, "WiseProgramUninstaller": { "category": "Utilities", "choco": "na", "content": "Wise Program Uninstaller (WiseCleaner)", "description": "Wise Program Uninstaller is the perfect solution for uninstalling Windows programs, allowing you to uninstall applications quickly and completely using its simple and user-friendly interface.", "link": "https://www.wisecleaner.com/wise-program-uninstaller.html", "winget": "WiseCleaner.WiseProgramUninstaller" }, "revolt": { "category": "Communications", "choco": "na", "content": "Revolt", "description": "Find your community, connect with the world. Revolt is one of the best ways to stay connected with your friends and community without sacrificing any usability.", "link": "https://revolt.chat/", "winget": "Revolt.RevoltDesktop", "foss": true }, "ripgrep": { "category": "Utilities", "choco": "ripgrep", "content": "Ripgrep", "description": "Fast and powerful commandline search tool.", "link": "https://github.com/BurntSushi/ripgrep/", "winget": "BurntSushi.ripgrep.MSVC", "foss": true }, "rufus": { "category": "Utilities", "choco": "rufus", "content": "Rufus Imager", "description": "Rufus is a utility that helps format and create bootable USB drives, such as USB keys or pen drives.", "link": "https://rufus.ie/", "winget": "Rufus.Rufus", "foss": true }, "rustdesk": { "category": "Pro Tools", "choco": "rustdesk.portable", "content": "RustDesk", "description": "RustDesk is a free and open-source remote desktop application. It provides a secure way to connect to remote machines and access desktop environments.", "link": "https://rustdesk.com/", "winget": "RustDesk.RustDesk", "foss": true }, "rustlang": { "category": "Development", "choco": "rust", "content": "Rust", "description": "Rust is a programming language designed for safety and performance, particularly focused on systems programming.", "link": "https://www.rust-lang.org/", "winget": "Rustlang.Rust.MSVC", "foss": true }, "sagethumbs": { "category": "Utilities", "choco": "sagethumbs", "content": "SageThumbs", "description": "Provides support for thumbnails in Explorer with more formats.", "link": "https://sagethumbs.en.lo4d.com/windows", "winget": "CherubicSoftware.SageThumbs", "foss": true }, "sandboxie": { "category": "Utilities", "choco": "sandboxie", "content": "Sandboxie Plus", "description": "Sandboxie Plus is a sandbox-based isolation program that provides enhanced security by running applications in an isolated environment.", "link": "https://github.com/sandboxie-plus/Sandboxie", "winget": "Sandboxie.Plus", "foss": true }, "sdio": { "category": "Utilities", "choco": "sdio", "content": "Snappy Driver Installer Origin", "description": "Snappy Driver Installer Origin is a free and open-source driver updater with a vast driver database for Windows.", "link": "https://www.glenn.delahoy.com/snappy-driver-installer-origin/", "winget": "GlennDelahoy.SnappyDriverInstallerOrigin", "foss": true }, "session": { "category": "Communications", "choco": "session", "content": "Session", "description": "Session is a private and secure messaging app built on a decentralized network for user privacy and data protection.", "link": "https://getsession.org/", "winget": "Session.Session", "foss": true }, "sharex": { "category": "Multimedia Tools", "choco": "sharex", "content": "ShareX (Screenshots)", "description": "ShareX is a free and open-source screen capture and file sharing tool. It supports various capture methods and offers advanced features for editing and sharing screenshots.", "link": "https://getsharex.com/", "winget": "ShareX.ShareX", "foss": true }, "nilesoftShell": { "category": "Utilities", "choco": "nilesoft-shell", "content": "Nilesoft Shell", "description": "Shell is an expanded context menu tool that adds extra functionality and customization options to the Windows context menu.", "link": "https://nilesoft.org/", "winget": "Nilesoft.Shell" }, "systeminformer": { "category": "Development", "choco": "na", "content": "System Informer", "description": "A free, powerful, multi-purpose tool that helps you monitor system resources, debug software and detect malware.", "link": "https://systeminformer.com/", "winget": "WinsiderSS.SystemInformer", "foss": true }, "sidequest": { "category": "Games", "choco": "sidequest", "content": "SideQuestVR", "description": "SideQuestVR is a community-driven platform that enables users to discover, install, and manage virtual reality content on Oculus Quest devices.", "link": "https://sidequestvr.com/", "winget": "SideQuestVR.SideQuest" }, "signal": { "category": "Communications", "choco": "signal", "content": "Signal", "description": "Signal is a privacy-focused messaging app that offers end-to-end encryption for secure and private communication.", "link": "https://signal.org/", "winget": "OpenWhisperSystems.Signal", "foss": true }, "signalrgb": { "category": "Utilities", "choco": "na", "content": "SignalRGB", "description": "SignalRGB lets you control and sync your favorite RGB devices with one free application.", "link": "https://www.signalrgb.com/", "winget": "WhirlwindFX.SignalRgb" }, "simplenote": { "category": "Document", "choco": "simplenote", "content": "simplenote", "description": "Simplenote is an easy way to keep notes, lists, ideas and more.", "link": "https://simplenote.com/", "winget": "Automattic.Simplenote", "foss": true }, "simplewall": { "category": "Pro Tools", "choco": "simplewall", "content": "Simplewall", "description": "Simplewall is a free and open-source firewall application for Windows. It allows users to control and manage the inbound and outbound network traffic of applications.", "link": "https://github.com/henrypp/simplewall", "winget": "Henry++.simplewall", "foss": true }, "slack": { "category": "Communications", "choco": "slack", "content": "Slack", "description": "Slack is a collaboration hub that connects teams and facilitates communication through channels, messaging, and file sharing.", "link": "https://slack.com/", "winget": "SlackTechnologies.Slack" }, "spacedrive": { "category": "Utilities", "choco": "na", "content": "Spacedrive File Manager", "description": "Spacedrive is a file manager that offers cloud storage integration and file synchronization across devices.", "link": "https://www.spacedrive.com/", "winget": "spacedrive.Spacedrive", "foss": true }, "spacesniffer": { "category": "Utilities", "choco": "spacesniffer", "content": "SpaceSniffer", "description": "A tool application that lets you understand how folders and files are structured on your disks.", "link": "http://www.uderzo.it/main_products/space_sniffer/", "winget": "UderzoSoftware.SpaceSniffer" }, "starship": { "category": "Development", "choco": "starship", "content": "Starship (Shell Prompt)", "description": "Starship is a minimal, fast, and customizable prompt for any shell.", "link": "https://starship.rs/", "winget": "starship", "foss": true }, "steam": { "category": "Games", "choco": "steam-client", "content": "Steam", "description": "Steam is a digital distribution platform for purchasing and playing video games, offering multiplayer gaming, video streaming, and more.", "link": "https://store.steampowered.com/about/", "winget": "Valve.Steam" }, "strawberry": { "category": "Multimedia Tools", "choco": "strawberrymusicplayer", "content": "Strawberry (Music Player)", "description": "Strawberry is an open-source music player that focuses on music collection management and audio quality. It supports various audio formats and features a clean user interface.", "link": "https://www.strawberrymusicplayer.org/", "winget": "StrawberryMusicPlayer.Strawberry", "foss": true }, "stremio": { "winget": "Stremio.Stremio", "choco": "stremio", "category": "Multimedia Tools", "content": "Stremio", "link": "https://www.stremio.com/", "description": "Stremio is a media center application that allows users to organize and stream their favorite movies, TV shows, and video content.", "foss": true }, "sublimemerge": { "category": "Development", "choco": "sublimemerge", "content": "Sublime Merge", "description": "Sublime Merge is a Git client with advanced features and a beautiful interface.", "link": "https://www.sublimemerge.com/", "winget": "SublimeHQ.SublimeMerge" }, "sublimetext": { "category": "Development", "choco": "sublimetext4", "content": "Sublime Text", "description": "Sublime Text is a sophisticated text editor for code, markup, and prose.", "link": "https://www.sublimetext.com/", "winget": "SublimeHQ.SublimeText.4" }, "sumatra": { "category": "Document", "choco": "sumatrapdf", "content": "Sumatra PDF", "description": "Sumatra PDF is a lightweight and fast PDF viewer with minimalistic design.", "link": "https://www.sumatrapdfreader.org/free-pdf-reader.html", "winget": "SumatraPDF.SumatraPDF", "foss": true }, "pdfgear": { "category": "Document", "choco": "na", "content": "PDFgear", "description": "PDFgear is a piece of full-featured PDF management software for Windows, macOS, and mobile, and it's completely free to use.", "link": "https://www.pdfgear.com/", "winget": "PDFgear.PDFgear" }, "sunshine": { "category": "Games", "choco": "sunshine", "content": "Sunshine/GameStream Server", "description": "Sunshine is a GameStream server that allows you to remotely play PC games on Android devices, offering low-latency streaming.", "link": "https://github.com/LizardByte/Sunshine", "winget": "LizardByte.Sunshine", "foss": true }, "superf4": { "category": "Utilities", "choco": "superf4", "content": "SuperF4", "description": "SuperF4 is a utility that allows you to terminate programs instantly by pressing a customizable hotkey.", "link": "https://stefansundin.github.io/superf4/", "winget": "StefanSundin.Superf4", "foss": true }, "swift": { "category": "Development", "choco": "na", "content": "Swift toolchain", "description": "Swift is a general-purpose programming language that's approachable for newcomers and powerful for experts.", "link": "https://www.swift.org/", "winget": "Swift.Toolchain", "foss": true }, "synctrayzor": { "category": "Utilities", "choco": "synctrayzor", "content": "SyncTrayzor", "description": "Windows tray utility / filesystem watcher / launcher for Syncthing.", "link": "https://github.com/GermanCoding/SyncTrayzor", "winget": "GermanCoding.SyncTrayzor", "foss": true }, "sqlmanagementstudio": { "category": "Microsoft Tools", "choco": "sql-server-management-studio", "content": "Microsoft SQL Server Management Studio", "description": "SQL Server Management Studio (SSMS) is an integrated environment for managing any SQL infrastructure, from SQL Server to Azure SQL Database. SSMS provides tools to configure, monitor, and administer instances of SQL Server and databases.", "link": "https://learn.microsoft.com/en-us/sql/ssms/download-sql-server-management-studio-ssms?view=sql-server-ver16", "winget": "Microsoft.SQLServerManagementStudio" }, "tabby": { "category": "Utilities", "choco": "tabby", "content": "Tabby.sh", "description": "Tabby is a highly configurable terminal emulator, SSH and serial client for Windows, macOS and Linux.", "link": "https://tabby.sh/", "winget": "Eugeny.Tabby", "foss": true }, "tailscale": { "category": "Utilities", "choco": "tailscale", "content": "Tailscale", "description": "Tailscale is a secure and easy-to-use VPN solution for connecting your devices and networks.", "link": "https://tailscale.com/", "winget": "tailscale.tailscale", "foss": true }, "TcNoAccSwitcher": { "category": "Games", "choco": "tcno-acc-switcher", "content": "TCNO Account Switcher", "description": "A Super-fast account switcher for Steam, Battle.net, Epic Games, Origin, Riot, Ubisoft and many others!", "link": "https://github.com/TCNOco/TcNo-Acc-Switcher", "winget": "TechNobo.TcNoAccountSwitcher", "foss": true }, "tcpview": { "category": "Microsoft Tools", "choco": "tcpview", "content": "SysInternals TCPView", "description": "SysInternals TCPView is a network monitoring tool that displays a detailed list of all TCP and UDP endpoints on your system.", "link": "https://docs.microsoft.com/en-us/sysinternals/downloads/tcpview", "winget": "Microsoft.Sysinternals.TCPView" }, "teams": { "category": "Communications", "choco": "microsoft-teams", "content": "Teams", "description": "Microsoft Teams is a collaboration platform that integrates with Office 365 and offers chat, video conferencing, file sharing, and more.", "link": "https://www.microsoft.com/en-us/microsoft-teams/group-chat-software", "winget": "Microsoft.Teams" }, "teamviewer": { "category": "Utilities", "choco": "teamviewer9", "content": "TeamViewer", "description": "TeamViewer is a popular remote access and support software that allows you to connect to and control remote devices.", "link": "https://www.teamviewer.com/", "winget": "TeamViewer.TeamViewer" }, "telegram": { "category": "Communications", "choco": "telegram", "content": "Telegram", "description": "Telegram is a cloud-based instant messaging app known for its security features, speed, and simplicity.", "link": "https://telegram.org/", "winget": "Telegram.TelegramDesktop", "foss": true }, "unigram": { "category": "Communications", "choco": "na", "content": "Unigram", "description": "Unigram - Telegram for Windows.", "link": "https://unigramdev.github.io/", "winget": "Telegram.Unigram", "foss": true }, "terminal": { "category": "Microsoft Tools", "choco": "microsoft-windows-terminal", "content": "Windows Terminal", "description": "Windows Terminal is a modern, fast, and efficient terminal application for command-line users, supporting multiple tabs, panes, and more.", "link": "https://aka.ms/terminal", "winget": "Microsoft.WindowsTerminal", "foss": true }, "Thonny": { "category": "Development", "choco": "thonny", "content": "Thonny Python IDE", "description": "Python IDE for beginners.", "link": "https://github.com/thonny/thonny", "winget": "AivarAnnamaa.Thonny", "foss": true }, "MuEditor": { "category": "Development", "choco": "na", "content": "Code With Mu (Mu Editor)", "description": "Mu is a Python code editor for beginner programmers.", "link": "https://codewith.mu/", "winget": "Mu.Mu", "foss": true }, "thorium": { "category": "Browsers", "choco": "thorium", "content": "Thorium Browser AVX2", "description": "Browser built for speed over vanilla Chromium. It is built with AVX2 optimizations and is the fastest browser on the market.", "link": "https://thorium.rocks/", "winget": "Alex313031.Thorium.AVX2", "foss": true }, "thunderbird": { "category": "Communications", "choco": "thunderbird", "content": "Thunderbird", "description": "Mozilla Thunderbird is a free and open-source email client, news client, and chat client with advanced features.", "link": "https://www.thunderbird.net/", "winget": "Mozilla.Thunderbird", "foss": true }, "betterbird": { "category": "Communications", "choco": "betterbird", "content": "Betterbird", "description": "Betterbird is a fork of Mozilla Thunderbird with additional features and bugfixes.", "link": "https://www.betterbird.eu/", "winget": "Betterbird.Betterbird", "foss": true }, "tidal": { "category": "Multimedia Tools", "choco": "na", "content": "Tidal", "description": "Tidal is a music streaming service known for its high-fidelity audio quality and exclusive content. It offers a vast library of songs and curated playlists.", "link": "https://tidal.com/", "winget": "9NNCB5BS59PH" }, "tor": { "category": "Browsers", "choco": "tor-browser", "content": "Tor Browser", "description": "Tor Browser is designed for anonymous web browsing, utilizing the Tor network to protect user privacy and security.", "link": "https://www.torproject.org/", "winget": "TorProject.TorBrowser", "foss": true }, "totalcommander": { "category": "Utilities", "choco": "TotalCommander", "content": "Total Commander", "description": "Total Commander is a file manager for Windows that provides a powerful and intuitive interface for file management.", "link": "https://www.ghisler.com/", "winget": "Ghisler.TotalCommander" }, "treesize": { "category": "Utilities", "choco": "treesizefree", "content": "TreeSize Free", "description": "TreeSize Free is a disk space manager that helps you analyze and visualize the space usage on your drives.", "link": "https://www.jam-software.com/treesize_free/", "winget": "JAMSoftware.TreeSize.Free" }, "ttaskbar": { "category": "Utilities", "choco": "translucenttb", "content": "TranslucentTB", "description": "TranslucentTB is a tool that allows you to customize the transparency of the Windows Taskbar.", "link": "https://github.com/TranslucentTB/TranslucentTB", "winget": "9PF4KZ2VN4W9", "foss": true }, "twinkletray": { "category": "Utilities", "choco": "twinkle-tray", "content": "Twinkle Tray", "description": "Twinkle Tray lets you easily manage the brightness levels of multiple monitors.", "link": "https://twinkletray.com/", "winget": "xanderfrangos.twinkletray", "foss": true }, "ubisoft": { "category": "Games", "choco": "ubisoft-connect", "content": "Ubisoft Connect", "description": "Ubisoft Connect is Ubisoft's digital distribution and online gaming service, providing access to Ubisoft's games and services.", "link": "https://ubisoftconnect.com/", "winget": "Ubisoft.Connect" }, "ungoogled": { "category": "Browsers", "choco": "ungoogled-chromium", "content": "Ungoogled", "description": "Ungoogled Chromium is a version of Chromium without Google's integration for enhanced privacy and control.", "link": "https://github.com/Eloston/ungoogled-chromium", "winget": "eloston.ungoogled-chromium", "foss": true }, "unity": { "category": "Development", "choco": "unityhub", "content": "Unity Game Engine", "description": "Unity is a powerful game development platform for creating 2D, 3D, augmented reality, and virtual reality games.", "link": "https://unity.com/", "winget": "Unity.UnityHub" }, "vagrant": { "category": "Development", "choco": "vagrant", "content": "Vagrant", "description": "Vagrant is an open-source tool for building and managing virtualized development environments.", "link": "https://www.vagrantup.com/", "winget": "Hashicorp.Vagrant", "foss": true }, "vc2015_32": { "category": "Microsoft Tools", "choco": "na", "content": "Visual C++ 2015-2022 32-bit", "description": "Visual C++ 2015-2022 32-bit redistributable package installs runtime components of Visual C++ libraries required to run 32-bit applications.", "link": "https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads", "winget": "Microsoft.VCRedist.2015+.x86" }, "vc2015_64": { "category": "Microsoft Tools", "choco": "na", "content": "Visual C++ 2015-2022 64-bit", "description": "Visual C++ 2015-2022 64-bit redistributable package installs runtime components of Visual C++ libraries required to run 64-bit applications.", "link": "https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads", "winget": "Microsoft.VCRedist.2015+.x64" }, "ventoy": { "category": "Pro Tools", "choco": "ventoy", "content": "Ventoy", "description": "Ventoy is an open-source tool for creating bootable USB drives. It supports multiple ISO files on a single USB drive, making it a versatile solution for installing operating systems.", "link": "https://www.ventoy.net/", "winget": "Ventoy.Ventoy", "foss": true }, "vesktop": { "category": "Communications", "choco": "na", "content": "Vesktop", "description": "A cross platform electron-based desktop app aiming to give you a snappier Discord experience with Vencord pre-installed.", "link": "https://github.com/Vencord/Vesktop", "winget": "Vencord.Vesktop", "foss": true }, "viber": { "category": "Communications", "choco": "viber", "content": "Viber", "description": "Viber is a free messaging and calling app with features like group chats, video calls, and more.", "link": "https://www.viber.com/", "winget": "Rakuten.Viber" }, "videomass": { "category": "Multimedia Tools", "choco": "na", "content": "Videomass", "description": "Videomass by GianlucaPernigotto is a cross-platform GUI for FFmpeg, streamlining multimedia file processing with batch conversions and user-friendly features.", "link": "https://jeanslack.github.io/Videomass/", "winget": "GianlucaPernigotto.Videomass", "foss": true }, "visualstudio2022": { "category": "Development", "choco": "visualstudio2022community", "content": "Visual Studio 2022", "description": "Visual Studio 2022 is an integrated development environment (IDE) for building, debugging, and deploying applications.", "link": "https://visualstudio.microsoft.com/", "winget": "Microsoft.VisualStudio.2022.Community" }, "visualstudio2026": { "category": "Development", "choco": "visualstudio2026community", "content": "Visual Studio 2026", "description": "Visual Studio 2026 is an integrated development environment (IDE) for building, debugging, and deploying applications.", "link": "https://visualstudio.microsoft.com/", "winget": "Microsoft.VisualStudio.2026.Community" }, "vivaldi": { "category": "Browsers", "choco": "vivaldi", "content": "Vivaldi", "description": "Vivaldi is a highly customizable web browser with a focus on user personalization and productivity features.", "link": "https://vivaldi.com/", "winget": "Vivaldi.Vivaldi" }, "vlc": { "category": "Multimedia Tools", "choco": "vlc", "content": "VLC (Video Player)", "description": "VLC Media Player is a free and open-source multimedia player that supports a wide range of audio and video formats. It is known for its versatility and cross-platform compatibility.", "link": "https://www.videolan.org/vlc/", "winget": "VideoLAN.VLC", "foss": true }, "voicemeeter": { "category": "Multimedia Tools", "choco": "voicemeeter", "content": "Voicemeeter (Audio)", "description": "Voicemeeter is a virtual audio mixer that allows you to manage and enhance audio streams on your computer. It is commonly used for audio recording and streaming purposes.", "link": "https://voicemeeter.com/", "winget": "VB-Audio.Voicemeeter" }, "VoicemeeterPotato": { "category": "Multimedia Tools", "choco": "voicemeeter-potato", "content": "Voicemeeter Potato", "description": "Voicemeeter Potato is the ultimate version of the Voicemeeter Audio Mixer Application endowed with Virtual Audio Device to mix and manage any audio sources from or to any audio devices or applications.", "link": "https://voicemeeter.com/", "winget": "VB-Audio.Voicemeeter.Potato" }, "vrdesktopstreamer": { "category": "Games", "choco": "na", "content": "Virtual Desktop Streamer", "description": "Virtual Desktop Streamer is a tool that allows you to stream your desktop screen to VR devices.", "link": "https://www.vrdesktop.net/", "winget": "VirtualDesktop.Streamer" }, "vscode": { "category": "Development", "choco": "vscode", "content": "VS Code", "description": "Visual Studio Code is a free, open-source code editor with support for multiple programming languages.", "link": "https://code.visualstudio.com/", "winget": "Microsoft.VisualStudioCode", "foss": true }, "vscodium": { "category": "Development", "choco": "vscodium", "content": "VS Codium", "description": "VSCodium is a community-driven, freely-licensed binary distribution of Microsoft's VS Code.", "link": "https://vscodium.com/", "winget": "VSCodium.VSCodium", "foss": true }, "waterfox": { "category": "Browsers", "choco": "waterfox", "content": "Waterfox", "description": "Waterfox is a fast, privacy-focused web browser based on Firefox, designed to preserve user choice and privacy.", "link": "https://www.waterfox.net/", "winget": "Waterfox.Waterfox", "foss": true }, "wazuh": { "category": "Utilities", "choco": "wazuh-agent", "content": "Wazuh.", "description": "Wazuh is an open-source security monitoring platform that offers intrusion detection, compliance checks, and log analysis.", "link": "https://wazuh.com/", "winget": "Wazuh.WazuhAgent", "foss": true }, "wezterm": { "category": "Development", "choco": "wezterm", "content": "Wezterm", "description": "WezTerm is a powerful cross-platform terminal emulator and multiplexer.", "link": "https://wezfurlong.org/wezterm/index.html", "winget": "wez.wezterm", "foss": true }, "windowspchealth": { "category": "Utilities", "choco": "na", "content": "Windows PC Health Check", "description": "Windows PC Health Check is a tool that helps you check if your PC meets the system requirements for Windows 11.", "link": "https://support.microsoft.com/en-us/windows/how-to-use-the-pc-health-check-app-9c8abd9b-03ba-4e67-81ef-36f37caa7844", "winget": "Microsoft.WindowsPCHealthCheck" }, "WindowGrid": { "category": "Utilities", "choco": "windowgrid", "content": "WindowGrid", "description": "WindowGrid is a modern window management program for Windows that allows the user to quickly and easily layout their windows on a dynamic grid using just the mouse.", "link": "http://windowgrid.net/", "winget": "na" }, "wingetui": { "category": "Utilities", "choco": "wingetui", "content": "UniGetUI", "description": "UniGetUI is a GUI for Winget, Chocolatey, and other Windows CLI package managers.", "link": "https://www.marticliment.com/wingetui/", "winget": "MartiCliment.UniGetUI", "foss": true }, "winmerge": { "category": "Document", "choco": "winmerge", "content": "WinMerge", "description": "WinMerge is a visual text file and directory comparison tool for Windows.", "link": "https://winmerge.org/", "winget": "WinMerge.WinMerge", "foss": true }, "winpaletter": { "category": "Utilities", "choco": "WinPaletter", "content": "WinPaletter", "description": "WinPaletter is a tool for adjusting the color palette of Windows 10, providing customization options for window colors.", "link": "https://github.com/Abdelrhman-AK/WinPaletter", "winget": "Abdelrhman-AK.WinPaletter", "foss": true }, "winrar": { "category": "Utilities", "choco": "winrar", "content": "WinRAR", "description": "WinRAR is a powerful archive manager that allows you to create, manage, and extract compressed files.", "link": "https://www.win-rar.com/", "winget": "RARLab.WinRAR" }, "winscp": { "category": "Pro Tools", "choco": "winscp", "content": "WinSCP", "description": "WinSCP is a popular open-source SFTP, FTP, and SCP client for Windows. It allows secure file transfers between a local and a remote computer.", "link": "https://winscp.net/", "winget": "WinSCP.WinSCP", "foss": true }, "wireguard": { "category": "Pro Tools", "choco": "wireguard", "content": "WireGuard", "description": "WireGuard is a fast and modern VPN (Virtual Private Network) protocol. It aims to be simpler and more efficient than other VPN protocols, providing secure and reliable connections.", "link": "https://www.wireguard.com/", "winget": "WireGuard.WireGuard", "foss": true }, "wireshark": { "category": "Pro Tools", "choco": "wireshark", "content": "Wireshark", "description": "Wireshark is a widely-used open-source network protocol analyzer. It allows users to capture and analyze network traffic in real-time, providing detailed insights into network activities.", "link": "https://www.wireshark.org/", "winget": "WiresharkFoundation.Wireshark", "foss": true }, "wisetoys": { "category": "Utilities", "choco": "na", "content": "WiseToys", "description": "WiseToys is a set of utilities and tools designed to enhance and optimize your Windows experience.", "link": "https://toys.wisecleaner.com/", "winget": "WiseCleaner.WiseToys" }, "TeraCopy": { "category": "Utilities", "choco": "TeraCopy", "content": "TeraCopy", "description": "Copy your files faster and more securely.", "link": "https://codesector.com/teracopy", "winget": "CodeSector.TeraCopy" }, "wizfile": { "category": "Utilities", "choco": "na", "content": "WizFile", "description": "Find files by name on your hard drives almost instantly.", "link": "https://antibody-software.com/wizfile/", "winget": "AntibodySoftware.WizFile" }, "wiztree": { "category": "Utilities", "choco": "wiztree", "content": "WizTree", "description": "WizTree is a fast disk space analyzer that helps you quickly find the files and folders consuming the most space on your hard drive.", "link": "https://wiztreefree.com/", "winget": "AntibodySoftware.WizTree" }, "xdm": { "category": "Utilities", "choco": "xdm", "content": "Xtreme Download Manager", "description": "Xtreme Download Manager is an advanced download manager with support for various protocols and browsers. *Browser integration deprecated by google store. No official release.*", "link": "https://xtremedownloadmanager.com/", "winget": "subhra74.XtremeDownloadManager", "foss": true }, "xeheditor": { "category": "Utilities", "choco": "HxD", "content": "HxD Hex Editor", "description": "HxD is a free hex editor that allows you to edit, view, search, and analyze binary files.", "link": "https://mh-nexus.de/en/hxd/", "winget": "MHNexus.HxD" }, "xemu": { "category": "Games", "choco": "na", "content": "XEMU", "description": "XEMU is an open-source Xbox emulator that allows you to play Xbox games on your PC, aiming for accuracy and compatibility.", "link": "https://xemu.app/", "winget": "xemu-project.xemu", "foss": true }, "xnview": { "category": "Utilities", "choco": "xnview", "content": "XnView classic", "description": "XnView is an efficient image viewer, browser and converter for Windows.", "link": "https://www.xnview.com/en/xnview/", "winget": "XnSoft.XnView.Classic" }, "xournal": { "category": "Document", "choco": "xournalplusplus", "content": "Xournal++", "description": "Xournal++ is an open-source handwriting notetaking software with PDF annotation capabilities.", "link": "https://xournalpp.github.io/", "winget": "Xournal++.Xournal++", "foss": true }, "xpipe": { "category": "Pro Tools", "choco": "xpipe", "content": "XPipe", "description": "XPipe is an open-source tool for orchestrating containerized applications. It simplifies the deployment and management of containerized services in a distributed environment.", "link": "https://xpipe.io/", "winget": "xpipe-io.xpipe", "foss": true }, "yarn": { "category": "Development", "choco": "yarn", "content": "Yarn", "description": "Yarn is a fast, reliable, and secure dependency management tool for JavaScript projects.", "link": "https://yarnpkg.com/", "winget": "Yarn.Yarn", "foss": true }, "ytdlp": { "category": "Multimedia Tools", "choco": "yt-dlp", "content": "Yt-dlp", "description": "Command-line tool that allows you to download videos from YouTube and other supported sites. It is an improved version of the popular youtube-dl.", "link": "https://github.com/yt-dlp/yt-dlp", "winget": "yt-dlp.yt-dlp", "foss": true }, "zerotierone": { "category": "Utilities", "choco": "zerotier-one", "content": "ZeroTier One", "description": "ZeroTier One is a software-defined networking tool that allows you to create secure and scalable networks.", "link": "https://zerotier.com/", "winget": "ZeroTier.ZeroTierOne" }, "zim": { "category": "Document", "choco": "zim", "content": "Zim Desktop Wiki", "description": "Zim Desktop Wiki is a graphical text editor used to maintain a collection of wiki pages.", "link": "https://zim-wiki.org/", "winget": "Zimwiki.Zim", "foss": true }, "znote": { "category": "Document", "choco": "na", "content": "Znote", "description": "Znote is a note-taking application.", "link": "https://znote.io/", "winget": "alagrede.znote", "foss": true }, "zoom": { "category": "Communications", "choco": "zoom", "content": "Zoom", "description": "Zoom is a popular video conferencing and web conferencing service for online meetings, webinars, and collaborative projects.", "link": "https://zoom.us/", "winget": "Zoom.Zoom" }, "zoomit": { "category": "Utilities", "choco": "na", "content": "ZoomIt", "description": "A screen zoom, annotation, and recording tool for technical presentations and demos.", "link": "https://learn.microsoft.com/en-us/sysinternals/downloads/zoomit", "winget": "Microsoft.Sysinternals.ZoomIt" }, "zotero": { "category": "Document", "choco": "zotero", "content": "Zotero", "description": "Zotero is a free, easy-to-use tool to help you collect, organize, cite, and share your research materials.", "link": "https://www.zotero.org/", "winget": "DigitalScholar.Zotero", "foss": true }, "zoxide": { "category": "Utilities", "choco": "zoxide", "content": "Zoxide", "description": "Zoxide is a fast and efficient directory changer (cd) that helps you navigate your file system with ease.", "link": "https://github.com/ajeetdsouza/zoxide", "winget": "ajeetdsouza.zoxide", "foss": true }, "zulip": { "category": "Communications", "choco": "zulip", "content": "Zulip", "description": "Zulip is an open-source team collaboration tool with chat streams for productive and organized communication.", "link": "https://zulipchat.com/", "winget": "Zulip.Zulip", "foss": true }, "syncthingtray": { "category": "Utilities", "choco": "syncthingtray", "content": "Syncthingtray", "description": "Might be the alternative for Synctrayzor. Windows tray utility / filesystem watcher / launcher for Syncthing.", "link": "https://github.com/Martchus/syncthingtray", "winget": "Martchus.syncthingtray", "foss": true }, "miniconda": { "category": "Development", "choco": "miniconda3", "content": "Miniconda", "description": "Miniconda is a free minimal installer for conda. It is a small bootstrap version of Anaconda that includes only conda, Python, the packages they both depend on, and a small number of other useful packages (like pip, zlib, and a few others).", "link": "https://docs.conda.io/projects/miniconda", "winget": "Anaconda.Miniconda3", "foss": true }, "pixi": { "category": "Development", "choco": "pixi", "content": "Pixi", "description": "Pixi is a fast software package manager built on top of the existing conda ecosystem. Spins up development environments quickly on Windows, macOS and Linux. Pixi supports Python, R, C/C++, Rust, Ruby, and many other languages.", "link": "https://pixi.sh", "winget": "prefix-dev.pixi", "foss": true }, "temurin": { "category": "Development", "choco": "temurin", "content": "Eclipse Temurin", "description": "Eclipse Temurin is the open-source Java SE build based upon OpenJDK.", "link": "https://adoptium.net/temurin/", "winget": "EclipseAdoptium.Temurin.21.JDK", "foss": true }, "intelpresentmon": { "category": "Utilities", "choco": "na", "content": "Intel-PresentMon", "description": "A new gaming performance overlay and telemetry application to monitor and measure your gaming experience.", "link": "https://game.intel.com/us/stories/intel-presentmon/", "winget": "Intel.PresentMon.Beta", "foss": true }, "pyenvwin": { "category": "Development", "choco": "pyenv-win", "content": "Python Version Manager (pyenv-win)", "description": "pyenv for Windows is a simple python version management tool. It lets you easily switch between multiple versions of Python.", "link": "https://pyenv-win.github.io/pyenv-win/", "winget": "na", "foss": true }, "tightvnc": { "category": "Utilities", "choco": "TightVNC", "content": "TightVNC", "description": "TightVNC is a free and open-source remote desktop software that lets you access and control a computer over the network. With its intuitive interface, you can interact with the remote screen as if you were sitting in front of it. You can open files, launch applications, and perform other actions on the remote desktop almost as if you were physically there.", "link": "https://www.tightvnc.com/", "winget": "GlavSoft.TightVNC", "foss": true }, "ultravnc": { "category": "Utilities", "choco": "ultravnc", "content": "UltraVNC", "description": "UltraVNC is a powerful, easy to use and free - remote pc access software - that can display the screen of another computer (via internet or network) on your own screen. The program allows you to use your mouse and keyboard to control the other PC remotely. It means that you can work on a remote computer, as if you were sitting in front of it, right from your current location.", "link": "https://uvnc.com/", "winget": "uvncbvba.UltraVnc", "foss": true }, "windowsfirewallcontrol": { "category": "Utilities", "choco": "windowsfirewallcontrol", "content": "Windows Firewall Control", "description": "Windows Firewall Control is a powerful tool which extends the functionality of Windows Firewall and provides new extra features which makes Windows Firewall better.", "link": "https://www.binisoft.org/wfc", "winget": "BiniSoft.WindowsFirewallControl" }, "vistaswitcher": { "category": "Utilities", "choco": "na", "content": "VistaSwitcher", "description": "VistaSwitcher makes it easier for you to locate windows and switch focus, even on multi-monitor systems. The switcher window consists of an easy-to-read list of all tasks running with clearly shown titles and a full-sized preview of the selected task.", "link": "https://www.ntwind.com/freeware/vistaswitcher.html", "winget": "ntwind.VistaSwitcher" }, "autodarkmode": { "category": "Utilities", "choco": "auto-dark-mode", "content": "Windows Auto Dark Mode", "description": "Automatically switches between the dark and light theme of Windows 10 and Windows 11.", "link": "https://github.com/AutoDarkMode/Windows-Auto-Night-Mode", "winget": "Armin2208.WindowsAutoNightMode", "foss": true }, "AmbieWhiteNoise": { "category": "Utilities", "choco": "na", "content": "Ambie White Noise", "description": "Ambie is the ultimate app to help you focus, study, or relax. We use white noise and nature sounds combined with an innovative focus timer to keep you concentrated on doing your best work.", "link": "https://ambieapp.com/", "winget": "9P07XNM5CHP0", "foss": true }, "magicwormhole": { "category": "Utilities", "choco": "magic-wormhole", "content": "Magic Wormhole", "description": "get things from one computer to another, safely.", "link": "https://github.com/magic-wormhole/magic-wormhole", "winget": "magic-wormhole.magic-wormhole", "foss": true }, "croc": { "category": "Utilities", "choco": "croc", "content": "croc", "description": "Easily and securely send things from one computer to another.", "link": "https://github.com/schollz/croc", "winget": "schollz.croc", "foss": true }, "qgis": { "category": "Multimedia Tools", "choco": "qgis", "content": "QGIS", "description": "QGIS (Quantum GIS) is an open-source Geographic Information System (GIS) software that enables users to create, edit, visualize, analyze, and publish geospatial information on Windows, macOS, and Linux platforms.", "link": "https://qgis.org/en/site/", "winget": "OSGeo.QGIS", "foss": true }, "smplayer": { "category": "Multimedia Tools", "choco": "smplayer", "content": "SMPlayer", "description": "SMPlayer is a free media player for Windows and Linux with built-in codecs that can play virtually all video and audio formats.", "link": "https://www.smplayer.info", "winget": "SMPlayer.SMPlayer", "foss": true }, "glazewm": { "category": "Utilities", "choco": "na", "content": "GlazeWM", "description": "GlazeWM is a tiling window manager for Windows inspired by i3 and Polybar.", "link": "https://github.com/glzr-io/glazewm", "winget": "glzr-io.glazewm", "foss": true }, "fancontrol": { "category": "Utilities", "choco": "na", "content": "FanControl", "description": "Fan Control is a free and open-source software that allows the user to control his CPU, GPU and case fans using temperatures.", "link": "https://getfancontrol.com/", "winget": "Rem0o.FanControl", "foss": true }, "fnm": { "category": "Development", "choco": "fnm", "content": "Fast Node Manager", "description": "Fast Node Manager (fnm) allows you to switch your Node version by using the terminal.", "link": "https://github.com/Schniz/fnm", "winget": "Schniz.fnm", "foss": true }, "Windhawk": { "category": "Utilities", "choco": "windhawk", "content": "Windhawk", "description": "The customization marketplace for Windows programs.", "link": "https://windhawk.net", "winget": "RamenSoftware.Windhawk" }, "ForceAutoHDR": { "category": "Utilities", "choco": "na", "content": "ForceAutoHDR", "description": "ForceAutoHDR simplifies the process of adding games to the AutoHDR list in the Windows Registry.", "link": "https://github.com/7gxycn08/ForceAutoHDR", "winget": "ForceAutoHDR.7gxycn08", "foss": true }, "JoyToKey": { "category": "Utilities", "choco": "joytokey", "content": "JoyToKey", "description": "Enables PC game controllers to emulate the keyboard and mouse input.", "link": "https://joytokey.net/en/", "winget": "JTKsoftware.JoyToKey" }, "nditools": { "category": "Multimedia Tools", "choco": "na", "content": "NDI Tools", "description": "NDI, or Network Device Interface, is a video connectivity standard that enables multimedia systems to identify and communicate with one another over IP and to encode, transmit, and receive high-quality, low latency, frame-accurate video and audio, and exchange metadata in real-time.", "link": "https://ndi.video/", "winget": "NDI.NDITools" }, "kicad": { "category": "Multimedia Tools", "choco": "na", "content": "Kicad", "description": "Kicad is an open-source EDA tool. It's a good starting point for those who want to do electrical design and is even used by professionals in the industry.", "link": "https://www.kicad.org/", "winget": "KiCad.KiCad", "foss": true }, "dropox": { "category": "Utilities", "choco": "na", "content": "Dropbox", "description": "The Dropbox desktop app! Save hard drive space, share and edit files and send for signature \u2013 all without the distraction of countless browser tabs.", "link": "https://www.dropbox.com/en_GB/desktop", "winget": "Dropbox.Dropbox" }, "Overwolf": { "category": "Games", "choco": "overwolf", "content": "Overwolf", "description": "Popular platform for game overlays and companion apps (mod managers, trackers, etc.), widely used by gamers.", "link": "https://www.overwolf.com/app/overwolf-curseforge", "winget": "Overwolf.CurseForge" }, "OFGB": { "category": "Utilities", "choco": "ofgb", "content": "OFGB (Oh Frick Go Back)", "description": "GUI Tool to remove ads from various places around Windows 11", "link": "https://github.com/xM4ddy/OFGB", "winget": "xM4ddy.OFGB", "foss": true }, "PaleMoon": { "category": "Browsers", "choco": "paleMoon", "content": "PaleMoon", "description": "Pale Moon is an open-source, Goanna-based web browser available for Microsoft Windows and Linux (with other operating systems in development), focusing on efficiency and ease of use.", "link": "https://www.palemoon.org/download.shtml", "winget": "MoonchildProductions.PaleMoon", "foss": true }, "Shotcut": { "category": "Multimedia Tools", "choco": "na", "content": "Shotcut", "description": "Shotcut is a free, open-source, cross-platform video editor.", "link": "https://shotcut.org/", "winget": "Meltytech.Shotcut", "foss": true }, "LenovoLegionToolkit": { "category": "Utilities", "choco": "na", "content": "Lenovo Legion Toolkit", "description": "Lenovo Legion Toolkit (LLT) is a open-source utility created for Lenovo Legion (and similar) series laptops, that allows changing a couple of features that are only available in Lenovo Vantage or Legion Zone. It runs no background services, uses less memory, uses virtually no CPU, and contains no telemetry. Just like Lenovo Vantage, this application is Windows only.", "link": "https://github.com/BartoszCichecki/LenovoLegionToolkit", "winget": "BartoszCichecki.LenovoLegionToolkit", "foss": true }, "PulsarEdit": { "category": "Development", "choco": "pulsar", "content": "Pulsar", "description": "A Community-led Hyper-Hackable Text Editor", "link": "https://pulsar-edit.dev/", "winget": "Pulsar-Edit.Pulsar", "foss": true }, "Aegisub": { "category": "Development", "choco": "aegisub", "content": "Aegisub", "description": "Aegisub is a free, cross-platform open-source tool for creating and modifying subtitles. Aegisub makes it quick and easy to time subtitles to audio, and features many powerful tools for styling them, including a built-in real-time video preview.", "link": "https://github.com/Aegisub/Aegisub", "winget": "Aegisub.Aegisub", "foss": true }, "SubtitleEdit": { "category": "Multimedia Tools", "choco": "na", "content": "Subtitle Edit", "description": "Subtitle Edit is a free and open-source editor for video subtitles.", "link": "https://github.com/SubtitleEdit/subtitleedit", "winget": "Nikse.SubtitleEdit", "foss": true }, "Fork": { "category": "Development", "choco": "git-fork", "content": "Fork", "description": "Fork - a fast and friendly git client.", "link": "https://git-fork.com/", "winget": "Fork.Fork" }, "ZenBrowser": { "category": "Browsers", "choco": "na", "content": "Zen Browser", "description": "The modern, privacy-focused, performance-driven browser built on Firefox.", "link": "https://zen-browser.app/", "winget": "Zen-Team.Zen-Browser", "foss": true }, "Zed": { "category": "Development", "choco": "na", "content": "Zed", "description": "Zed is a modern, high-performance code editor designed from the ground up for speed and collaboration.", "link": "https://zed.dev/", "winget": "ZedIndustries.Zed", "foss": true }, "LLLVM": { "category": "Development", "choco": "llvm", "winget": "LLVM.LLVM", "description": "A collection of modular and reusable compiler and toolchain technologies.", "content": "LLVM", "link": "https://llvm.org", "foss": true }, "NASM": { "category": "Development", "choco": "nasm", "winget": "NASM.NASM", "description": "A powerful assembler for the x86 platform.", "content": "NASM", "link": "https://nasm.us", "foss": true } } ================================================ FILE: config/appnavigation.json ================================================ { "WPFInstall": { "Content": "Install/Upgrade Applications", "Category": "____Actions", "Type": "Button", "Order": "1", "Description": "Install or upgrade the selected applications" }, "WPFUninstall": { "Content": "Uninstall Applications", "Category": "____Actions", "Type": "Button", "Order": "2", "Description": "Uninstall the selected applications" }, "WPFInstallUpgrade": { "Content": "Upgrade all Applications", "Category": "____Actions", "Type": "Button", "Order": "3", "Description": "Upgrade all applications to the latest version" }, "WingetRadioButton": { "Content": "Winget", "Category": "__Package Manager", "Type": "RadioButton", "GroupName": "PackageManagerGroup", "Checked": true, "Order": "1", "Description": "Use Winget for package management" }, "ChocoRadioButton": { "Content": "Chocolatey", "Category": "__Package Manager", "Type": "RadioButton", "GroupName": "PackageManagerGroup", "Checked": false, "Order": "2", "Description": "Use Chocolatey for package management" }, "WPFCollapseAllCategories": { "Content": "Collapse All Categories", "Category": "__Selection", "Type": "Button", "Order": "1", "Description": "Collapse all application categories" }, "WPFExpandAllCategories": { "Content": "Expand All Categories", "Category": "__Selection", "Type": "Button", "Order": "2", "Description": "Expand all application categories" }, "WPFClearInstallSelection": { "Content": "Clear Selection", "Category": "__Selection", "Type": "Button", "Order": "3", "Description": "Clear the selection of applications" }, "WPFGetInstalled": { "Content": "Show Installed Apps", "Category": "__Selection", "Type": "Button", "Order": "4", "Description": "Show installed applications" }, "WPFselectedAppsButton": { "Content": "Selected Apps: 0", "Category": "__Selection", "Type": "Button", "Order": "5", "Description": "Show the selected applications" }, "WPFToggleFOSSHighlight": { "Content": "Highlight FOSS", "Category": "__Selection", "Type": "Toggle", "Checked": true, "Order": "6", "Description": "Toggle the green highlight for FOSS applications" } } ================================================ FILE: config/dns.json ================================================ { "Google":{ "Primary": "8.8.8.8", "Secondary": "8.8.4.4", "Primary6": "2001:4860:4860::8888", "Secondary6": "2001:4860:4860::8844" }, "Cloudflare":{ "Primary": "1.1.1.1", "Secondary": "1.0.0.1", "Primary6": "2606:4700:4700::1111", "Secondary6": "2606:4700:4700::1001" }, "Cloudflare_Malware":{ "Primary": "1.1.1.2", "Secondary": "1.0.0.2", "Primary6": "2606:4700:4700::1112", "Secondary6": "2606:4700:4700::1002" }, "Cloudflare_Malware_Adult":{ "Primary": "1.1.1.3", "Secondary": "1.0.0.3", "Primary6": "2606:4700:4700::1113", "Secondary6": "2606:4700:4700::1003" }, "Open_DNS":{ "Primary": "208.67.222.222", "Secondary": "208.67.220.220", "Primary6": "2620:119:35::35", "Secondary6": "2620:119:53::53" }, "Quad9":{ "Primary": "9.9.9.9", "Secondary": "149.112.112.112", "Primary6": "2620:fe::fe", "Secondary6": "2620:fe::9" }, "AdGuard_Ads_Trackers":{ "Primary": "94.140.14.14", "Secondary": "94.140.15.15", "Primary6": "2a10:50c0::ad1:ff", "Secondary6": "2a10:50c0::ad2:ff" }, "AdGuard_Ads_Trackers_Malware_Adult":{ "Primary": "94.140.14.15", "Secondary": "94.140.15.16", "Primary6": "2a10:50c0::bad1:ff", "Secondary6": "2a10:50c0::bad2:ff" } } ================================================ FILE: config/feature.json ================================================ { "WPFFeaturesdotnet": { "Content": "All .Net Framework (2,3,4)", "Description": ".NET and .NET Framework is a developer platform made up of tools, programming languages, and libraries for building many different types of applications.", "category": "Features", "panel": "1", "feature": [ "NetFx4-AdvSrvs", "NetFx3" ], "InvokeScript": [], "link": "https://winutil.christitus.com/dev/features/features/dotnet" }, "WPFFeatureshyperv": { "Content": "HyperV Virtualization", "Description": "Hyper-V is a hardware virtualization product developed by Microsoft that allows users to create and manage virtual machines.", "category": "Features", "panel": "1", "feature": [ "Microsoft-Hyper-V-All" ], "InvokeScript": [ "bcdedit /set hypervisorschedulertype classic" ], "link": "https://winutil.christitus.com/dev/features/features/hyperv" }, "WPFFeatureslegacymedia": { "Content": "Legacy Media (WMP, DirectPlay)", "Description": "Enables legacy programs from previous versions of Windows.", "category": "Features", "panel": "1", "feature": [ "WindowsMediaPlayer", "MediaPlayback", "DirectPlay", "LegacyComponents" ], "InvokeScript": [], "link": "https://winutil.christitus.com/dev/features/features/legacymedia" }, "WPFFeaturewsl": { "Content": "Windows Subsystem for Linux", "Description": "Windows Subsystem for Linux is an optional feature of Windows that allows Linux programs to run natively on Windows without the need for a separate virtual machine or dual booting.", "category": "Features", "panel": "1", "feature": [ "VirtualMachinePlatform", "Microsoft-Windows-Subsystem-Linux" ], "InvokeScript": [], "link": "https://winutil.christitus.com/dev/features/features/wsl" }, "WPFFeaturenfs": { "Content": "NFS - Network File System", "Description": "Network File System (NFS) is a mechanism for storing files on a network.", "category": "Features", "panel": "1", "feature": [ "ServicesForNFS-ClientOnly", "ClientForNFS-Infrastructure", "NFS-Administration" ], "InvokeScript": [ "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" ], "link": "https://winutil.christitus.com/dev/features/features/nfs" }, "WPFFeatureRegBackup": { "Content": "Enable Daily Registry Backup Task 12.30am", "Description": "Enables daily registry backup, previously disabled by Microsoft in Windows 10 1803.", "category": "Features", "panel": "1", "feature": [], "InvokeScript": [ " New-ItemProperty -Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Configuration Manager' -Name 'EnablePeriodicBackup' -Type DWord -Value 1 -Force New-ItemProperty -Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Configuration Manager' -Name 'BackupCount' -Type DWord -Value 2 -Force $action = New-ScheduledTaskAction -Execute 'schtasks' -Argument '/run /i /tn \"\\Microsoft\\Windows\\Registry\\RegIdleBackup\"' $trigger = New-ScheduledTaskTrigger -Daily -At 00:30 Register-ScheduledTask -Action $action -Trigger $trigger -TaskName 'AutoRegBackup' -Description 'Create System Registry Backups' -User 'System' " ], "link": "https://winutil.christitus.com/dev/features/features/regbackup" }, "WPFFeatureEnableLegacyRecovery": { "Content": "Enable Legacy F8 Boot Recovery", "Description": "Enables Advanced Boot Options screen that lets you start Windows in advanced troubleshooting modes.", "category": "Features", "panel": "1", "feature": [], "InvokeScript": [ "bcdedit /set bootmenupolicy legacy" ], "link": "https://winutil.christitus.com/dev/features/features/enablelegacyrecovery" }, "WPFFeatureDisableLegacyRecovery": { "Content": "Disable Legacy F8 Boot Recovery", "Description": "Disables Advanced Boot Options screen that lets you start Windows in advanced troubleshooting modes.", "category": "Features", "panel": "1", "feature": [], "InvokeScript": [ "bcdedit /set bootmenupolicy standard" ], "link": "https://winutil.christitus.com/dev/features/features/disablelegacyrecovery" }, "WPFFeaturesSandbox": { "Content": "Windows Sandbox", "Description": "Windows Sandbox is a lightweight virtual machine that provides a temporary desktop environment to safely run applications and programs in isolation.", "category": "Features", "panel": "1", "feature": [ "Containers-DisposableClientVM" ], "link": "https://winutil.christitus.com/dev/features/features/sandbox" }, "WPFFeatureInstall": { "Content": "Install Features", "category": "Features", "panel": "1", "Type": "Button", "ButtonWidth": "300", "function": "Invoke-WPFFeatureInstall", "link": "https://winutil.christitus.com/dev/features/features/install" }, "WPFPanelAutologin": { "Content": "Set Up Autologin", "category": "Fixes", "panel": "1", "Type": "Button", "ButtonWidth": "300", "function": "Invoke-WPFPanelAutologin", "link": "https://winutil.christitus.com/dev/features/fixes/autologin" }, "WPFFixesUpdate": { "Content": "Reset Windows Update", "category": "Fixes", "panel": "1", "Type": "Button", "ButtonWidth": "300", "function": "Invoke-WPFFixesUpdate", "link": "https://winutil.christitus.com/dev/features/fixes/update" }, "WPFFixesNetwork": { "Content": "Reset Network", "category": "Fixes", "panel": "1", "Type": "Button", "ButtonWidth": "300", "function": "Invoke-WPFFixesNetwork", "link": "https://winutil.christitus.com/dev/features/fixes/network" }, "WPFPanelDISM": { "Content": "System Corruption Scan", "category": "Fixes", "panel": "1", "Type": "Button", "ButtonWidth": "300", "function": "Invoke-WPFSystemRepair", "link": "https://winutil.christitus.com/dev/features/fixes/dism" }, "WPFFixesWinget": { "Content": "WinGet Reinstall", "category": "Fixes", "panel": "1", "Type": "Button", "ButtonWidth": "300", "function": "Invoke-WPFFixesWinget", "link": "https://winutil.christitus.com/dev/features/fixes/winget" }, "WPFPanelControl": { "Content": "Control Panel", "category": "Legacy Windows Panels", "panel": "2", "Type": "Button", "ButtonWidth": "300", "InvokeScript": [ "control" ], "link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/control" }, "WPFPanelComputer": { "Content": "Computer Management", "category": "Legacy Windows Panels", "panel": "2", "Type": "Button", "ButtonWidth": "300", "InvokeScript": [ "compmgmt.msc" ], "link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/computer" }, "WPFPanelNetwork": { "Content": "Network Connections", "category": "Legacy Windows Panels", "panel": "2", "Type": "Button", "ButtonWidth": "300", "InvokeScript": [ "ncpa.cpl" ], "link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/network" }, "WPFPanelPower": { "Content": "Power Panel", "category": "Legacy Windows Panels", "panel": "2", "Type": "Button", "ButtonWidth": "300", "InvokeScript": [ "powercfg.cpl" ], "link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/power" }, "WPFPanelPrinter": { "Content": "Printer Panel", "category": "Legacy Windows Panels", "panel": "2", "Type": "Button", "ButtonWidth": "300", "InvokeScript": [ "Start-Process 'shell:::{A8A91A66-3A7D-4424-8D24-04E180695C7A}'" ], "link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/printer" }, "WPFPanelRegion": { "Content": "Region", "category": "Legacy Windows Panels", "panel": "2", "Type": "Button", "ButtonWidth": "300", "InvokeScript": [ "intl.cpl" ], "link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/region" }, "WPFPanelRestore": { "Content": "Windows Restore", "category": "Legacy Windows Panels", "panel": "2", "Type": "Button", "ButtonWidth": "300", "InvokeScript": [ "rstrui.exe" ], "link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/restore" }, "WPFPanelSound": { "Content": "Sound Settings", "category": "Legacy Windows Panels", "panel": "2", "Type": "Button", "ButtonWidth": "300", "InvokeScript": [ "mmsys.cpl" ], "link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/sound" }, "WPFPanelSystem": { "Content": "System Properties", "category": "Legacy Windows Panels", "panel": "2", "Type": "Button", "ButtonWidth": "300", "InvokeScript": [ "sysdm.cpl" ], "link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/system" }, "WPFPanelTimedate": { "Content": "Time and Date", "category": "Legacy Windows Panels", "panel": "2", "Type": "Button", "ButtonWidth": "300", "InvokeScript": [ "timedate.cpl" ], "link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/timedate" }, "WPFWinUtilInstallPSProfile": { "Content": "Install CTT PowerShell Profile", "category": "Powershell Profile Powershell 7+ Only", "panel": "2", "Type": "Button", "ButtonWidth": "300", "function": "Invoke-WinUtilInstallPSProfile", "link": "https://winutil.christitus.com/dev/features/powershell-profile-powershell-7--only/installpsprofile" }, "WPFWinUtilUninstallPSProfile": { "Content": "Uninstall CTT PowerShell Profile", "category": "Powershell Profile Powershell 7+ Only", "panel": "2", "Type": "Button", "ButtonWidth": "300", "function": "Invoke-WinUtilUninstallPSProfile", "link": "https://winutil.christitus.com/dev/features/powershell-profile-powershell-7--only/uninstallpsprofile" }, "WPFWinUtilSSHServer": { "Content": "Enable OpenSSH Server", "category": "Remote Access", "panel": "2", "Type": "Button", "ButtonWidth": "300", "function": "Invoke-WPFSSHServer", "link": "https://winutil.christitus.com/dev/features/remote-access/sshserver" } } ================================================ FILE: config/preset.json ================================================ { "Standard": [ "WPFTweaksActivity", "WPFTweaksConsumerFeatures", "WPFTweaksDisableExplorerAutoDiscovery", "WPFTweaksWPBT", "WPFTweaksDVR", "WPFTweaksLocation", "WPFTweaksServices", "WPFTweaksTelemetry", "WPFTweaksDiskCleanup", "WPFTweaksDeleteTempFiles", "WPFTweaksEndTaskOnTaskbar", "WPFTweaksRestorePoint", "WPFTweaksPowershell7Tele" ], "Minimal": [ "WPFTweaksConsumerFeatures", "WPFTweaksWPBT", "WPFTweaksServices", "WPFTweaksTelemetry" ] } ================================================ FILE: config/themes.json ================================================ { "shared":{ "AppEntryWidth": "200", "AppEntryFontSize": "11", "AppEntryMargin": "1,0,1,0", "AppEntryBorderThickness": "0", "CustomDialogFontSize": "12", "CustomDialogFontSizeHeader": "14", "CustomDialogLogoSize": "25", "CustomDialogWidth": "400", "CustomDialogHeight": "200", "FontSize": "12", "FontFamily": "Arial", "HeaderFontSize": "16", "HeaderFontFamily": "Consolas, Monaco", "CheckBoxBulletDecoratorSize": "14", "CheckBoxMargin": "15,0,0,2", "TabContentMargin": "5", "TabButtonFontSize": "14", "TabButtonWidth": "110", "TabButtonHeight": "26", "TabRowHeightInPixels": "50", "ToolTipWidth": "300", "IconFontSize": "14", "IconButtonSize": "35", "SettingsIconFontSize": "18", "CloseIconFontSize": "18", "GroupBorderBackgroundColor": "#232629", "ButtonFontSize": "12", "ButtonFontFamily": "Arial", "ButtonWidth": "200", "ButtonHeight": "25", "ConfigTabButtonFontSize": "14", "ConfigUpdateButtonFontSize": "14", "SearchBarWidth": "200", "SearchBarHeight": "26", "SearchBarTextBoxFontSize": "12", "SearchBarClearButtonFontSize": "14", "CheckboxMouseOverColor": "#999999", "ButtonBorderThickness": "1", "ButtonMargin": "1", "ButtonCornerRadius": "2" }, "Light": { "AppInstallUnselectedColor": "#F7F7F7", "AppInstallHighlightedColor": "#CFCFCF", "AppInstallSelectedColor": "#C2C2C2", "AppInstallOverlayBackgroundColor":"#6A6D72", "ComboBoxForegroundColor": "#232629", "ComboBoxBackgroundColor": "#F7F7F7", "LabelboxForegroundColor": "#232629", "MainForegroundColor": "#232629", "MainBackgroundColor": "#F7F7F7", "LabelBackgroundColor": "#F7F7F7", "LinkForegroundColor": "#484848", "LinkHoverForegroundColor": "#232629", "ScrollBarBackgroundColor": "#4A4D52", "ScrollBarHoverColor": "#5A5D62", "ScrollBarDraggingColor": "#6A6D72", "ProgressBarForegroundColor": "#2e77ff", "ProgressBarBackgroundColor": "Transparent", "ProgressBarTextColor": "#232629", "ButtonInstallBackgroundColor": "#F7F7F7", "ButtonTweaksBackgroundColor": "#F7F7F7", "ButtonConfigBackgroundColor": "#F7F7F7", "ButtonUpdatesBackgroundColor": "#F7F7F7", "ButtonWin11ISOBackgroundColor": "#F7F7F7", "ButtonInstallForegroundColor": "#232629", "ButtonTweaksForegroundColor": "#232629", "ButtonConfigForegroundColor": "#232629", "ButtonUpdatesForegroundColor": "#232629", "ButtonWin11ISOForegroundColor": "#232629", "ButtonBackgroundColor": "#F5F5F5", "ButtonBackgroundPressedColor": "#1A1A1A", "ButtonBackgroundMouseoverColor": "#C2C2C2", "ButtonBackgroundSelectedColor": "#F0F0F0", "ButtonForegroundColor": "#232629", "ToggleButtonOnColor": "#2e77ff", "ToggleButtonOffColor": "#707070", "ToolTipBackgroundColor": "#F7F7F7", "BorderColor": "#232629", "BorderOpacity": "0.2" }, "Dark": { "AppInstallUnselectedColor": "#232629", "AppInstallHighlightedColor": "#3C3C3C", "AppInstallSelectedColor": "#4C4C4C", "AppInstallOverlayBackgroundColor":"#2E3135", "ComboBoxForegroundColor": "#F7F7F7", "ComboBoxBackgroundColor": "#1E3747", "LabelboxForegroundColor": "#5bdcff", "MainForegroundColor": "#F7F7F7", "MainBackgroundColor": "#232629", "LabelBackgroundColor": "#232629", "LinkForegroundColor": "#add8e6", "LinkHoverForegroundColor": "#F7F7F7", "ScrollBarBackgroundColor": "#2E3135", "ScrollBarHoverColor": "#3B4252", "ScrollBarDraggingColor": "#5E81AC", "ProgressBarForegroundColor": "#222222", "ProgressBarBackgroundColor": "Transparent", "ProgressBarTextColor": "#232629", "ButtonInstallBackgroundColor": "#222222", "ButtonTweaksBackgroundColor": "#333333", "ButtonConfigBackgroundColor": "#444444", "ButtonUpdatesBackgroundColor": "#555555", "ButtonWin11ISOBackgroundColor": "#666666", "ButtonInstallForegroundColor": "#F7F7F7", "ButtonTweaksForegroundColor": "#F7F7F7", "ButtonConfigForegroundColor": "#F7F7F7", "ButtonUpdatesForegroundColor": "#F7F7F7", "ButtonWin11ISOForegroundColor": "#F7F7F7", "ButtonBackgroundColor": "#1E3747", "ButtonBackgroundPressedColor": "#F7F7F7", "ButtonBackgroundMouseoverColor": "#3B4252", "ButtonBackgroundSelectedColor": "#5E81AC", "ButtonForegroundColor": "#F7F7F7", "ToggleButtonOnColor": "#2e77ff", "ToggleButtonOffColor": "#707070", "ToolTipBackgroundColor": "#2F373D", "BorderColor": "#2F373D", "BorderOpacity": "0.2" } } ================================================ FILE: config/tweaks.json ================================================ { "WPFTweaksActivity": { "Content": "Disable Activity History", "Description": "Erases recent docs, clipboard, and run history.", "category": "Essential Tweaks", "panel": "1", "registry": [ { "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\System", "Name": "EnableActivityFeed", "Value": "0", "Type": "DWord", "OriginalValue": "" }, { "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\System", "Name": "PublishUserActivities", "Value": "0", "Type": "DWord", "OriginalValue": "" }, { "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\System", "Name": "UploadUserActivities", "Value": "0", "Type": "DWord", "OriginalValue": "" } ], "link": "https://winutil.christitus.com/dev/tweaks/essential-tweaks/activity" }, "WPFTweaksHiber": { "Content": "Disable Hibernation", "Description": "Hibernation is really meant for laptops as it saves what's in memory before turning the PC off. It really should never be used.", "category": "Essential Tweaks", "panel": "1", "registry": [ { "Path": "HKLM:\\System\\CurrentControlSet\\Control\\Session Manager\\Power", "Name": "HibernateEnabled", "Value": "0", "Type": "DWord", "OriginalValue": "1" }, { "Path": "HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\FlyoutMenuSettings", "Name": "ShowHibernateOption", "Value": "0", "Type": "DWord", "OriginalValue": "1" } ], "InvokeScript": [ "powercfg.exe /hibernate off" ], "UndoScript": [ "powercfg.exe /hibernate on" ], "link": "https://winutil.christitus.com/dev/tweaks/essential-tweaks/hiber" }, "WPFTweaksWidget": { "Content": "Remove Widgets", "Description": "Removes the annoying widgets in the bottom left of the Taskbar.", "category": "Essential Tweaks", "panel": "1", "InvokeScript": [ " # Sometimes if you dont stop the Widgets process the removal may fail Stop-Process -Name Widgets Get-AppxPackage Microsoft.WidgetsPlatformRuntime -AllUsers | Remove-AppxPackage -AllUsers Get-AppxPackage MicrosoftWindows.Client.WebExperience -AllUsers | Remove-AppxPackage -AllUsers Invoke-WinUtilExplorerUpdate -action \"restart\" Write-Host \"Removed widgets\" " ], "UndoScript": [ " Write-Host \"Restoring widgets AppxPackages\" Add-AppxPackage -Register \"C:\\Program Files\\WindowsApps\\Microsoft.WidgetsPlatformRuntime*\\AppxManifest.xml\" -DisableDevelopmentMode Add-AppxPackage -Register \"C:\\Program Files\\WindowsApps\\MicrosoftWindows.Client.WebExperience*\\AppxManifest.xml\" -DisableDevelopmentMode Invoke-WinUtilExplorerUpdate -action \"restart\" " ], "link": "https://winutil.christitus.com/dev/tweaks/essential-tweaks/widget" }, "WPFTweaksRevertStartMenu": { "Content": "Revert Start Menu layout", "Description": "Bring back the old Start Menu layout from before the gradual rollout of the new one in 25H2.", "category": "Essential Tweaks", "panel": "1", "InvokeScript": [ " Invoke-WebRequest https://github.com/thebookisclosed/ViVe/releases/download/v0.3.4/ViVeTool-v0.3.4-IntelAmd.zip -OutFile ViVeTool.zip Expand-Archive ViVeTool.zip Remove-Item ViVeTool.zip Start-Process 'ViVeTool\\ViVeTool.exe' -ArgumentList '/disable /id:47205210' -Wait -NoNewWindow Remove-Item ViVeTool -Recurse Write-Host 'Old start menu reverted please restart your computer to take effect' " ], "UndoScript": [ " Invoke-WebRequest https://github.com/thebookisclosed/ViVe/releases/download/v0.3.4/ViVeTool-v0.3.4-IntelAmd.zip -OutFile ViVeTool.zip Expand-Archive ViVeTool.zip Remove-Item ViVeTool.zip Start-Process 'ViVeTool\\ViVeTool.exe' -ArgumentList '/enable /id:47205210' -Wait -NoNewWindow Remove-Item ViVeTool -Recurse Write-Host 'New start menu reverted please restart your computer to take effect' " ], "link": "https://winutil.christitus.com/dev/tweaks/essential-tweaks/revertstartmenu" }, "WPFTweaksDisableStoreSearch": { "Content": "Disable Microsoft Store search results", "Description": "Will not display recommended Microsoft Store apps when searching for apps in the Start menu.", "category": "Essential Tweaks", "panel": "1", "InvokeScript": [ "icacls \"$Env:LocalAppData\\Packages\\Microsoft.WindowsStore_8wekyb3d8bbwe\\LocalState\\store.db\" /deny Everyone:F" ], "UndoScript": [ "icacls \"$Env:LocalAppData\\Packages\\Microsoft.WindowsStore_8wekyb3d8bbwe\\LocalState\\store.db\" /grant Everyone:F" ], "link": "https://winutil.christitus.com/dev/tweaks/essential-tweaks/disablestoresearch" }, "WPFTweaksLocation": { "Content": "Disable Location Tracking", "Description": "Disables Location Tracking.", "category": "Essential Tweaks", "panel": "1", "registry": [ { "Path": "HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\CapabilityAccessManager\\ConsentStore\\location", "Name": "Value", "Value": "Deny", "Type": "String", "OriginalValue": "Allow" }, { "Path": "HKLM:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Sensor\\Overrides\\{BFA794E4-F964-4FDB-90F6-51056BFE4B44}", "Name": "SensorPermissionState", "Value": "0", "Type": "DWord", "OriginalValue": "1" }, { "Path": "HKLM:\\SYSTEM\\CurrentControlSet\\Services\\lfsvc\\Service\\Configuration", "Name": "Status", "Value": "0", "Type": "DWord", "OriginalValue": "1" }, { "Path": "HKLM:\\SYSTEM\\Maps", "Name": "AutoUpdateEnabled", "Value": "0", "Type": "DWord", "OriginalValue": "1" } ], "link": "https://winutil.christitus.com/dev/tweaks/essential-tweaks/location" }, "WPFTweaksServices": { "Content": "Set Services to Manual", "Description": "Turns a bunch of system services to manual that don't need to be running all the time. This is pretty harmless as if the service is needed, it will simply start on demand.", "category": "Essential Tweaks", "panel": "1", "service": [ { "Name": "ALG", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "AppMgmt", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "AppReadiness", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "AppVClient", "StartupType": "Disabled", "OriginalType": "Disabled" }, { "Name": "Appinfo", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "AssignedAccessManagerSvc", "StartupType": "Disabled", "OriginalType": "Manual" }, { "Name": "AudioEndpointBuilder", "StartupType": "Automatic", "OriginalType": "Automatic" }, { "Name": "AudioSrv", "StartupType": "Automatic", "OriginalType": "Automatic" }, { "Name": "Audiosrv", "StartupType": "Automatic", "OriginalType": "Automatic" }, { "Name": "AxInstSV", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "BDESVC", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "BITS", "StartupType": "AutomaticDelayedStart", "OriginalType": "Automatic" }, { "Name": "BTAGService", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "BthAvctpSvc", "StartupType": "Automatic", "OriginalType": "Manual" }, { "Name": "CDPSvc", "StartupType": "Manual", "OriginalType": "Automatic" }, { "Name": "COMSysApp", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "CertPropSvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "CryptSvc", "StartupType": "Automatic", "OriginalType": "Automatic" }, { "Name": "CscService", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "DPS", "StartupType": "Automatic", "OriginalType": "Automatic" }, { "Name": "DevQueryBroker", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "DeviceAssociationService", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "DeviceInstall", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "Dhcp", "StartupType": "Automatic", "OriginalType": "Automatic" }, { "Name": "DiagTrack", "StartupType": "Disabled", "OriginalType": "Automatic" }, { "Name": "DialogBlockingService", "StartupType": "Disabled", "OriginalType": "Disabled" }, { "Name": "DispBrokerDesktopSvc", "StartupType": "Automatic", "OriginalType": "Automatic" }, { "Name": "DisplayEnhancementService", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "EFS", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "EapHost", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "EventLog", "StartupType": "Automatic", "OriginalType": "Automatic" }, { "Name": "EventSystem", "StartupType": "Automatic", "OriginalType": "Automatic" }, { "Name": "FDResPub", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "FontCache", "StartupType": "Automatic", "OriginalType": "Automatic" }, { "Name": "FrameServer", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "FrameServerMonitor", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "GraphicsPerfSvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "HvHost", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "IKEEXT", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "InstallService", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "InventorySvc", "StartupType": "Manual", "OriginalType": "Automatic" }, { "Name": "IpxlatCfgSvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "KeyIso", "StartupType": "Automatic", "OriginalType": "Manual" }, { "Name": "KtmRm", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "LanmanServer", "StartupType": "Automatic", "OriginalType": "Automatic" }, { "Name": "LanmanWorkstation", "StartupType": "Automatic", "OriginalType": "Automatic" }, { "Name": "LicenseManager", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "LxpSvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "MSDTC", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "MSiSCSI", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "MapsBroker", "StartupType": "AutomaticDelayedStart", "OriginalType": "Automatic" }, { "Name": "McpManagementService", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "MicrosoftEdgeElevationService", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "NaturalAuthentication", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "NcaSvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "NcbService", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "NcdAutoSetup", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "NetSetupSvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "NetTcpPortSharing", "StartupType": "Disabled", "OriginalType": "Disabled" }, { "Name": "Netman", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "NlaSvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "PcaSvc", "StartupType": "Manual", "OriginalType": "Automatic" }, { "Name": "PeerDistSvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "PerfHost", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "PhoneSvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "PlugPlay", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "PolicyAgent", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "Power", "StartupType": "Automatic", "OriginalType": "Automatic" }, { "Name": "PrintNotify", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "ProfSvc", "StartupType": "Automatic", "OriginalType": "Automatic" }, { "Name": "PushToInstall", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "QWAVE", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "RasAuto", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "RasMan", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "RemoteAccess", "StartupType": "Disabled", "OriginalType": "Disabled" }, { "Name": "RemoteRegistry", "StartupType": "Disabled", "OriginalType": "Disabled" }, { "Name": "RetailDemo", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "RmSvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "RpcLocator", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "SCPolicySvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "SCardSvr", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "SDRSVC", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "SEMgrSvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "SENS", "StartupType": "Automatic", "OriginalType": "Automatic" }, { "Name": "SNMPTRAP", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "SNMPTrap", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "SSDPSRV", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "SamSs", "StartupType": "Automatic", "OriginalType": "Automatic" }, { "Name": "ScDeviceEnum", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "SensorDataService", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "SensorService", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "SensrSvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "SessionEnv", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "SharedAccess", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "ShellHWDetection", "StartupType": "Automatic", "OriginalType": "Automatic" }, { "Name": "SmsRouter", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "Spooler", "StartupType": "Automatic", "OriginalType": "Automatic" }, { "Name": "SstpSvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "StiSvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "StorSvc", "StartupType": "Manual", "OriginalType": "Automatic" }, { "Name": "SysMain", "StartupType": "Automatic", "OriginalType": "Automatic" }, { "Name": "TapiSrv", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "TermService", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "Themes", "StartupType": "Automatic", "OriginalType": "Automatic" }, { "Name": "TieringEngineService", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "TokenBroker", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "TrkWks", "StartupType": "Automatic", "OriginalType": "Automatic" }, { "Name": "TroubleshootingSvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "TrustedInstaller", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "UevAgentService", "StartupType": "Disabled", "OriginalType": "Disabled" }, { "Name": "UmRdpService", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "UserManager", "StartupType": "Automatic", "OriginalType": "Automatic" }, { "Name": "UsoSvc", "StartupType": "Manual", "OriginalType": "Automatic" }, { "Name": "VSS", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "VaultSvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "W32Time", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "WEPHOSTSVC", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "WFDSConMgrSvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "WMPNetworkSvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "WManSvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "WPDBusEnum", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "WSAIFabricSvc", "StartupType": "Manual", "OriginalType": "Automatic" }, { "Name": "WSearch", "StartupType": "AutomaticDelayedStart", "OriginalType": "Automatic" }, { "Name": "WalletService", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "WarpJITSvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "WbioSrvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "Wcmsvc", "StartupType": "Automatic", "OriginalType": "Automatic" }, { "Name": "WdiServiceHost", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "WdiSystemHost", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "WebClient", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "Wecsvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "WerSvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "WiaRpc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "WinRM", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "Winmgmt", "StartupType": "Automatic", "OriginalType": "Automatic" }, { "Name": "WpcMonSvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "WpnService", "StartupType": "Manual", "OriginalType": "Automatic" }, { "Name": "XblAuthManager", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "XblGameSave", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "XboxGipSvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "XboxNetApiSvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "autotimesvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "bthserv", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "camsvc", "StartupType": "Manual", "OriginalType": "Automatic" }, { "Name": "cloudidsvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "dcsvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "defragsvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "diagsvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "dmwappushservice", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "dot3svc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "edgeupdate", "StartupType": "Manual", "OriginalType": "Automatic" }, { "Name": "edgeupdatem", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "fdPHost", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "fhsvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "hidserv", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "icssvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "iphlpsvc", "StartupType": "Automatic", "OriginalType": "Automatic" }, { "Name": "lfsvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "lltdsvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "lmhosts", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "netprofm", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "nsi", "StartupType": "Automatic", "OriginalType": "Automatic" }, { "Name": "perceptionsimulation", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "pla", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "seclogon", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "shpamsvc", "StartupType": "Disabled", "OriginalType": "Disabled" }, { "Name": "smphost", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "ssh-agent", "StartupType": "Disabled", "OriginalType": "Disabled" }, { "Name": "svsvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "swprv", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "tzautoupdate", "StartupType": "Disabled", "OriginalType": "Disabled" }, { "Name": "upnphost", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "vds", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "vmicguestinterface", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "vmicheartbeat", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "vmickvpexchange", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "vmicrdv", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "vmicshutdown", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "vmictimesync", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "vmicvmsession", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "vmicvss", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "wbengine", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "wcncsvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "webthreatdefsvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "wercplsupport", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "wisvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "wlidsvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "wlpasvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "wmiApSrv", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "workfolderssvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "wuauserv", "StartupType": "Manual", "OriginalType": "Manual" } ], "link": "https://winutil.christitus.com/dev/tweaks/essential-tweaks/services" }, "WPFTweaksBraveDebloat": { "Content": "Brave Debloat", "Description": "Disables various annoyances like Brave Rewards, Leo AI, Crypto Wallet and VPN.", "category": "z__Advanced Tweaks - CAUTION", "panel": "1", "registry": [ { "Path": "HKLM:\\SOFTWARE\\Policies\\BraveSoftware\\Brave", "Name": "BraveRewardsDisabled", "Value": "1", "Type": "DWord", "OriginalValue": "" }, { "Path": "HKLM:\\SOFTWARE\\Policies\\BraveSoftware\\Brave", "Name": "BraveWalletDisabled", "Value": "1", "Type": "DWord", "OriginalValue": "" }, { "Path": "HKLM:\\SOFTWARE\\Policies\\BraveSoftware\\Brave", "Name": "BraveVPNDisabled", "Value": "1", "Type": "DWord", "OriginalValue": "" }, { "Path": "HKLM:\\SOFTWARE\\Policies\\BraveSoftware\\Brave", "Name": "BraveAIChatEnabled", "Value": "0", "Type": "DWord", "OriginalValue": "" }, { "Path": "HKLM:\\SOFTWARE\\Policies\\BraveSoftware\\Brave", "Name": "BraveStatsPingEnabled", "Value": "0", "Type": "DWord", "OriginalValue": "" } ], "link": "https://winutil.christitus.com/dev/tweaks/z--advanced-tweaks---caution/bravedebloat" }, "WPFTweaksEdgeDebloat": { "Content": "Edge Debloat", "Description": "Disables various telemetry options, popups, and other annoyances in Edge.", "category": "z__Advanced Tweaks - CAUTION", "panel": "1", "registry": [ { "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\EdgeUpdate", "Name": "CreateDesktopShortcutDefault", "Value": "0", "Type": "DWord", "OriginalValue": "" }, { "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Edge", "Name": "PersonalizationReportingEnabled", "Value": "0", "Type": "DWord", "OriginalValue": "" }, { "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Edge\\ExtensionInstallBlocklist", "Name": "1", "Value": "ofefcgjbeghpigppfmkologfjadafddi", "Type": "String", "OriginalValue": "" }, { "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Edge", "Name": "ShowRecommendationsEnabled", "Value": "0", "Type": "DWord", "OriginalValue": "" }, { "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Edge", "Name": "HideFirstRunExperience", "Value": "1", "Type": "DWord", "OriginalValue": "" }, { "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Edge", "Name": "UserFeedbackAllowed", "Value": "0", "Type": "DWord", "OriginalValue": "" }, { "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Edge", "Name": "ConfigureDoNotTrack", "Value": "1", "Type": "DWord", "OriginalValue": "" }, { "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Edge", "Name": "AlternateErrorPagesEnabled", "Value": "0", "Type": "DWord", "OriginalValue": "" }, { "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Edge", "Name": "EdgeCollectionsEnabled", "Value": "0", "Type": "DWord", "OriginalValue": "" }, { "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Edge", "Name": "EdgeShoppingAssistantEnabled", "Value": "0", "Type": "DWord", "OriginalValue": "" }, { "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Edge", "Name": "MicrosoftEdgeInsiderPromotionEnabled", "Value": "0", "Type": "DWord", "OriginalValue": "" }, { "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Edge", "Name": "ShowMicrosoftRewards", "Value": "0", "Type": "DWord", "OriginalValue": "" }, { "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Edge", "Name": "WebWidgetAllowed", "Value": "0", "Type": "DWord", "OriginalValue": "" }, { "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Edge", "Name": "DiagnosticData", "Value": "0", "Type": "DWord", "OriginalValue": "" }, { "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Edge", "Name": "EdgeAssetDeliveryServiceEnabled", "Value": "0", "Type": "DWord", "OriginalValue": "" }, { "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Edge", "Name": "WalletDonationEnabled", "Value": "0", "Type": "DWord", "OriginalValue": "" } ], "link": "https://winutil.christitus.com/dev/tweaks/z--advanced-tweaks---caution/edgedebloat" }, "WPFTweaksConsumerFeatures": { "Content": "Disable ConsumerFeatures", "Description": "Windows will not automatically install any games, third-party apps, or application links from the Windows Store for the signed-in user. Some default Apps will be inaccessible (eg. Phone Link).", "category": "Essential Tweaks", "panel": "1", "registry": [ { "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\CloudContent", "Name": "DisableWindowsConsumerFeatures", "Value": "1", "Type": "DWord", "OriginalValue": "" } ], "link": "https://winutil.christitus.com/dev/tweaks/essential-tweaks/consumerfeatures" }, "WPFTweaksTelemetry": { "Content": "Disable Telemetry", "Description": "Disables Microsoft Telemetry.", "category": "Essential Tweaks", "panel": "1", "registry": [ { "Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\AdvertisingInfo", "Name": "Enabled", "Value": "0", "Type": "DWord", "OriginalValue": "" }, { "Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Privacy", "Name": "TailoredExperiencesWithDiagnosticDataEnabled", "Value": "0", "Type": "DWord", "OriginalValue": "" }, { "Path": "HKCU:\\Software\\Microsoft\\Speech_OneCore\\Settings\\OnlineSpeechPrivacy", "Name": "HasAccepted", "Value": "0", "Type": "DWord", "OriginalValue": "" }, { "Path": "HKCU:\\Software\\Microsoft\\Input\\TIPC", "Name": "Enabled", "Value": "0", "Type": "DWord", "OriginalValue": "" }, { "Path": "HKCU:\\Software\\Microsoft\\InputPersonalization", "Name": "RestrictImplicitInkCollection", "Value": "1", "Type": "DWord", "OriginalValue": "" }, { "Path": "HKCU:\\Software\\Microsoft\\InputPersonalization", "Name": "RestrictImplicitTextCollection", "Value": "1", "Type": "DWord", "OriginalValue": "" }, { "Path": "HKCU:\\Software\\Microsoft\\InputPersonalization\\TrainedDataStore", "Name": "HarvestContacts", "Value": "0", "Type": "DWord", "OriginalValue": "" }, { "Path": "HKCU:\\Software\\Microsoft\\Personalization\\Settings", "Name": "AcceptedPrivacyPolicy", "Value": "0", "Type": "DWord", "OriginalValue": "" }, { "Path": "HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\DataCollection", "Name": "AllowTelemetry", "Value": "0", "Type": "DWord", "OriginalValue": "" }, { "Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced", "Name": "Start_TrackProgs", "Value": "0", "Type": "DWord", "OriginalValue": "" }, { "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\System", "Name": "PublishUserActivities", "Value": "0", "Type": "DWord", "OriginalValue": "" }, { "Path": "HKCU:\\Software\\Microsoft\\Siuf\\Rules", "Name": "NumberOfSIUFInPeriod", "Value": "0", "Type": "DWord", "OriginalValue": "" } ], "InvokeScript": [ " # Disable Defender Auto Sample Submission Set-MpPreference -SubmitSamplesConsent 2 # Disable (Connected User Experiences and Telemetry) Service Set-Service -Name diagtrack -StartupType Disabled # Disable (Windows Error Reporting Manager) Service Set-Service -Name wermgr -StartupType Disabled $Memory = (Get-CimInstance Win32_PhysicalMemory | Measure-Object Capacity -Sum).Sum / 1KB Set-ItemProperty -Path \"HKLM:\\SYSTEM\\CurrentControlSet\\Control\" -Name SvcHostSplitThresholdInKB -Value $Memory Remove-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Siuf\\Rules\" -Name PeriodInNanoSeconds " ], "UndoScript": [ " # Enable Defender Auto Sample Submission Set-MpPreference -SubmitSamplesConsent 1 # Enable (Connected User Experiences and Telemetry) Service Set-Service -Name diagtrack -StartupType Automatic # Enable (Windows Error Reporting Manager) Service Set-Service -Name wermgr -StartupType Automatic " ], "link": "https://winutil.christitus.com/dev/tweaks/essential-tweaks/telemetry" }, "WPFTweaksRemoveEdge": { "Content": "Remove Microsoft Edge", "Description": "Unblocks Microsoft Edge uninstaller restrictions then uses that uninstaller to remove Microsoft Edge.", "category": "z__Advanced Tweaks - CAUTION", "panel": "1", "InvokeScript": [ "Invoke-WinUtilRemoveEdge" ], "UndoScript": [ " Write-Host 'Installing Microsoft Edge...' winget install Microsoft.Edge --source winget " ], "link": "https://winutil.christitus.com/dev/tweaks/z--advanced-tweaks---caution/removeedge" }, "WPFTweaksUTC": { "Content": "Set Time to UTC (Dual Boot)", "Description": "Essential for computers that are dual booting. Fixes the time sync with Linux Systems.", "category": "z__Advanced Tweaks - CAUTION", "panel": "1", "registry": [ { "Path": "HKLM:\\SYSTEM\\CurrentControlSet\\Control\\TimeZoneInformation", "Name": "RealTimeIsUniversal", "Value": "1", "Type": "QWord", "OriginalValue": "0" } ], "link": "https://winutil.christitus.com/dev/tweaks/z--advanced-tweaks---caution/utc" }, "WPFTweaksRemoveOneDrive": { "Content": "Remove OneDrive", "Description": "Denies permission to remove OneDrive user files, then uses its own uninstaller to remove it and restores the original permission afterward.", "category": "z__Advanced Tweaks - CAUTION", "panel": "1", "InvokeScript": [ " # Deny permission to remove OneDrive folder icacls $Env:OneDrive /deny \"Administrators:(D,DC)\" Write-Host \"Uninstalling OneDrive...\" Start-Process 'C:\\Windows\\System32\\OneDriveSetup.exe' -ArgumentList '/uninstall' -Wait # Some of OneDrive files use explorer, and OneDrive uses FileCoAuth Write-Host \"Removing leftover OneDrive Files...\" Stop-Process -Name FileCoAuth,Explorer Remove-Item \"$Env:LocalAppData\\Microsoft\\OneDrive\" -Recurse -Force Remove-Item \"C:\\ProgramData\\Microsoft OneDrive\" -Recurse -Force # Grant back permission to accses OneDrive folder icacls $Env:OneDrive /grant \"Administrators:(D,DC)\" # Disable OneSyncSvc Set-Service -Name OneSyncSvc -StartupType Disabled " ], "UndoScript": [ " Write-Host \"Installing OneDrive\" winget install Microsoft.Onedrive --source winget # Enabled OneSyncSvc Set-Service -Name OneSyncSvc -StartupType Automatic " ], "link": "https://winutil.christitus.com/dev/tweaks/z--advanced-tweaks---caution/removeonedrive" }, "WPFTweaksRemoveHome": { "Content": "Remove Home from Explorer", "Description": "Removes the Home from Explorer and sets This PC as default.", "category": "z__Advanced Tweaks - CAUTION", "panel": "1", "InvokeScript": [ " Remove-Item \"HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Desktop\\NameSpace\\{f874310e-b6b7-47dc-bc84-b9e6b38f5903}\" Set-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced\" -Name LaunchTo -Value 1 " ], "UndoScript": [ " New-Item \"HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Desktop\\NameSpace\\{f874310e-b6b7-47dc-bc84-b9e6b38f5903}\" Set-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced\" -Name LaunchTo -Value 0 " ], "link": "https://winutil.christitus.com/dev/tweaks/z--advanced-tweaks---caution/removehome" }, "WPFTweaksRemoveGallery": { "Content": "Remove Gallery from explorer", "Description": "Removes the Gallery from Explorer and sets This PC as default.", "category": "z__Advanced Tweaks - CAUTION", "panel": "1", "InvokeScript": [ " Remove-Item \"HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Desktop\\NameSpace\\{e88865ea-0e1c-4e20-9aa6-edcd0212c87c}\" " ], "UndoScript": [ " New-Item \"HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Desktop\\NameSpace\\{e88865ea-0e1c-4e20-9aa6-edcd0212c87c}\" " ], "link": "https://winutil.christitus.com/dev/tweaks/z--advanced-tweaks---caution/removegallery" }, "WPFTweaksDisplay": { "Content": "Set Display for Performance", "Description": "Sets the system preferences to performance. You can do this manually with sysdm.cpl as well.", "category": "z__Advanced Tweaks - CAUTION", "panel": "1", "registry": [ { "Path": "HKCU:\\Control Panel\\Desktop", "Name": "DragFullWindows", "Value": "0", "Type": "String", "OriginalValue": "1" }, { "Path": "HKCU:\\Control Panel\\Desktop", "Name": "MenuShowDelay", "Value": "200", "Type": "String", "OriginalValue": "400" }, { "Path": "HKCU:\\Control Panel\\Desktop\\WindowMetrics", "Name": "MinAnimate", "Value": "0", "Type": "String", "OriginalValue": "1" }, { "Path": "HKCU:\\Control Panel\\Keyboard", "Name": "KeyboardDelay", "Value": "0", "Type": "DWord", "OriginalValue": "1" }, { "Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced", "Name": "ListviewAlphaSelect", "Value": "0", "Type": "DWord", "OriginalValue": "1" }, { "Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced", "Name": "ListviewShadow", "Value": "0", "Type": "DWord", "OriginalValue": "1" }, { "Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced", "Name": "TaskbarAnimations", "Value": "0", "Type": "DWord", "OriginalValue": "1" }, { "Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\VisualEffects", "Name": "VisualFXSetting", "Value": "3", "Type": "DWord", "OriginalValue": "1" }, { "Path": "HKCU:\\Software\\Microsoft\\Windows\\DWM", "Name": "EnableAeroPeek", "Value": "0", "Type": "DWord", "OriginalValue": "1" }, { "Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced", "Name": "TaskbarMn", "Value": "0", "Type": "DWord", "OriginalValue": "1" }, { "Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced", "Name": "ShowTaskViewButton", "Value": "0", "Type": "DWord", "OriginalValue": "1" }, { "Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Search", "Name": "SearchboxTaskbarMode", "Value": "0", "Type": "DWord", "OriginalValue": "1" } ], "InvokeScript": [ "Set-ItemProperty -Path \"HKCU:\\Control Panel\\Desktop\" -Name \"UserPreferencesMask\" -Type Binary -Value ([byte[]](144,18,3,128,16,0,0,0))" ], "UndoScript": [ "Remove-ItemProperty -Path \"HKCU:\\Control Panel\\Desktop\" -Name \"UserPreferencesMask\"" ], "link": "https://winutil.christitus.com/dev/tweaks/z--advanced-tweaks---caution/display" }, "WPFTweaksXboxRemoval": { "Content": "Remove Xbox & Gaming Components", "Description": "Removes Xbox services, the Xbox app, Game Bar, and related authentication components.", "category": "z__Advanced Tweaks - CAUTION", "panel": "1", "registry": [ { "Path": "KCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\GameDVR", "Name": "AppCaptureEnabled", "Value": "0", "Type": "DWord", "OriginalValue": "1" } ], "appx": [ "Microsoft.XboxIdentityProvider", "Microsoft.XboxSpeechToTextOverlay", "Microsoft.GamingApp", "Microsoft.Xbox.TCUI", "Microsoft.XboxGamingOverlay" ], "link": "https://winutil.christitus.com/dev/tweaks/z--advanced-tweaks---caution/xboxremoval" }, "WPFTweaksDeBloat": { "Content": "Remove ALL MS Store Apps - NOT RECOMMENDED", "Description": "USE WITH CAUTION!!! This will remove ALL Microsoft Store apps.", "category": "z__Advanced Tweaks - CAUTION", "panel": "1", "appx": [ "Microsoft.Microsoft3DViewer", "Microsoft.AppConnector", "Microsoft.BingFinance", "Microsoft.BingNews", "Microsoft.BingSports", "Microsoft.BingTranslator", "Microsoft.BingWeather", "Microsoft.BingFoodAndDrink", "Microsoft.BingHealthAndFitness", "Microsoft.BingTravel", "Clipchamp.Clipchamp", "Microsoft.Todos", "MicrosoftCorporationII.QuickAssist", "Microsoft.MicrosoftStickyNotes", "Microsoft.GetHelp", "Microsoft.GetStarted", "Microsoft.Messaging", "Microsoft.MicrosoftSolitaireCollection", "Microsoft.NetworkSpeedTest", "Microsoft.News", "Microsoft.Office.Lens", "Microsoft.Office.Sway", "Microsoft.Office.OneNote", "Microsoft.OneConnect", "Microsoft.People", "Microsoft.Print3D", "Microsoft.SkypeApp", "Microsoft.Wallet", "Microsoft.Whiteboard", "Microsoft.WindowsAlarms", "Microsoft.WindowsCommunicationsApps", "Microsoft.WindowsFeedbackHub", "Microsoft.WindowsMaps", "Microsoft.WindowsSoundRecorder", "Microsoft.ConnectivityStore", "Microsoft.ScreenSketch", "Microsoft.MixedReality.Portal", "Microsoft.ZuneMusic", "Microsoft.ZuneVideo", "Microsoft.MicrosoftOfficeHub", "MsTeams", "*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*", "*HotspotShieldFreeVPN*", "*Microsoft.Advertising.Xaml*" ], "InvokeScript": [ " $TeamsPath = \"$Env:LocalAppData\\Microsoft\\Teams\\Update.exe\" if (Test-Path $TeamsPath) { Write-Host \"Uninstalling Teams\" Start-Process $TeamsPath -ArgumentList -uninstall -wait Write-Host \"Deleting Teams directory\" Remove-Item $TeamsPath -Recurse -Force } " ], "link": "https://winutil.christitus.com/dev/tweaks/z--advanced-tweaks---caution/debloat" }, "WPFTweaksRestorePoint": { "Content": "Create Restore Point", "Description": "Creates a restore point at runtime in case a revert is needed from WinUtil modifications.", "category": "Essential Tweaks", "panel": "1", "Checked": "False", "registry": [ { "Path": "HKLM:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\SystemRestore", "Name": "SystemRestorePointCreationFrequency", "Value": "0", "Type": "DWord", "OriginalValue": "1440" } ], "InvokeScript": [ " if (-not (Get-ComputerRestorePoint)) { Enable-ComputerRestore -Drive $Env:SystemDrive } Checkpoint-Computer -Description \"System Restore Point created by WinUtil\" -RestorePointType MODIFY_SETTINGS Write-Host \"System Restore Point Created Successfully\" -ForegroundColor Green " ], "link": "https://winutil.christitus.com/dev/tweaks/essential-tweaks/restorepoint" }, "WPFTweaksEndTaskOnTaskbar": { "Content": "Enable End Task With Right Click", "Description": "Enables option to end task when right clicking a program in the taskbar.", "category": "Essential Tweaks", "panel": "1", "registry": [ { "Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced\\TaskbarDeveloperSettings", "Name": "TaskbarEndTask", "Value": "1", "Type": "DWord", "OriginalValue": "" } ], "link": "https://winutil.christitus.com/dev/tweaks/essential-tweaks/endtaskontaskbar" }, "WPFTweaksPowershell7Tele": { "Content": "Disable Powershell 7 Telemetry", "Description": "Creates an Environment Variable called 'POWERSHELL_TELEMETRY_OPTOUT' with a value of '1' which will tell PowerShell 7 to not send Telemetry Data.", "category": "Essential Tweaks", "panel": "1", "InvokeScript": [ "[Environment]::SetEnvironmentVariable('POWERSHELL_TELEMETRY_OPTOUT', '1', 'Machine')" ], "UndoScript": [ "[Environment]::SetEnvironmentVariable('POWERSHELL_TELEMETRY_OPTOUT', '', 'Machine')" ], "link": "https://winutil.christitus.com/dev/tweaks/essential-tweaks/powershell7tele" }, "WPFTweaksStorage": { "Content": "Disable Storage Sense", "Description": "Storage Sense deletes temp files automatically.", "category": "z__Advanced Tweaks - CAUTION", "panel": "1", "registry": [ { "Path": "HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\StorageSense\\Parameters\\StoragePolicy", "Name": "01", "Value": "0", "Type": "DWord", "OriginalValue": "1" } ], "link": "https://winutil.christitus.com/dev/tweaks/z--advanced-tweaks---caution/storage" }, "WPFTweaksRemoveCopilot": { "Content": "Disable Microsoft Copilot", "Description": "Disables MS Copilot AI built into Windows since 23H2.", "category": "z__Advanced Tweaks - CAUTION", "panel": "1", "registry": [ { "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\WindowsCopilot", "Name": "TurnOffWindowsCopilot", "Value": "1", "Type": "DWord", "OriginalValue": "" }, { "Path": "HKCU:\\Software\\Policies\\Microsoft\\Windows\\WindowsCopilot", "Name": "TurnOffWindowsCopilot", "Value": "1", "Type": "DWord", "OriginalValue": "" }, { "Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced", "Name": "ShowCopilotButton", "Value": "0", "Type": "DWord", "OriginalValue": "1" }, { "Path": "HKLM:\\SOFTWARE\\Microsoft\\Windows\\Shell\\Copilot", "Name": "IsCopilotAvailable", "Value": "0", "Type": "DWord", "OriginalValue": "" }, { "Path": "HKLM:\\SOFTWARE\\Microsoft\\Windows\\Shell\\Copilot", "Name": "CopilotDisabledReason", "Value": "IsEnabledForGeographicRegionFailed", "Type": "String", "OriginalValue": "" }, { "Path": "HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\WindowsCopilot", "Name": "AllowCopilotRuntime", "Value": "0", "Type": "DWord", "OriginalValue": "" }, { "Path": "HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Shell Extensions\\Blocked", "Name": "{CB3B0003-8088-4EDE-8769-8B354AB2FF8C}", "Value": "", "Type": "String", "OriginalValue": "" }, { "Path": "HKLM:\\SOFTWARE\\Microsoft\\Windows\\Shell\\Copilot\\BingChat", "Name": "IsUserEligible", "Value": "0", "Type": "DWord", "OriginalValue": "" } ], "InvokeScript": [ " Write-Host \"Remove Copilot\" Get-AppxPackage -AllUsers *Copilot* | Remove-AppxPackage -AllUsers Get-AppxPackage -AllUsers Microsoft.MicrosoftOfficeHub | Remove-AppxPackage -AllUsers $Appx = (Get-AppxPackage MicrosoftWindows.Client.CoreAI).PackageFullName $Sid = (Get-LocalUser $Env:UserName).Sid.Value New-Item \"HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Appx\\AppxAllUserStore\\EndOfLife\\$Sid\\$Appx\" -Force Remove-AppxPackage $Appx " ], "UndoScript": [ " Write-Host \"Install Copilot\" winget install --name Copilot --source msstore --accept-package-agreements --accept-source-agreements --silent " ], "link": "https://winutil.christitus.com/dev/tweaks/z--advanced-tweaks---caution/removecopilot" }, "WPFTweaksWPBT": { "Content": "Disable Windows Platform Binary Table (WPBT)", "Description": "If enabled, WPBT allows your computer vendor to execute programs at boot time, such as anti-theft software, software drivers, as well as force install software without user consent. Poses potential security risk.", "category": "Essential Tweaks", "panel": "1", "registry": [ { "Path": "HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Session Manager", "Name": "DisableWpbtExecution", "Value": "1", "Type": "DWord", "OriginalValue": "" } ], "link": "https://winutil.christitus.com/dev/tweaks/essential-tweaks/wpbt" }, "WPFTweaksRazerBlock": { "Content": "Block Razer Software Installs", "Description": "Blocks ALL Razer Software installations. The hardware works fine without any software.", "category": "z__Advanced Tweaks - CAUTION", "panel": "1", "registry": [ { "Path": "HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\DriverSearching", "Name": "SearchOrderConfig", "Value": "0", "Type": "DWord", "OriginalValue": "1" }, { "Path": "HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Device Installer", "Name": "DisableCoInstallers", "Value": "1", "Type": "DWord", "OriginalValue": "0" } ], "InvokeScript": [ " $RazerPath = \"C:\\Windows\\Installer\\Razer\" if (Test-Path $RazerPath) { Remove-Item $RazerPath\\* -Recurse -Force } else { New-Item -Path $RazerPath -ItemType Directory } icacls $RazerPath /deny \"Everyone:(W)\" " ], "UndoScript": [ " icacls \"C:\\Windows\\Installer\\Razer\" /remove:d Everyone " ], "link": "https://winutil.christitus.com/dev/tweaks/z--advanced-tweaks---caution/razerblock" }, "WPFTweaksDisableNotifications": { "Content": "Disable Notification Tray/Calendar", "Description": "Disables all Notifications INCLUDING Calendar.", "category": "z__Advanced Tweaks - CAUTION", "panel": "1", "registry": [ { "Path": "HKCU:\\Software\\Policies\\Microsoft\\Windows\\Explorer", "Name": "DisableNotificationCenter", "Value": "1", "Type": "DWord", "OriginalValue": "" }, { "Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\PushNotifications", "Name": "ToastEnabled", "Value": "0", "Type": "DWord", "OriginalValue": "1" } ], "link": "https://winutil.christitus.com/dev/tweaks/z--advanced-tweaks---caution/disablenotifications" }, "WPFTweaksBlockAdobeNet": { "Content": "Adobe Network Block", "Description": "Reduces user interruptions by selectively blocking connections to Adobe's activation and telemetry servers. Credit: Ruddernation-Designs", "category": "z__Advanced Tweaks - CAUTION", "panel": "1", "InvokeScript": [ " $hostsUrl = \"https://github.com/Ruddernation-Designs/Adobe-URL-Block-List/raw/refs/heads/master/hosts\" $hosts = \"$Env:SystemRoot\\System32\\drivers\\etc\\hosts\" Move-Item $hosts \"$hosts.bak\" Invoke-WebRequest $hostsUrl -OutFile $hosts ipconfig /flushdns Write-Host \"Added Adobe url block list from host file\" " ], "UndoScript": [ " $hosts = \"$Env:SystemRoot\\System32\\drivers\\etc\\hosts\" Remove-Item $hosts Move-Item \"$hosts.bak\" $hosts ipconfig /flushdns Write-Host \"Removed Adobe url block list from host file\" " ], "link": "https://winutil.christitus.com/dev/tweaks/z--advanced-tweaks---caution/blockadobenet" }, "WPFTweaksRightClickMenu": { "Content": "Set Classic Right-Click Menu", "Description": "Restores the classic context menu when right-clicking in File Explorer, replacing the simplified Windows 11 version.", "category": "z__Advanced Tweaks - CAUTION", "panel": "1", "InvokeScript": [ " New-Item -Path \"HKCU:\\Software\\Classes\\CLSID\\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\" -Name \"InprocServer32\" -force -value \"\" Write-Host Restarting explorer.exe ... Stop-Process -Name \"explorer\" -Force " ], "UndoScript": [ " Remove-Item -Path \"HKCU:\\Software\\Classes\\CLSID\\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\" -Recurse -Confirm:$false -Force # Restarting Explorer in the Undo Script might not be necessary, as the Registry change without restarting Explorer does work, but just to make sure. Write-Host Restarting explorer.exe ... Stop-Process -Name \"explorer\" -Force " ], "link": "https://winutil.christitus.com/dev/tweaks/z--advanced-tweaks---caution/rightclickmenu" }, "WPFTweaksDiskCleanup": { "Content": "Run Disk Cleanup", "Description": "Runs Disk Cleanup on Drive C: and removes old Windows Updates.", "category": "Essential Tweaks", "panel": "1", "InvokeScript": [ " cleanmgr.exe /d C: /VERYLOWDISK Dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase " ], "link": "https://winutil.christitus.com/dev/tweaks/essential-tweaks/diskcleanup" }, "WPFTweaksDeleteTempFiles": { "Content": "Delete Temporary Files", "Description": "Erases TEMP Folders.", "category": "Essential Tweaks", "panel": "1", "InvokeScript": [ " Remove-Item -Path \"$Env:Temp\\*\" -Recurse -Force Remove-Item -Path \"$Env:SystemRoot\\Temp\\*\" -Recurse -Force " ], "link": "https://winutil.christitus.com/dev/tweaks/essential-tweaks/deletetempfiles" }, "WPFTweaksIPv46": { "Content": "Prefer IPv4 over IPv6", "Description": "Setting the IPv4 preference can have latency and security benefits on private networks where IPv6 is not configured.", "category": "z__Advanced Tweaks - CAUTION", "panel": "1", "registry": [ { "Path": "HKLM:\\SYSTEM\\CurrentControlSet\\Services\\Tcpip6\\Parameters", "Name": "DisabledComponents", "Value": "32", "Type": "DWord", "OriginalValue": "0" } ], "link": "https://winutil.christitus.com/dev/tweaks/z--advanced-tweaks---caution/ipv46" }, "WPFTweaksTeredo": { "Content": "Disable Teredo", "Description": "Teredo network tunneling is a IPv6 feature that can cause additional latency, but may cause problems with some games.", "category": "z__Advanced Tweaks - CAUTION", "panel": "1", "registry": [ { "Path": "HKLM:\\SYSTEM\\CurrentControlSet\\Services\\Tcpip6\\Parameters", "Name": "DisabledComponents", "Value": "1", "Type": "DWord", "OriginalValue": "0" } ], "InvokeScript": [ "netsh interface teredo set state disabled" ], "UndoScript": [ "netsh interface teredo set state default" ], "link": "https://winutil.christitus.com/dev/tweaks/z--advanced-tweaks---caution/teredo" }, "WPFTweaksDisableIPv6": { "Content": "Disable IPv6", "Description": "Disables IPv6.", "category": "z__Advanced Tweaks - CAUTION", "panel": "1", "registry": [ { "Path": "HKLM:\\SYSTEM\\CurrentControlSet\\Services\\Tcpip6\\Parameters", "Name": "DisabledComponents", "Value": "255", "Type": "DWord", "OriginalValue": "0" } ], "InvokeScript": [ "Disable-NetAdapterBinding -Name * -ComponentID ms_tcpip6" ], "UndoScript": [ "Enable-NetAdapterBinding -Name * -ComponentID ms_tcpip6" ], "link": "https://winutil.christitus.com/dev/tweaks/z--advanced-tweaks---caution/disableipv6" }, "WPFTweaksDisableBGapps": { "Content": "Disable Background Apps", "Description": "Disables all Microsoft Store apps from running in the background, which has to be done individually since Windows 11.", "category": "z__Advanced Tweaks - CAUTION", "panel": "1", "registry": [ { "Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\BackgroundAccessApplications", "Name": "GlobalUserDisabled", "Value": "1", "Type": "DWord", "OriginalValue": "0" } ], "link": "https://winutil.christitus.com/dev/tweaks/z--advanced-tweaks---caution/disablebgapps" }, "WPFTweaksDisableFSO": { "Content": "Disable Fullscreen Optimizations", "Description": "Disables FSO in all applications. NOTE: This will disable Color Management in Exclusive Fullscreen.", "category": "z__Advanced Tweaks - CAUTION", "panel": "1", "registry": [ { "Path": "HKCU:\\System\\GameConfigStore", "Name": "GameDVR_DXGIHonorFSEWindowsCompatible", "Value": "1", "Type": "DWord", "OriginalValue": "0" } ], "link": "https://winutil.christitus.com/dev/tweaks/z--advanced-tweaks---caution/disablefso" }, "WPFToggleDarkMode": { "Content": "Dark Theme for Windows", "Description": "Enable/Disable Dark Mode.", "category": "Customize Preferences", "panel": "2", "Type": "Toggle", "registry": [ { "Path": "HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize", "Name": "AppsUseLightTheme", "Value": "0", "Type": "DWord", "OriginalValue": "1", "DefaultState": "false" }, { "Path": "HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize", "Name": "SystemUsesLightTheme", "Value": "0", "Type": "DWord", "OriginalValue": "1", "DefaultState": "false" } ], "InvokeScript": [ " Invoke-WinUtilExplorerUpdate if ($sync.ThemeButton.Content -eq [char]0xF08C) { Invoke-WinutilThemeChange -theme \"Auto\" } " ], "UndoScript": [ " Invoke-WinUtilExplorerUpdate if ($sync.ThemeButton.Content -eq [char]0xF08C) { Invoke-WinutilThemeChange -theme \"Auto\" } " ], "link": "https://winutil.christitus.com/dev/tweaks/customize-preferences/darkmode" }, "WPFToggleBingSearch": { "Content": "Bing Search in Start Menu", "Description": "If enabled, Bing web search results will be included in your Start Menu search.", "category": "Customize Preferences", "panel": "2", "Type": "Toggle", "registry": [ { "Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Search", "Name": "BingSearchEnabled", "Value": "1", "Type": "DWord", "OriginalValue": "0", "DefaultState": "true" } ], "link": "https://winutil.christitus.com/dev/tweaks/customize-preferences/bingsearch" }, "WPFToggleStandbyFix": { "Content": "Modern Standby fix", "Description": "Disable network connection during S0 sleep. If network connectivity is turned on during S0 sleep it could cause overheating on modern laptops", "category": "Customize Preferences", "panel": "2", "Type": "Toggle", "registry": [ { "Path": "HKCU:\\SOFTWARE\\Policies\\Microsoft\\Power\\PowerSettings\\f15576e8-98b7-4186-b944-eafa664402d9", "Name": "ACSettingIndex", "Value": "0", "Type": "DWord", "OriginalValue": "", "DefaultState": "true" } ], "link": "https://winutil.christitus.com/dev/tweaks/customize-preferences/standbyfix" }, "WPFToggleNumLock": { "Content": "Num Lock on Startup", "Description": "Toggle the Num Lock key state when your computer starts.", "category": "Customize Preferences", "panel": "2", "Type": "Toggle", "registry": [ { "Path": "HKU:\\.Default\\Control Panel\\Keyboard", "Name": "InitialKeyboardIndicators", "Value": "2", "Type": "DWord", "OriginalValue": "0", "DefaultState": "false" }, { "Path": "HKCU:\\Control Panel\\Keyboard", "Name": "InitialKeyboardIndicators", "Value": "2", "Type": "DWord", "OriginalValue": "0", "DefaultState": "false" } ], "link": "https://winutil.christitus.com/dev/tweaks/customize-preferences/numlock" }, "WPFToggleVerboseLogon": { "Content": "Verbose Messages During Logon", "Description": "Show detailed messages during the login process for troubleshooting and diagnostics.", "category": "Customize Preferences", "panel": "2", "Type": "Toggle", "registry": [ { "Path": "HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System", "Name": "VerboseStatus", "Value": "1", "Type": "DWord", "OriginalValue": "0", "DefaultState": "false" } ], "link": "https://winutil.christitus.com/dev/tweaks/customize-preferences/verboselogon" }, "WPFToggleStartMenuRecommendations": { "Content": "Recommendations in Start Menu", "Description": "If disabled, then you will not see recommendations in the Start Menu. WARNING: This will also disable Windows Spotlight on your Lock Screen as a side effect.", "category": "Customize Preferences", "panel": "2", "Type": "Toggle", "registry": [ { "Path": "HKLM:\\SOFTWARE\\Microsoft\\PolicyManager\\current\\device\\Start", "Name": "HideRecommendedSection", "Value": "0", "Type": "DWord", "OriginalValue": "1", "DefaultState": "true" }, { "Path": "HKLM:\\SOFTWARE\\Microsoft\\PolicyManager\\current\\device\\Education", "Name": "IsEducationEnvironment", "Value": "0", "Type": "DWord", "OriginalValue": "1", "DefaultState": "true" }, { "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\Explorer", "Name": "HideRecommendedSection", "Value": "0", "Type": "DWord", "OriginalValue": "1", "DefaultState": "true" } ], "InvokeScript": [ " Invoke-WinUtilExplorerUpdate -action \"restart\" " ], "UndoScript": [ " Invoke-WinUtilExplorerUpdate -action \"restart\" " ], "link": "https://winutil.christitus.com/dev/tweaks/customize-preferences/startmenurecommendations" }, "WPFToggleHideSettingsHome": { "Content": "Remove Settings Home Page", "Description": "Removes the Home Page in the Windows Settings app.", "category": "Customize Preferences", "panel": "2", "Type": "Toggle", "registry": [ { "Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer", "Name": "SettingsPageVisibility", "Value": "hide:home", "Type": "String", "OriginalValue": "show:home", "DefaultState": "false" } ], "link": "https://winutil.christitus.com/dev/tweaks/customize-preferences/hidesettingshome" }, "WPFToggleMouseAcceleration": { "Content": "Mouse Acceleration", "Description": "If enabled, the Cursor movement is affected by the speed of your physical mouse movements.", "category": "Customize Preferences", "panel": "2", "Type": "Toggle", "registry": [ { "Path": "HKCU:\\Control Panel\\Mouse", "Name": "MouseSpeed", "Value": "1", "Type": "DWord", "OriginalValue": "0", "DefaultState": "true" }, { "Path": "HKCU:\\Control Panel\\Mouse", "Name": "MouseThreshold1", "Value": "6", "Type": "DWord", "OriginalValue": "0", "DefaultState": "true" }, { "Path": "HKCU:\\Control Panel\\Mouse", "Name": "MouseThreshold2", "Value": "10", "Type": "DWord", "OriginalValue": "0", "DefaultState": "true" } ], "link": "https://winutil.christitus.com/dev/tweaks/customize-preferences/mouseacceleration" }, "WPFToggleStickyKeys": { "Content": "Sticky Keys", "Description": "If enabled, Sticky Keys is activated. Sticky keys is an accessibility feature of some graphical user interfaces which assists users who have physical disabilities or help users reduce repetitive strain injury.", "category": "Customize Preferences", "panel": "2", "Type": "Toggle", "registry": [ { "Path": "HKCU:\\Control Panel\\Accessibility\\StickyKeys", "Name": "Flags", "Value": "506", "Type": "DWord", "OriginalValue": "58", "DefaultState": "true" } ], "link": "https://winutil.christitus.com/dev/tweaks/customize-preferences/stickykeys" }, "WPFToggleNewOutlook": { "Content": "New Outlook", "Description": "If disabled, it removes the new Outlook toggle, disables the new Outlook migration, and ensures the classic Outlook application is used.", "category": "Customize Preferences", "panel": "2", "Type": "Toggle", "registry": [ { "Path": "HKCU:\\SOFTWARE\\Microsoft\\Office\\16.0\\Outlook\\Preferences", "Name": "UseNewOutlook", "Value": "1", "Type": "DWord", "OriginalValue": "0", "DefaultState": "true" }, { "Path": "HKCU:\\Software\\Microsoft\\Office\\16.0\\Outlook\\Options\\General", "Name": "HideNewOutlookToggle", "Value": "0", "Type": "DWord", "OriginalValue": "1", "DefaultState": "true" }, { "Path": "HKCU:\\Software\\Policies\\Microsoft\\Office\\16.0\\Outlook\\Options\\General", "Name": "DoNewOutlookAutoMigration", "Value": "0", "Type": "DWord", "OriginalValue": "0", "DefaultState": "false" }, { "Path": "HKCU:\\Software\\Policies\\Microsoft\\Office\\16.0\\Outlook\\Preferences", "Name": "NewOutlookMigrationUserSetting", "Value": "0", "Type": "DWord", "OriginalValue": "", "DefaultState": "true" } ], "link": "https://winutil.christitus.com/dev/tweaks/customize-preferences/newoutlook" }, "WPFToggleMultiplaneOverlay": { "Content": "Disable Multiplane Overlay", "Description": "Disable the Multiplane Overlay which can sometimes cause issues with Graphics Cards.", "category": "Customize Preferences", "panel": "2", "Type": "Toggle", "registry": [ { "Path": "HKLM:\\SOFTWARE\\Microsoft\\Windows\\Dwm", "Name": "OverlayTestMode", "Value": "5", "Type": "DWord", "OriginalValue": "", "DefaultState": "false" } ], "link": "https://winutil.christitus.com/dev/tweaks/customize-preferences/multiplaneoverlay" }, "WPFToggleHiddenFiles": { "Content": "Show Hidden Files", "Description": "If enabled, Hidden Files will be shown.", "category": "Customize Preferences", "panel": "2", "Type": "Toggle", "registry": [ { "Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced", "Name": "Hidden", "Value": "1", "Type": "DWord", "OriginalValue": "0", "DefaultState": "false" } ], "InvokeScript": [ " Invoke-WinUtilExplorerUpdate -action \"restart\" " ], "UndoScript": [ " Invoke-WinUtilExplorerUpdate -action \"restart\" " ], "link": "https://winutil.christitus.com/dev/tweaks/customize-preferences/hiddenfiles" }, "WPFToggleShowExt": { "Content": "Show File Extensions", "Description": "If enabled, File extensions (e.g., .txt, .jpg) are visible.", "category": "Customize Preferences", "panel": "2", "Type": "Toggle", "registry": [ { "Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced", "Name": "HideFileExt", "Value": "0", "Type": "DWord", "OriginalValue": "1", "DefaultState": "false" } ], "InvokeScript": [ " Invoke-WinUtilExplorerUpdate -action \"restart\" " ], "UndoScript": [ " Invoke-WinUtilExplorerUpdate -action \"restart\" " ], "link": "https://winutil.christitus.com/dev/tweaks/customize-preferences/showext" }, "WPFToggleTaskbarSearch": { "Content": "Search Button in Taskbar", "Description": "If enabled, Search Button will be on the Taskbar.", "category": "Customize Preferences", "panel": "2", "Type": "Toggle", "registry": [ { "Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Search", "Name": "SearchboxTaskbarMode", "Value": "1", "Type": "DWord", "OriginalValue": "0", "DefaultState": "true" } ], "link": "https://winutil.christitus.com/dev/tweaks/customize-preferences/taskbarsearch" }, "WPFToggleTaskView": { "Content": "Task View Button in Taskbar", "Description": "If enabled, Task View Button in Taskbar will be shown.", "category": "Customize Preferences", "panel": "2", "Type": "Toggle", "registry": [ { "Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced", "Name": "ShowTaskViewButton", "Value": "1", "Type": "DWord", "OriginalValue": "0", "DefaultState": "true" } ], "link": "https://winutil.christitus.com/dev/tweaks/customize-preferences/taskview" }, "WPFToggleTaskbarAlignment": { "Content": "Center Taskbar Items", "Description": "[Windows 11] If enabled, the Taskbar Items will be shown on the Center, otherwise the Taskbar Items will be shown on the Left.", "category": "Customize Preferences", "panel": "2", "Type": "Toggle", "registry": [ { "Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced", "Name": "TaskbarAl", "Value": "1", "Type": "DWord", "OriginalValue": "0", "DefaultState": "true" } ], "InvokeScript": [ " Invoke-WinUtilExplorerUpdate -action \"restart\" " ], "UndoScript": [ " Invoke-WinUtilExplorerUpdate -action \"restart\" " ], "link": "https://winutil.christitus.com/dev/tweaks/customize-preferences/taskbaralignment" }, "WPFToggleDetailedBSoD": { "Content": "Detailed BSoD", "Description": "If enabled, you will see a detailed Blue Screen of Death (BSOD) with more information.", "category": "Customize Preferences", "panel": "2", "Type": "Toggle", "registry": [ { "Path": "HKLM:\\SYSTEM\\CurrentControlSet\\Control\\CrashControl", "Name": "DisplayParameters", "Value": "1", "Type": "DWord", "OriginalValue": "0", "DefaultState": "false" }, { "Path": "HKLM:\\SYSTEM\\CurrentControlSet\\Control\\CrashControl", "Name": "DisableEmoticon", "Value": "1", "Type": "DWord", "OriginalValue": "0", "DefaultState": "false" } ], "link": "https://winutil.christitus.com/dev/tweaks/customize-preferences/detailedbsod" }, "WPFToggleS3Sleep": { "Content": "S3 Sleep", "Description": "Toggles between Modern Standby and S3 Sleep.", "category": "Customize Preferences", "panel": "2", "Type": "Toggle", "registry": [ { "Path": "HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Power", "Name": "PlatformAoAcOverride", "Value": "0", "Type": "DWord", "OriginalValue": "", "DefaultState": "false" } ], "link": "https://winutil.christitus.com/dev/tweaks/customize-preferences/s3sleep" }, "WPFOOSUbutton": { "Content": "Run OO Shutup 10", "category": "z__Advanced Tweaks - CAUTION", "panel": "1", "Type": "Button", "link": "https://winutil.christitus.com/dev/tweaks/z--advanced-tweaks---caution/oosubutton" }, "WPFchangedns": { "Content": "DNS", "category": "z__Advanced Tweaks - CAUTION", "panel": "1", "Type": "Combobox", "ComboItems": "Default DHCP Google Cloudflare Cloudflare_Malware Cloudflare_Malware_Adult Open_DNS Quad9 AdGuard_Ads_Trackers AdGuard_Ads_Trackers_Malware_Adult", "link": "https://winutil.christitus.com/dev/tweaks/z--advanced-tweaks---caution/changedns" }, "WPFAddUltPerf": { "Content": "Add and Activate Ultimate Performance Profile", "category": "Performance Plans", "panel": "2", "Type": "Button", "ButtonWidth": "300", "link": "https://winutil.christitus.com/dev/tweaks/performance-plans/addultperf" }, "WPFRemoveUltPerf": { "Content": "Remove Ultimate Performance Profile", "category": "Performance Plans", "panel": "2", "Type": "Button", "ButtonWidth": "300", "link": "https://winutil.christitus.com/dev/tweaks/performance-plans/removeultperf" }, "WPFTweaksDisableExplorerAutoDiscovery": { "Content": "Disable Explorer Automatic Folder Discovery", "Description": "Windows Explorer automatically tries to guess the type of the folder based on its contents, slowing down the browsing experience. WARNING! Will disable File Explorer grouping.", "category": "Essential Tweaks", "panel": "1", "InvokeScript": [ " # Previously detected folders $bags = \"HKCU:\\Software\\Classes\\Local Settings\\Software\\Microsoft\\Windows\\Shell\\Bags\" # Folder types lookup table $bagMRU = \"HKCU:\\Software\\Classes\\Local Settings\\Software\\Microsoft\\Windows\\Shell\\BagMRU\" # Flush Explorer view database Remove-Item -Path $bags -Recurse -Force Write-Host \"Removed $bags\" Remove-Item -Path $bagMRU -Recurse -Force Write-Host \"Removed $bagMRU\" # Every folder $allFolders = \"HKCU:\\Software\\Classes\\Local Settings\\Software\\Microsoft\\Windows\\Shell\\Bags\\AllFolders\\Shell\" if (!(Test-Path $allFolders)) { New-Item -Path $allFolders -Force Write-Host \"Created $allFolders\" } # Generic view New-ItemProperty -Path $allFolders -Name \"FolderType\" -Value \"NotSpecified\" -PropertyType String -Force Write-Host \"Set FolderType to NotSpecified\" Write-Host Please sign out and back in, or restart your computer to apply the changes! " ], "UndoScript": [ " # Previously detected folders $bags = \"HKCU:\\Software\\Classes\\Local Settings\\Software\\Microsoft\\Windows\\Shell\\Bags\" # Folder types lookup table $bagMRU = \"HKCU:\\Software\\Classes\\Local Settings\\Software\\Microsoft\\Windows\\Shell\\BagMRU\" # Flush Explorer view database Remove-Item -Path $bags -Recurse -Force Write-Host \"Removed $bags\" Remove-Item -Path $bagMRU -Recurse -Force Write-Host \"Removed $bagMRU\" Write-Host Please sign out and back in, or restart your computer to apply the changes! " ], "link": "https://winutil.christitus.com/dev/tweaks/essential-tweaks/disableexplorerautodiscovery" }, "WPFToggleDisableCrossDeviceResume": { "Content": "Cross-Device Resume", "Description": "This tweak controls the Resume function in Windows 11 24H2 and later, which allows you to resume an activity from a mobile device and vice-versa.", "category": "Customize Preferences", "panel": "2", "Type": "Toggle", "registry": [ { "Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\CrossDeviceResume\\Configuration", "Name": "IsResumeAllowed", "Value": "1", "Type": "DWord", "OriginalValue": "0", "DefaultState": "true" } ], "link": "https://winutil.christitus.com/dev/tweaks/customize-preferences/disablecrossdeviceresume" } } ================================================ FILE: docs/archetypes/default.md ================================================ --- title: '{{ replace .File.ContentBaseName "-" " " | title }}' description: "" date: '{{ .Date }}' draft: true --- ================================================ FILE: docs/content/CONTRIBUTING.md ================================================ --- toc: true --- # How to Contribute? ## Testing * Test the latest changes to Winutil by running the pre-release and reporting issues you are encountering to help us continually improve Winutil! #### **Run the latest pre-release** ``` irm https://christitus.com/windev | iex ``` > [!WARNING] > This is a pre-release and should be treated as such. It exists for developers to test the utility and report or fix bugs before they get added to the stable release. Don't use it in production! ## Issues * If you encounter any challenges or problems with the script, I kindly request that you submit them via the "Issues" tab on the GitHub repository. By filling out the provided template, you can provide specific details about the issue, allowing me (and others in the community) to promptly address any bugs or consider feature requests. ## Contribute Code * Pull requests are now handled directly on the **MAIN branch**. This was done since we can now select specific releases to launch via releases in GitHub. * If you're doing code changes, then you can submit a PR to `main` branch, but I am very selective about these. > [!IMPORTANT] > Do not use a code formatter, make massive amounts of line changes, or make multiple feature changes. EACH FEATURE CHANGE SHOULD BE IT'S OWN PULL REQUEST! * When creating pull requests, it is essential to thoroughly document all changes made. This includes, but is not limited to, documenting any additions made to the `tweaks` section and corresponding `undo tweak`, so users are able to remove the newly added tweaks if necessary, and comprehensive documentation is required for all code changes. Document your changes and briefly explain why you made your changes in your Pull Request Description. Failure to adhere to this format may result in the denial of the pull request. Additionally, any code lacking sufficient documentation may also be denied. * By following these guidelines, we can maintain a high standard of quality and ensure that the codebase remains organized and well-documented. > [!NOTE] > When creating a function, please include "WPF" or "Winutil" in the file name so it can be loaded into the runspace. ## Walk through * This is a guide for beginners. If you are still having issues, look at the following official GitHub documentation: * [Commit through WEB](https://docs.github.com/en/pull-requests/committing-changes-to-your-project/creating-and-editing-commits/about-commits) * [Commit through GitHub Desktop](https://docs.github.com/en/desktop/making-changes-in-a-branch/committing-and-reviewing-changes-to-your-project-in-github-desktop#about-commits) * [Create a Pull Request](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request) ### Overview ``` mermaid %%{init: {"flowchart": {"curve": "cardinal"}} }%% graph TD   A[Fork Project] --> B[Clone Repository];   B --> C[Create New Branch];   C --> D[Make Changes];   D --> G[Test Changes];   G --> H{Tests Passed?};   H -->|Yes| E[Commit Changes];   H -->|No| J[Fix Issues];   J --> G;   E --> F[Push Branch];   F --> K[Create Pull Request];   K --> L[Fill out PR template]; classDef default stroke:#333,stroke-width:4px,font-size:12pt; ``` > [!NOTE] > This is a diagram to guide you through the process. It may vary depending on the type of change you're making. ### Fork the Repo * Fork the Winutil Repository [here](https://github.com/ChrisTitusTech/Winutil) to create a copy that will be available in your repository list. {{< image src="images/Fork-Button" alt="Fork Image" >}} ### Clone the Fork > [!TIP] > While you can make your changes directly through the Web, we recommend cloning the repo to your device using the application GitHub Desktop (available in Winutil) to test your fork easily. * Install GitHub Desktop if it is not already installed. * Log in using the same GitHub account you used to fork Winutil. * Choose the fork under "Your Repositories" and press "clone {repo name}" * Create a new branch and name it something relatable to your changes. * Now you can modify Winutil to your liking using your preferred text editor. ### Testing your changes * To test to see if your changes work as intended run following commands in a powershell terminal as admin: * Change the directory where you are running the commands to the forked project. * `cd {path to the folder with the compile.ps1}` * Run the following command to compile and run Winutil: * `.\Compile.ps1 -run` {{< image src="images/Compile" alt="Compile" >}} * After seeing that your changes work properly, feel free to commit the changes to the repository and make a PR. For help on that, follow the documentation below. ### Committing the changes * Before committing your changes, please discard changes made to the `Winutil.ps1` file, like the following: {{< image src="images/Discard-GHD" alt="Push Commit Image" >}} * Now, commit your changes once you are happy with the result. {{< image src="images/Commit-GHD" alt="Commit Image" >}} * Push the changes to upload them to your fork on github.com. {{< image src="images/Push-Commit" alt="Push Commit Image" >}} ### Making a PR * To make a PR on your repo under a new branch linking to the main branch, a button will show and say Preview and Create pull request. Click that button and fill in all the information that is provided on the template. Once all the information is filled in correctly, check your PR to make sure there is not a Winutil.ps1 file attached to the PR. Once everything is good, make the PR and wait for Chris (the maintainer) to accept or deny your PR. Once it is accepted by Chris, you will be able to see your changes in the "/windev" build. * If you do not see your feature in the main "/win" build, that is fine. All new changes go into the /windev build to make sure everything is working OK before going fully public. * Congratulations! You just submitted your first PR. Thank you so much for contributing to Winutil. ================================================ FILE: docs/content/KnownIssues.md ================================================ --- title: Known Issues toc: true --- ### Download not working If `https://christitus.com/win` is not working, or you want to download the code from GitHub directly, you can use the direct download link: ``` irm https://github.com/ChrisTitusTech/Winutil/releases/latest/download/Winutil.ps1 | iex ``` If it still isn't working in your region, it may be due to temporary ISP or network filtering of GitHub content domains. This has been reported by some users in India in the past. See: [Times of India](https://timesofindia.indiatimes.com/gadgets-news/github-content-domain-blocked-for-these-indian-users-reports/articleshow/96687992.cms). If you are still having issues, try using a **VPN**, or changing your **DNS provider** to one of following two providers: | Provider | Primary DNS | Secondary DNS | | :--------: | :---------: | :-----------: | | Cloudflare | `1.1.1.1` | `1.0.0.1` | | Google | `8.8.8.8` | `8.8.4.4` | ### Script Won't Run If your PowerShell session is running in **Constrained Language Mode**, some scripts and commands may fail to execute. To check the current language mode, run: ```powershell $ExecutionContext.SessionState.LanguageMode ``` If it returns `ConstrainedLanguage`, you may need to switch to `FullLanguage` mode or run the script in a session with administrative privileges. Be aware that some security policies may enforce Constrained Language Mode, especially in corporate or managed environments. ================================================ FILE: docs/content/_index.md ================================================ --- title: Welcome to Winutil Documentation! toc: false width: full ---
Version GitHub Downloads Discord Community Server
Welcome to the official documentation for Winutil, your go-to utility for optimizing and managing your Windows environment. Whether you’re an IT professional, power user, or regular user, Winutil provides a comprehensive set of tools to enhance your Windows experience. ## Running the latest release of Winutil * You will first need to start a Powershell terminal **as Admin**. * Now you can run the following command: ``` irm "https://christitus.com/win" | iex ``` > [!IMPORTANT] > Winutil is updated frequently as of the time of writing. Consequently, features and functionalities may evolve, and the documentation may not always reflect the most current images or information. ================================================ FILE: docs/content/dev/_index.md ================================================ --- title: Developer Reference weight: 3 toc: false --- > [!NOTE] > This section contains technical documentation for developers. For end-user documentation, see the [User Guide](../userguide/). ## Architecture - [Architecture & Design](architecture/) - Code structure, data flow, and how Winutil works internally ## Tweaks ### Essential Tweaks {{< autolinks section="dev/tweaks/essential-tweaks" >}} ### Advanced Tweaks (CAUTION) {{< autolinks section="dev/tweaks/z--advanced-tweaks---caution" >}} ### Customize Preferences {{< autolinks section="dev/tweaks/customize-preferences" >}} ### Performance Plans {{< autolinks section="dev/tweaks/performance-plans" >}} ## Features ### Fixes {{< autolinks section="dev/features/fixes" >}} ### Legacy Windows Panels {{< autolinks section="dev/features/legacy-windows-panels" >}} ### Features {{< autolinks section="dev/features/features" >}} ### Remote Access {{< autolinks section="dev/features/remote-access" >}} ### Powershell Profile Powershell 7+ Only {{< autolinks section="dev/features/powershell-profile-powershell-7--only" >}} ================================================ FILE: docs/content/dev/architecture.md ================================================ --- title: Architecture & Design weight: 1 toc: true --- ## Overview Winutil is a PowerShell-based Windows utility with a WPF (Windows Presentation Foundation) GUI. This document explains the architecture, code structure, and how different components work together. ## High-Level Architecture ``` ┌─────────────────────────────────────────────────────┐ │ Winutil GUI │ │ (WPF XAML Interface) │ └──────────────────┬──────────────────────────────────┘ │ ┌─────────┴─────────┐ │ │ ┌────────▼──────┐ ┌───────▼────────┐ │ Public APIs │ │ Private APIs │ │ (User-facing)│ │ (Internal) │ └───────┬───────┘ └───────┬────────┘ │ │ └────────┬──────────┘ │ ┌────────────▼────────────┐ │ Configuration Files │ │ (JSON definitions) │ └────────────┬────────────┘ │ ┌────────────▼────────────┐ │ External Tools │ │ (WinGet, Chocolatey) │ └─────────────────────────┘ ``` ## Project Structure ### Directory Layout ``` winutil/ ├── Compile.ps1 # Build script that combines all files ├── winutil.ps1 # Compiled output (generated) ├── scripts/ │ ├── main.ps1 # Entry point and GUI initialization │ └── start.ps1 # Startup logic ├── functions/ │ ├── private/ # Internal helper functions │ │ ├── Get-WinUtilVariables.ps1 │ │ ├── Install-WinUtilWinget.ps1 │ │ └── ... │ ├── public/ # User-facing functions │ │ ├── Initialize-WPFUI.ps1 │ │ └── ... ├── config/ # JSON configuration files │ ├── applications.json # Application definitions │ ├── tweaks.json # Tweak definitions │ ├── feature.json # Windows feature definitions │ └── preset.json # Preset configurations ├── xaml/ │ └── inputXML.xaml # GUI layout definition └── docs/ # Documentation ``` ### Key Components #### 1. Compile.ps1 **Purpose**: Combines all separate script files into a single `winutil.ps1` for distribution. **Process**: 1. Reads all function files from `/functions/` 2. Includes configuration JSON files 3. Embeds XAML GUI definition 4. Combines into single script 5. Outputs `winutil.ps1` **Why**: Makes distribution easier (single file) and improves load time. #### 2. scripts/main.ps1 **Purpose**: Entry point that initializes the GUI and event system. **Responsibilities**: - Load XAML and create WPF window - Initialize form elements - Set up event handlers - Load configurations - Display the GUI #### 3. functions/public/ **Purpose**: User-facing functions that implement main features. **Key Functions**: - `Initialize-WPFUI.ps1`: Sets up the GUI - `Invoke-WPFTweak*`: Applies system tweaks - `Invoke-WPFFeature*`: Enables Windows features - `Install-WinUtilProgram*`: Installs applications **Naming Convention**: Functions start with `WPF` or `Winutil` to be loaded into the runspace. #### 4. functions/private/ **Purpose**: Internal helper functions not directly called by users. **Key Functions**: - `Get-WinUtilVariables.ps1`: Retrieves UI element references - `Install-WinUtilWinget.ps1`: Ensures WinGet is installed - `Get-WinUtilCheckBoxes.ps1`: Gets checkbox states - `Invoke-WinUtilCurrentSystem.ps1`: Gets system information #### 5. config/*.json **Purpose**: Define available applications, tweaks, and features declaratively. **Files**: - `applications.json`: Application definitions with WinGet/Choco IDs - `tweaks.json`: Registry tweaks and their undo actions - `feature.json`: Windows features that can be enabled/disabled - `preset.json`: Predefined tweak combinations - `dns.json`: DNS provider configurations #### 6. xaml/inputXML.xaml **Purpose**: WPF GUI layout and design. **Structure**: - Buttons with event handlers - TextBoxes for input - CheckBoxes for options - ListBoxes for selections ## Win11 Creator Architecture The **Win11 Creator** is a specialized subsystem within Winutil that creates customized Windows 11 ISOs. It operates independently from the main package installation and tweak system. ### Win11 Creator Components **Core Functions** (`functions/private/`): - `Invoke-WinUtilISO.ps1`: Main orchestrator containing all Win11 Creator functions - `Invoke-WinUtilISOBrowse`: ISO file selection dialog - `Invoke-WinUtilISOMountAndVerify`: Validates and mounts ISO, verifies it's official Windows 11 - `Invoke-WinUtilISOModify`: Launches modification in background runspace - `Invoke-WinUtilISOExport`: Handles ISO and USB export - `Invoke-WinUtilISOCheckExistingWork`: Recovers incomplete work sessions - `Invoke-WinUtilISOCleanAndReset`: Cleans up temp directories and resets UI - `Invoke-WinUtilISOScript.ps1`: Applies modifications to mounted install.wim - Removes provisioned AppX packages (40+ bloatware apps) - Injects drivers (optional) from current system - Removes OneDrive setup files - Applies offline registry tweaks (hardware bypass, privacy, telemetry, OOBE) - Deletes telemetry scheduled task definitions - Pre-stages setup scripts from autounattend.xml - Removes unused Windows editions - Cleans component store via DISM ### Win11 Creator Data Flow ``` User selects official Windows 11 ISO ↓ Invoke-WinUtilISOBrowse → OpenFileDialog, validates file size ↓ Invoke-WinUtilISOMountAndVerify ├─ Mount ISO via Mount-DiskImage ├─ Verify install.wim or install.esd exists ├─ Check for "Windows 11" in image metadata ├─ Extract available editions (Home, Pro, Enterprise, etc.) └─ Store ISO path, drive letter, WIM path, image info in $sync ↓ User optionally enables Driver Injection checkbox ↓ Invoke-WinUtilISOModify (runs in background runspace) ├─ Create work directory: ~WinUtil_Win11ISO_[timestamp] ├─ Copy ISO contents to disk (~5-6 GB) ├─ Mount install.wim at selected edition/index ├─ Invoke-WinUtilISOScript: │ ├─ Remove 40+ bloat AppX packages │ ├─ Export and inject drivers (if enabled) │ ├─ Remove OneDrive setup │ ├─ Load offline registry hives │ ├─ Apply 50+ registry tweaks (hardware bypass, privacy, telemetry, OOBE, etc.) │ ├─ Delete telemetry scheduled task files │ ├─ Pre-stage setup scripts from autounattend.xml to C:\Windows\Setup\Scripts\ │ └─ Unload registry hives ├─ DISM /Cleanup-Image /StartComponentCleanup /ResetBase (saves 300-800 MB) ├─ Dismount and save modified install.wim (~10+ minutes, slowest step) ├─ Export selected edition only (removes all other editions, saves 1-2 GB each) ├─ Dismount source ISO └─ Report completion, enable export options ↓ Invoke-WinUtilISOExport (user chooses output) ├─ Option 1: Save as ISO │ ├─ Build bootable ISO via oscdimg.exe (BIOS/UEFI dual-boot) │ └─ Output: Win11_Modified_[date].iso (2.5-3.5 GB) │ └─ Option 2: Write to USB ├─ Format USB as GPT ├─ Create 512 MB EFI partition ├─ Copy modified ISO contents └─ Output: Bootable USB (minimum 8 GB) ↓ Invoke-WinUtilISOCleanAndReset (optional) └─ Delete temp working directory (~10-15 GB) └─ Reset UI to initial state ``` ### Win11 Creator Validation & Safety **ISO Validation**: - Only accepts official Microsoft Windows 11 ISOs - Validates presence of install.wim or install.esd - Checks image metadata for "Windows 11" string - Rejects custom, modified, or non-Windows 11 ISOs **Work Session Recovery**: - Auto-detects incomplete work from previous sessions - Allows resuming Step 4 (export) without re-running Steps 1-3 - Prevents redundant modifications **Modification Safety**: - All registry changes are documented in script (reversible) - Original ISO never modified; only working copy - Logged to `WinUtil_Win11ISO.log` for debugging - DISM handles image dismount with automatic cleanup on error ### Win11 Creator Registry Tweaks The `Invoke-WinUtilISOScript` function applies **50+ offline registry tweaks**: **Hardware Bypass**: - TPM 2.0 check bypass - Secure Boot requirement bypass - CPU compatibility bypass - RAM requirement bypass - Storage check bypass **Privacy & Telemetry**: - Disable advertising ID - Disable tailored experiences - Disable input personalization - Disable speech online privacy - Disable cloud content suggestions - Disable app suggestion subscriptions - Remove CEIP, Appraiser, WaaSMedic, etc. **OOBE & Setup**: - Enable local account setup - Skip Microsoft account requirement - Dark mode by default - Empty taskbar and Start Menu **Post-Setup Installations**: - Prevent DevHome auto-installation - Prevent new Outlook Mail app installation - Prevent Teams auto-installation **System Features**: - Disable BitLocker and device encryption - Disable Chat icon from taskbar - Disable OneDrive folder backup - Disable Copilot - Disable Windows Update during OOBE (re-enabled at first login) ### Driver Injection Feature **Optional Enhancement**: When enabled, exports all drivers from the running system and injects them into both: - `install.wim` (main OS image) - `boot.wim` index 2 (Windows Setup PE environment) **Use Case**: Enables offline installation on systems with missing drivers. ### Disk Space Requirements - **Temporary working directory**: ~10-15 GB - **Original ISO**: 4-6 GB - **Modified ISO**: 2.5-3.5 GB - **Total needed**: ~25 GB for safe operation ## Data Flow ### Application Installation Flow ``` User clicks "Install" ↓ Get-WinUtilCheckBoxes → Retrieves selected apps ↓ For each selected app: ↓ Check if WinGet/Choco installed ↓ Install-WinUtilWinget/Choco (if needed) ↓ Install-WinUtilProgramWinget/Choco → Install app ↓ Update UI with progress ↓ Display completion message ``` ### Tweak Application Flow ``` User selects tweaks and clicks "Run Tweaks" ↓ Get-WinUtilCheckBoxes → Get selected tweaks ↓ For each selected tweak: ↓ Load tweak definition from tweaks.json ↓ Invoke-WPFTweak → Apply registry/service changes ↓ Log changes ↓ Store original values (for undo) ↓ Update UI ↓ Display completion ``` ### Undo Tweak Flow ``` User selects tweaks and clicks "Undo" ↓ Get-WinUtilCheckBoxes → Get selected tweaks ↓ For each tweak: ↓ Retrieve "OriginalState" from tweak definition ↓ Invoke-WPFUndoTweak → Restore original values ↓ Remove from applied tweaks log ↓ Update UI ``` ## Configuration File Format ### applications.json Structure ```json {filename="config/applications.json"} { "WPFInstall": { "category": "Browsers", "choco": "googlechrome", "content": "Google Chrome", "description": "Google Chrome browser", "link": "https://chrome.google.com", "winget": "Google.Chrome" } } ``` **Fields**: - `category`: Which section in the Install tab - `content`: Display name in GUI - `description`: Tooltip/description text - `winget`: WinGet package ID - `choco`: Chocolatey package name - `link`: Official website ### tweaks.json Structure ```json {filename="config/tweaks.json"} { "WPFTweaksTelemetry": { "Content": "Disable Telemetry", "Description": "Disables Microsoft Telemetry", "category": "Essential Tweaks", "panel": "1", "registry": [ { "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\DataCollection", "Name": "AllowTelemetry", "Type": "DWord", "Value": "0", "OriginalValue": "1" } ], "ScheduledTask": [ { "Name": "Microsoft\\Windows\\Autochk\\Proxy", "State": "Disabled", "OriginalState": "Enabled" } ] } } ``` **Fields**: - `Content`: Display name - `Description`: What it does - `category`: Essential/Advanced/Customize - `registry`: Registry changes to make - `ScheduledTask`: Scheduled tasks to modify - `service`: Services to change - `OriginalValue/State`: For undo functionality ## PowerShell Runspace Winutil uses PowerShell runspaces for the GUI to remain responsive: ```powershell # Create runspace $sync.runspace = [runspacefactory]::CreateRunspace() $sync.runspace.Open() $sync.runspace.SessionStateProxy.SetVariable("sync", $sync) # Run code in background $powershell = [powershell]::Create().AddScript($scriptblock) $powershell.Runspace = $sync.runspace $handle = $powershell.BeginInvoke() ``` **Why**: Prevents UI freezing during long-running operations. ## WPF Event Handling Events are wired up via XAML element names: ```powershell # Get all named elements $sync.keys | ForEach-Object { if($sync.$_.GetType().Name -eq "Button") { $sync.$_.Add_Click({ $button = $sync.$($args[0].Name) & "Invoke-$($args[0].Name)" }) } } ``` **Convention**: Button named `WPFInstallButton` calls function `Invoke-WPFInstallButton`. ## Package Manager Integration ### WinGet Integration ```powershell # Check if installed if (!(Get-Command winget -ErrorAction SilentlyContinue)) { Install-WinUtilWinget } # Install package winget install --id $app.winget --silent --accept-source-agreements ``` ### Chocolatey Integration ```powershell # Check if installed if (!(Get-Command choco -ErrorAction SilentlyContinue)) { Install-WinUtilChoco } # Install package choco install $app.choco -y ``` ## Error Handling Winutil uses PowerShell error handling: ```powershell try { # Attempt operation Invoke-SomeOperation } catch { Write-Host "Error: $_" -ForegroundColor Red # Log error Add-Content -Path $logfile -Value "ERROR: $_" } ``` **Logging**: Errors and operations are logged for debugging. ## Configuration Loading At startup, Winutil loads all configurations: ```powershell # Load JSON configs $sync.configs = @{} $sync.configs.applications = Get-Content "config/applications.json" | ConvertFrom-Json $sync.configs.tweaks = Get-Content "config/tweaks.json" | ConvertFrom-Json $sync.configs.features = Get-Content "config/feature.json" | ConvertFrom-Json ``` **Sync Hash**: `$sync` hashtable shares state across runspaces. ## UI Update Pattern UI updates must happen on the UI thread: ```powershell $sync.form.Dispatcher.Invoke([action]{ $sync.WPFStatusLabel.Content = "Installing..." }, "Normal") ``` **Why**: WPF requires UI updates on the main thread. ## Adding New Features ### Adding a New Application 1. Edit `config/applications.json`: ```json {filename="config/applications.json"} { "WPFInstallNewApp": { "category": "Utilities", "content": "New App", "description": "Description of new app", "winget": "Publisher.AppName", "choco": "appname" } } ``` 2. Recompile: `.\Compile.ps1` 3. The app appears automatically in Install tab ### Adding a New Tweak 1. Edit `config/tweaks.json`: ```json {filename="config/tweaks.json"} { "WPFTweaksNewTweak": { "Content": "New Tweak", "Description": "What it does", "category": "Essential Tweaks", "registry": [ { "Path": "HKLM:\\Path\\To\\Key", "Name": "ValueName", "Type": "DWord", "Value": "1", "OriginalValue": "0" } ] } } ``` 2. Recompile: `.\Compile.ps1` 3. Tweak appears in Tweaks tab ### Adding a New Function 1. Create file in `functions/public/` or `functions/private/`: ```powershell # functions/public/Invoke-WPFNewFeature.ps1 function Invoke-WPFNewFeature { <# .SYNOPSIS Does something new #> # Implementation } ``` 2. File naming must include "WPF" or "Winutil" to load 3. Recompile: `.\Compile.ps1` ## Testing ### Manual Testing ```powershell # Compile and run with -run flag .\Compile.ps1 -run ``` ### Automated Tests Tests are in `/pester/`: - `configs.Tests.ps1`: Validates JSON configurations - `functions.Tests.ps1`: Tests PowerShell functions Run tests: ```powershell Invoke-Pester ``` ## Build Process ### Development Build ```powershell .\Compile.ps1 ``` Outputs `winutil.ps1` in the root directory. ### Production Release 1. Tag release in Git 2. GitHub Actions builds and uploads `winutil.ps1` 3. Release appears on GitHub Releases 4. Users download via `irm christitus.com/win` ## Dependencies **Required**: - PowerShell 5.1+ - .NET Framework 4.5+ - Windows 11 **Optional (auto-installed)**: - WinGet (Windows Package Manager) - Chocolatey ## Performance Considerations **Optimization Strategies**: - Lazy-load configurations (only when needed) - Use runspaces for long operations - Cache expensive lookups - Minimize registry reads/writes - Batch operations when possible ## Security Considerations **Safety Measures**: - All operations logged - Registry backups for undo - No credential storage - Open source (auditable) - Digitally signed (future) ## Contributing Guidelines **Code Standards**: - Use proper PowerShell cmdlet naming (Verb-Noun) - Include comment-based help - Follow existing code style - Test thoroughly before PR - Document significant changes **File Naming**: - Public functions: `Invoke-WPF*.ps1` or `Invoke-Winutil*.ps1` - Private functions: `Get-WinUtil*.ps1` or verb-WinUtil*.ps1` - Must include "WPF" or "Winutil" to load ## Future Architecture Plans **Roadmap Considerations**: - Plugin system for community extensions - Config import/export - Cloud sync for configurations - Enhanced logging dashboard - Modular compilation (choose features) ## Related Documentation - [Contributing Guide](../../contributing/) - How to contribute code - [User Guide](../../userguide/) - End-user documentation - [Win11 Creator Guide](../../userguide/win11Creator/) - Building customized Windows 11 ISOs - [FAQ](../../faq/) - Common questions ## Additional Resources - **GitHub Repository**: [ChrisTitusTech/winutil](https://github.com/ChrisTitusTech/winutil) - **PowerShell Docs**: [Microsoft Docs](https://docs.microsoft.com/powershell/) - **WPF Guide**: [WPF Documentation](https://docs.microsoft.com/dotnet/desktop/wpf/) --- **Last Updated**: January 2026 **Maintainers**: Chris Titus Tech and contributors ================================================ FILE: docs/content/dev/features/Features/DisableLegacyRecovery.md ================================================ --- title: "Disable Legacy F8 Boot Recovery" description: "" --- ```json {filename="config/feature.json",linenos=inline,linenostart=100} "WPFFeatureDisableLegacyRecovery": { "Content": "Disable Legacy F8 Boot Recovery", "Description": "Disables Advanced Boot Options screen that lets you start Windows in advanced troubleshooting modes.", "category": "Features", "panel": "1", "feature": [], "InvokeScript": [ "bcdedit /set bootmenupolicy standard" ], ``` ================================================ FILE: docs/content/dev/features/Features/EnableLegacyRecovery.md ================================================ --- title: "Enable Legacy F8 Boot Recovery" description: "" --- ```json {filename="config/feature.json",linenos=inline,linenostart=89} "WPFFeatureEnableLegacyRecovery": { "Content": "Enable Legacy F8 Boot Recovery", "Description": "Enables Advanced Boot Options screen that lets you start Windows in advanced troubleshooting modes.", "category": "Features", "panel": "1", "feature": [], "InvokeScript": [ "bcdedit /set bootmenupolicy legacy" ], ``` ================================================ FILE: docs/content/dev/features/Features/RegBackup.md ================================================ --- title: "Enable Daily Registry Backup Task 12.30am" description: "" --- ```json {filename="config/feature.json",linenos=inline,linenostart=72} "WPFFeatureRegBackup": { "Content": "Enable Daily Registry Backup Task 12.30am", "Description": "Enables daily registry backup, previously disabled by Microsoft in Windows 10 1803.", "category": "Features", "panel": "1", "feature": [], "InvokeScript": [ " New-ItemProperty -Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Configuration Manager' -Name 'EnablePeriodicBackup' -Type DWord -Value 1 -Force New-ItemProperty -Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Configuration Manager' -Name 'BackupCount' -Type DWord -Value 2 -Force $action = New-ScheduledTaskAction -Execute 'schtasks' -Argument '/run /i /tn \"\\Microsoft\\Windows\\Registry\\RegIdleBackup\"' $trigger = New-ScheduledTaskTrigger -Daily -At 00:30 Register-ScheduledTask -Action $action -Trigger $trigger -TaskName 'AutoRegBackup' -Description 'Create System Registry Backups' -User 'System' " ], ``` ================================================ FILE: docs/content/dev/features/Features/Sandbox.md ================================================ --- title: "Windows Sandbox" description: "" --- ```json {filename="config/feature.json",linenos=inline,linenostart=111} "WPFFeaturesSandbox": { "Content": "Windows Sandbox", "Description": "Windows Sandbox is a lightweight virtual machine that provides a temporary desktop environment to safely run applications and programs in isolation.", "category": "Features", "panel": "1", "feature": [ "Containers-DisposableClientVM" ], ``` ================================================ FILE: docs/content/dev/features/Features/_index.md ================================================ --- title: "Features" weight: 1 toc: false --- {{< autolinks section="dev/features/features" >}} ================================================ FILE: docs/content/dev/features/Features/dotnet.md ================================================ --- title: "All .Net Framework (2,3,4)" description: "" --- ```json {filename="config/feature.json",linenos=inline,linenostart=2} "WPFFeaturesdotnet": { "Content": "All .Net Framework (2,3,4)", "Description": ".NET and .NET Framework is a developer platform made up of tools, programming languages, and libraries for building many different types of applications.", "category": "Features", "panel": "1", "feature": [ "NetFx4-AdvSrvs", "NetFx3" ], "InvokeScript": [], ``` ================================================ FILE: docs/content/dev/features/Features/hyperv.md ================================================ --- title: "HyperV Virtualization" description: "" --- ```json {filename="config/feature.json",linenos=inline,linenostart=14} "WPFFeatureshyperv": { "Content": "HyperV Virtualization", "Description": "Hyper-V is a hardware virtualization product developed by Microsoft that allows users to create and manage virtual machines.", "category": "Features", "panel": "1", "feature": [ "Microsoft-Hyper-V-All" ], "InvokeScript": [ "bcdedit /set hypervisorschedulertype classic" ], ``` ================================================ FILE: docs/content/dev/features/Features/legacymedia.md ================================================ --- title: "Legacy Media (WMP, DirectPlay)" description: "" --- ```json {filename="config/feature.json",linenos=inline,linenostart=27} "WPFFeatureslegacymedia": { "Content": "Legacy Media (WMP, DirectPlay)", "Description": "Enables legacy programs from previous versions of Windows.", "category": "Features", "panel": "1", "feature": [ "WindowsMediaPlayer", "MediaPlayback", "DirectPlay", "LegacyComponents" ], "InvokeScript": [], ``` ================================================ FILE: docs/content/dev/features/Features/nfs.md ================================================ --- title: "NFS - Network File System" description: "" --- ```json {filename="config/feature.json",linenos=inline,linenostart=53} "WPFFeaturenfs": { "Content": "NFS - Network File System", "Description": "Network File System (NFS) is a mechanism for storing files on a network.", "category": "Features", "panel": "1", "feature": [ "ServicesForNFS-ClientOnly", "ClientForNFS-Infrastructure", "NFS-Administration" ], "InvokeScript": [ "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" ], ``` ================================================ FILE: docs/content/dev/features/Features/wsl.md ================================================ --- title: "Windows Subsystem for Linux" description: "" --- ```json {filename="config/feature.json",linenos=inline,linenostart=41} "WPFFeaturewsl": { "Content": "Windows Subsystem for Linux", "Description": "Windows Subsystem for Linux is an optional feature of Windows that allows Linux programs to run natively on Windows without the need for a separate virtual machine or dual booting.", "category": "Features", "panel": "1", "feature": [ "VirtualMachinePlatform", "Microsoft-Windows-Subsystem-Linux" ], "InvokeScript": [], ``` ================================================ FILE: docs/content/dev/features/Fixes/Autologin.md ================================================ --- title: "Set Up Autologin" description: "" --- ```powershell {filename="functions/public/Invoke-WPFPanelAutologin.ps1",linenos=inline,linenostart=1} function Invoke-WPFPanelAutologin { <# .SYNOPSIS Enables autologin using Sysinternals Autologon.exe #> # Official Microsoft recommendation: https://learn.microsoft.com/en-us/sysinternals/downloads/autologon Invoke-WebRequest -Uri "https://live.sysinternals.com/Autologon.exe" -OutFile "$env:temp\autologin.exe" cmd /c "$env:temp\autologin.exe" /accepteula } ``` ================================================ FILE: docs/content/dev/features/Fixes/DISM.md ================================================ --- title: "System Corruption Scan" description: "" --- ```powershell {filename="functions/public/Invoke-WPFSystemRepair.ps1",linenos=inline,linenostart=1} function Invoke-WPFSystemRepair { <# .SYNOPSIS Checks for system corruption using SFC, and DISM Checks for disk failure using Chkdsk .DESCRIPTION 1. Chkdsk - Checks for disk errors, which can cause system file corruption and notifies of early disk failure 2. SFC - scans protected system files for corruption and fixes them 3. DISM - Repair a corrupted Windows operating system image #> Start-Process cmd.exe -ArgumentList "/c chkdsk /scan /perf" -NoNewWindow -Wait Start-Process cmd.exe -ArgumentList "/c sfc /scannow" -NoNewWindow -Wait Start-Process cmd.exe -ArgumentList "/c dism /online /cleanup-image /restorehealth" -NoNewWindow -Wait Write-Host "==> Finished System Repair" Set-WinUtilTaskbaritem -state "None" -overlay "checkmark" } ``` ================================================ FILE: docs/content/dev/features/Fixes/Network.md ================================================ --- title: "Reset Network" description: "" --- ```powershell {filename="functions/public/Invoke-WPFFixesNetwork.ps1",linenos=inline,linenostart=1} function Invoke-WPFFixesNetwork { <# .SYNOPSIS Resets various network configurations #> Write-Host "Resetting Network with netsh" Set-WinUtilTaskbaritem -state "Normal" -value 0.01 -overlay "logo" # Reset WinSock catalog to a clean state Start-Process -NoNewWindow -FilePath "netsh" -ArgumentList "winsock", "reset" Set-WinUtilTaskbaritem -state "Normal" -value 0.35 -overlay "logo" # Resets WinHTTP proxy setting to DIRECT Start-Process -NoNewWindow -FilePath "netsh" -ArgumentList "winhttp", "reset", "proxy" Set-WinUtilTaskbaritem -state "Normal" -value 0.7 -overlay "logo" # Removes all user configured IP settings Start-Process -NoNewWindow -FilePath "netsh" -ArgumentList "int", "ip", "reset" Set-WinUtilTaskbaritem -state "None" -overlay "checkmark" Write-Host "Process complete. Please reboot your computer." $ButtonType = [System.Windows.MessageBoxButton]::OK $MessageboxTitle = "Network Reset " $Messageboxbody = ("Stock settings loaded.`n Please reboot your computer") $MessageIcon = [System.Windows.MessageBoxImage]::Information [System.Windows.MessageBox]::Show($Messageboxbody, $MessageboxTitle, $ButtonType, $MessageIcon) Write-Host "==========================================" Write-Host "-- Network Configuration has been Reset --" Write-Host "==========================================" } ``` ================================================ FILE: docs/content/dev/features/Fixes/Update.md ================================================ --- title: "Reset Windows Update" description: "" --- ```powershell {filename="functions/public/Invoke-WPFFixesUpdate.ps1",linenos=inline,linenostart=1} function Invoke-WPFFixesUpdate { <# .SYNOPSIS Performs various tasks in an attempt to repair Windows Update .DESCRIPTION 1. (Aggressive Only) Scans the system for corruption using the Invoke-WPFSystemRepair function 2. Stops Windows Update Services 3. Remove the QMGR Data file, which stores BITS jobs 4. (Aggressive Only) Renames the DataStore and CatRoot2 folders DataStore - Contains the Windows Update History and Log Files CatRoot2 - Contains the Signatures for Windows Update Packages 5. Renames the Windows Update Download Folder 6. Deletes the Windows Update Log 7. (Aggressive Only) Resets the Security Descriptors on the Windows Update Services 8. Reregisters the BITS and Windows Update DLLs 9. Removes the WSUS client settings 10. Resets WinSock 11. Gets and deletes all BITS jobs 12. Sets the startup type of the Windows Update Services then starts them 13. Forces Windows Update to check for updates .PARAMETER Aggressive If specified, the script will take additional steps to repair Windows Update that are more dangerous, take a significant amount of time, or are generally unnecessary #> param($Aggressive = $false) Write-Progress -Id 0 -Activity "Repairing Windows Update" -PercentComplete 0 Set-WinUtilTaskbaritem -state "Indeterminate" -overlay "logo" Write-Host "Starting Windows Update Repair..." # Wait for the first progress bar to show, otherwise the second one won't show Start-Sleep -Milliseconds 200 if ($Aggressive) { Invoke-WPFSystemRepair } Write-Progress -Id 0 -Activity "Repairing Windows Update" -Status "Stopping Windows Update Services..." -PercentComplete 10 # Stop the Windows Update Services Write-Progress -Id 2 -ParentId 0 -Activity "Stopping Services" -Status "Stopping BITS..." -PercentComplete 0 Stop-Service -Name BITS -Force Write-Progress -Id 2 -ParentId 0 -Activity "Stopping Services" -Status "Stopping wuauserv..." -PercentComplete 20 Stop-Service -Name wuauserv -Force Write-Progress -Id 2 -ParentId 0 -Activity "Stopping Services" -Status "Stopping appidsvc..." -PercentComplete 40 Stop-Service -Name appidsvc -Force Write-Progress -Id 2 -ParentId 0 -Activity "Stopping Services" -Status "Stopping cryptsvc..." -PercentComplete 60 Stop-Service -Name cryptsvc -Force Write-Progress -Id 2 -ParentId 0 -Activity "Stopping Services" -Status "Completed" -PercentComplete 100 # Remove the QMGR Data file Write-Progress -Id 0 -Activity "Repairing Windows Update" -Status "Renaming/Removing Files..." -PercentComplete 20 Write-Progress -Id 3 -ParentId 0 -Activity "Renaming/Removing Files" -Status "Removing QMGR Data files..." -PercentComplete 0 Remove-Item "$env:allusersprofile\Application Data\Microsoft\Network\Downloader\qmgr*.dat" -ErrorAction SilentlyContinue if ($Aggressive) { # Rename the Windows Update Log and Signature Folders Write-Progress -Id 3 -ParentId 0 -Activity "Renaming/Removing Files" -Status "Renaming the Windows Update Log, Download, and Signature Folder..." -PercentComplete 20 Rename-Item $env:systemroot\SoftwareDistribution\DataStore DataStore.bak -ErrorAction SilentlyContinue Rename-Item $env:systemroot\System32\Catroot2 catroot2.bak -ErrorAction SilentlyContinue } # Rename the Windows Update Download Folder Write-Progress -Id 3 -ParentId 0 -Activity "Renaming/Removing Files" -Status "Renaming the Windows Update Download Folder..." -PercentComplete 20 Rename-Item $env:systemroot\SoftwareDistribution\Download Download.bak -ErrorAction SilentlyContinue # Delete the legacy Windows Update Log Write-Progress -Id 3 -ParentId 0 -Activity "Renaming/Removing Files" -Status "Removing the old Windows Update log..." -PercentComplete 80 Remove-Item $env:systemroot\WindowsUpdate.log -ErrorAction SilentlyContinue Write-Progress -Id 3 -ParentId 0 -Activity "Renaming/Removing Files" -Status "Completed" -PercentComplete 100 if ($Aggressive) { # Reset the Security Descriptors on the Windows Update Services Write-Progress -Id 0 -Activity "Repairing Windows Update" -Status "Resetting the WU Service Security Descriptors..." -PercentComplete 25 Write-Progress -Id 4 -ParentId 0 -Activity "Resetting the WU Service Security Descriptors" -Status "Resetting the BITS Security Descriptor..." -PercentComplete 0 Start-Process -NoNewWindow -FilePath "sc.exe" -ArgumentList "sdset", "bits", "D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)" -Wait Write-Progress -Id 4 -ParentId 0 -Activity "Resetting the WU Service Security Descriptors" -Status "Resetting the wuauserv Security Descriptor..." -PercentComplete 50 Start-Process -NoNewWindow -FilePath "sc.exe" -ArgumentList "sdset", "wuauserv", "D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)" -Wait Write-Progress -Id 4 -ParentId 0 -Activity "Resetting the WU Service Security Descriptors" -Status "Completed" -PercentComplete 100 } # Reregister the BITS and Windows Update DLLs Write-Progress -Id 0 -Activity "Repairing Windows Update" -Status "Reregistering DLLs..." -PercentComplete 40 $oldLocation = Get-Location Set-Location $env:systemroot\system32 $i = 0 $DLLs = @( "atl.dll", "urlmon.dll", "mshtml.dll", "shdocvw.dll", "browseui.dll", "jscript.dll", "vbscript.dll", "scrrun.dll", "msxml.dll", "msxml3.dll", "msxml6.dll", "actxprxy.dll", "softpub.dll", "wintrust.dll", "dssenh.dll", "rsaenh.dll", "gpkcsp.dll", "sccbase.dll", "slbcsp.dll", "cryptdlg.dll", "oleaut32.dll", "ole32.dll", "shell32.dll", "initpki.dll", "wuapi.dll", "wuaueng.dll", "wuaueng1.dll", "wucltui.dll", "wups.dll", "wups2.dll", "wuweb.dll", "qmgr.dll", "qmgrprxy.dll", "wucltux.dll", "muweb.dll", "wuwebv.dll" ) foreach ($dll in $DLLs) { Write-Progress -Id 5 -ParentId 0 -Activity "Reregistering DLLs" -Status "Registering $dll..." -PercentComplete ($i / $DLLs.Count * 100) $i++ Start-Process -NoNewWindow -FilePath "regsvr32.exe" -ArgumentList "/s", $dll } Set-Location $oldLocation Write-Progress -Id 5 -ParentId 0 -Activity "Reregistering DLLs" -Status "Completed" -PercentComplete 100 # Remove the WSUS client settings if (Test-Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate") { Write-Progress -Id 0 -Activity "Repairing Windows Update" -Status "Removing WSUS client settings..." -PercentComplete 60 Write-Progress -Id 6 -ParentId 0 -Activity "Removing WSUS client settings" -PercentComplete 0 Start-Process -NoNewWindow -FilePath "REG" -ArgumentList "DELETE", "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate", "/v", "AccountDomainSid", "/f" -RedirectStandardError "NUL" Start-Process -NoNewWindow -FilePath "REG" -ArgumentList "DELETE", "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate", "/v", "PingID", "/f" -RedirectStandardError "NUL" Start-Process -NoNewWindow -FilePath "REG" -ArgumentList "DELETE", "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate", "/v", "SusClientId", "/f" -RedirectStandardError "NUL" Write-Progress -Id 6 -ParentId 0 -Activity "Removing WSUS client settings" -Status "Completed" -PercentComplete 100 } # Remove Group Policy Windows Update settings Write-Progress -Id 0 -Activity "Repairing Windows Update" -Status "Removing Group Policy Windows Update settings..." -PercentComplete 60 Write-Progress -Id 7 -ParentId 0 -Activity "Removing Group Policy Windows Update settings" -PercentComplete 0 Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" -Name "ExcludeWUDriversInQualityUpdate" -ErrorAction SilentlyContinue Write-Host "Defaulting 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 "Defaulting 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 Write-Host "Clearing ANY Windows Update Policy settings..." Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" -Name "BranchReadinessLevel" -ErrorAction SilentlyContinue Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" -Name "DeferFeatureUpdatesPeriodInDays" -ErrorAction SilentlyContinue Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" -Name "DeferQualityUpdatesPeriodInDays" -ErrorAction SilentlyContinue Remove-Item -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies" -Recurse -Force -ErrorAction SilentlyContinue Remove-Item -Path "HKCU:\Software\Microsoft\WindowsSelfHost" -Recurse -Force -ErrorAction SilentlyContinue Remove-Item -Path "HKCU:\Software\Policies" -Recurse -Force -ErrorAction SilentlyContinue Remove-Item -Path "HKLM:\Software\Microsoft\Policies" -Recurse -Force -ErrorAction SilentlyContinue Remove-Item -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies" -Recurse -Force -ErrorAction SilentlyContinue Remove-Item -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\WindowsStore\WindowsUpdate" -Recurse -Force -ErrorAction SilentlyContinue Remove-Item -Path "HKLM:\Software\Microsoft\WindowsSelfHost" -Recurse -Force -ErrorAction SilentlyContinue Remove-Item -Path "HKLM:\Software\Policies" -Recurse -Force -ErrorAction SilentlyContinue Remove-Item -Path "HKLM:\Software\WOW6432Node\Microsoft\Policies" -Recurse -Force -ErrorAction SilentlyContinue Remove-Item -Path "HKLM:\Software\WOW6432Node\Microsoft\Windows\CurrentVersion\Policies" -Recurse -Force -ErrorAction SilentlyContinue Remove-Item -Path "HKLM:\Software\WOW6432Node\Microsoft\Windows\CurrentVersion\WindowsStore\WindowsUpdate" -Recurse -Force -ErrorAction SilentlyContinue Start-Process -NoNewWindow -FilePath "secedit" -ArgumentList "/configure", "/cfg", "$env:windir\inf\defltbase.inf", "/db", "defltbase.sdb", "/verbose" -Wait Start-Process -NoNewWindow -FilePath "cmd.exe" -ArgumentList "/c RD /S /Q $env:WinDir\System32\GroupPolicyUsers" -Wait Start-Process -NoNewWindow -FilePath "cmd.exe" -ArgumentList "/c RD /S /Q $env:WinDir\System32\GroupPolicy" -Wait Start-Process -NoNewWindow -FilePath "gpupdate" -ArgumentList "/force" -Wait Write-Progress -Id 7 -ParentId 0 -Activity "Removing Group Policy Windows Update settings" -Status "Completed" -PercentComplete 100 # Reset WinSock Write-Progress -Id 0 -Activity "Repairing Windows Update" -Status "Resetting WinSock..." -PercentComplete 65 Write-Progress -Id 7 -ParentId 0 -Activity "Resetting WinSock" -Status "Resetting WinSock..." -PercentComplete 0 Start-Process -NoNewWindow -FilePath "netsh" -ArgumentList "winsock", "reset" Start-Process -NoNewWindow -FilePath "netsh" -ArgumentList "winhttp", "reset", "proxy" Start-Process -NoNewWindow -FilePath "netsh" -ArgumentList "int", "ip", "reset" Write-Progress -Id 7 -ParentId 0 -Activity "Resetting WinSock" -Status "Completed" -PercentComplete 100 # Get and delete all BITS jobs Write-Progress -Id 0 -Activity "Repairing Windows Update" -Status "Deleting BITS jobs..." -PercentComplete 75 Write-Progress -Id 8 -ParentId 0 -Activity "Deleting BITS jobs" -Status "Deleting BITS jobs..." -PercentComplete 0 Get-BitsTransfer | Remove-BitsTransfer Write-Progress -Id 8 -ParentId 0 -Activity "Deleting BITS jobs" -Status "Completed" -PercentComplete 100 # Change the startup type of the Windows Update Services and start them Write-Progress -Id 0 -Activity "Repairing Windows Update" -Status "Starting Windows Update Services..." -PercentComplete 90 Write-Progress -Id 9 -ParentId 0 -Activity "Starting Windows Update Services" -Status "Starting BITS..." -PercentComplete 0 Get-Service BITS | Set-Service -StartupType Manual -PassThru | Start-Service Write-Progress -Id 9 -ParentId 0 -Activity "Starting Windows Update Services" -Status "Starting wuauserv..." -PercentComplete 25 Get-Service wuauserv | Set-Service -StartupType Manual -PassThru | Start-Service Write-Progress -Id 9 -ParentId 0 -Activity "Starting Windows Update Services" -Status "Starting AppIDSvc..." -PercentComplete 50 # The AppIDSvc service is protected, so the startup type has to be changed in the registry Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\AppIDSvc" -Name "Start" -Value "3" # Manual Start-Service AppIDSvc Write-Progress -Id 9 -ParentId 0 -Activity "Starting Windows Update Services" -Status "Starting CryptSvc..." -PercentComplete 75 Get-Service CryptSvc | Set-Service -StartupType Manual -PassThru | Start-Service Write-Progress -Id 9 -ParentId 0 -Activity "Starting Windows Update Services" -Status "Completed" -PercentComplete 100 # Force Windows Update to check for updates Write-Progress -Id 0 -Activity "Repairing Windows Update" -Status "Forcing discovery..." -PercentComplete 95 Write-Progress -Id 10 -ParentId 0 -Activity "Forcing discovery" -Status "Forcing discovery..." -PercentComplete 0 try { (New-Object -ComObject Microsoft.Update.AutoUpdate).DetectNow() } catch { Set-WinUtilTaskbaritem -state "Error" -overlay "warning" Write-Warning "Failed to create Windows Update COM object: $_" } Start-Process -NoNewWindow -FilePath "wuauclt" -ArgumentList "/resetauthorization", "/detectnow" Write-Progress -Id 10 -ParentId 0 -Activity "Forcing discovery" -Status "Completed" -PercentComplete 100 Write-Progress -Id 0 -Activity "Repairing Windows Update" -Status "Completed" -PercentComplete 100 Set-WinUtilTaskbaritem -state "None" -overlay "checkmark" $ButtonType = [System.Windows.MessageBoxButton]::OK $MessageboxTitle = "Reset Windows Update " $Messageboxbody = ("Stock settings loaded.`n Please reboot your computer") $MessageIcon = [System.Windows.MessageBoxImage]::Information [System.Windows.MessageBox]::Show($Messageboxbody, $MessageboxTitle, $ButtonType, $MessageIcon) Write-Host "===============================================" Write-Host "-- Reset All Windows Update Settings to Stock -" Write-Host "===============================================" # Remove the progress bars Write-Progress -Id 0 -Activity "Repairing Windows Update" -Completed Write-Progress -Id 1 -Activity "Scanning for corruption" -Completed Write-Progress -Id 2 -Activity "Stopping Services" -Completed Write-Progress -Id 3 -Activity "Renaming/Removing Files" -Completed Write-Progress -Id 4 -Activity "Resetting the WU Service Security Descriptors" -Completed Write-Progress -Id 5 -Activity "Reregistering DLLs" -Completed Write-Progress -Id 6 -Activity "Removing Group Policy Windows Update settings" -Completed Write-Progress -Id 7 -Activity "Resetting WinSock" -Completed Write-Progress -Id 8 -Activity "Deleting BITS jobs" -Completed Write-Progress -Id 9 -Activity "Starting Windows Update Services" -Completed Write-Progress -Id 10 -Activity "Forcing discovery" -Completed } ``` ================================================ FILE: docs/content/dev/features/Fixes/Winget.md ================================================ --- title: "WinGet Reinstall" description: "" --- ```powershell {filename="functions/public/Invoke-WPFFixesWinget.ps1",linenos=inline,linenostart=1} function Invoke-WPFFixesWinget { <# .SYNOPSIS Fixes Winget by running choco install winget .DESCRIPTION BravoNorris for the fantastic idea of a button to reinstall winget #> # Install Choco if not already present try { Set-WinUtilTaskbaritem -state "Indeterminate" -overlay "logo" Write-Host "==> Starting Winget Repair" Install-WinUtilWinget } catch { Write-Error "Failed to install winget: $_" Set-WinUtilTaskbaritem -state "Error" -overlay "warning" } finally { Write-Host "==> Finished Winget Repair" Set-WinUtilTaskbaritem -state "None" -overlay "checkmark" } } ``` ================================================ FILE: docs/content/dev/features/Fixes/_index.md ================================================ --- title: "Fixes" weight: 2 toc: false --- {{< autolinks section="dev/features/fixes" >}} ================================================ FILE: docs/content/dev/features/Legacy-Windows-Panels/Computer.md ================================================ --- title: "Computer Management" description: "" --- ```json {filename="config/feature.json",linenos=inline,linenostart=186} "WPFPanelComputer": { "Content": "Computer Management", "category": "Legacy Windows Panels", "panel": "2", "Type": "Button", "ButtonWidth": "300", "InvokeScript": [ "compmgmt.msc" ], ``` ================================================ FILE: docs/content/dev/features/Legacy-Windows-Panels/Control.md ================================================ --- title: "Control Panel" description: "" --- ```json {filename="config/feature.json",linenos=inline,linenostart=175} "WPFPanelControl": { "Content": "Control Panel", "category": "Legacy Windows Panels", "panel": "2", "Type": "Button", "ButtonWidth": "300", "InvokeScript": [ "control" ], ``` ================================================ FILE: docs/content/dev/features/Legacy-Windows-Panels/Network.md ================================================ --- title: "Network Connections" description: "" --- ```json {filename="config/feature.json",linenos=inline,linenostart=197} "WPFPanelNetwork": { "Content": "Network Connections", "category": "Legacy Windows Panels", "panel": "2", "Type": "Button", "ButtonWidth": "300", "InvokeScript": [ "ncpa.cpl" ], ``` ================================================ FILE: docs/content/dev/features/Legacy-Windows-Panels/Power.md ================================================ --- title: "Power Panel" description: "" --- ```json {filename="config/feature.json",linenos=inline,linenostart=208} "WPFPanelPower": { "Content": "Power Panel", "category": "Legacy Windows Panels", "panel": "2", "Type": "Button", "ButtonWidth": "300", "InvokeScript": [ "powercfg.cpl" ], ``` ================================================ FILE: docs/content/dev/features/Legacy-Windows-Panels/Printer.md ================================================ --- title: "Printer Panel" description: "" --- ```json {filename="config/feature.json",linenos=inline,linenostart=219} "WPFPanelPrinter": { "Content": "Printer Panel", "category": "Legacy Windows Panels", "panel": "2", "Type": "Button", "ButtonWidth": "300", "InvokeScript": [ "Start-Process 'shell:::{A8A91A66-3A7D-4424-8D24-04E180695C7A}'" ], ``` ================================================ FILE: docs/content/dev/features/Legacy-Windows-Panels/Region.md ================================================ --- title: "Region" description: "" --- ```json {filename="config/feature.json",linenos=inline,linenostart=230} "WPFPanelRegion": { "Content": "Region", "category": "Legacy Windows Panels", "panel": "2", "Type": "Button", "ButtonWidth": "300", "InvokeScript": [ "intl.cpl" ], ``` ================================================ FILE: docs/content/dev/features/Legacy-Windows-Panels/Restore.md ================================================ --- title: "Windows Restore" description: "" --- ```json {filename="config/feature.json",linenos=inline,linenostart=241} "WPFPanelRestore": { "Content": "Windows Restore", "category": "Legacy Windows Panels", "panel": "2", "Type": "Button", "ButtonWidth": "300", "InvokeScript": [ "rstrui.exe" ], ``` ================================================ FILE: docs/content/dev/features/Legacy-Windows-Panels/Sound.md ================================================ --- title: "Sound Settings" description: "" --- ```json {filename="config/feature.json",linenos=inline,linenostart=252} "WPFPanelSound": { "Content": "Sound Settings", "category": "Legacy Windows Panels", "panel": "2", "Type": "Button", "ButtonWidth": "300", "InvokeScript": [ "mmsys.cpl" ], ``` ================================================ FILE: docs/content/dev/features/Legacy-Windows-Panels/System.md ================================================ --- title: "System Properties" description: "" --- ```json {filename="config/feature.json",linenos=inline,linenostart=263} "WPFPanelSystem": { "Content": "System Properties", "category": "Legacy Windows Panels", "panel": "2", "Type": "Button", "ButtonWidth": "300", "InvokeScript": [ "sysdm.cpl" ], ``` ================================================ FILE: docs/content/dev/features/Legacy-Windows-Panels/Timedate.md ================================================ --- title: "Time and Date" description: "" --- ```json {filename="config/feature.json",linenos=inline,linenostart=274} "WPFPanelTimedate": { "Content": "Time and Date", "category": "Legacy Windows Panels", "panel": "2", "Type": "Button", "ButtonWidth": "300", "InvokeScript": [ "timedate.cpl" ], ``` ================================================ FILE: docs/content/dev/features/Legacy-Windows-Panels/_index.md ================================================ --- title: "Legacy Windows Panels" weight: 3 toc: false --- {{< autolinks section="dev/features/legacy-windows-panels" >}} ================================================ FILE: docs/content/dev/features/Powershell-Profile-Powershell-7--Only/InstallPSProfile.md ================================================ --- title: "Install CTT PowerShell Profile" description: "" --- ```powershell {filename="functions/private/Invoke-WinUtilInstallPSProfile.ps1",linenos=inline,linenostart=1} function Invoke-WinUtilInstallPSProfile { if (Test-Path $Profile) { Rename-Item $Profile -NewName ($Profile + '.bak') } Start-Process pwsh -ArgumentList '-Command "irm https://github.com/ChrisTitusTech/powershell-profile/raw/main/setup.ps1 | iex"' } ``` ================================================ FILE: docs/content/dev/features/Powershell-Profile-Powershell-7--Only/UninstallPSProfile.md ================================================ --- title: "Uninstall CTT PowerShell Profile" description: "" --- ```powershell {filename="functions/private/Invoke-WinUtilUninstallPSProfile.ps1",linenos=inline,linenostart=1} function Invoke-WinUtilUninstallPSProfile { if (Test-Path ($Profile + '.bak')) { Remove-Item $Profile Rename-Item ($Profile + '.bak') -NewName $Profile } else { Remove-Item $Profile } Write-Host "Successfully uninstalled CTT Powershell Profile" -ForegroundColor Green } ``` ================================================ FILE: docs/content/dev/features/Powershell-Profile-Powershell-7--Only/_index.md ================================================ --- title: "Powershell Profile Powershell 7+ Only" weight: 5 toc: false --- {{< autolinks section="dev/features/powershell-profile-powershell-7--only" >}} ================================================ FILE: docs/content/dev/features/Remote-Access/SSHServer.md ================================================ --- title: "Enable OpenSSH Server" description: "" --- ```powershell {filename="functions/public/Invoke-WPFSSHServer.ps1",linenos=inline,linenostart=1} function Invoke-WPFSSHServer { <# .SYNOPSIS Invokes the OpenSSH Server install in a runspace #> Invoke-WPFRunspace -ScriptBlock { Invoke-WinUtilSSHServer Write-Host "=======================================" Write-Host "-- OpenSSH Server installed! ---" Write-Host "=======================================" } } ``` ================================================ FILE: docs/content/dev/features/Remote-Access/_index.md ================================================ --- title: "Remote Access" weight: 4 toc: false --- {{< autolinks section="dev/features/remote-access" >}} ================================================ FILE: docs/content/dev/features/_index.md ================================================ --- title: "Features" weight: 1 toc: false --- ### Fixes {{< autolinks section="dev/features/fixes" >}} ### Legacy Windows Panels {{< autolinks section="dev/features/legacy-windows-panels" >}} ### Features {{< autolinks section="dev/features/features" >}} ### Remote Access {{< autolinks section="dev/features/remote-access" >}} ### Powershell Profile Powershell 7+ Only {{< autolinks section="dev/features/powershell-profile-powershell-7--only" >}} ================================================ FILE: docs/content/dev/tweaks/Customize-Preferences/BingSearch.md ================================================ --- title: "Bing Search in Start Menu" description: "" --- ```json {filename="config/tweaks.json",linenos=inline,linenostart=2207} "WPFToggleBingSearch": { "Content": "Bing Search in Start Menu", "Description": "If enabled, Bing web search results will be included in your Start Menu search.", "category": "Customize Preferences", "panel": "2", "Type": "Toggle", "registry": [ { "Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Search", "Name": "BingSearchEnabled", "Value": "1", "Type": "DWord", "OriginalValue": "0", "DefaultState": "true" } ], ``` ## Registry Changes Applications and System Components store and retrieve configuration data to modify windows settings, so we can use the registry to change many settings in one place. You can find information about the registry on [Wikipedia](https://www.wikiwand.com/en/Windows_Registry) and [Microsoft's Website](https://learn.microsoft.com/en-us/windows/win32/sysinfo/registry). ================================================ FILE: docs/content/dev/tweaks/Customize-Preferences/DarkMode.md ================================================ --- title: "Dark Theme for Windows" description: "" --- ```json {filename="config/tweaks.json",linenos=inline,linenostart=2165} "WPFToggleDarkMode": { "Content": "Dark Theme for Windows", "Description": "Enable/Disable Dark Mode.", "category": "Customize Preferences", "panel": "2", "Type": "Toggle", "registry": [ { "Path": "HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize", "Name": "AppsUseLightTheme", "Value": "0", "Type": "DWord", "OriginalValue": "1", "DefaultState": "false" }, { "Path": "HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize", "Name": "SystemUsesLightTheme", "Value": "0", "Type": "DWord", "OriginalValue": "1", "DefaultState": "false" } ], "InvokeScript": [ " Invoke-WinUtilExplorerUpdate if ($sync.ThemeButton.Content -eq [char]0xF08C) { Invoke-WinutilThemeChange -theme \"Auto\" } " ], "UndoScript": [ " Invoke-WinUtilExplorerUpdate if ($sync.ThemeButton.Content -eq [char]0xF08C) { Invoke-WinutilThemeChange -theme \"Auto\" } " ], ``` ## Registry Changes Applications and System Components store and retrieve configuration data to modify windows settings, so we can use the registry to change many settings in one place. You can find information about the registry on [Wikipedia](https://www.wikiwand.com/en/Windows_Registry) and [Microsoft's Website](https://learn.microsoft.com/en-us/windows/win32/sysinfo/registry). ================================================ FILE: docs/content/dev/tweaks/Customize-Preferences/DetailedBSoD.md ================================================ --- title: "Detailed BSoD" description: "" --- ```json {filename="config/tweaks.json",linenos=inline,linenostart=2581} "WPFToggleDetailedBSoD": { "Content": "Detailed BSoD", "Description": "If enabled, you will see a detailed Blue Screen of Death (BSOD) with more information.", "category": "Customize Preferences", "panel": "2", "Type": "Toggle", "registry": [ { "Path": "HKLM:\\SYSTEM\\CurrentControlSet\\Control\\CrashControl", "Name": "DisplayParameters", "Value": "1", "Type": "DWord", "OriginalValue": "0", "DefaultState": "false" }, { "Path": "HKLM:\\SYSTEM\\CurrentControlSet\\Control\\CrashControl", "Name": "DisableEmoticon", "Value": "1", "Type": "DWord", "OriginalValue": "0", "DefaultState": "false" } ], ``` ## Registry Changes Applications and System Components store and retrieve configuration data to modify windows settings, so we can use the registry to change many settings in one place. You can find information about the registry on [Wikipedia](https://www.wikiwand.com/en/Windows_Registry) and [Microsoft's Website](https://learn.microsoft.com/en-us/windows/win32/sysinfo/registry). ================================================ FILE: docs/content/dev/tweaks/Customize-Preferences/DisableCrossDeviceResume.md ================================================ --- title: "Cross-Device Resume" description: "" --- ```json {filename="config/tweaks.json",linenos=inline,linenostart=2711} "WPFToggleDisableCrossDeviceResume": { "Content": "Cross-Device Resume", "Description": "This tweak controls the Resume function in Windows 11 24H2 and later, which allows you to resume an activity from a mobile device and vice-versa.", "category": "Customize Preferences", "panel": "2", "Type": "Toggle", "registry": [ { "Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\CrossDeviceResume\\Configuration", "Name": "IsResumeAllowed", "Value": "1", "Type": "DWord", "OriginalValue": "0", "DefaultState": "true" } ], ``` ## Registry Changes Applications and System Components store and retrieve configuration data to modify windows settings, so we can use the registry to change many settings in one place. You can find information about the registry on [Wikipedia](https://www.wikiwand.com/en/Windows_Registry) and [Microsoft's Website](https://learn.microsoft.com/en-us/windows/win32/sysinfo/registry). ================================================ FILE: docs/content/dev/tweaks/Customize-Preferences/HiddenFiles.md ================================================ --- title: "Show Hidden Files" description: "" --- ```json {filename="config/tweaks.json",linenos=inline,linenostart=2461} "WPFToggleHiddenFiles": { "Content": "Show Hidden Files", "Description": "If enabled, Hidden Files will be shown.", "category": "Customize Preferences", "panel": "2", "Type": "Toggle", "registry": [ { "Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced", "Name": "Hidden", "Value": "1", "Type": "DWord", "OriginalValue": "0", "DefaultState": "false" } ], "InvokeScript": [ " Invoke-WinUtilExplorerUpdate -action \"restart\" " ], "UndoScript": [ " Invoke-WinUtilExplorerUpdate -action \"restart\" " ], ``` ## Registry Changes Applications and System Components store and retrieve configuration data to modify windows settings, so we can use the registry to change many settings in one place. You can find information about the registry on [Wikipedia](https://www.wikiwand.com/en/Windows_Registry) and [Microsoft's Website](https://learn.microsoft.com/en-us/windows/win32/sysinfo/registry). ================================================ FILE: docs/content/dev/tweaks/Customize-Preferences/HideSettingsHome.md ================================================ --- title: "Remove Settings Home Page" description: "" --- ```json {filename="config/tweaks.json",linenos=inline,linenostart=2331} "WPFToggleHideSettingsHome": { "Content": "Remove Settings Home Page", "Description": "Removes the Home Page in the Windows Settings app.", "category": "Customize Preferences", "panel": "2", "Type": "Toggle", "registry": [ { "Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer", "Name": "SettingsPageVisibility", "Value": "hide:home", "Type": "String", "OriginalValue": "show:home", "DefaultState": "false" } ], ``` ## Registry Changes Applications and System Components store and retrieve configuration data to modify windows settings, so we can use the registry to change many settings in one place. You can find information about the registry on [Wikipedia](https://www.wikiwand.com/en/Windows_Registry) and [Microsoft's Website](https://learn.microsoft.com/en-us/windows/win32/sysinfo/registry). ================================================ FILE: docs/content/dev/tweaks/Customize-Preferences/MouseAcceleration.md ================================================ --- title: "Mouse Acceleration" description: "" --- ```json {filename="config/tweaks.json",linenos=inline,linenostart=2349} "WPFToggleMouseAcceleration": { "Content": "Mouse Acceleration", "Description": "If enabled, the Cursor movement is affected by the speed of your physical mouse movements.", "category": "Customize Preferences", "panel": "2", "Type": "Toggle", "registry": [ { "Path": "HKCU:\\Control Panel\\Mouse", "Name": "MouseSpeed", "Value": "1", "Type": "DWord", "OriginalValue": "0", "DefaultState": "true" }, { "Path": "HKCU:\\Control Panel\\Mouse", "Name": "MouseThreshold1", "Value": "6", "Type": "DWord", "OriginalValue": "0", "DefaultState": "true" }, { "Path": "HKCU:\\Control Panel\\Mouse", "Name": "MouseThreshold2", "Value": "10", "Type": "DWord", "OriginalValue": "0", "DefaultState": "true" } ], ``` ## Registry Changes Applications and System Components store and retrieve configuration data to modify windows settings, so we can use the registry to change many settings in one place. You can find information about the registry on [Wikipedia](https://www.wikiwand.com/en/Windows_Registry) and [Microsoft's Website](https://learn.microsoft.com/en-us/windows/win32/sysinfo/registry). ================================================ FILE: docs/content/dev/tweaks/Customize-Preferences/MultiplaneOverlay.md ================================================ --- title: "Disable Multiplane Overlay" description: "" --- ```json {filename="config/tweaks.json",linenos=inline,linenostart=2443} "WPFToggleMultiplaneOverlay": { "Content": "Disable Multiplane Overlay", "Description": "Disable the Multiplane Overlay which can sometimes cause issues with Graphics Cards.", "category": "Customize Preferences", "panel": "2", "Type": "Toggle", "registry": [ { "Path": "HKLM:\\SOFTWARE\\Microsoft\\Windows\\Dwm", "Name": "OverlayTestMode", "Value": "5", "Type": "DWord", "OriginalValue": "", "DefaultState": "false" } ], ``` ## Registry Changes Applications and System Components store and retrieve configuration data to modify windows settings, so we can use the registry to change many settings in one place. You can find information about the registry on [Wikipedia](https://www.wikiwand.com/en/Windows_Registry) and [Microsoft's Website](https://learn.microsoft.com/en-us/windows/win32/sysinfo/registry). ================================================ FILE: docs/content/dev/tweaks/Customize-Preferences/NewOutlook.md ================================================ --- title: "New Outlook" description: "" --- ```json {filename="config/tweaks.json",linenos=inline,linenostart=2401} "WPFToggleNewOutlook": { "Content": "New Outlook", "Description": "If disabled, it removes the new Outlook toggle, disables the new Outlook migration, and ensures the classic Outlook application is used.", "category": "Customize Preferences", "panel": "2", "Type": "Toggle", "registry": [ { "Path": "HKCU:\\SOFTWARE\\Microsoft\\Office\\16.0\\Outlook\\Preferences", "Name": "UseNewOutlook", "Value": "1", "Type": "DWord", "OriginalValue": "0", "DefaultState": "true" }, { "Path": "HKCU:\\Software\\Microsoft\\Office\\16.0\\Outlook\\Options\\General", "Name": "HideNewOutlookToggle", "Value": "0", "Type": "DWord", "OriginalValue": "1", "DefaultState": "true" }, { "Path": "HKCU:\\Software\\Policies\\Microsoft\\Office\\16.0\\Outlook\\Options\\General", "Name": "DoNewOutlookAutoMigration", "Value": "0", "Type": "DWord", "OriginalValue": "0", "DefaultState": "false" }, { "Path": "HKCU:\\Software\\Policies\\Microsoft\\Office\\16.0\\Outlook\\Preferences", "Name": "NewOutlookMigrationUserSetting", "Value": "0", "Type": "DWord", "OriginalValue": "", "DefaultState": "true" } ], ``` ## Registry Changes Applications and System Components store and retrieve configuration data to modify windows settings, so we can use the registry to change many settings in one place. You can find information about the registry on [Wikipedia](https://www.wikiwand.com/en/Windows_Registry) and [Microsoft's Website](https://learn.microsoft.com/en-us/windows/win32/sysinfo/registry). ================================================ FILE: docs/content/dev/tweaks/Customize-Preferences/NumLock.md ================================================ --- title: "Num Lock on Startup" description: "" --- ```json {filename="config/tweaks.json",linenos=inline,linenostart=2243} "WPFToggleNumLock": { "Content": "Num Lock on Startup", "Description": "Toggle the Num Lock key state when your computer starts.", "category": "Customize Preferences", "panel": "2", "Type": "Toggle", "registry": [ { "Path": "HKU:\\.Default\\Control Panel\\Keyboard", "Name": "InitialKeyboardIndicators", "Value": "2", "Type": "DWord", "OriginalValue": "0", "DefaultState": "false" }, { "Path": "HKCU:\\Control Panel\\Keyboard", "Name": "InitialKeyboardIndicators", "Value": "2", "Type": "DWord", "OriginalValue": "0", "DefaultState": "false" } ], ``` ## Registry Changes Applications and System Components store and retrieve configuration data to modify windows settings, so we can use the registry to change many settings in one place. You can find information about the registry on [Wikipedia](https://www.wikiwand.com/en/Windows_Registry) and [Microsoft's Website](https://learn.microsoft.com/en-us/windows/win32/sysinfo/registry). ================================================ FILE: docs/content/dev/tweaks/Customize-Preferences/S3Sleep.md ================================================ --- title: "S3 Sleep" description: "" --- ```json {filename="config/tweaks.json",linenos=inline,linenostart=2607} "WPFToggleS3Sleep": { "Content": "S3 Sleep", "Description": "Toggles between Modern Standby and S3 Sleep.", "category": "Customize Preferences", "panel": "2", "Type": "Toggle", "registry": [ { "Path": "HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Power", "Name": "PlatformAoAcOverride", "Value": "0", "Type": "DWord", "OriginalValue": "", "DefaultState": "false" } ], ``` ## Registry Changes Applications and System Components store and retrieve configuration data to modify windows settings, so we can use the registry to change many settings in one place. You can find information about the registry on [Wikipedia](https://www.wikiwand.com/en/Windows_Registry) and [Microsoft's Website](https://learn.microsoft.com/en-us/windows/win32/sysinfo/registry). ================================================ FILE: docs/content/dev/tweaks/Customize-Preferences/ShowExt.md ================================================ --- title: "Show File Extensions" description: "" --- ```json {filename="config/tweaks.json",linenos=inline,linenostart=2489} "WPFToggleShowExt": { "Content": "Show File Extensions", "Description": "If enabled, File extensions (e.g., .txt, .jpg) are visible.", "category": "Customize Preferences", "panel": "2", "Type": "Toggle", "registry": [ { "Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced", "Name": "HideFileExt", "Value": "0", "Type": "DWord", "OriginalValue": "1", "DefaultState": "false" } ], "InvokeScript": [ " Invoke-WinUtilExplorerUpdate -action \"restart\" " ], "UndoScript": [ " Invoke-WinUtilExplorerUpdate -action \"restart\" " ], ``` ## Registry Changes Applications and System Components store and retrieve configuration data to modify windows settings, so we can use the registry to change many settings in one place. You can find information about the registry on [Wikipedia](https://www.wikiwand.com/en/Windows_Registry) and [Microsoft's Website](https://learn.microsoft.com/en-us/windows/win32/sysinfo/registry). ================================================ FILE: docs/content/dev/tweaks/Customize-Preferences/StandbyFix.md ================================================ --- title: "Modern Standby fix" description: "" --- ```json {filename="config/tweaks.json",linenos=inline,linenostart=2225} "WPFToggleStandbyFix": { "Content": "Modern Standby fix", "Description": "Disable network connection during S0 sleep. If network connectivity is turned on during S0 sleep it could cause overheating on modern laptops", "category": "Customize Preferences", "panel": "2", "Type": "Toggle", "registry": [ { "Path": "HKCU:\\SOFTWARE\\Policies\\Microsoft\\Power\\PowerSettings\\f15576e8-98b7-4186-b944-eafa664402d9", "Name": "ACSettingIndex", "Value": "0", "Type": "DWord", "OriginalValue": "", "DefaultState": "true" } ], ``` ## Registry Changes Applications and System Components store and retrieve configuration data to modify windows settings, so we can use the registry to change many settings in one place. You can find information about the registry on [Wikipedia](https://www.wikiwand.com/en/Windows_Registry) and [Microsoft's Website](https://learn.microsoft.com/en-us/windows/win32/sysinfo/registry). ================================================ FILE: docs/content/dev/tweaks/Customize-Preferences/StartMenuRecommendations.md ================================================ --- title: "Recommendations in Start Menu" description: "" --- ```json {filename="config/tweaks.json",linenos=inline,linenostart=2287} "WPFToggleStartMenuRecommendations": { "Content": "Recommendations in Start Menu", "Description": "If disabled, then you will not see recommendations in the Start Menu. WARNING: This will also disable Windows Spotlight on your Lock Screen as a side effect.", "category": "Customize Preferences", "panel": "2", "Type": "Toggle", "registry": [ { "Path": "HKLM:\\SOFTWARE\\Microsoft\\PolicyManager\\current\\device\\Start", "Name": "HideRecommendedSection", "Value": "0", "Type": "DWord", "OriginalValue": "1", "DefaultState": "true" }, { "Path": "HKLM:\\SOFTWARE\\Microsoft\\PolicyManager\\current\\device\\Education", "Name": "IsEducationEnvironment", "Value": "0", "Type": "DWord", "OriginalValue": "1", "DefaultState": "true" }, { "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\Explorer", "Name": "HideRecommendedSection", "Value": "0", "Type": "DWord", "OriginalValue": "1", "DefaultState": "true" } ], "InvokeScript": [ " Invoke-WinUtilExplorerUpdate -action \"restart\" " ], "UndoScript": [ " Invoke-WinUtilExplorerUpdate -action \"restart\" " ], ``` ## Registry Changes Applications and System Components store and retrieve configuration data to modify windows settings, so we can use the registry to change many settings in one place. You can find information about the registry on [Wikipedia](https://www.wikiwand.com/en/Windows_Registry) and [Microsoft's Website](https://learn.microsoft.com/en-us/windows/win32/sysinfo/registry). ================================================ FILE: docs/content/dev/tweaks/Customize-Preferences/StickyKeys.md ================================================ --- title: "Sticky Keys" description: "" --- ```json {filename="config/tweaks.json",linenos=inline,linenostart=2383} "WPFToggleStickyKeys": { "Content": "Sticky Keys", "Description": "If enabled, Sticky Keys is activated. Sticky keys is an accessibility feature of some graphical user interfaces which assists users who have physical disabilities or help users reduce repetitive strain injury.", "category": "Customize Preferences", "panel": "2", "Type": "Toggle", "registry": [ { "Path": "HKCU:\\Control Panel\\Accessibility\\StickyKeys", "Name": "Flags", "Value": "506", "Type": "DWord", "OriginalValue": "58", "DefaultState": "true" } ], ``` ## Registry Changes Applications and System Components store and retrieve configuration data to modify windows settings, so we can use the registry to change many settings in one place. You can find information about the registry on [Wikipedia](https://www.wikiwand.com/en/Windows_Registry) and [Microsoft's Website](https://learn.microsoft.com/en-us/windows/win32/sysinfo/registry). ================================================ FILE: docs/content/dev/tweaks/Customize-Preferences/TaskView.md ================================================ --- title: "Task View Button in Taskbar" description: "" --- ```json {filename="config/tweaks.json",linenos=inline,linenostart=2535} "WPFToggleTaskView": { "Content": "Task View Button in Taskbar", "Description": "If enabled, Task View Button in Taskbar will be shown.", "category": "Customize Preferences", "panel": "2", "Type": "Toggle", "registry": [ { "Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced", "Name": "ShowTaskViewButton", "Value": "1", "Type": "DWord", "OriginalValue": "0", "DefaultState": "true" } ], ``` ## Registry Changes Applications and System Components store and retrieve configuration data to modify windows settings, so we can use the registry to change many settings in one place. You can find information about the registry on [Wikipedia](https://www.wikiwand.com/en/Windows_Registry) and [Microsoft's Website](https://learn.microsoft.com/en-us/windows/win32/sysinfo/registry). ================================================ FILE: docs/content/dev/tweaks/Customize-Preferences/TaskbarAlignment.md ================================================ --- title: "Center Taskbar Items" description: "" --- ```json {filename="config/tweaks.json",linenos=inline,linenostart=2553} "WPFToggleTaskbarAlignment": { "Content": "Center Taskbar Items", "Description": "[Windows 11] If enabled, the Taskbar Items will be shown on the Center, otherwise the Taskbar Items will be shown on the Left.", "category": "Customize Preferences", "panel": "2", "Type": "Toggle", "registry": [ { "Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced", "Name": "TaskbarAl", "Value": "1", "Type": "DWord", "OriginalValue": "0", "DefaultState": "true" } ], "InvokeScript": [ " Invoke-WinUtilExplorerUpdate -action \"restart\" " ], "UndoScript": [ " Invoke-WinUtilExplorerUpdate -action \"restart\" " ], ``` ## Registry Changes Applications and System Components store and retrieve configuration data to modify windows settings, so we can use the registry to change many settings in one place. You can find information about the registry on [Wikipedia](https://www.wikiwand.com/en/Windows_Registry) and [Microsoft's Website](https://learn.microsoft.com/en-us/windows/win32/sysinfo/registry). ================================================ FILE: docs/content/dev/tweaks/Customize-Preferences/TaskbarSearch.md ================================================ --- title: "Search Button in Taskbar" description: "" --- ```json {filename="config/tweaks.json",linenos=inline,linenostart=2517} "WPFToggleTaskbarSearch": { "Content": "Search Button in Taskbar", "Description": "If enabled, Search Button will be on the Taskbar.", "category": "Customize Preferences", "panel": "2", "Type": "Toggle", "registry": [ { "Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Search", "Name": "SearchboxTaskbarMode", "Value": "1", "Type": "DWord", "OriginalValue": "0", "DefaultState": "true" } ], ``` ## Registry Changes Applications and System Components store and retrieve configuration data to modify windows settings, so we can use the registry to change many settings in one place. You can find information about the registry on [Wikipedia](https://www.wikiwand.com/en/Windows_Registry) and [Microsoft's Website](https://learn.microsoft.com/en-us/windows/win32/sysinfo/registry). ================================================ FILE: docs/content/dev/tweaks/Customize-Preferences/VerboseLogon.md ================================================ --- title: "Verbose Messages During Logon" description: "" --- ```json {filename="config/tweaks.json",linenos=inline,linenostart=2269} "WPFToggleVerboseLogon": { "Content": "Verbose Messages During Logon", "Description": "Show detailed messages during the login process for troubleshooting and diagnostics.", "category": "Customize Preferences", "panel": "2", "Type": "Toggle", "registry": [ { "Path": "HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\System", "Name": "VerboseStatus", "Value": "1", "Type": "DWord", "OriginalValue": "0", "DefaultState": "false" } ], ``` ## Registry Changes Applications and System Components store and retrieve configuration data to modify windows settings, so we can use the registry to change many settings in one place. You can find information about the registry on [Wikipedia](https://www.wikiwand.com/en/Windows_Registry) and [Microsoft's Website](https://learn.microsoft.com/en-us/windows/win32/sysinfo/registry). ================================================ FILE: docs/content/dev/tweaks/Customize-Preferences/_index.md ================================================ --- title: "Customize Preferences" weight: 3 toc: false --- ### Customize Preferences {{< autolinks section="dev/tweaks/customize-preferences" >}} ================================================ FILE: docs/content/dev/tweaks/Essential-Tweaks/Activity.md ================================================ --- title: "Disable Activity History" description: "" --- ```json {filename="config/tweaks.json",linenos=inline,linenostart=2} "WPFTweaksActivity": { "Content": "Disable Activity History", "Description": "Erases recent docs, clipboard, and run history.", "category": "Essential Tweaks", "panel": "1", "registry": [ { "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\System", "Name": "EnableActivityFeed", "Value": "0", "Type": "DWord", "OriginalValue": "" }, { "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\System", "Name": "PublishUserActivities", "Value": "0", "Type": "DWord", "OriginalValue": "" }, { "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\System", "Name": "UploadUserActivities", "Value": "0", "Type": "DWord", "OriginalValue": "" } ], ``` ## Registry Changes Applications and System Components store and retrieve configuration data to modify windows settings, so we can use the registry to change many settings in one place. You can find information about the registry on [Wikipedia](https://www.wikiwand.com/en/Windows_Registry) and [Microsoft's Website](https://learn.microsoft.com/en-us/windows/win32/sysinfo/registry). ================================================ FILE: docs/content/dev/tweaks/Essential-Tweaks/ConsumerFeatures.md ================================================ --- title: "Disable ConsumerFeatures" description: "" --- ```json {filename="config/tweaks.json",linenos=inline,linenostart=1304} "WPFTweaksConsumerFeatures": { "Content": "Disable ConsumerFeatures", "Description": "Windows will not automatically install any games, third-party apps, or application links from the Windows Store for the signed-in user. Some default Apps will be inaccessible (eg. Phone Link).", "category": "Essential Tweaks", "panel": "1", "registry": [ { "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\CloudContent", "Name": "DisableWindowsConsumerFeatures", "Value": "1", "Type": "DWord", "OriginalValue": "" } ], ``` ## Registry Changes Applications and System Components store and retrieve configuration data to modify windows settings, so we can use the registry to change many settings in one place. You can find information about the registry on [Wikipedia](https://www.wikiwand.com/en/Windows_Registry) and [Microsoft's Website](https://learn.microsoft.com/en-us/windows/win32/sysinfo/registry). ================================================ FILE: docs/content/dev/tweaks/Essential-Tweaks/DeleteTempFiles.md ================================================ --- title: "Delete Temporary Files" description: "" --- ```json {filename="config/tweaks.json",linenos=inline,linenostart=2060} "WPFTweaksDeleteTempFiles": { "Content": "Delete Temporary Files", "Description": "Erases TEMP Folders.", "category": "Essential Tweaks", "panel": "1", "InvokeScript": [ " Remove-Item -Path \"$Env:Temp\\*\" -Recurse -Force Remove-Item -Path \"$Env:SystemRoot\\Temp\\*\" -Recurse -Force " ], ``` ================================================ FILE: docs/content/dev/tweaks/Essential-Tweaks/DisableExplorerAutoDiscovery.md ================================================ --- title: "Disable Explorer Automatic Folder Discovery" description: "" --- ```json {filename="config/tweaks.json",linenos=inline,linenostart=2656} "WPFTweaksDisableExplorerAutoDiscovery": { "Content": "Disable Explorer Automatic Folder Discovery", "Description": "Windows Explorer automatically tries to guess the type of the folder based on its contents, slowing down the browsing experience. WARNING! Will disable File Explorer grouping.", "category": "Essential Tweaks", "panel": "1", "InvokeScript": [ " # Previously detected folders $bags = \"HKCU:\\Software\\Classes\\Local Settings\\Software\\Microsoft\\Windows\\Shell\\Bags\" # Folder types lookup table $bagMRU = \"HKCU:\\Software\\Classes\\Local Settings\\Software\\Microsoft\\Windows\\Shell\\BagMRU\" # Flush Explorer view database Remove-Item -Path $bags -Recurse -Force Write-Host \"Removed $bags\" Remove-Item -Path $bagMRU -Recurse -Force Write-Host \"Removed $bagMRU\" # Every folder $allFolders = \"HKCU:\\Software\\Classes\\Local Settings\\Software\\Microsoft\\Windows\\Shell\\Bags\\AllFolders\\Shell\" if (!(Test-Path $allFolders)) { New-Item -Path $allFolders -Force Write-Host \"Created $allFolders\" } # Generic view New-ItemProperty -Path $allFolders -Name \"FolderType\" -Value \"NotSpecified\" -PropertyType String -Force Write-Host \"Set FolderType to NotSpecified\" Write-Host Please sign out and back in, or restart your computer to apply the changes! " ], "UndoScript": [ " # Previously detected folders $bags = \"HKCU:\\Software\\Classes\\Local Settings\\Software\\Microsoft\\Windows\\Shell\\Bags\" # Folder types lookup table $bagMRU = \"HKCU:\\Software\\Classes\\Local Settings\\Software\\Microsoft\\Windows\\Shell\\BagMRU\" # Flush Explorer view database Remove-Item -Path $bags -Recurse -Force Write-Host \"Removed $bags\" Remove-Item -Path $bagMRU -Recurse -Force Write-Host \"Removed $bagMRU\" Write-Host Please sign out and back in, or restart your computer to apply the changes! " ], ``` ================================================ FILE: docs/content/dev/tweaks/Essential-Tweaks/DisableStoreSearch.md ================================================ --- title: "Disable Microsoft Store search results" description: "" --- ```json {filename="config/tweaks.json",linenos=inline,linenostart=125} "WPFTweaksDisableStoreSearch": { "Content": "Disable Microsoft Store search results", "Description": "Will not display recommended Microsoft Store apps when searching for apps in the Start menu.", "category": "Essential Tweaks", "panel": "1", "InvokeScript": [ "icacls \"$Env:LocalAppData\\Packages\\Microsoft.WindowsStore_8wekyb3d8bbwe\\LocalState\\store.db\" /deny Everyone:F" ], "UndoScript": [ "icacls \"$Env:LocalAppData\\Packages\\Microsoft.WindowsStore_8wekyb3d8bbwe\\LocalState\\store.db\" /grant Everyone:F" ], ``` ================================================ FILE: docs/content/dev/tweaks/Essential-Tweaks/DiskCleanup.md ================================================ --- title: "Run Disk Cleanup" description: "" --- ```json {filename="config/tweaks.json",linenos=inline,linenostart=2047} "WPFTweaksDiskCleanup": { "Content": "Run Disk Cleanup", "Description": "Runs Disk Cleanup on Drive C: and removes old Windows Updates.", "category": "Essential Tweaks", "panel": "1", "InvokeScript": [ " cleanmgr.exe /d C: /VERYLOWDISK Dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase " ], ``` ================================================ FILE: docs/content/dev/tweaks/Essential-Tweaks/EndTaskOnTaskbar.md ================================================ --- title: "Enable End Task With Right Click" description: "" --- ```json {filename="config/tweaks.json",linenos=inline,linenostart=1785} "WPFTweaksEndTaskOnTaskbar": { "Content": "Enable End Task With Right Click", "Description": "Enables option to end task when right clicking a program in the taskbar.", "category": "Essential Tweaks", "panel": "1", "registry": [ { "Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced\\TaskbarDeveloperSettings", "Name": "TaskbarEndTask", "Value": "1", "Type": "DWord", "OriginalValue": "" } ], ``` ## Registry Changes Applications and System Components store and retrieve configuration data to modify windows settings, so we can use the registry to change many settings in one place. You can find information about the registry on [Wikipedia](https://www.wikiwand.com/en/Windows_Registry) and [Microsoft's Website](https://learn.microsoft.com/en-us/windows/win32/sysinfo/registry). ================================================ FILE: docs/content/dev/tweaks/Essential-Tweaks/Hiber.md ================================================ --- title: "Disable Hibernation" description: "" --- ```json {filename="config/tweaks.json",linenos=inline,linenostart=32} "WPFTweaksHiber": { "Content": "Disable Hibernation", "Description": "Hibernation is really meant for laptops as it saves what's in memory before turning the PC off. It really should never be used.", "category": "Essential Tweaks", "panel": "1", "registry": [ { "Path": "HKLM:\\System\\CurrentControlSet\\Control\\Session Manager\\Power", "Name": "HibernateEnabled", "Value": "0", "Type": "DWord", "OriginalValue": "1" }, { "Path": "HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\FlyoutMenuSettings", "Name": "ShowHibernateOption", "Value": "0", "Type": "DWord", "OriginalValue": "1" } ], "InvokeScript": [ "powercfg.exe /hibernate off" ], "UndoScript": [ "powercfg.exe /hibernate on" ], ``` ## Registry Changes Applications and System Components store and retrieve configuration data to modify windows settings, so we can use the registry to change many settings in one place. You can find information about the registry on [Wikipedia](https://www.wikiwand.com/en/Windows_Registry) and [Microsoft's Website](https://learn.microsoft.com/en-us/windows/win32/sysinfo/registry). ================================================ FILE: docs/content/dev/tweaks/Essential-Tweaks/Location.md ================================================ --- title: "Disable Location Tracking" description: "" --- ```json {filename="config/tweaks.json",linenos=inline,linenostart=138} "WPFTweaksLocation": { "Content": "Disable Location Tracking", "Description": "Disables Location Tracking.", "category": "Essential Tweaks", "panel": "1", "registry": [ { "Path": "HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\CapabilityAccessManager\\ConsentStore\\location", "Name": "Value", "Value": "Deny", "Type": "String", "OriginalValue": "Allow" }, { "Path": "HKLM:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Sensor\\Overrides\\{BFA794E4-F964-4FDB-90F6-51056BFE4B44}", "Name": "SensorPermissionState", "Value": "0", "Type": "DWord", "OriginalValue": "1" }, { "Path": "HKLM:\\SYSTEM\\CurrentControlSet\\Services\\lfsvc\\Service\\Configuration", "Name": "Status", "Value": "0", "Type": "DWord", "OriginalValue": "1" }, { "Path": "HKLM:\\SYSTEM\\Maps", "Name": "AutoUpdateEnabled", "Value": "0", "Type": "DWord", "OriginalValue": "1" } ], ``` ## Registry Changes Applications and System Components store and retrieve configuration data to modify windows settings, so we can use the registry to change many settings in one place. You can find information about the registry on [Wikipedia](https://www.wikiwand.com/en/Windows_Registry) and [Microsoft's Website](https://learn.microsoft.com/en-us/windows/win32/sysinfo/registry). ================================================ FILE: docs/content/dev/tweaks/Essential-Tweaks/Powershell7Tele.md ================================================ --- title: "Disable Powershell 7 Telemetry" description: "" --- ```json {filename="config/tweaks.json",linenos=inline,linenostart=1801} "WPFTweaksPowershell7Tele": { "Content": "Disable Powershell 7 Telemetry", "Description": "Creates an Environment Variable called 'POWERSHELL_TELEMETRY_OPTOUT' with a value of '1' which will tell PowerShell 7 to not send Telemetry Data.", "category": "Essential Tweaks", "panel": "1", "InvokeScript": [ "[Environment]::SetEnvironmentVariable('POWERSHELL_TELEMETRY_OPTOUT', '1', 'Machine')" ], "UndoScript": [ "[Environment]::SetEnvironmentVariable('POWERSHELL_TELEMETRY_OPTOUT', '', 'Machine')" ], ``` ================================================ FILE: docs/content/dev/tweaks/Essential-Tweaks/RestorePoint.md ================================================ --- title: "Create Restore Point" description: "" --- ```json {filename="config/tweaks.json",linenos=inline,linenostart=1758} "WPFTweaksRestorePoint": { "Content": "Create Restore Point", "Description": "Creates a restore point at runtime in case a revert is needed from WinUtil modifications.", "category": "Essential Tweaks", "panel": "1", "Checked": "False", "registry": [ { "Path": "HKLM:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\SystemRestore", "Name": "SystemRestorePointCreationFrequency", "Value": "0", "Type": "DWord", "OriginalValue": "1440" } ], "InvokeScript": [ " if (-not (Get-ComputerRestorePoint)) { Enable-ComputerRestore -Drive $Env:SystemDrive } Checkpoint-Computer -Description \"System Restore Point created by WinUtil\" -RestorePointType MODIFY_SETTINGS Write-Host \"System Restore Point Created Successfully\" -ForegroundColor Green " ], ``` ## Registry Changes Applications and System Components store and retrieve configuration data to modify windows settings, so we can use the registry to change many settings in one place. You can find information about the registry on [Wikipedia](https://www.wikiwand.com/en/Windows_Registry) and [Microsoft's Website](https://learn.microsoft.com/en-us/windows/win32/sysinfo/registry). ================================================ FILE: docs/content/dev/tweaks/Essential-Tweaks/RevertStartMenu.md ================================================ --- title: "Revert Start Menu layout" description: "" --- ```json {filename="config/tweaks.json",linenos=inline,linenostart=90} "WPFTweaksRevertStartMenu": { "Content": "Revert Start Menu layout", "Description": "Bring back the old Start Menu layout from before the gradual rollout of the new one in 25H2.", "category": "Essential Tweaks", "panel": "1", "InvokeScript": [ " Invoke-WebRequest https://github.com/thebookisclosed/ViVe/releases/download/v0.3.4/ViVeTool-v0.3.4-IntelAmd.zip -OutFile ViVeTool.zip Expand-Archive ViVeTool.zip Remove-Item ViVeTool.zip Start-Process 'ViVeTool\\ViVeTool.exe' -ArgumentList '/disable /id:47205210' -Wait -NoNewWindow Remove-Item ViVeTool -Recurse Write-Host 'Old start menu reverted please restart your computer to take effect' " ], "UndoScript": [ " Invoke-WebRequest https://github.com/thebookisclosed/ViVe/releases/download/v0.3.4/ViVeTool-v0.3.4-IntelAmd.zip -OutFile ViVeTool.zip Expand-Archive ViVeTool.zip Remove-Item ViVeTool.zip Start-Process 'ViVeTool\\ViVeTool.exe' -ArgumentList '/enable /id:47205210' -Wait -NoNewWindow Remove-Item ViVeTool -Recurse Write-Host 'New start menu reverted please restart your computer to take effect' " ], ``` ================================================ FILE: docs/content/dev/tweaks/Essential-Tweaks/Services.md ================================================ --- title: "Set Services to Manual" description: "" --- ```json {filename="config/tweaks.json",linenos=inline,linenostart=175} "WPFTweaksServices": { "Content": "Set Services to Manual", "Description": "Turns a bunch of system services to manual that don't need to be running all the time. This is pretty harmless as if the service is needed, it will simply start on demand.", "category": "Essential Tweaks", "panel": "1", "service": [ { "Name": "ALG", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "AppMgmt", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "AppReadiness", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "AppVClient", "StartupType": "Disabled", "OriginalType": "Disabled" }, { "Name": "Appinfo", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "AssignedAccessManagerSvc", "StartupType": "Disabled", "OriginalType": "Manual" }, { "Name": "AudioEndpointBuilder", "StartupType": "Automatic", "OriginalType": "Automatic" }, { "Name": "AudioSrv", "StartupType": "Automatic", "OriginalType": "Automatic" }, { "Name": "Audiosrv", "StartupType": "Automatic", "OriginalType": "Automatic" }, { "Name": "AxInstSV", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "BDESVC", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "BITS", "StartupType": "AutomaticDelayedStart", "OriginalType": "Automatic" }, { "Name": "BTAGService", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "BthAvctpSvc", "StartupType": "Automatic", "OriginalType": "Manual" }, { "Name": "CDPSvc", "StartupType": "Manual", "OriginalType": "Automatic" }, { "Name": "COMSysApp", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "CertPropSvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "CryptSvc", "StartupType": "Automatic", "OriginalType": "Automatic" }, { "Name": "CscService", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "DPS", "StartupType": "Automatic", "OriginalType": "Automatic" }, { "Name": "DevQueryBroker", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "DeviceAssociationService", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "DeviceInstall", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "Dhcp", "StartupType": "Automatic", "OriginalType": "Automatic" }, { "Name": "DiagTrack", "StartupType": "Disabled", "OriginalType": "Automatic" }, { "Name": "DialogBlockingService", "StartupType": "Disabled", "OriginalType": "Disabled" }, { "Name": "DispBrokerDesktopSvc", "StartupType": "Automatic", "OriginalType": "Automatic" }, { "Name": "DisplayEnhancementService", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "EFS", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "EapHost", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "EventLog", "StartupType": "Automatic", "OriginalType": "Automatic" }, { "Name": "EventSystem", "StartupType": "Automatic", "OriginalType": "Automatic" }, { "Name": "FDResPub", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "FontCache", "StartupType": "Automatic", "OriginalType": "Automatic" }, { "Name": "FrameServer", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "FrameServerMonitor", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "GraphicsPerfSvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "HvHost", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "IKEEXT", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "InstallService", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "InventorySvc", "StartupType": "Manual", "OriginalType": "Automatic" }, { "Name": "IpxlatCfgSvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "KeyIso", "StartupType": "Automatic", "OriginalType": "Manual" }, { "Name": "KtmRm", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "LanmanServer", "StartupType": "Automatic", "OriginalType": "Automatic" }, { "Name": "LanmanWorkstation", "StartupType": "Automatic", "OriginalType": "Automatic" }, { "Name": "LicenseManager", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "LxpSvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "MSDTC", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "MSiSCSI", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "MapsBroker", "StartupType": "AutomaticDelayedStart", "OriginalType": "Automatic" }, { "Name": "McpManagementService", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "MicrosoftEdgeElevationService", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "NaturalAuthentication", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "NcaSvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "NcbService", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "NcdAutoSetup", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "NetSetupSvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "NetTcpPortSharing", "StartupType": "Disabled", "OriginalType": "Disabled" }, { "Name": "Netman", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "NlaSvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "PcaSvc", "StartupType": "Manual", "OriginalType": "Automatic" }, { "Name": "PeerDistSvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "PerfHost", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "PhoneSvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "PlugPlay", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "PolicyAgent", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "Power", "StartupType": "Automatic", "OriginalType": "Automatic" }, { "Name": "PrintNotify", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "ProfSvc", "StartupType": "Automatic", "OriginalType": "Automatic" }, { "Name": "PushToInstall", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "QWAVE", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "RasAuto", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "RasMan", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "RemoteAccess", "StartupType": "Disabled", "OriginalType": "Disabled" }, { "Name": "RemoteRegistry", "StartupType": "Disabled", "OriginalType": "Disabled" }, { "Name": "RetailDemo", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "RmSvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "RpcLocator", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "SCPolicySvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "SCardSvr", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "SDRSVC", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "SEMgrSvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "SENS", "StartupType": "Automatic", "OriginalType": "Automatic" }, { "Name": "SNMPTRAP", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "SNMPTrap", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "SSDPSRV", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "SamSs", "StartupType": "Automatic", "OriginalType": "Automatic" }, { "Name": "ScDeviceEnum", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "SensorDataService", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "SensorService", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "SensrSvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "SessionEnv", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "SharedAccess", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "ShellHWDetection", "StartupType": "Automatic", "OriginalType": "Automatic" }, { "Name": "SmsRouter", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "Spooler", "StartupType": "Automatic", "OriginalType": "Automatic" }, { "Name": "SstpSvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "StiSvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "StorSvc", "StartupType": "Manual", "OriginalType": "Automatic" }, { "Name": "SysMain", "StartupType": "Automatic", "OriginalType": "Automatic" }, { "Name": "TapiSrv", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "TermService", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "Themes", "StartupType": "Automatic", "OriginalType": "Automatic" }, { "Name": "TieringEngineService", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "TokenBroker", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "TrkWks", "StartupType": "Automatic", "OriginalType": "Automatic" }, { "Name": "TroubleshootingSvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "TrustedInstaller", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "UevAgentService", "StartupType": "Disabled", "OriginalType": "Disabled" }, { "Name": "UmRdpService", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "UserManager", "StartupType": "Automatic", "OriginalType": "Automatic" }, { "Name": "UsoSvc", "StartupType": "Manual", "OriginalType": "Automatic" }, { "Name": "VSS", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "VaultSvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "W32Time", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "WEPHOSTSVC", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "WFDSConMgrSvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "WMPNetworkSvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "WManSvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "WPDBusEnum", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "WSAIFabricSvc", "StartupType": "Manual", "OriginalType": "Automatic" }, { "Name": "WSearch", "StartupType": "AutomaticDelayedStart", "OriginalType": "Automatic" }, { "Name": "WalletService", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "WarpJITSvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "WbioSrvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "Wcmsvc", "StartupType": "Automatic", "OriginalType": "Automatic" }, { "Name": "WdiServiceHost", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "WdiSystemHost", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "WebClient", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "Wecsvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "WerSvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "WiaRpc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "WinRM", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "Winmgmt", "StartupType": "Automatic", "OriginalType": "Automatic" }, { "Name": "WpcMonSvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "WpnService", "StartupType": "Manual", "OriginalType": "Automatic" }, { "Name": "XblAuthManager", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "XblGameSave", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "XboxGipSvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "XboxNetApiSvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "autotimesvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "bthserv", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "camsvc", "StartupType": "Manual", "OriginalType": "Automatic" }, { "Name": "cloudidsvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "dcsvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "defragsvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "diagsvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "dmwappushservice", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "dot3svc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "edgeupdate", "StartupType": "Manual", "OriginalType": "Automatic" }, { "Name": "edgeupdatem", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "fdPHost", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "fhsvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "hidserv", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "icssvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "iphlpsvc", "StartupType": "Automatic", "OriginalType": "Automatic" }, { "Name": "lfsvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "lltdsvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "lmhosts", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "netprofm", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "nsi", "StartupType": "Automatic", "OriginalType": "Automatic" }, { "Name": "perceptionsimulation", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "pla", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "seclogon", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "shpamsvc", "StartupType": "Disabled", "OriginalType": "Disabled" }, { "Name": "smphost", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "ssh-agent", "StartupType": "Disabled", "OriginalType": "Disabled" }, { "Name": "svsvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "swprv", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "tzautoupdate", "StartupType": "Disabled", "OriginalType": "Disabled" }, { "Name": "upnphost", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "vds", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "vmicguestinterface", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "vmicheartbeat", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "vmickvpexchange", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "vmicrdv", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "vmicshutdown", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "vmictimesync", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "vmicvmsession", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "vmicvss", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "wbengine", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "wcncsvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "webthreatdefsvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "wercplsupport", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "wisvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "wlidsvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "wlpasvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "wmiApSrv", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "workfolderssvc", "StartupType": "Manual", "OriginalType": "Manual" }, { "Name": "wuauserv", "StartupType": "Manual", "OriginalType": "Manual" } ], ``` ================================================ FILE: docs/content/dev/tweaks/Essential-Tweaks/Telemetry.md ================================================ --- title: "Disable Telemetry" description: "" --- ```json {filename="config/tweaks.json",linenos=inline,linenostart=1320} "WPFTweaksTelemetry": { "Content": "Disable Telemetry", "Description": "Disables Microsoft Telemetry.", "category": "Essential Tweaks", "panel": "1", "registry": [ { "Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\AdvertisingInfo", "Name": "Enabled", "Value": "0", "Type": "DWord", "OriginalValue": "" }, { "Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Privacy", "Name": "TailoredExperiencesWithDiagnosticDataEnabled", "Value": "0", "Type": "DWord", "OriginalValue": "" }, { "Path": "HKCU:\\Software\\Microsoft\\Speech_OneCore\\Settings\\OnlineSpeechPrivacy", "Name": "HasAccepted", "Value": "0", "Type": "DWord", "OriginalValue": "" }, { "Path": "HKCU:\\Software\\Microsoft\\Input\\TIPC", "Name": "Enabled", "Value": "0", "Type": "DWord", "OriginalValue": "" }, { "Path": "HKCU:\\Software\\Microsoft\\InputPersonalization", "Name": "RestrictImplicitInkCollection", "Value": "1", "Type": "DWord", "OriginalValue": "" }, { "Path": "HKCU:\\Software\\Microsoft\\InputPersonalization", "Name": "RestrictImplicitTextCollection", "Value": "1", "Type": "DWord", "OriginalValue": "" }, { "Path": "HKCU:\\Software\\Microsoft\\InputPersonalization\\TrainedDataStore", "Name": "HarvestContacts", "Value": "0", "Type": "DWord", "OriginalValue": "" }, { "Path": "HKCU:\\Software\\Microsoft\\Personalization\\Settings", "Name": "AcceptedPrivacyPolicy", "Value": "0", "Type": "DWord", "OriginalValue": "" }, { "Path": "HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\DataCollection", "Name": "AllowTelemetry", "Value": "0", "Type": "DWord", "OriginalValue": "" }, { "Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced", "Name": "Start_TrackProgs", "Value": "0", "Type": "DWord", "OriginalValue": "" }, { "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\System", "Name": "PublishUserActivities", "Value": "0", "Type": "DWord", "OriginalValue": "" }, { "Path": "HKCU:\\Software\\Microsoft\\Siuf\\Rules", "Name": "NumberOfSIUFInPeriod", "Value": "0", "Type": "DWord", "OriginalValue": "" } ], "InvokeScript": [ " # Disable Defender Auto Sample Submission Set-MpPreference -SubmitSamplesConsent 2 # Disable (Connected User Experiences and Telemetry) Service Set-Service -Name diagtrack -StartupType Disabled # Disable (Windows Error Reporting Manager) Service Set-Service -Name wermgr -StartupType Disabled $Memory = (Get-CimInstance Win32_PhysicalMemory | Measure-Object Capacity -Sum).Sum / 1KB Set-ItemProperty -Path \"HKLM:\\SYSTEM\\CurrentControlSet\\Control\" -Name SvcHostSplitThresholdInKB -Value $Memory Remove-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Siuf\\Rules\" -Name PeriodInNanoSeconds " ], "UndoScript": [ " # Enable Defender Auto Sample Submission Set-MpPreference -SubmitSamplesConsent 1 # Enable (Connected User Experiences and Telemetry) Service Set-Service -Name diagtrack -StartupType Automatic # Enable (Windows Error Reporting Manager) Service Set-Service -Name wermgr -StartupType Automatic " ], ``` ## Registry Changes Applications and System Components store and retrieve configuration data to modify windows settings, so we can use the registry to change many settings in one place. You can find information about the registry on [Wikipedia](https://www.wikiwand.com/en/Windows_Registry) and [Microsoft's Website](https://learn.microsoft.com/en-us/windows/win32/sysinfo/registry). ================================================ FILE: docs/content/dev/tweaks/Essential-Tweaks/WPBT.md ================================================ --- title: "Disable Windows Platform Binary Table (WPBT)" description: "" --- ```json {filename="config/tweaks.json",linenos=inline,linenostart=1914} "WPFTweaksWPBT": { "Content": "Disable Windows Platform Binary Table (WPBT)", "Description": "If enabled, WPBT allows your computer vendor to execute programs at boot time, such as anti-theft software, software drivers, as well as force install software without user consent. Poses potential security risk.", "category": "Essential Tweaks", "panel": "1", "registry": [ { "Path": "HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Session Manager", "Name": "DisableWpbtExecution", "Value": "1", "Type": "DWord", "OriginalValue": "" } ], ``` ## Registry Changes Applications and System Components store and retrieve configuration data to modify windows settings, so we can use the registry to change many settings in one place. You can find information about the registry on [Wikipedia](https://www.wikiwand.com/en/Windows_Registry) and [Microsoft's Website](https://learn.microsoft.com/en-us/windows/win32/sysinfo/registry). ================================================ FILE: docs/content/dev/tweaks/Essential-Tweaks/Widget.md ================================================ --- title: "Remove Widgets" description: "" --- ```json {filename="config/tweaks.json",linenos=inline,linenostart=61} "WPFTweaksWidget": { "Content": "Remove Widgets", "Description": "Removes the annoying widgets in the bottom left of the Taskbar.", "category": "Essential Tweaks", "panel": "1", "InvokeScript": [ " # Sometimes if you dont stop the Widgets process the removal may fail Stop-Process -Name Widgets Get-AppxPackage Microsoft.WidgetsPlatformRuntime -AllUsers | Remove-AppxPackage -AllUsers Get-AppxPackage MicrosoftWindows.Client.WebExperience -AllUsers | Remove-AppxPackage -AllUsers Invoke-WinUtilExplorerUpdate -action \"restart\" Write-Host \"Removed widgets\" " ], "UndoScript": [ " Write-Host \"Restoring widgets AppxPackages\" Add-AppxPackage -Register \"C:\\Program Files\\WindowsApps\\Microsoft.WidgetsPlatformRuntime*\\AppxManifest.xml\" -DisableDevelopmentMode Add-AppxPackage -Register \"C:\\Program Files\\WindowsApps\\MicrosoftWindows.Client.WebExperience*\\AppxManifest.xml\" -DisableDevelopmentMode Invoke-WinUtilExplorerUpdate -action \"restart\" " ], ``` ================================================ FILE: docs/content/dev/tweaks/Essential-Tweaks/_index.md ================================================ --- title: "Essential Tweaks" weight: 1 toc: false --- ### Essential Tweaks {{< autolinks section="dev/tweaks/essential-tweaks" >}} ================================================ FILE: docs/content/dev/tweaks/Performance-Plans/AddUltPerf.md ================================================ --- title: "Add and Activate Ultimate Performance Profile" description: "" --- ```powershell {filename="functions/public/Invoke-WPFUltimatePerformance.ps1",linenos=inline,linenostart=1} Function Invoke-WPFUltimatePerformance { <# .SYNOPSIS Enables or disables the Ultimate Performance power scheme based on its GUID. .PARAMETER State Specifies whether to "Enable" or "Disable" the Ultimate Performance power scheme. #> param( [Parameter(Mandatory = $true)] [ValidateSet("Enable", "Disable")] [string]$State ) try { # GUID of the Ultimate Performance power plan $ultimateGUID = "e9a42b02-d5df-448d-aa00-03f14749eb61" switch ($State) { "Enable" { # Duplicate the Ultimate Performance power plan using its GUID $duplicateOutput = powercfg /duplicatescheme $ultimateGUID $guid = $null $nameFromFile = "ChrisTitus - Ultimate Power Plan" $description = "Ultimate Power Plan, added via WinUtils" # Extract the new GUID from the duplicateOutput foreach ($line in $duplicateOutput) { if ($line -match "\b[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}\b") { $guid = $matches[0] # $matches[0] will contain the first match, which is the GUID Write-Output "GUID: $guid has been extracted and stored in the variable." break } } if (-not $guid) { Write-Output "No GUID found in the duplicateOutput. Check the output format." exit 1 } # Change the name of the power plan and set its description $changeNameOutput = powercfg /changename $guid "$nameFromFile" "$description" Write-Output "The power plan name and description have been changed. Output:" Write-Output $changeNameOutput # Set the duplicated Ultimate Performance plan as active $setActiveOutput = powercfg /setactive $guid Write-Output "The power plan has been set as active. Output:" Write-Output $setActiveOutput Write-Host "> Ultimate Performance plan installed and set as active." } "Disable" { # Check if the Ultimate Performance plan is installed by GUID $installedPlan = powercfg -list | Select-String -Pattern "ChrisTitus - Ultimate Power Plan" if ($installedPlan) { # Extract the GUID of the installed Ultimate Performance plan $ultimatePlanGUID = $installedPlan.Line.Split()[3] # Set a different power plan as active before deleting the Ultimate Performance plan $balancedPlanGUID = "381b4222-f694-41f0-9685-ff5bb260df2e" powercfg -setactive $balancedPlanGUID # Delete the Ultimate Performance plan by GUID powercfg -delete $ultimatePlanGUID Write-Host "Ultimate Performance plan has been uninstalled." Write-Host "> Balanced plan is now active." } else { Write-Host "Ultimate Performance plan is not installed." } } default { Write-Host "Invalid state. Please use 'Enable' or 'Disable'." } } } catch { Write-Error "Error occurred: $_" } } ``` ================================================ FILE: docs/content/dev/tweaks/Performance-Plans/RemoveUltPerf.md ================================================ --- title: "Remove Ultimate Performance Profile" description: "" --- ```powershell {filename="functions/public/Invoke-WPFUltimatePerformance.ps1",linenos=inline,linenostart=1} Function Invoke-WPFUltimatePerformance { <# .SYNOPSIS Enables or disables the Ultimate Performance power scheme based on its GUID. .PARAMETER State Specifies whether to "Enable" or "Disable" the Ultimate Performance power scheme. #> param( [Parameter(Mandatory = $true)] [ValidateSet("Enable", "Disable")] [string]$State ) try { # GUID of the Ultimate Performance power plan $ultimateGUID = "e9a42b02-d5df-448d-aa00-03f14749eb61" switch ($State) { "Enable" { # Duplicate the Ultimate Performance power plan using its GUID $duplicateOutput = powercfg /duplicatescheme $ultimateGUID $guid = $null $nameFromFile = "ChrisTitus - Ultimate Power Plan" $description = "Ultimate Power Plan, added via WinUtils" # Extract the new GUID from the duplicateOutput foreach ($line in $duplicateOutput) { if ($line -match "\b[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}\b") { $guid = $matches[0] # $matches[0] will contain the first match, which is the GUID Write-Output "GUID: $guid has been extracted and stored in the variable." break } } if (-not $guid) { Write-Output "No GUID found in the duplicateOutput. Check the output format." exit 1 } # Change the name of the power plan and set its description $changeNameOutput = powercfg /changename $guid "$nameFromFile" "$description" Write-Output "The power plan name and description have been changed. Output:" Write-Output $changeNameOutput # Set the duplicated Ultimate Performance plan as active $setActiveOutput = powercfg /setactive $guid Write-Output "The power plan has been set as active. Output:" Write-Output $setActiveOutput Write-Host "> Ultimate Performance plan installed and set as active." } "Disable" { # Check if the Ultimate Performance plan is installed by GUID $installedPlan = powercfg -list | Select-String -Pattern "ChrisTitus - Ultimate Power Plan" if ($installedPlan) { # Extract the GUID of the installed Ultimate Performance plan $ultimatePlanGUID = $installedPlan.Line.Split()[3] # Set a different power plan as active before deleting the Ultimate Performance plan $balancedPlanGUID = "381b4222-f694-41f0-9685-ff5bb260df2e" powercfg -setactive $balancedPlanGUID # Delete the Ultimate Performance plan by GUID powercfg -delete $ultimatePlanGUID Write-Host "Ultimate Performance plan has been uninstalled." Write-Host "> Balanced plan is now active." } else { Write-Host "Ultimate Performance plan is not installed." } } default { Write-Host "Invalid state. Please use 'Enable' or 'Disable'." } } } catch { Write-Error "Error occurred: $_" } } ``` ================================================ FILE: docs/content/dev/tweaks/Performance-Plans/_index.md ================================================ --- title: "Performance Plans" weight: 4 toc: false --- ### Performance Plans {{< autolinks section="dev/tweaks/performance-plans" >}} ================================================ FILE: docs/content/dev/tweaks/_index.md ================================================ --- title: "Tweaks" weight: 2 toc: false --- ### Essential Tweaks {{< autolinks section="dev/tweaks/essential-tweaks" >}} ### Advanced Tweaks (CAUTION) {{< autolinks section="dev/tweaks/z--advanced-tweaks---caution" >}} ### Customize Preferences {{< autolinks section="dev/tweaks/customize-preferences" >}} ### Performance Plans {{< autolinks section="dev/tweaks/performance-plans" >}} ================================================ FILE: docs/content/dev/tweaks/z--Advanced-Tweaks---CAUTION/BlockAdobeNet.md ================================================ --- title: "Adobe Network Block" description: "" --- ```json {filename="config/tweaks.json",linenos=inline,linenostart=1995} "WPFTweaksBlockAdobeNet": { "Content": "Adobe Network Block", "Description": "Reduces user interruptions by selectively blocking connections to Adobe's activation and telemetry servers. Credit: Ruddernation-Designs", "category": "z__Advanced Tweaks - CAUTION", "panel": "1", "InvokeScript": [ " $hostsUrl = \"https://github.com/Ruddernation-Designs/Adobe-URL-Block-List/raw/refs/heads/master/hosts\" $hosts = \"$Env:SystemRoot\\System32\\drivers\\etc\\hosts\" Move-Item $hosts \"$hosts.bak\" Invoke-WebRequest $hostsUrl -OutFile $hosts ipconfig /flushdns Write-Host \"Added Adobe url block list from host file\" " ], "UndoScript": [ " $hosts = \"$Env:SystemRoot\\System32\\drivers\\etc\\hosts\" Remove-Item $hosts Move-Item \"$hosts.bak\" $hosts ipconfig /flushdns Write-Host \"Removed Adobe url block list from host file\" " ], ``` ================================================ FILE: docs/content/dev/tweaks/z--Advanced-Tweaks---CAUTION/BraveDebloat.md ================================================ --- title: "Brave Debloat" description: "" --- ```json {filename="config/tweaks.json",linenos=inline,linenostart=1139} "WPFTweaksBraveDebloat": { "Content": "Brave Debloat", "Description": "Disables various annoyances like Brave Rewards, Leo AI, Crypto Wallet and VPN.", "category": "z__Advanced Tweaks - CAUTION", "panel": "1", "registry": [ { "Path": "HKLM:\\SOFTWARE\\Policies\\BraveSoftware\\Brave", "Name": "BraveRewardsDisabled", "Value": "1", "Type": "DWord", "OriginalValue": "" }, { "Path": "HKLM:\\SOFTWARE\\Policies\\BraveSoftware\\Brave", "Name": "BraveWalletDisabled", "Value": "1", "Type": "DWord", "OriginalValue": "" }, { "Path": "HKLM:\\SOFTWARE\\Policies\\BraveSoftware\\Brave", "Name": "BraveVPNDisabled", "Value": "1", "Type": "DWord", "OriginalValue": "" }, { "Path": "HKLM:\\SOFTWARE\\Policies\\BraveSoftware\\Brave", "Name": "BraveAIChatEnabled", "Value": "0", "Type": "DWord", "OriginalValue": "" }, { "Path": "HKLM:\\SOFTWARE\\Policies\\BraveSoftware\\Brave", "Name": "BraveStatsPingEnabled", "Value": "0", "Type": "DWord", "OriginalValue": "" } ], ``` ## Registry Changes Applications and System Components store and retrieve configuration data to modify windows settings, so we can use the registry to change many settings in one place. You can find information about the registry on [Wikipedia](https://www.wikiwand.com/en/Windows_Registry) and [Microsoft's Website](https://learn.microsoft.com/en-us/windows/win32/sysinfo/registry). ================================================ FILE: docs/content/dev/tweaks/z--Advanced-Tweaks---CAUTION/DeBloat.md ================================================ --- title: "Remove ALL MS Store Apps - NOT RECOMMENDED" description: "" --- ```json {filename="config/tweaks.json",linenos=inline,linenostart=1669} "WPFTweaksDeBloat": { "Content": "Remove ALL MS Store Apps - NOT RECOMMENDED", "Description": "USE WITH CAUTION!!! This will remove ALL Microsoft Store apps.", "category": "z__Advanced Tweaks - CAUTION", "panel": "1", "appx": [ "Microsoft.Microsoft3DViewer", "Microsoft.AppConnector", "Microsoft.BingFinance", "Microsoft.BingNews", "Microsoft.BingSports", "Microsoft.BingTranslator", "Microsoft.BingWeather", "Microsoft.BingFoodAndDrink", "Microsoft.BingHealthAndFitness", "Microsoft.BingTravel", "Clipchamp.Clipchamp", "Microsoft.Todos", "MicrosoftCorporationII.QuickAssist", "Microsoft.MicrosoftStickyNotes", "Microsoft.GetHelp", "Microsoft.GetStarted", "Microsoft.Messaging", "Microsoft.MicrosoftSolitaireCollection", "Microsoft.NetworkSpeedTest", "Microsoft.News", "Microsoft.Office.Lens", "Microsoft.Office.Sway", "Microsoft.Office.OneNote", "Microsoft.OneConnect", "Microsoft.People", "Microsoft.Print3D", "Microsoft.SkypeApp", "Microsoft.Wallet", "Microsoft.Whiteboard", "Microsoft.WindowsAlarms", "Microsoft.WindowsCommunicationsApps", "Microsoft.WindowsFeedbackHub", "Microsoft.WindowsMaps", "Microsoft.WindowsSoundRecorder", "Microsoft.ConnectivityStore", "Microsoft.ScreenSketch", "Microsoft.MixedReality.Portal", "Microsoft.ZuneMusic", "Microsoft.ZuneVideo", "Microsoft.MicrosoftOfficeHub", "MsTeams", "*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*", "*HotspotShieldFreeVPN*", "*Microsoft.Advertising.Xaml*" ], "InvokeScript": [ " $TeamsPath = \"$Env:LocalAppData\\Microsoft\\Teams\\Update.exe\" if (Test-Path $TeamsPath) { Write-Host \"Uninstalling Teams\" Start-Process $TeamsPath -ArgumentList -uninstall -wait Write-Host \"Deleting Teams directory\" Remove-Item $TeamsPath -Recurse -Force } " ], ``` ================================================ FILE: docs/content/dev/tweaks/z--Advanced-Tweaks---CAUTION/DisableBGapps.md ================================================ --- title: "Disable Background Apps" description: "" --- ```json {filename="config/tweaks.json",linenos=inline,linenostart=2133} "WPFTweaksDisableBGapps": { "Content": "Disable Background Apps", "Description": "Disables all Microsoft Store apps from running in the background, which has to be done individually since Windows 11.", "category": "z__Advanced Tweaks - CAUTION", "panel": "1", "registry": [ { "Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\BackgroundAccessApplications", "Name": "GlobalUserDisabled", "Value": "1", "Type": "DWord", "OriginalValue": "0" } ], ``` ## Registry Changes Applications and System Components store and retrieve configuration data to modify windows settings, so we can use the registry to change many settings in one place. You can find information about the registry on [Wikipedia](https://www.wikiwand.com/en/Windows_Registry) and [Microsoft's Website](https://learn.microsoft.com/en-us/windows/win32/sysinfo/registry). ================================================ FILE: docs/content/dev/tweaks/z--Advanced-Tweaks---CAUTION/DisableFSO.md ================================================ --- title: "Disable Fullscreen Optimizations" description: "" --- ```json {filename="config/tweaks.json",linenos=inline,linenostart=2149} "WPFTweaksDisableFSO": { "Content": "Disable Fullscreen Optimizations", "Description": "Disables FSO in all applications. NOTE: This will disable Color Management in Exclusive Fullscreen.", "category": "z__Advanced Tweaks - CAUTION", "panel": "1", "registry": [ { "Path": "HKCU:\\System\\GameConfigStore", "Name": "GameDVR_DXGIHonorFSEWindowsCompatible", "Value": "1", "Type": "DWord", "OriginalValue": "0" } ], ``` ## Registry Changes Applications and System Components store and retrieve configuration data to modify windows settings, so we can use the registry to change many settings in one place. You can find information about the registry on [Wikipedia](https://www.wikiwand.com/en/Windows_Registry) and [Microsoft's Website](https://learn.microsoft.com/en-us/windows/win32/sysinfo/registry). ================================================ FILE: docs/content/dev/tweaks/z--Advanced-Tweaks---CAUTION/DisableIPv6.md ================================================ --- title: "Disable IPv6" description: "" --- ```json {filename="config/tweaks.json",linenos=inline,linenostart=2111} "WPFTweaksDisableIPv6": { "Content": "Disable IPv6", "Description": "Disables IPv6.", "category": "z__Advanced Tweaks - CAUTION", "panel": "1", "registry": [ { "Path": "HKLM:\\SYSTEM\\CurrentControlSet\\Services\\Tcpip6\\Parameters", "Name": "DisabledComponents", "Value": "255", "Type": "DWord", "OriginalValue": "0" } ], "InvokeScript": [ "Disable-NetAdapterBinding -Name * -ComponentID ms_tcpip6" ], "UndoScript": [ "Enable-NetAdapterBinding -Name * -ComponentID ms_tcpip6" ], ``` ## Registry Changes Applications and System Components store and retrieve configuration data to modify windows settings, so we can use the registry to change many settings in one place. You can find information about the registry on [Wikipedia](https://www.wikiwand.com/en/Windows_Registry) and [Microsoft's Website](https://learn.microsoft.com/en-us/windows/win32/sysinfo/registry). ================================================ FILE: docs/content/dev/tweaks/z--Advanced-Tweaks---CAUTION/DisableNotifications.md ================================================ --- title: "Disable Notification Tray/Calendar" description: "" --- ```json {filename="config/tweaks.json",linenos=inline,linenostart=1972} "WPFTweaksDisableNotifications": { "Content": "Disable Notification Tray/Calendar", "Description": "Disables all Notifications INCLUDING Calendar.", "category": "z__Advanced Tweaks - CAUTION", "panel": "1", "registry": [ { "Path": "HKCU:\\Software\\Policies\\Microsoft\\Windows\\Explorer", "Name": "DisableNotificationCenter", "Value": "1", "Type": "DWord", "OriginalValue": "" }, { "Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\PushNotifications", "Name": "ToastEnabled", "Value": "0", "Type": "DWord", "OriginalValue": "1" } ], ``` ## Registry Changes Applications and System Components store and retrieve configuration data to modify windows settings, so we can use the registry to change many settings in one place. You can find information about the registry on [Wikipedia](https://www.wikiwand.com/en/Windows_Registry) and [Microsoft's Website](https://learn.microsoft.com/en-us/windows/win32/sysinfo/registry). ================================================ FILE: docs/content/dev/tweaks/z--Advanced-Tweaks---CAUTION/Display.md ================================================ --- title: "Set Display for Performance" description: "" --- ```json {filename="config/tweaks.json",linenos=inline,linenostart=1547} "WPFTweaksDisplay": { "Content": "Set Display for Performance", "Description": "Sets the system preferences to performance. You can do this manually with sysdm.cpl as well.", "category": "z__Advanced Tweaks - CAUTION", "panel": "1", "registry": [ { "Path": "HKCU:\\Control Panel\\Desktop", "Name": "DragFullWindows", "Value": "0", "Type": "String", "OriginalValue": "1" }, { "Path": "HKCU:\\Control Panel\\Desktop", "Name": "MenuShowDelay", "Value": "200", "Type": "String", "OriginalValue": "400" }, { "Path": "HKCU:\\Control Panel\\Desktop\\WindowMetrics", "Name": "MinAnimate", "Value": "0", "Type": "String", "OriginalValue": "1" }, { "Path": "HKCU:\\Control Panel\\Keyboard", "Name": "KeyboardDelay", "Value": "0", "Type": "DWord", "OriginalValue": "1" }, { "Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced", "Name": "ListviewAlphaSelect", "Value": "0", "Type": "DWord", "OriginalValue": "1" }, { "Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced", "Name": "ListviewShadow", "Value": "0", "Type": "DWord", "OriginalValue": "1" }, { "Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced", "Name": "TaskbarAnimations", "Value": "0", "Type": "DWord", "OriginalValue": "1" }, { "Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\VisualEffects", "Name": "VisualFXSetting", "Value": "3", "Type": "DWord", "OriginalValue": "1" }, { "Path": "HKCU:\\Software\\Microsoft\\Windows\\DWM", "Name": "EnableAeroPeek", "Value": "0", "Type": "DWord", "OriginalValue": "1" }, { "Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced", "Name": "TaskbarMn", "Value": "0", "Type": "DWord", "OriginalValue": "1" }, { "Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced", "Name": "ShowTaskViewButton", "Value": "0", "Type": "DWord", "OriginalValue": "1" }, { "Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Search", "Name": "SearchboxTaskbarMode", "Value": "0", "Type": "DWord", "OriginalValue": "1" } ], "InvokeScript": [ "Set-ItemProperty -Path \"HKCU:\\Control Panel\\Desktop\" -Name \"UserPreferencesMask\" -Type Binary -Value ([byte[]](144,18,3,128,16,0,0,0))" ], "UndoScript": [ "Remove-ItemProperty -Path \"HKCU:\\Control Panel\\Desktop\" -Name \"UserPreferencesMask\"" ], ``` ## Registry Changes Applications and System Components store and retrieve configuration data to modify windows settings, so we can use the registry to change many settings in one place. You can find information about the registry on [Wikipedia](https://www.wikiwand.com/en/Windows_Registry) and [Microsoft's Website](https://learn.microsoft.com/en-us/windows/win32/sysinfo/registry). ================================================ FILE: docs/content/dev/tweaks/z--Advanced-Tweaks---CAUTION/EdgeDebloat.md ================================================ --- title: "Edge Debloat" description: "" --- ```json {filename="config/tweaks.json",linenos=inline,linenostart=1183} "WPFTweaksEdgeDebloat": { "Content": "Edge Debloat", "Description": "Disables various telemetry options, popups, and other annoyances in Edge.", "category": "z__Advanced Tweaks - CAUTION", "panel": "1", "registry": [ { "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\EdgeUpdate", "Name": "CreateDesktopShortcutDefault", "Value": "0", "Type": "DWord", "OriginalValue": "" }, { "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Edge", "Name": "PersonalizationReportingEnabled", "Value": "0", "Type": "DWord", "OriginalValue": "" }, { "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Edge\\ExtensionInstallBlocklist", "Name": "1", "Value": "ofefcgjbeghpigppfmkologfjadafddi", "Type": "String", "OriginalValue": "" }, { "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Edge", "Name": "ShowRecommendationsEnabled", "Value": "0", "Type": "DWord", "OriginalValue": "" }, { "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Edge", "Name": "HideFirstRunExperience", "Value": "1", "Type": "DWord", "OriginalValue": "" }, { "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Edge", "Name": "UserFeedbackAllowed", "Value": "0", "Type": "DWord", "OriginalValue": "" }, { "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Edge", "Name": "ConfigureDoNotTrack", "Value": "1", "Type": "DWord", "OriginalValue": "" }, { "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Edge", "Name": "AlternateErrorPagesEnabled", "Value": "0", "Type": "DWord", "OriginalValue": "" }, { "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Edge", "Name": "EdgeCollectionsEnabled", "Value": "0", "Type": "DWord", "OriginalValue": "" }, { "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Edge", "Name": "EdgeShoppingAssistantEnabled", "Value": "0", "Type": "DWord", "OriginalValue": "" }, { "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Edge", "Name": "MicrosoftEdgeInsiderPromotionEnabled", "Value": "0", "Type": "DWord", "OriginalValue": "" }, { "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Edge", "Name": "ShowMicrosoftRewards", "Value": "0", "Type": "DWord", "OriginalValue": "" }, { "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Edge", "Name": "WebWidgetAllowed", "Value": "0", "Type": "DWord", "OriginalValue": "" }, { "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Edge", "Name": "DiagnosticData", "Value": "0", "Type": "DWord", "OriginalValue": "" }, { "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Edge", "Name": "EdgeAssetDeliveryServiceEnabled", "Value": "0", "Type": "DWord", "OriginalValue": "" }, { "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Edge", "Name": "WalletDonationEnabled", "Value": "0", "Type": "DWord", "OriginalValue": "" } ], ``` ## Registry Changes Applications and System Components store and retrieve configuration data to modify windows settings, so we can use the registry to change many settings in one place. You can find information about the registry on [Wikipedia](https://www.wikiwand.com/en/Windows_Registry) and [Microsoft's Website](https://learn.microsoft.com/en-us/windows/win32/sysinfo/registry). ================================================ FILE: docs/content/dev/tweaks/z--Advanced-Tweaks---CAUTION/IPv46.md ================================================ --- title: "Prefer IPv4 over IPv6" description: "" --- ```json {filename="config/tweaks.json",linenos=inline,linenostart=2073} "WPFTweaksIPv46": { "Content": "Prefer IPv4 over IPv6", "Description": "Setting the IPv4 preference can have latency and security benefits on private networks where IPv6 is not configured.", "category": "z__Advanced Tweaks - CAUTION", "panel": "1", "registry": [ { "Path": "HKLM:\\SYSTEM\\CurrentControlSet\\Services\\Tcpip6\\Parameters", "Name": "DisabledComponents", "Value": "32", "Type": "DWord", "OriginalValue": "0" } ], ``` ## Registry Changes Applications and System Components store and retrieve configuration data to modify windows settings, so we can use the registry to change many settings in one place. You can find information about the registry on [Wikipedia](https://www.wikiwand.com/en/Windows_Registry) and [Microsoft's Website](https://learn.microsoft.com/en-us/windows/win32/sysinfo/registry). ================================================ FILE: docs/content/dev/tweaks/z--Advanced-Tweaks---CAUTION/OOSUbutton.md ================================================ --- title: "Run OO Shutup 10" description: "" --- ```powershell {filename="functions/public/Invoke-WPFOOSU.ps1",linenos=inline,linenostart=1} function Invoke-WPFOOSU { <# .SYNOPSIS Downloads and runs OO Shutup 10 #> try { $OOSU_filepath = "$ENV:temp\OOSU10.exe" $Initial_ProgressPreference = $ProgressPreference $ProgressPreference = "SilentlyContinue" # Disables the Progress Bar to drasticly speed up Invoke-WebRequest Invoke-WebRequest -Uri "https://dl5.oo-software.com/files/ooshutup10/OOSU10.exe" -OutFile $OOSU_filepath Write-Host "Starting OO Shutup 10 ..." Start-Process $OOSU_filepath } catch { Write-Host "Error Downloading and Running OO Shutup 10" -ForegroundColor Red } finally { $ProgressPreference = $Initial_ProgressPreference } } ``` ================================================ FILE: docs/content/dev/tweaks/z--Advanced-Tweaks---CAUTION/RazerBlock.md ================================================ --- title: "Block Razer Software Installs" description: "" --- ```json {filename="config/tweaks.json",linenos=inline,linenostart=1930} "WPFTweaksRazerBlock": { "Content": "Block Razer Software Installs", "Description": "Blocks ALL Razer Software installations. The hardware works fine without any software.", "category": "z__Advanced Tweaks - CAUTION", "panel": "1", "registry": [ { "Path": "HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\DriverSearching", "Name": "SearchOrderConfig", "Value": "0", "Type": "DWord", "OriginalValue": "1" }, { "Path": "HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Device Installer", "Name": "DisableCoInstallers", "Value": "1", "Type": "DWord", "OriginalValue": "0" } ], "InvokeScript": [ " $RazerPath = \"C:\\Windows\\Installer\\Razer\" if (Test-Path $RazerPath) { Remove-Item $RazerPath\\* -Recurse -Force } else { New-Item -Path $RazerPath -ItemType Directory } icacls $RazerPath /deny \"Everyone:(W)\" " ], "UndoScript": [ " icacls \"C:\\Windows\\Installer\\Razer\" /remove:d Everyone " ], ``` ## Registry Changes Applications and System Components store and retrieve configuration data to modify windows settings, so we can use the registry to change many settings in one place. You can find information about the registry on [Wikipedia](https://www.wikiwand.com/en/Windows_Registry) and [Microsoft's Website](https://learn.microsoft.com/en-us/windows/win32/sysinfo/registry). ================================================ FILE: docs/content/dev/tweaks/z--Advanced-Tweaks---CAUTION/RemoveCopilot.md ================================================ --- title: "Disable Microsoft Copilot" description: "" --- ```json {filename="config/tweaks.json",linenos=inline,linenostart=1830} "WPFTweaksRemoveCopilot": { "Content": "Disable Microsoft Copilot", "Description": "Disables MS Copilot AI built into Windows since 23H2.", "category": "z__Advanced Tweaks - CAUTION", "panel": "1", "registry": [ { "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\WindowsCopilot", "Name": "TurnOffWindowsCopilot", "Value": "1", "Type": "DWord", "OriginalValue": "" }, { "Path": "HKCU:\\Software\\Policies\\Microsoft\\Windows\\WindowsCopilot", "Name": "TurnOffWindowsCopilot", "Value": "1", "Type": "DWord", "OriginalValue": "" }, { "Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced", "Name": "ShowCopilotButton", "Value": "0", "Type": "DWord", "OriginalValue": "1" }, { "Path": "HKLM:\\SOFTWARE\\Microsoft\\Windows\\Shell\\Copilot", "Name": "IsCopilotAvailable", "Value": "0", "Type": "DWord", "OriginalValue": "" }, { "Path": "HKLM:\\SOFTWARE\\Microsoft\\Windows\\Shell\\Copilot", "Name": "CopilotDisabledReason", "Value": "IsEnabledForGeographicRegionFailed", "Type": "String", "OriginalValue": "" }, { "Path": "HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\WindowsCopilot", "Name": "AllowCopilotRuntime", "Value": "0", "Type": "DWord", "OriginalValue": "" }, { "Path": "HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Shell Extensions\\Blocked", "Name": "{CB3B0003-8088-4EDE-8769-8B354AB2FF8C}", "Value": "", "Type": "String", "OriginalValue": "" }, { "Path": "HKLM:\\SOFTWARE\\Microsoft\\Windows\\Shell\\Copilot\\BingChat", "Name": "IsUserEligible", "Value": "0", "Type": "DWord", "OriginalValue": "" } ], "InvokeScript": [ " Write-Host \"Remove Copilot\" Get-AppxPackage -AllUsers *Copilot* | Remove-AppxPackage -AllUsers Get-AppxPackage -AllUsers Microsoft.MicrosoftOfficeHub | Remove-AppxPackage -AllUsers $Appx = (Get-AppxPackage MicrosoftWindows.Client.CoreAI).PackageFullName $Sid = (Get-LocalUser $Env:UserName).Sid.Value New-Item \"HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Appx\\AppxAllUserStore\\EndOfLife\\$Sid\\$Appx\" -Force Remove-AppxPackage $Appx " ], "UndoScript": [ " Write-Host \"Install Copilot\" winget install --name Copilot --source msstore --accept-package-agreements --accept-source-agreements --silent " ], ``` ## Registry Changes Applications and System Components store and retrieve configuration data to modify windows settings, so we can use the registry to change many settings in one place. You can find information about the registry on [Wikipedia](https://www.wikiwand.com/en/Windows_Registry) and [Microsoft's Website](https://learn.microsoft.com/en-us/windows/win32/sysinfo/registry). ================================================ FILE: docs/content/dev/tweaks/z--Advanced-Tweaks---CAUTION/RemoveEdge.md ================================================ --- title: "Remove Microsoft Edge" description: "" --- ```json {filename="config/tweaks.json",linenos=inline,linenostart=1442} "WPFTweaksRemoveEdge": { "Content": "Remove Microsoft Edge", "Description": "Unblocks Microsoft Edge uninstaller restrictions then uses that uninstaller to remove Microsoft Edge.", "category": "z__Advanced Tweaks - CAUTION", "panel": "1", "InvokeScript": [ "Invoke-WinUtilRemoveEdge" ], "UndoScript": [ " Write-Host 'Installing Microsoft Edge...' winget install Microsoft.Edge --source winget " ], ``` ================================================ FILE: docs/content/dev/tweaks/z--Advanced-Tweaks---CAUTION/RemoveGallery.md ================================================ --- title: "Remove Gallery from explorer" description: "" --- ```json {filename="config/tweaks.json",linenos=inline,linenostart=1530} "WPFTweaksRemoveGallery": { "Content": "Remove Gallery from explorer", "Description": "Removes the Gallery from Explorer and sets This PC as default.", "category": "z__Advanced Tweaks - CAUTION", "panel": "1", "InvokeScript": [ " Remove-Item \"HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Desktop\\NameSpace\\{e88865ea-0e1c-4e20-9aa6-edcd0212c87c}\" " ], "UndoScript": [ " New-Item \"HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Desktop\\NameSpace\\{e88865ea-0e1c-4e20-9aa6-edcd0212c87c}\" " ], ``` ================================================ FILE: docs/content/dev/tweaks/z--Advanced-Tweaks---CAUTION/RemoveHome.md ================================================ --- title: "Remove Home from Explorer" description: "" --- ```json {filename="config/tweaks.json",linenos=inline,linenostart=1511} "WPFTweaksRemoveHome": { "Content": "Remove Home from Explorer", "Description": "Removes the Home from Explorer and sets This PC as default.", "category": "z__Advanced Tweaks - CAUTION", "panel": "1", "InvokeScript": [ " Remove-Item \"HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Desktop\\NameSpace\\{f874310e-b6b7-47dc-bc84-b9e6b38f5903}\" Set-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced\" -Name LaunchTo -Value 1 " ], "UndoScript": [ " New-Item \"HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Desktop\\NameSpace\\{f874310e-b6b7-47dc-bc84-b9e6b38f5903}\" Set-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced\" -Name LaunchTo -Value 0 " ], ``` ================================================ FILE: docs/content/dev/tweaks/z--Advanced-Tweaks---CAUTION/RemoveOneDrive.md ================================================ --- title: "Remove OneDrive" description: "" --- ```json {filename="config/tweaks.json",linenos=inline,linenostart=1474} "WPFTweaksRemoveOneDrive": { "Content": "Remove OneDrive", "Description": "Denies permission to remove OneDrive user files, then uses its own uninstaller to remove it and restores the original permission afterward.", "category": "z__Advanced Tweaks - CAUTION", "panel": "1", "InvokeScript": [ " # Deny permission to remove OneDrive folder icacls $Env:OneDrive /deny \"Administrators:(D,DC)\" Write-Host \"Uninstalling OneDrive...\" Start-Process 'C:\\Windows\\System32\\OneDriveSetup.exe' -ArgumentList '/uninstall' -Wait # Some of OneDrive files use explorer, and OneDrive uses FileCoAuth Write-Host \"Removing leftover OneDrive Files...\" Stop-Process -Name FileCoAuth,Explorer Remove-Item \"$Env:LocalAppData\\Microsoft\\OneDrive\" -Recurse -Force Remove-Item \"C:\\ProgramData\\Microsoft OneDrive\" -Recurse -Force # Grant back permission to accses OneDrive folder icacls $Env:OneDrive /grant \"Administrators:(D,DC)\" # Disable OneSyncSvc Set-Service -Name OneSyncSvc -StartupType Disabled " ], "UndoScript": [ " Write-Host \"Installing OneDrive\" winget install Microsoft.Onedrive --source winget # Enabled OneSyncSvc Set-Service -Name OneSyncSvc -StartupType Automatic " ], ``` ================================================ FILE: docs/content/dev/tweaks/z--Advanced-Tweaks---CAUTION/RightClickMenu.md ================================================ --- title: "Set Classic Right-Click Menu" description: "" --- ```json {filename="config/tweaks.json",linenos=inline,linenostart=2025} "WPFTweaksRightClickMenu": { "Content": "Set Classic Right-Click Menu", "Description": "Restores the classic context menu when right-clicking in File Explorer, replacing the simplified Windows 11 version.", "category": "z__Advanced Tweaks - CAUTION", "panel": "1", "InvokeScript": [ " New-Item -Path \"HKCU:\\Software\\Classes\\CLSID\\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\" -Name \"InprocServer32\" -force -value \"\" Write-Host Restarting explorer.exe ... Stop-Process -Name \"explorer\" -Force " ], "UndoScript": [ " Remove-Item -Path \"HKCU:\\Software\\Classes\\CLSID\\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\" -Recurse -Confirm:$false -Force # Restarting Explorer in the Undo Script might not be necessary, as the Registry change without restarting Explorer does work, but just to make sure. Write-Host Restarting explorer.exe ... Stop-Process -Name \"explorer\" -Force " ], ``` ================================================ FILE: docs/content/dev/tweaks/z--Advanced-Tweaks---CAUTION/Storage.md ================================================ --- title: "Disable Storage Sense" description: "" --- ```json {filename="config/tweaks.json",linenos=inline,linenostart=1814} "WPFTweaksStorage": { "Content": "Disable Storage Sense", "Description": "Storage Sense deletes temp files automatically.", "category": "z__Advanced Tweaks - CAUTION", "panel": "1", "registry": [ { "Path": "HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\StorageSense\\Parameters\\StoragePolicy", "Name": "01", "Value": "0", "Type": "DWord", "OriginalValue": "1" } ], ``` ## Registry Changes Applications and System Components store and retrieve configuration data to modify windows settings, so we can use the registry to change many settings in one place. You can find information about the registry on [Wikipedia](https://www.wikiwand.com/en/Windows_Registry) and [Microsoft's Website](https://learn.microsoft.com/en-us/windows/win32/sysinfo/registry). ================================================ FILE: docs/content/dev/tweaks/z--Advanced-Tweaks---CAUTION/Teredo.md ================================================ --- title: "Disable Teredo" description: "" --- ```json {filename="config/tweaks.json",linenos=inline,linenostart=2089} "WPFTweaksTeredo": { "Content": "Disable Teredo", "Description": "Teredo network tunneling is a IPv6 feature that can cause additional latency, but may cause problems with some games.", "category": "z__Advanced Tweaks - CAUTION", "panel": "1", "registry": [ { "Path": "HKLM:\\SYSTEM\\CurrentControlSet\\Services\\Tcpip6\\Parameters", "Name": "DisabledComponents", "Value": "1", "Type": "DWord", "OriginalValue": "0" } ], "InvokeScript": [ "netsh interface teredo set state disabled" ], "UndoScript": [ "netsh interface teredo set state default" ], ``` ## Registry Changes Applications and System Components store and retrieve configuration data to modify windows settings, so we can use the registry to change many settings in one place. You can find information about the registry on [Wikipedia](https://www.wikiwand.com/en/Windows_Registry) and [Microsoft's Website](https://learn.microsoft.com/en-us/windows/win32/sysinfo/registry). ================================================ FILE: docs/content/dev/tweaks/z--Advanced-Tweaks---CAUTION/UTC.md ================================================ --- title: "Set Time to UTC (Dual Boot)" description: "" --- ```json {filename="config/tweaks.json",linenos=inline,linenostart=1458} "WPFTweaksUTC": { "Content": "Set Time to UTC (Dual Boot)", "Description": "Essential for computers that are dual booting. Fixes the time sync with Linux Systems.", "category": "z__Advanced Tweaks - CAUTION", "panel": "1", "registry": [ { "Path": "HKLM:\\SYSTEM\\CurrentControlSet\\Control\\TimeZoneInformation", "Name": "RealTimeIsUniversal", "Value": "1", "Type": "QWord", "OriginalValue": "0" } ], ``` ## Registry Changes Applications and System Components store and retrieve configuration data to modify windows settings, so we can use the registry to change many settings in one place. You can find information about the registry on [Wikipedia](https://www.wikiwand.com/en/Windows_Registry) and [Microsoft's Website](https://learn.microsoft.com/en-us/windows/win32/sysinfo/registry). ================================================ FILE: docs/content/dev/tweaks/z--Advanced-Tweaks---CAUTION/XboxRemoval.md ================================================ --- title: "Remove Xbox & Gaming Components" description: "" --- ```json {filename="config/tweaks.json",linenos=inline,linenostart=1646} "WPFTweaksXboxRemoval": { "Content": "Remove Xbox & Gaming Components", "Description": "Removes Xbox services, the Xbox app, Game Bar, and related authentication components.", "category": "z__Advanced Tweaks - CAUTION", "panel": "1", "registry": [ { "Path": "KCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\GameDVR", "Name": "AppCaptureEnabled", "Value": "0", "Type": "DWord", "OriginalValue": "1" } ], "appx": [ "Microsoft.XboxIdentityProvider", "Microsoft.XboxSpeechToTextOverlay", "Microsoft.GamingApp", "Microsoft.Xbox.TCUI", "Microsoft.XboxGamingOverlay" ], ``` ## Registry Changes Applications and System Components store and retrieve configuration data to modify windows settings, so we can use the registry to change many settings in one place. You can find information about the registry on [Wikipedia](https://www.wikiwand.com/en/Windows_Registry) and [Microsoft's Website](https://learn.microsoft.com/en-us/windows/win32/sysinfo/registry). ================================================ FILE: docs/content/dev/tweaks/z--Advanced-Tweaks---CAUTION/_index.md ================================================ --- title: "Advanced Tweaks (CAUTION)" weight: 2 toc: false --- ### Advanced Tweaks (CAUTION) {{< autolinks section="dev/tweaks/z--advanced-tweaks---caution" >}} ================================================ FILE: docs/content/dev/tweaks/z--Advanced-Tweaks---CAUTION/changedns.md ================================================ --- title: "DNS" description: "" --- ```json {filename="config/tweaks.json",linenos=inline,linenostart=2632} "WPFchangedns": { "Content": "DNS", "category": "z__Advanced Tweaks - CAUTION", "panel": "1", "Type": "Combobox", "ComboItems": "Default DHCP Google Cloudflare Cloudflare_Malware Cloudflare_Malware_Adult Open_DNS Quad9 AdGuard_Ads_Trackers AdGuard_Ads_Trackers_Malware_Adult", ``` ================================================ FILE: docs/content/faq.md ================================================ --- title: Frequently Asked Questions toc: true --- ## General Questions ### Is Windows 10 still supported? No. Windows 10 is no longer supported by Winutil because it reached end of support on **October 14, 2025**. Winutil is focused on Windows 11. ### How do I uninstall Winutil? You do not need to uninstall Winutil. Because it runs as a PowerShell script, it is loaded into memory only while it is open. Once you close it, it is removed from memory and does not remain installed on your system. ### Is Winutil safe to use? Yes, Winutil is open source and the code is publicly available on GitHub. Thousands of users run it daily. However, like any system modification tool, you should: - Run it as Administrator (required) - Create a restore point before major changes - Understand what tweaks you're applying - Download only from official sources ### Do I need to keep running Winutil? No. Once you've applied tweaks or installed applications, you can close Winutil. Changes persist after closing. You only need to run Winutil again when you want to make additional changes or undo tweaks. ### Does Winutil require internet access? - **For downloading**: Yes, installing applications requires internet - **For tweaks**: No, most tweaks work offline - **Initial run**: Yes, to download the latest script ### How often is Winutil updated? Winutil is actively maintained with frequent updates. New features, bug fixes, and application additions are released regularly. The script auto-downloads the latest version each time you run it. ## Installation & Running ### How do I run Winutil? 1. Open PowerShell as Administrator 2. Run: `irm "https://christitus.com/win" | iex` 3. Wait for the GUI to appear ### Why do I need Administrator rights? Winutil makes system-level changes (registry edits, service modifications, software installation) that require elevated permissions. Without admin rights, most features won't work. ### The script won't download. What do I do? Try these solutions in order: 1. **Use the direct GitHub link**: ```powershell irm https://github.com/ChrisTitusTech/Winutil/releases/latest/download/Winutil.ps1 | iex ``` 2. **Force TLS 1.2**: ```powershell [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 irm "https://christitus.com/win" | iex ``` > [!NOTE] > On Windows 11, you usually do not need the TLS 1.2 command. Use it only if you hit download or security protocol errors. 3. **Change DNS** to Cloudflare (1.1.1.1) or Google (8.8.8.8) 4. **Use a VPN** if GitHub is blocked in your region ### I get an "Execution Policy" error. How do I fix it? Run this command first to allow script execution: ```powershell Set-ExecutionPolicy Unrestricted -Scope Process -Force irm "https://christitus.com/win" | iex ``` This only affects the current PowerShell session and is safe. ## Tweaks & Modifications ### I applied a tweak and now something doesn't work. What do I do? If you applied a tweak and it breaks something, you can revert it: 1. Open Winutil again 2. Go to the **Tweaks** tab 3. Select the same tweak you applied 4. Click **Undo Selected Tweaks** 5. The system will revert to the previous state Alternatively, use System Restore if you created a restore point. ### Which tweaks are safe to apply? **Safe for everyone (Essential Tweaks)**: - Disable Telemetry - Disable Activity History - Disable Location Tracking - Delete Temporary Files - Run Disk Cleanup - Create Restore Point **Caution needed (Advanced Tweaks)**: - Remove Microsoft Store - Disable Windows Defender - Remove all bloatware - Disable system services Start with Essential Tweaks. Only use Advanced Tweaks if you understand the implications. ### Will tweaks survive Windows Updates? Most tweaks persist through updates, but some may be reset by major Windows feature updates. You may need to reapply certain tweaks afterward. ### Can I create my own tweak presets? Currently, Winutil uses predefined presets (Desktop, Laptop, Minimal, Standard). Custom presets aren't directly supported in the GUI, but you can script your preferred configuration. ### What's the difference between Essential and Advanced tweaks? - **Essential Tweaks**: Safe for most users, improve performance/privacy with minimal risk - **Advanced Tweaks**: More aggressive changes that may break functionality or compatibility. Use with caution. ## Application Installation ### How does Winutil install applications? Winutil uses Windows Package Manager (WinGet) and Chocolatey to automate installations. It downloads applications from official sources and installs them silently without bloatware. ### Can I install multiple applications at once? Yes! Check the boxes for all applications you want, then click "Install Selected". They'll install sequentially. ### WinGet isn't working. How do I fix it? 1. Go to the **Config** tab 2. Find the **Fixes** section 3. Click **WinGet Reinstall** 4. Wait for completion 5. Try installing applications again ### Do installed applications have bloatware or bundled software? No. WinGet and Chocolatey install clean versions of applications without bundled offers, toolbars, or bloatware. ### Can I uninstall applications through Winutil? Winutil focuses on installation. To uninstall: - Use Windows Settings > Apps > Installed Apps - Or use the application's built-in uninstaller ### Will installed apps auto-update? Applications with built-in update mechanisms will auto-update. You can also update them via WinGet/Chocolatey commands or through Winutil's "Upgrade Selected" feature. ## Updates & Maintenance ### Should I disable Windows Updates? Generally, **no**. Security updates are important. However, you might: - Use "Security Updates Only" to avoid feature updates - Pause updates temporarily for stability - Disable only during critical work periods ### How do I re-enable updates after disabling them? 1. Open Winutil 2. Go to the **Updates** tab 3. Click **Enable Updates** 4. Updates will resume normally ### What's the difference between "Security Updates Only" and "Disable Updates"? - **Security Updates Only**: Installs critical security patches, blocks feature updates (major versions) - **Disable Updates**: Blocks ALL updates including security (not recommended) ## Troubleshooting ### Winutil won't open after running the command Possible causes: 1. **Antivirus blocking**: Add PowerShell exception 2. **Not run as Admin**: Restart PowerShell as Administrator 3. **Corrupted download**: Close PowerShell, reopen, try again 4. **Windows Defender**: Allow the script ### My antivirus flags Winutil as malicious This is a false positive. Winutil makes system changes that antivirus programs may flag. The code is open source and audited. Add an exception if needed. ### An application failed to install Troubleshooting steps: 1. Check your internet connection 2. Try installing just that one application 3. Review error messages in the output panel 4. Check if antivirus is blocking 5. Try the WinGet Reinstall fix ### Network tweaks broke my internet connection 1. Open Winutil 2. Go to **Config** > **Fixes** 3. Click **Reset Network** 4. Restart your computer 5. Connection should be restored ### I can't access certain Windows features after applying tweaks Undo the tweaks that might have affected those features: 1. Reopen Winutil 2. Select the tweaks you applied 3. Click **Undo Selected Tweaks** If that doesn't work, use System Restore to revert to a previous state. ## Advanced Topics ### Can I run Winutil on Windows Server? Yes, Winutil works on Windows Server editions, though some features may not be applicable or may behave differently. ### Does Winutil work with Windows LTSC? Yes, Winutil works with Windows 10/11 LTSC editions. Some applications may not be available depending on your configuration. ### Can I use Winutil in a corporate/enterprise environment? Yes, but check your organization's policies first. Some tweaks may conflict with Group Policy or other corporate requirements. ### How do I automate Winutil for multiple PCs? See the [Automation Guide](/userguide/automation/) for details on: - Configuration files - PowerShell parameters - Batch deployment - Silent installation ### Can I contribute to Winutil? Yes! Contributions are welcome: - Report bugs on GitHub Issues - Submit pull requests for fixes/features - Improve documentation - Help others in Discord See the [Contributing Guide](/contributing/) for details. ## Privacy & Security ### Does Winutil collect any data? No, Winutil itself doesn't collect or transmit any user data. It's a local PowerShell script. ### What telemetry does the Disable Telemetry tweak block? It disables: - Windows diagnostic data collection - Activity history tracking - Feedback requests - Usage statistics - Error reporting (optional) ### Is it safe to disable Windows Defender? **Generally not recommended**. Only disable Defender if: - You have alternative antivirus installed - You understand the security risks - You're in a controlled/isolated environment ### Will removing Microsoft Store affect security updates? No, Windows security updates are independent of the Microsoft Store. ## Performance ### Will Winutil make my PC faster? Tweaks can improve performance by: - Reducing background processes - Disabling unnecessary services - Cleaning temporary files - Optimizing startup programs Results vary depending on your system and which tweaks you apply. ### What's the best preset for gaming? Use the **Desktop** preset, then additionally apply: - Disable GameDVR - Ultimate Performance power plan - Disable fullscreen optimizations (Advanced) - Set display for performance (Advanced) ### How much RAM does Winutil use? Winutil itself uses about 50-100 MB while running. Once closed, it is removed from memory. ## Error Messages ### "Access Denied" errors - Ensure PowerShell is running as Administrator - Check if antivirus is blocking changes - Verify you have ownership of files/registry keys ### WinGet configuration prompt won't go away Type `Y` and press Enter in the PowerShell window. This only happens on first use and configures WinGet for your system. ## Still Need Help? Can't find your answer? Try these resources: - **[Known Issues](/knownissues/)** - Check if it's a known problem - **[User Guide](/userguide/)** - Comprehensive documentation - **[Discord Community](https://discord.gg/RUbZUZyByQ)** - Get help from other users - **[GitHub Issues](https://github.com/ChrisTitusTech/winutil/issues)** - Report bugs - **[YouTube Tutorial](https://www.youtube.com/watch?v=6UQZ5oQg8XA)** - Video walkthrough --- **Last Updated**: January 2026 **Found this helpful?** Consider starring the project on [GitHub](https://github.com/ChrisTitusTech/winutil)! ================================================ FILE: docs/content/userguide/_index.md ================================================ --- title: User Guide weight: 2 --- Welcome to the official User Guide for **Winutil**, your all-in-one Windows toolkit. > [!IMPORTANT] > Windows 10 is not supported by Winutil. Windows 10 reached end of support on **October 14, 2025**. ## What is Winutil? Winutil (Chris Titus Tech's Windows Utility) is a comprehensive PowerShell-based tool that helps you: - **Install Applications**: Quickly install popular software without manual downloads - **Apply Tweaks**: Optimize Windows for performance, privacy, and usability - **Fix Issues**: Troubleshoot common Windows problems with one-click fixes - **Manage Updates**: Control how and when Windows updates install - **Access Tools**: Quick access to Windows panels and utilities ## Who Should Use Winutil? Winutil is designed for: - **Home Users**: People who want to optimize their personal PCs - **Power Users**: Users who want fine-grained control over Windows - **IT Professionals**: Teams managing multiple systems efficiently - **Gamers**: Users optimizing systems for gaming performance - **Privacy-Conscious Users**: People reducing telemetry and data collection - **Developers**: Users setting up clean development environments ## Getting Started New to Winutil? Start here: 1. **[Getting Started Guide](getting-started/)** - Installation and first steps 2. **[Applications Guide](application/)** - Learn to install, upgrade, and uninstall software 3. **[Tweaks Guide](tweaks/)** - Optimize your system 4. **[Features & Fixes](features/)** - Troubleshoot common issues 5. **[Win11 Creator](win11Creator/)** - Build a custom debloated Windows 11 ISO ## Main Features ### 🚀 Application Installation Browse and install hundreds of popular applications with a single click. No more hunting for download links or dealing with installer bloat. **[Read the Applications Guide →](application/)** ### ⚙️ System Tweaks Apply optimizations for performance, privacy, and usability. Choose from preset configurations or customize individual tweaks. **[Read the Tweaks Guide →](tweaks/)** ### 🛠️ Config & Fixes Quick fixes for common Windows problems: - Reset network settings - Fix Windows Update issues - Repair system files - Access legacy Windows panels **[Read the Features Guide →](features/)** ### 🔄 Update Management Take control of Windows Updates with options to: - Enable/disable updates - Security updates only - Pause updates - Manage driver updates **[Read the Updates Guide →](updates/)** ### 🤖 Automation Automate Winutil configurations for: - Multiple PC setups - Enterprise deployments - Consistent configurations - Scripted installations **[Read the Automation Guide →](automation/)** ### 💿 Windows 11 Creator Build a custom Windows 11 ISO with bloatware removed, telemetry disabled, and hardware requirement checks bypassed. You can then export it as an ISO file or write it directly to a USB drive. **[Read the Win11 Creator Guide →](win11Creator/)** ## Quick Links | I want to... | Go to... | |--------------|----------| | Install Winutil for the first time | [Getting Started](getting-started/) | | Install, upgrade, or uninstall apps | [Applications Guide](application/) | | Speed up my computer | [Tweaks Guide](tweaks/) | | Fix Windows Update problems | [Features - Fixes](features/) | | Automate setup for multiple PCs | [Automation](automation/) | | Understand what tweaks do | [Tweaks Guide](tweaks/) | | Build a custom Windows 11 ISO | [Win11 Creator](win11Creator/) | ## Safety and Best Practices Before using Winutil: ✅ **Always**: - Run PowerShell as Administrator - Create a system restore point before major changes - Understand what tweaks do before applying them - Start with Essential Tweaks before Advanced ones - Keep backups of important data ❌ **Never**: - Apply all tweaks without understanding them - Skip creating restore points - Use on production systems without testing - Disable security features unnecessarily ## System Requirements - **Operating System**: Windows 11 - **PowerShell**: Version 5.1 or later (included in Windows 11) - **Permissions**: Administrator access required - **Internet**: Required for downloading apps and updates - **.NET Framework**: 4.5+ (usually pre-installed) ## Getting Help Need help? - **📖 Documentation**: You're reading it! Use the navigation menu - **❓ FAQ**: Check [Frequently Asked Questions](../faq/) - **🐛 Known Issues**: Review [Known Issues](../knownissues/) - **💬 Discord**: Join the [community Discord](https://discord.gg/RUbZUZyByQ) - **🐙 GitHub**: Report bugs on [GitHub Issues](https://github.com/ChrisTitusTech/winutil/issues) - **📺 YouTube**: Watch [video tutorials](https://www.youtube.com/watch?v=6UQZ5oQg8XA) ## Contributing Want to help improve Winutil? - **Report Bugs**: Submit issues on GitHub - **Suggest Features**: Open feature requests - **Contribute Code**: Submit pull requests - **Improve Docs**: Help expand this documentation - **Share Knowledge**: Help others in Discord **[Read Contributing Guide →](../contributing/)** ## What's in This Guide? This User Guide covers everything you need to know: 1. **[Getting Started](getting-started/)** - Installation, first run, basic usage 2. **[Applications](application/)** - Installing, upgrading, and uninstalling software 3. **[Tweaks](tweaks/)** - System optimizations and customizations 4. **[Features & Fixes](features/)** - Troubleshooting tools and utilities 5. **[Win11 Creator](win11Creator/)** - Build a custom debloated Windows 11 ISO 6. **[Updates](updates/)** - Managing Windows Update behavior 7. **[Automation](automation/)** - Scripting and batch deployments ## Video Tutorial Watch the complete Winutil overview: {{< youtube id=6UQZ5oQg8XA loading=lazy >}} Ready to get started? Head to the **[Getting Started Guide](getting-started/)**. ================================================ FILE: docs/content/userguide/application/_index.md ================================================ --- title: Applications weight: 3 --- {{< tabs >}} {{< tab name="Installation & Updates" selected=true >}} * Choose the applications you want to install or upgrade. * For programs not currently installed, this action will install them. * For programs already installed, this action will update them to the latest version. * Click the `Install/Upgrade Selected` button to start the installation or upgrade process. {{< /tab >}} {{< tab name="Upgrade All" >}} * Simply press the `Upgrade All` button. * This will upgrade all applicable programs that are installed without the need for individual selection. {{< /tab >}} {{< tab name="Uninstall" >}} * Select the programs you wish to uninstall. * Click the `Uninstall Selected` button to remove the selected programs. {{< /tab >}} {{< tab name="Get Installed" >}} * Click the `Show Installed Apps` button. * This scans for and selects installed applications supported by WinGet. {{< /tab >}} {{< tab name="Clear Selection" >}} * Click the `Clear Selection` button. * This will unselect all checked programs. {{< /tab >}} {{< /tabs >}} {{< image src="images/Install-Tab" alt="Install Image" >}} > [!TIP] > If you have trouble finding an application, press `Ctrl + F` and search for its name. The list filters as you type. ================================================ FILE: docs/content/userguide/automation/_index.md ================================================ --- title: Automation weight: 7 --- Use Automation to run Winutil from an exported configuration file. To create a config file: 1. Open Winutil. 2. Click the gear icon in the top-right corner. 3. Choose **Export**. 4. Save the exported JSON file. Once you have exported a config, launch Winutil with it using this command: ```powershell & ([ScriptBlock]::Create((irm "https://christitus.com/win"))) -Config "C:\Path\To\Config.json" -Run ``` This is useful for: - Applying the same Winutil configuration across multiple Windows 11 PCs - Reusing a known-good baseline after reinstalling Windows - Standardizing deployments for labs, workstations, or personal setups > [!NOTE] > Run the command in an elevated PowerShell session so Winutil can apply system-level changes. ================================================ FILE: docs/content/userguide/features/_index.md ================================================ --- title: Features weight: 5 --- Use the **Features** and **Fixes** sections to install optional Windows components and run common repair tasks. ## Windows Features Install common **Windows features** by selecting the feature checkboxes and clicking **Install Features**. * All .NET Frameworks (2, 3, 4) * Hyper-V Virtualization * Legacy Media (WMP, DirectPlay) * NFS - Network File System * Enable Daily Registry Backup Task 12:30am * Enable Legacy F8 Boot Recovery * Disable Legacy F8 Boot Recovery * Windows Subsystem for Linux * Windows Sandbox ## Fixes Use these one-click fixes for common system problems. * Set Up Autologin * Reset Windows Update * Reset Network * System Corruption Scan * WinGet Reinstall * Remove Adobe Creative Cloud ## Legacy Windows Panels Open old-school Windows panels directly from Winutil. Available panels include: * Control Panel * Network Connections * Power Panel * Region * Sound Settings * System Properties * User Accounts ## Remote Access Enable an OpenSSH server on your Windows machine for remote access. ================================================ FILE: docs/content/userguide/getting-started/_index.md ================================================ --- title: Getting Started weight: 2 --- ## Welcome to Winutil! Winutil is a powerful Windows utility that helps you optimize, customize, and maintain your system. This guide walks you through everything you need to get started. ## System Requirements Before running Winutil, ensure your system meets these requirements: > [!IMPORTANT] > Windows 10 is not supported by Winutil. Windows 10 reached end of support on **October 14, 2025**. - **Operating System**: Windows 11 - **PowerShell**: Version 5.1 or later (included by default in Windows 11) - **Administrator Access**: Required for system-level changes - **Internet Connection**: Required for downloading applications and updates - **.NET Framework**: Version 4.5 or later (usually pre-installed) ## Installation Winutil doesn't require traditional installation. It runs directly from PowerShell as a script. ### Step 1: Open PowerShell as Administrator There are several ways to open PowerShell with admin rights: **Method 1: Start Menu (Recommended)** 1. Right-click the Windows Start button 2. Select "Terminal (Admin)" **Method 2: Search Method** 1. Press the `Windows` key 2. Type "PowerShell" or "Terminal" 3. Press `Ctrl + Shift + Enter` to launch as administrator 4. Or right-click and select "Run as administrator" **Method 3: Run Dialog** 1. Press `Windows + R` 2. Type `powershell` 3. Press `Ctrl + Shift + Enter` ### Step 2: Run the Launch Command Once PowerShell is open with administrator privileges, run one of these commands: **Stable Release (Recommended for most users)** ```powershell irm "https://christitus.com/win" | iex ``` **Development Branch (For testing latest features)** ```powershell irm "https://christitus.com/windev" | iex ``` > [!NOTE] > The `irm` command downloads the script, and `iex` executes it. This is safe when downloading from the official source. ### Step 3: Wait for Winutil to Load The first time you run Winutil, it may take a few moments to: - Download the latest version - Initialize the interface - Load all features and settings ## First Time Setup ### Configure WinGet (If Prompted) On your first run, you may be prompted to configure WinGet (Windows Package Manager). This is normal. 1. When prompted, type `Y` and press Enter 2. Accept the terms and conditions 3. This only needs to be done once ### Understanding the Interface Winutil opens with a clean, tabbed interface: **Main Tabs**: - **Install**: Browse and install applications - **Tweaks**: Apply system optimizations and customizations - **Config**: Access system tools and utilities - **Updates**: Manage Windows updates ## Your First Actions Here are some recommended first steps for new users: ### 1. Create a Restore Point Before making any changes, create a system restore point: 1. Go to the **Tweaks** tab 2. Find "Create Restore Point" under Essential Tweaks 3. Check the box and click **Run Tweaks** This gives you a rollback point if needed. ### 2. Install Essential Applications 1. Navigate to the **Install** tab 2. Browse categories or use the search bar 3. Check applications you want to install 4. Click "Install/Upgrade Selected" at the bottom ### 3. Apply Basic Tweaks For a better Windows experience with minimal risk: 1. Go to the **Tweaks** tab 2. Select the **"Desktop" preset** for a balanced configuration 3. Review the selected tweaks 4. Click **Run Tweaks** ## Common Tasks ### Installing Applications **Single Application**: 1. Open the **Install** tab 2. Search for the application name 3. Check the box next to it 4. Click "Install/Upgrade Selected" **Multiple Applications**: 1. Check multiple application boxes 2. All checked apps will install in sequence 3. Progress is shown in the bottom panel ### Applying Tweaks **Essential Tweaks** (Safe for all users): 1. Go to the **Tweaks** tab 2. Select from the Essential Tweaks section 3. Click **Run Tweaks** **Advanced Tweaks** (Use with caution): 1. Only modify if you understand the implications 2. Always create a restore point first 3. Review documentation for each tweak **Undoing Tweaks**: 1. Select the same tweaks you applied 2. Click **Undo Selected Tweaks** 3. The system reverts to the previous state ### Using Quick Fixes For common Windows issues: 1. Go to the **Config** tab 2. Navigate to the **Fixes** section 3. Select the appropriate fix: - **Reset Network**: Fixes network connectivity issues - **Reset Windows Update**: Resolves update problems - **System Corruption Scan**: Repairs corrupted system files - **WinGet Reinstall**: Fixes package manager issues ### Changing DNS Servers For improved privacy and speed: 1. Go to the **Config** tab or the **Tweaks** tab 2. Find the DNS section 3. Select a provider: - **Cloudflare**: Fast and privacy-focused - **Google**: Reliable and widely used - **Quad9**: Security-focused with malware blocking - **AdGuard**: Blocks ads and trackers 4. Click **Apply** ## Understanding Presets Winutil offers several preset configurations: - **Minimal**: Minimal changes that keep most Windows features - **Standard**: A good middle ground for most users ## Safety Tips ✅ **DO**: - Create restore points before major changes - Read tweak descriptions before applying - Start with Essential Tweaks - Keep Windows up to date - Back up important data ❌ **DON'T**: - Apply all tweaks at once without understanding them - Skip creating restore points - Use Advanced Tweaks without research - Disable security features unless necessary - Run on production systems without testing ## Troubleshooting First Run ### Script Won't Download **If the download fails**: 1. Try the direct GitHub link: ```powershell irm https://github.com/ChrisTitusTech/Winutil/releases/latest/download/Winutil.ps1 | iex ``` 2. Force TLS 1.2: ```powershell [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 irm "https://christitus.com/win" | iex ``` > [!NOTE] > On Windows 11, you usually do not need the TLS 1.2 command. Use it only if you hit download or security protocol errors. ### Execution Policy Error If you get an execution policy error: ```powershell Set-ExecutionPolicy Unrestricted -Scope Process -Force irm "https://christitus.com/win" | iex ``` ### Download Blocked (India/Certain Regions) If downloads are blocked in your region: 1. Use a VPN service 2. Change DNS to Cloudflare (1.1.1.1) or Google (8.8.8.8) 3. Try again ### Interface Doesn't Appear If Winutil downloads but doesn't open: 1. Check if antivirus is blocking it 2. Ensure you ran PowerShell as administrator 3. Try closing and reopening PowerShell 4. Check Windows Defender exclusions ## Next Steps Now that you're set up, explore these guides: - [Applications Guide](../application/) - Learn about installing, upgrading, and uninstalling software - [Tweaks Guide](../tweaks/) - Understand system optimizations - [FAQ](/faq/) - Common questions and answers ## Getting Help If you need assistance: - **Documentation**: Browse this documentation site - **Known Issues**: Check the [Known Issues](/knownissues/) page - **Discord**: Join the [community Discord server](https://discord.gg/RUbZUZyByQ) - **GitHub Issues**: Report bugs on [GitHub](https://github.com/ChrisTitusTech/winutil/issues) - **YouTube**: Watch [video tutorials](https://www.youtube.com/watch?v=6UQZ5oQg8XA) ## Quick Reference Card | Task | Location | Action | | ---- | -------- | ------ | | Install or upgrade apps | Install tab | Check boxes -> Install/Upgrade Selected | | Uninstall apps | Install tab | Check boxes -> Uninstall Selected | | Apply tweaks | Tweaks tab | Select tweaks -> Run Tweaks | | Undo tweaks | Tweaks tab | Select tweaks -> Undo Selected Tweaks | | Create restore point | Tweaks tab | Essential Tweaks section | | Fix network | Config tab | Fixes -> Reset Network | | Change DNS | Tweaks tab | DNS section | | Open Control Panel | Config tab | Legacy Windows Panels | Happy optimizing! ================================================ FILE: docs/content/userguide/tweaks/_index.md ================================================ --- title: Tweaks weight: 4 --- {{< image src="images/Tweaks-Tab" alt="Image of Tweaks Tab" >}} ### Run Tweaks * **Open the Tweaks tab**: Navigate to the **Tweaks** tab in the application. * **Select Tweaks**: Choose the tweaks you want to apply. You can use the presets available at the top for convenience. * **Run Tweaks**: After selecting the desired tweaks, click **Run Tweaks** at the bottom of the screen. ### Undo Tweaks * **Open the Tweaks tab**: Go to the **Tweaks** tab located next to **Install**. * **Select Tweaks to Remove**: Choose the tweaks you want to disable or remove. * **Undo Tweaks**: Click **Undo Selected Tweaks** at the bottom of the screen to apply the changes. ### Essential Tweaks Essential Tweaks are modifications and optimizations that are generally safe for most users to implement. These tweaks are designed to enhance system performance, improve privacy, and reduce unnecessary system activities. They are considered low-risk and are recommended for users who want to ensure their system runs smoothly and efficiently without delving too deeply into complex configurations. The goal of Essential Tweaks is to provide noticeable improvements with minimal risk, making them suitable for a wide range of users, including those who may not have advanced technical knowledge. ### Advanced Tweaks (CAUTION) Advanced Tweaks are intended for experienced users who have a solid understanding of their system and the potential implications of making deep-level changes. These tweaks involve more significant alterations to the operating system and can provide substantial customization. However, they also carry a higher risk of causing system instability or unintended side effects if not implemented correctly. Users who choose to apply Advanced Tweaks should proceed with caution, ensuring they have adequate knowledge and backups in place to recover if something goes wrong. These tweaks are not recommended for novice users or those unfamiliar with the inner workings of their operating system. ### O&O ShutUp10++ [O&O ShutUp10++](https://www.oo-software.com/en/shutup10) can be launched from Winutil with one click. It is a free privacy tool for Windows that helps users manage telemetry, update behavior, and app permission settings. {{< youtube id=3HvNr8eMcv0 loading=lazy >}} ### DNS The utility provides a convenient DNS selection feature, allowing users to choose between various DNS providers for both IPv4 and IPv6. This enables users to optimize their internet connection for speed, security, and privacy according to their specific needs. Here are the available options: * **Default**: Uses the default DNS settings configured by your ISP or network. * **DHCP**: Automatically acquires DNS settings from the DHCP server. * [**Google**](https://developers.google.com/speed/public-dns?hl=en): A reliable and fast DNS service provided by Google. * [**Cloudflare**](https://developers.cloudflare.com/1.1.1.1/): Known for speed and privacy, Cloudflare DNS is a popular choice for enhancing internet performance. * [**Cloudflare_Malware**](https://developers.cloudflare.com/1.1.1.1/setup/#:~:text=Use%20the%20following%20DNS%20resolvers%20to%20block%20malicious%20content%3A): Provides additional protection by blocking malware sites. * [**Cloudflare_Malware_Adult**](https://developers.cloudflare.com/1.1.1.1/setup/#:~:text=Use%20the%20following%20DNS%20resolvers%20to%20block%20malware%20and%20adult%20content%3A): Blocks both malware and adult content, offering more comprehensive filtering. * [**Open_DNS**](https://www.opendns.com/setupguide/#familyshield): Offers customizable filtering and enhanced security features. * [**Quad9**](https://quad9.net/): Focuses on security by blocking known malicious domains. * [**AdGuard_Ads_Trackers**](https://adguard-dns.io/en/welcome.html): AdGuard DNS blocks ads, trackers, and other unwanted DNS requests. Visit the website and sign in for a dashboard, statistics, and additional server-side customization. * [**AdGuard_Ads_Trackers_Malware_Adult**](https://adguard-dns.io/en/welcome.html): AdGuard DNS blocks ads, trackers, malware, and adult content, and enables Safe Search and Safe Mode where possible. ### Customize Preferences The Customize Preferences section allows users to personalize their Windows experience by toggling visual and functional settings. ### Performance Plans The Performance Plans section allows users to manage the Ultimate Performance Profile for maximum performance. #### Add and activate the Ultimate Performance Profile: * Enables and activates the Ultimate Performance Profile to enhance system performance by minimizing latency and increasing efficiency. #### Remove Ultimate Performance Profile: * Deactivates the Ultimate Performance Profile, changing the system to the Balanced Profile. ================================================ FILE: docs/content/userguide/updates/_index.md ================================================ --- title: Updates weight: 6 --- Winutil provides three update modes so you can choose how aggressively Windows Update is managed on your system: - **Default (Out of Box) Settings**: Restores standard Windows Update behavior - **Security (Recommended) Settings**: Prioritizes stability while still receiving security updates - **Disable ALL Updates**: Turns off Windows Update entirely and should only be used with extreme caution ### Default (Out of Box) Settings - **What it does**: Restores the default Windows Update configuration. - **Best for**: Systems where you want Windows to manage updates normally. - **Notes**: This removes custom update settings previously applied by Winutil. If update errors continue, use the reset option in the **Config** tab to restore Microsoft Update services to their default state. ### Security (Recommended) Settings - **What it does**: Applies a more conservative update strategy designed for most users. - **Feature updates**: Delayed by **365 days** to reduce the chance of disruption from major Windows changes. - **Security updates**: Delayed by **4 days** to allow time for early issues to surface while still keeping the system protected. - **Why use it**: This mode offers the best balance between security and stability, which is why it is the recommended option for most PCs. ### Disable ALL Updates (NOT RECOMMENDED!) - **What it does**: Disables all Windows updates. - **Best for**: Highly controlled or special-purpose systems where updates must remain off temporarily. - **Warning**: This leaves the system without security patches and significantly increases security risk. - **Recommendation**: Avoid this mode unless you fully understand the tradeoffs and have a specific reason to use it. ================================================ FILE: docs/content/userguide/win11Creator/_index.md ================================================ --- title: Win11 Creator weight: 8 --- ## Using Winutil's Win11 Creator Winutil includes a built-in **Win11 Creator** tool that lets you take an official Windows 11 ISO and produce a customized, debloated version. The resulting image can remove telemetry, bypass hardware requirement checks, and enable local account setup out of the box. You can export the result as a new ISO file or write it directly to a USB drive. > [!IMPORTANT] > You need an **official Windows 11 ISO** from [Microsoft's website](https://www.microsoft.com/en-us/software-download/windows11) before starting. Custom, modified, or non-official ISOs are not supported. The process uses ~10–15 GB of temporary disk space, so make sure you have room. --- ### Step 1 — Select Your Official Windows 11 ISO 1. Open Winutil and go to the **Win11 Creator** tab. 2. Click **Browse** and select your **official Windows 11 ISO file** from Microsoft (must be 4 GB or larger). Custom or modified ISOs are not supported. 3. The file path and size will appear on screen once selected. --- ### Step 2 — Mount & Verify 1. Click **Mount & Verify ISO**. 2. Winutil mounts the ISO, checks for a valid `install.wim` or `install.esd`, and reads the available editions (Home, Pro, Enterprise, etc.). 3. Once verified, select your desired **edition** from the dropdown — Pro is selected by default if available. > [!NOTE] > This step takes around 10–30 seconds depending on your drive speed. --- ### Step 3 — Run the Modification Click **Run Windows ISO Modification and Creator** to start the customization process. Winutil will: **App & Component Removal:** - **Remove 40+ bloat apps** — Clipchamp, Teams, Copilot, Dev Home, new Outlook, Bing apps, Solitaire, and more - **Delete OneDrive setup** from the image **System Customization:** - **Bypass hardware checks** — removes TPM, Secure Boot, CPU, RAM, and storage requirement enforcement so the ISO installs on unsupported hardware - **Enable local account setup** — injects an `autounattend.xml` that skips the Microsoft account screen during OOBE - **Disable BitLocker and device encryption** — removes startup overhead - **Disable Chat icon** — removes chat taskbar button - **Strip unused editions** — keeps only your selected edition, saving 1–2 GB per removed edition - **Clean the component store** — runs DISM cleanup to reclaim another 300–800 MB **Privacy & Telemetry Tweaks:** - **Disable telemetry** — advertising ID, tailored experiences, input personalization, speech online privacy - **Disable cloud content features** — app suggestions, Microsoft Store recommendations - **Remove telemetry scheduled tasks** — CEIP, Appraiser, WaaSMedic, and others - **Disable OneDrive folder backup** — prevents automatic backups to cloud - **Prevent DevHome and Outlook post-setup installation** - **Prevent Teams installation** — blocks auto-install after OOBE - **Prevent new Outlook Mail app installation** - **Disable Windows Update during OOBE** — re-enabled automatically on first login - **Disable Copilot and search box suggestions** **Optional: Driver Injection** - If enabled, injects all drivers from your current system into the install.wim and boot.wim — useful for offline installations on machines with missing drivers. This is an optional checkbox in Step 3. A live log shows progress as each step completes. This stage usually takes **10–30 minutes** depending on disk speed. The WIM dismount near the end is the slowest part, so do not close Winutil while it is running. --- ### Step 4 — Export Your Result Once modification is complete, choose how to save your image: {{< tabs >}} {{< tab name="Save as ISO" selected=true >}} 1. Click **Save as an ISO File**. 2. Choose a save location (defaults to your Desktop as `Win11_Modified_yyyyMMdd.iso`). 3. Winutil builds a dual BIOS/UEFI bootable ISO using `oscdimg.exe`. > [!NOTE] > `oscdimg.exe` (part of the Windows ADK) is required. If it's not found, Winutil will attempt to install it automatically via winget. If that fails, install it manually: `winget install -e --id Microsoft.OSCDIMG` **Typical output size:** 2.5–3.5 GB (down from 5–6 GB original) {{< /tab >}} {{< tab name="Write to USB" >}} 1. Click **Write Directly to a USB Drive**. 2. Select your USB drive from the dropdown (click **Refresh** if it doesn't appear). 3. Click **Erase & Write to USB** and confirm the warning — **all data on the drive will be permanently erased**. 4. Winutil formats the drive as GPT with a 512 MB EFI partition and copies the modified Windows files. > [!WARNING] > Double-check you have selected the correct drive before confirming. This operation cannot be undone. **Minimum USB size:** 8 GB recommended. Writing takes 10–20 minutes. {{< /tab >}} {{< /tabs >}} --- ### Step 5 — Clean Up (Optional) Click **Clean & Reset** to delete the temporary working directory (~10–15 GB) and return the tool to its initial state, ready for a new ISO. You will be asked to confirm before anything is deleted. --- ### What the Modified ISO Does Differently When you install Windows 11 from your modified ISO: - **No Microsoft account required** — create a local account directly during setup - **No hardware checks** — installs on machines without TPM 2.0, Secure Boot, or supported CPUs - **Dark mode enabled by default** - **Empty taskbar and Start Menu** — no pinned apps, Chat icon removed - **Windows Update disabled during OOBE** — automatically re-enabled on first login to prevent setup interruptions - **BitLocker disabled** — removes startup overhead on first boot --- ### Troubleshooting | Problem | Fix | |---------|-----| | "install.wim not found" | Not a valid Windows 11 ISO — download a fresh one from Microsoft | | "oscdimg.exe not found" | Run `winget install -e --id Microsoft.OSCDIMG` then retry | | USB drive not showing up | Plug it in, wait a few seconds, then click **Refresh** | | Modification seems stuck | The WIM dismount step is slow — wait at least 10 minutes before assuming it's frozen | | "Access Denied" error | Make sure Winutil is running as Administrator | --- Below is a list of free and open-source tools for downloading, creating, and flashing Windows ISOs. ## Download Windows ISOs | Tool | Description | Website | |------|-------------|---------| | **[UUP Dump](https://uupdump.net/)** | Download Windows UUP files directly from Microsoft's servers and convert them into a clean ISO — great for getting the latest builds | [uupdump.net](https://uupdump.net/) | | **[Microsoft Media Creation Tool](https://www.microsoft.com/en-us/software-download/windows11)** | Microsoft's official tool for downloading and creating Windows 11 installation media | [microsoft.com](https://www.microsoft.com/en-us/software-download/windows11) | ## Customize Windows ISOs | Tool | Description | Website | |------|-------------|---------| | **[MicroWin](https://github.com/CodingWonders/microwin)** | A C# desktop app for building stripped-down, customized Windows ISOs — the original predecessor to Winutil's old MicroWin feature | [github.com](https://github.com/CodingWonders/microwin) | | **[Tiny11 Builder](https://github.com/ntdevlabs/tiny11builder)** | PowerShell script that strips a Windows 11 ISO down to the bare minimum — removes bloatware and bypasses hardware requirements | [github.com](https://github.com/ntdevlabs/tiny11builder) | | **[NTLite](https://www.ntlite.com/)** | Remove Windows components, integrate drivers and updates, and build a custom ISO before installation | [ntlite.com](https://www.ntlite.com/) | ## Flash ISOs to USB | Tool | Description | Website | |------|-------------|---------| | **[Rufus](https://rufus.ie/)** | The go-to tool for creating bootable Windows USB drives. Supports bypassing Windows 11 TPM/Secure Boot requirements and downloading ISOs directly | [rufus.ie](https://rufus.ie/) | | **[Ventoy](https://www.ventoy.net/)** | Install once, then just copy any ISO files onto the USB — supports booting multiple ISOs from a single drive without re-flashing | [ventoy.net](https://www.ventoy.net/) | | **[balenaEtcher](https://etcher.balena.io/)** | Simple, beginner-friendly ISO flasher with a clean interface | [etcher.balena.io](https://etcher.balena.io/) | --- > [!TIP] > Already have a Windows 11 ISO? Skip the third-party tools and use Winutil's built-in **[Win11 Creator](#using-winutils-win11-creator)** at the top of this page. > [!NOTE] > Always download Windows ISOs from official Microsoft sources or trusted tools like Rufus/UUP Dump to avoid tampered images. > [!NOTE] > Newer Windows 11 ISOs may not boot correctly on older versions of Ventoy — make sure Ventoy is up to date before use. If issues persist after updating, this is a Ventoy compatibility limitation outside of Winutil's control. ================================================ FILE: docs/go.mod ================================================ module github.com/ChrisTitusTech/WinUtil go 1.26 require github.com/imfing/hextra v0.12.0 // indirect ================================================ FILE: docs/go.sum ================================================ github.com/imfing/hextra v0.9.7 h1:Zg5n24us36Bn/S/5mEUPkRW6uwE6vHHEqWSgN0bPXaM= github.com/imfing/hextra v0.9.7/go.mod h1:cEfel3lU/bSx7lTE/+uuR4GJaphyOyiwNR3PTqFTXpI= github.com/imfing/hextra v0.11.1 h1:8pTc4ReYbzGTHAnyiebmlT3ijFfIXiGu1r7tM/UGjFI= github.com/imfing/hextra v0.11.1/go.mod h1:cEfel3lU/bSx7lTE/+uuR4GJaphyOyiwNR3PTqFTXpI= github.com/imfing/hextra v0.12.0 h1:f6y35hW/WDJEcx9S0dOmbICOBxYE0PmP6IJFsTUgVyY= github.com/imfing/hextra v0.12.0/go.mod h1:YAv8XRNSmcqjieFwI7fVQK1AoY2Do+45DO9HGqxSGu4= ================================================ FILE: docs/hugo.toml ================================================ baseURL = "https://winutil.christitus.com/" languageCode = "en-us" title = "Winutil Documentation" enableGitInfo = true canonifyURLs = true [[module.mounts]] source = "assets" target = "assets" [[module.imports]] path = "github.com/imfing/hextra" [[menu.main]] identifier = "userguide" name = "User Guides" pageRef = "/userguide" weight = 1 [[menu.main]] identifier = "documentation" name = "Developer Documentation" weight = 2 [[menu.main]] identifier = "contribution-guides" name = "Contribution Guides" pageRef = "CONTRIBUTING.md" weight = 1 parent = "documentation" [[menu.main]] identifier = "developer-documentation" name = "Developer Docs" pageRef = "/dev" weight = 2 parent = "documentation" [[menu.main]] identifier = "help" name = "Help" weight = 3 [[menu.main]] identifier = "faq" name = "FAQ" pageRef = "faq.md" weight = 1 parent = "help" [[menu.main]] identifier = "known-issues" name = "Known Issues" pageRef = "KnownIssues.md" weight = 2 parent = "help" [[menu.main]] name = "Store" url = "https://christitus.com/downloads/" weight = 5 [[menu.main]] name = "Search" weight = 6 [menu.main.params] type = "search" [[menu.main]] name = "GitHub" weight = 7 url = "https://github.com/christitustech/Winutil" [menu.main.params] icon = "github" [params] description = "Chris Titus Tech's Windows Utility - Install Programs, Tweaks, Fixes, and Updates" displayUpdatedDate = true dateFormat = "January 2, 2006" [params.navbar] displayTitle = false displayLogo = true [params.navbar.logo] path = "navlogo.png" dark = "navlogo.png" link = "/" width = 150 height = 50 [params.theme] default = "system" displayToggle = true [params.page] width = "wide" [params.footer] enable = true displayCopyright = true displayPoweredBy = false width = "normal" [params.highlight.copy] enable = true display = "hover" [menu] [[menu.sidebar]] name = "Links" weight = 1 [menu.sidebar.params] type = "separator" [[menu.sidebar]] name = "Github Repo ↗" url = "https://github.com/ChrisTitusTech/winutil" weight = 2 [[menu.sidebar]] name = "Discord Server ↗" url = "https://discord.gg/RUbZUZyByQ" weight = 3 [markup] [markup.goldmark] [markup.goldmark.renderer] unsafe = true ================================================ FILE: docs/i18n/en.yaml ================================================ copyright: "©  Chris Titus Tech. All rights reserved." backToTop: "Scroll to top" changeLanguage: "Change language" changeTheme: "Change theme" copy: "Copy" copied: "Copied!" copyAsMarkdown: "Copy as Markdown" copyPage: "Copy Page" copyCode: "Copy code" dark: "Dark" editThisPage: "Edit this page on GitHub →" lastUpdated: "Last updated on" light: "Light" next: "Next" noResultsFound: "No results found." onThisPage: "On this page" poweredBy: "Powered by Chris Titus Tech" previous: "Prev" readMore: "Read more →" searchPlaceholder: "Search..." system: "System" tags: "Tags" viewAsMarkdown: "View as Markdown" ================================================ FILE: docs/layouts/shortcodes/autolinks.html ================================================ {{- $section := .Get "section" | lower -}} {{- $pages := slice -}} {{- range .Site.RegularPages -}} {{- if in .RelPermalink $section -}} {{- $pageTitle := .Title -}} {{- if eq $pageTitle "" -}} {{- $pageTitle = .File.BaseFileName | humanize | title -}} {{- end -}} {{- $pageDesc := .Description -}} {{- $pages = $pages | append (dict "title" $pageTitle "description" $pageDesc "url" .RelPermalink) -}} {{- end -}} {{- end -}}
    {{- range sort $pages "title" "asc" }}
  • {{ .title }}{{ with .description }} - {{ . }}{{ end }}
  • {{- end }}
================================================ FILE: docs/layouts/shortcodes/image.html ================================================ {{/*Retrive Passed Shortcode Parameters*/}} {{ $src := .Get "src" }} {{ $alt := .Get "alt" }} {{/*Define sizes*/}} {{ $Small := 200 }} {{ $Medium := 600 }} {{ $Large := 1000 }} {{/*Define Image variables as global variables to make them easily accessible in this shortcode*/}} {{ $DarkImage := "" }} {{ $DarkSmallImage := "" }} {{ $DarkMediumImage := "" }} {{ $DarkLargeImage := "" }} {{ $LightImage := "" }} {{ $LightSmallImage := "" }} {{ $LightMediumImage := "" }} {{ $LightLargeImage := "" }} {{ $SingleImage := "" }} {{ $SingleSmallImage := "" }} {{ $SingleMediumImage := "" }} {{ $SingleLargeImage := "" }} {{/*Find images and update the previous Single,Dark,Light Images variables*/}} {{ with resources.GetMatch (print $src ".jpg") }} {{ $SingleImage = . }} {{ end }} {{ with resources.GetMatch (print $src "-Dark" ".jpg") }} {{ $DarkImage = . }} {{ end }} {{ with resources.GetMatch (print $src "-Light" ".jpg") }} {{ $LightImage = . }} {{ end }} {{ with resources.GetMatch (print $src ".png") }} {{ $SingleImage = . }} {{ end }} {{ with resources.GetMatch (print $src "-Dark" ".png") }} {{ $DarkImage = . }} {{ end }} {{ with resources.GetMatch (print $src "-Light" ".png") }} {{ $LightImage = . }} {{ end }} {{/*Applying Image Processing*/}} {{ with $SingleImage }} {{ with .Resize (printf "%dx%d webp q50" .Width .Height) }} {{ $SingleImage = . }} {{ end }} {{ end }} {{ with $DarkImage }} {{ with .Resize (printf "%dx%d webp q50" .Width .Height) }} {{ $DarkImage = . }} {{ end }} {{ end }} {{ with $LightImage }} {{ with .Resize (printf "%dx%d webp q50" .Width .Height) }} {{ $LightImage = . }} {{ end }} {{ end }} {{/*Make different sized versions to images if applicable*/}} {{ with $SingleImage }} {{ if gt (.Width) ($Small) }} {{ with .Resize (printf "%dx" $Small) }} {{ $SingleSmallImage = . }} {{ end }} {{ end }} {{ if gt (.Width) ($Medium) }} {{ with .Resize (printf "%dx" $Medium) }} {{ $SingleMediumImage = . }} {{ end }} {{ end }} {{ if gt (.Width) ($Large) }} {{ with .Resize (printf "%dx" $Large) }} {{ $SingleLargeImage = . }} {{ end }} {{ end }} {{ end }} {{ with $DarkImage }} {{ if gt (.Width) ($Small) }} {{ with .Resize (printf "%dx" $Small) }} {{ $DarkSmallImage = . }} {{ end }} {{ end }} {{ if gt (.Width) ($Medium) }} {{ with .Resize (printf "%dx" $Medium) }} {{ $DarkMediumImage = . }} {{ end }} {{ end }} {{ if gt (.Width) ($Large) }} {{ with .Resize (printf "%dx" $Large) }} {{ $DarkLargeImage = . }} {{ end }} {{ end }} {{ end }} {{ with $LightImage }} {{ if gt (.Width) ($Small) }} {{ with .Resize (printf "%dx" $Small) }} {{ $LightSmallImage = . }} {{ end }} {{ end }} {{ if gt (.Width) ($Medium) }} {{ with .Resize (printf "%dx" $Medium) }} {{ $LightMediumImage = . }} {{ end }} {{ end }} {{ if gt (.Width) ($Large) }} {{ with .Resize (printf "%dx" $Large) }} {{ $LightLargeImage = . }} {{ end }} {{ end }} {{ end }} {{ if $SingleImage }} {{ with $SingleSmallImage }}{{ end }} {{ with $SingleMediumImage }}{{ end }} {{ with $SingleLargeImage }}{{ end }} {{ with $SingleImage }}{{ end }} {{ else }} {{ with $DarkSmallImage }}{{ end }} {{ with $DarkMediumImage }}{{ end }} {{ with $DarkLargeImage }}{{ end }} {{ with $DarkImage }}{{ end }} {{ with $LightSmallImage }}{{ end }} {{ with $LightMediumImage }}{{ end }} {{ with $LightLargeImage }}{{ end }} {{ with $LightImage }}{{ end }} {{ with $LightImage }} {{ else with $DarkImage }}{{ end }} {{ end }} ================================================ FILE: docs/static/CNAME ================================================ winutil.christitus.com ================================================ FILE: docs/static/site.webmanifest ================================================ {"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"} ================================================ FILE: functions/private/Add-SelectedAppsMenuItem.ps1 ================================================ function Add-SelectedAppsMenuItem { <# .SYNOPSIS This is a helper function that generates and adds the Menu Items to the Selected Apps Popup. .Parameter name The actual Name of an App like "Chrome" or "Brave" This name is contained in the "Content" property inside the applications.json .PARAMETER key The key which identifies an app object in applications.json For Chrome this would be "WPFInstallchrome" because "WPFInstall" is prepended automatically for each key in applications.json #> param ([string]$name, [string]$key) $selectedAppGrid = New-Object Windows.Controls.Grid $selectedAppGrid.ColumnDefinitions.Add((New-Object System.Windows.Controls.ColumnDefinition -Property @{Width = "*"})) $selectedAppGrid.ColumnDefinitions.Add((New-Object System.Windows.Controls.ColumnDefinition -Property @{Width = "30"})) # Sets the name to the Content as well as the Tooltip, because the parent Popup Border has a fixed width and text could "overflow". # With the tooltip, you can still read the whole entry on hover $selectedAppLabel = New-Object Windows.Controls.Label $selectedAppLabel.Content = $name $selectedAppLabel.ToolTip = $name $selectedAppLabel.HorizontalAlignment = "Left" $selectedAppLabel.SetResourceReference([Windows.Controls.Control]::ForegroundProperty, "MainForegroundColor") [System.Windows.Controls.Grid]::SetColumn($selectedAppLabel, 0) $selectedAppGrid.Children.Add($selectedAppLabel) $selectedAppRemoveButton = New-Object Windows.Controls.Button $selectedAppRemoveButton.FontFamily = "Segoe MDL2 Assets" $selectedAppRemoveButton.Content = [string]([char]0xE711) $selectedAppRemoveButton.HorizontalAlignment = "Center" $selectedAppRemoveButton.Tag = $key $selectedAppRemoveButton.ToolTip = "Remove the App from Selection" $selectedAppRemoveButton.SetResourceReference([Windows.Controls.Control]::ForegroundProperty, "MainForegroundColor") $selectedAppRemoveButton.SetResourceReference([Windows.Controls.Control]::StyleProperty, "HoverButtonStyle") # Highlight the Remove icon on Hover $selectedAppRemoveButton.Add_MouseEnter({ $this.Foreground = "Red" }) $selectedAppRemoveButton.Add_MouseLeave({ $this.SetResourceReference([Windows.Controls.Control]::ForegroundProperty, "MainForegroundColor") }) $selectedAppRemoveButton.Add_Click({ $sync.($this.Tag).isChecked = $false # On click of the remove button, we only have to uncheck the corresponding checkbox. This will kick of all necessary changes to update the UI }) [System.Windows.Controls.Grid]::SetColumn($selectedAppRemoveButton, 1) $selectedAppGrid.Children.Add($selectedAppRemoveButton) # Add new Element to Popup $sync.selectedAppsstackPanel.Children.Add($selectedAppGrid) } ================================================ FILE: functions/private/Find-AppsByNameOrDescription.ps1 ================================================ function Find-AppsByNameOrDescription { <# .SYNOPSIS Searches through the Apps on the Install Tab and hides all entries that do not match the string .PARAMETER SearchString The string to be searched for #> param( [Parameter(Mandatory=$false)] [string]$SearchString = "" ) # Reset the visibility if the search string is empty or the search is cleared if ([string]::IsNullOrWhiteSpace($SearchString)) { $sync.ItemsControl.Items | ForEach-Object { # Each item is a StackPanel container $_.Visibility = [Windows.Visibility]::Visible if ($_.Children.Count -ge 2) { $categoryLabel = $_.Children[0] $wrapPanel = $_.Children[1] # Keep category label visible $categoryLabel.Visibility = [Windows.Visibility]::Visible # Respect the collapsed state of categories (indicated by + prefix) if ($categoryLabel.Content -like "+*") { $wrapPanel.Visibility = [Windows.Visibility]::Collapsed } else { $wrapPanel.Visibility = [Windows.Visibility]::Visible } # Show all apps within the category $wrapPanel.Children | ForEach-Object { $_.Visibility = [Windows.Visibility]::Visible } } } return } # Perform search $sync.ItemsControl.Items | ForEach-Object { # Each item is a StackPanel container with Children[0] = label, Children[1] = WrapPanel if ($_.Children.Count -ge 2) { $categoryLabel = $_.Children[0] $wrapPanel = $_.Children[1] $categoryHasMatch = $false # Keep category label visible $categoryLabel.Visibility = [Windows.Visibility]::Visible # Search through apps in this category $wrapPanel.Children | ForEach-Object { $appEntry = $sync.configs.applicationsHashtable.$($_.Tag) if ($appEntry.Content -like "*$SearchString*" -or $appEntry.Description -like "*$SearchString*") { # Show the App and mark that this category has a match $_.Visibility = [Windows.Visibility]::Visible $categoryHasMatch = $true } else { $_.Visibility = [Windows.Visibility]::Collapsed } } # If category has matches, show the WrapPanel and update the category label to expanded state if ($categoryHasMatch) { $wrapPanel.Visibility = [Windows.Visibility]::Visible $_.Visibility = [Windows.Visibility]::Visible # Update category label to show expanded state (-) if ($categoryLabel.Content -like "+*") { $categoryLabel.Content = $categoryLabel.Content -replace "^\+ ", "- " } } else { # Hide the entire category container if no matches $_.Visibility = [Windows.Visibility]::Collapsed } } } } ================================================ FILE: functions/private/Find-TweaksByNameOrDescription.ps1 ================================================ function Find-TweaksByNameOrDescription { <# .SYNOPSIS Searches through the Tweaks on the Tweaks Tab and hides all entries that do not match the search string .PARAMETER SearchString The string to be searched for #> param( [Parameter(Mandatory=$false)] [string]$SearchString = "" ) # Reset the visibility if the search string is empty or the search is cleared if ([string]::IsNullOrWhiteSpace($SearchString)) { # Show all categories $tweakspanel = $sync.Form.FindName("tweakspanel") $tweakspanel.Children | ForEach-Object { $_.Visibility = [Windows.Visibility]::Visible # Foreach category section, show all items if ($_ -is [Windows.Controls.Border]) { $_.Visibility = [Windows.Visibility]::Visible # Find ItemsControl $dockPanel = $_.Child if ($dockPanel -is [Windows.Controls.DockPanel]) { $itemsControl = $dockPanel.Children | Where-Object { $_ -is [Windows.Controls.ItemsControl] } if ($itemsControl) { # Show items in the category foreach ($item in $itemsControl.Items) { if ($item -is [Windows.Controls.Label]) { $item.Visibility = [Windows.Visibility]::Visible } elseif ($item -is [Windows.Controls.DockPanel] -or $item -is [Windows.Controls.StackPanel]) { $item.Visibility = [Windows.Visibility]::Visible } } } } } } return } # Search for matching tweaks when search string is not null $tweakspanel = $sync.Form.FindName("tweakspanel") $tweakspanel.Children | ForEach-Object { $categoryBorder = $_ $categoryVisible = $false if ($_ -is [Windows.Controls.Border]) { # Find the ItemsControl $dockPanel = $_.Child if ($dockPanel -is [Windows.Controls.DockPanel]) { $itemsControl = $dockPanel.Children | Where-Object { $_ -is [Windows.Controls.ItemsControl] } if ($itemsControl) { $categoryLabel = $null # Process all items in the ItemsControl for ($i = 0; $i -lt $itemsControl.Items.Count; $i++) { $item = $itemsControl.Items[$i] if ($item -is [Windows.Controls.Label]) { $categoryLabel = $item $item.Visibility = [Windows.Visibility]::Collapsed } elseif ($item -is [Windows.Controls.DockPanel]) { $checkbox = $item.Children | Where-Object { $_ -is [Windows.Controls.CheckBox] } | Select-Object -First 1 $label = $item.Children | Where-Object { $_ -is [Windows.Controls.Label] } | Select-Object -First 1 if ($label -and ($label.Content -like "*$SearchString*" -or $label.ToolTip -like "*$SearchString*")) { $item.Visibility = [Windows.Visibility]::Visible if ($categoryLabel) { $categoryLabel.Visibility = [Windows.Visibility]::Visible } $categoryVisible = $true } else { $item.Visibility = [Windows.Visibility]::Collapsed } } elseif ($item -is [Windows.Controls.StackPanel]) { # StackPanel which contain checkboxes or other elements $checkbox = $item.Children | Where-Object { $_ -is [Windows.Controls.CheckBox] } | Select-Object -First 1 if ($checkbox -and ($checkbox.Content -like "*$SearchString*" -or $checkbox.ToolTip -like "*$SearchString*")) { $item.Visibility = [Windows.Visibility]::Visible if ($categoryLabel) { $categoryLabel.Visibility = [Windows.Visibility]::Visible } $categoryVisible = $true } else { $item.Visibility = [Windows.Visibility]::Collapsed } } } } } # Set the visibility based on if any item matched $categoryBorder.Visibility = if ($categoryVisible) { [Windows.Visibility]::Visible } else { [Windows.Visibility]::Collapsed } } } } ================================================ FILE: functions/private/Get-LocalizedYesNo.ps1 ================================================ function Get-LocalizedYesNo { <# .SYNOPSIS This function runs choice.exe and captures its output to extract yes no in a localized Windows .DESCRIPTION The function retrieves the output of the command 'cmd /c "choice nul"' and converts the default output for Yes and No in the localized format, such as "Yes=, No=". .EXAMPLE $yesNoArray = Get-LocalizedYesNo Write-Host "Yes=$($yesNoArray[0]), No=$($yesNoArray[1])" #> # Run choice and capture its options as output # The output shows the options for Yes and No as "[Y,N]?" in the (partially) localized format. # eg. English: [Y,N]? # Dutch: [Y,N]? # German: [J,N]? # French: [O,N]? # Spanish: [S,N]? # Italian: [S,N]? # Russian: [Y,N]? $line = cmd /c "choice nul" $charactersArray = @() $regexPattern = '([a-zA-Z])' $charactersArray = [regex]::Matches($line, $regexPattern) | ForEach-Object { $_.Groups[1].Value } Write-Debug "According to takeown.exe local Yes is $charactersArray[0]" # Return the array of characters return $charactersArray } ================================================ FILE: functions/private/Get-WPFObjectName.ps1 ================================================ function Get-WPFObjectName { <# .SYNOPSIS This is a helper function that generates an objectname with the prefix WPF that can be used as a Powershell Variable after compilation. To achieve this, all characters that are not a-z, A-Z or 0-9 are simply removed from the name. .PARAMETER type The type of object for which the name should be generated. (e.g. Label, Button, CheckBox...) .PARAMETER name The name or description to be used for the object. (invalid characters are removed) .OUTPUTS A string that can be used as a object/variable name in powershell. For example: WPFLabelMicrosoftTools .EXAMPLE Get-WPFObjectName -type Label -name "Microsoft Tools" #> param( [Parameter(Mandatory, position=0)] [string]$type, [Parameter(position=1)] [string]$name ) $Output = $("WPF"+$type+$name) -replace '[^a-zA-Z0-9]', '' return $Output } ================================================ FILE: functions/private/Get-WinUtilInstallerProcess.ps1 ================================================ function Get-WinUtilInstallerProcess { <# .SYNOPSIS Checks if the given process is running .PARAMETER Process The process to check .OUTPUTS Boolean - True if the process is running #> param($Process) if ($Null -eq $Process) { return $false } if (Get-Process -Id $Process.Id -ErrorAction SilentlyContinue) { return $true } return $false } ================================================ FILE: functions/private/Get-WinUtilSelectedPackages.ps1 ================================================ function Get-WinUtilSelectedPackages { <# .SYNOPSIS Sorts given packages based on installer preference and availability. .OUTPUTS Hashtable. Key = Package Manager, Value = ArrayList of packages to install #> param ( [Parameter(Mandatory=$true)] $PackageList, [Parameter(Mandatory=$true)] [PackageManagers]$Preference ) if ($PackageList.count -eq 1) { Invoke-WPFUIThread -ScriptBlock { Set-WinUtilTaskbaritem -state "Indeterminate" -value 0.01 -overlay "logo" } } else { Invoke-WPFUIThread -ScriptBlock { Set-WinUtilTaskbaritem -state "Normal" -value 0.01 -overlay "logo" } } $packages = [System.Collections.Hashtable]::new() $packagesWinget = [System.Collections.ArrayList]::new() $packagesChoco = [System.Collections.ArrayList]::new() $packages[[PackageManagers]::Winget] = $packagesWinget $packages[[PackageManagers]::Choco] = $packagesChoco Write-Debug "Checking packages using Preference '$($Preference)'" foreach ($package in $PackageList) { switch ($Preference) { "Choco" { if ($package.choco -eq "na") { Write-Debug "$($package.content) has no Choco value." $null = $packagesWinget.add($($package.winget)) Write-Host "Queueing $($package.winget) for Winget" } else { $null = $packagesChoco.add($package.choco) Write-Host "Queueing $($package.choco) for Chocolatey" } break } "Winget" { if ($package.winget -eq "na") { Write-Debug "$($package.content) has no Winget value." $null = $packagesChoco.add($package.choco) Write-Host "Queueing $($package.choco) for Chocolatey" } else { $null = $packagesWinget.add($($package.winget)) Write-Host "Queueing $($package.winget) for Winget" } break } } } return $packages } ================================================ FILE: functions/private/Get-WinUtilToggleStatus.ps1 ================================================ Function Get-WinUtilToggleStatus { <# .SYNOPSIS Pulls the registry keys for the given toggle switch and checks whether the toggle should be checked or unchecked .PARAMETER ToggleSwitch The name of the toggle to check .OUTPUTS Boolean to set the toggle's status to #> Param($ToggleSwitch) $ToggleSwitchReg = $sync.configs.tweaks.$ToggleSwitch.registry try { if (($ToggleSwitchReg.path -imatch "hku") -and !(Get-PSDrive -Name HKU -ErrorAction SilentlyContinue)) { $null = (New-PSDrive -PSProvider Registry -Name HKU -Root HKEY_USERS) if (Get-PSDrive -Name HKU -ErrorAction SilentlyContinue) { Write-Debug "HKU drive created successfully" } else { Write-Debug "Failed to create HKU drive" } } } catch { Write-Error "An error occurred regarding the HKU Drive: $_" return $false } if ($ToggleSwitchReg) { $count = 0 foreach ($regentry in $ToggleSwitchReg) { try { if (!(Test-Path $regentry.Path)) { New-Item -Path $regentry.Path -Force | Out-Null } $regstate = (Get-ItemProperty -path $regentry.Path).$($regentry.Name) if ($regstate -eq $regentry.Value) { $count += 1 Write-Debug "$($regentry.Name) is true (state: $regstate, value: $($regentry.Value), original: $($regentry.OriginalValue))" } else { Write-Debug "$($regentry.Name) is false (state: $regstate, value: $($regentry.Value), original: $($regentry.OriginalValue))" } if ($null -eq $regstate) { switch ($regentry.DefaultState) { "true" { $regstate = $regentry.Value $count += 1 } "false" { $regstate = $regentry.OriginalValue } default { Write-Error "Entry for $($regentry.Name) does not exist and no DefaultState is defined." $regstate = $regentry.OriginalValue } } } } catch { Write-Error "An unexpected error occurred: $_" } } if ($count -eq $ToggleSwitchReg.Count) { Write-Debug "$($ToggleSwitchReg.Name) is true (count: $count)" return $true } else { Write-Debug "$($ToggleSwitchReg.Name) is false (count: $count)" return $false } } else { return $false } } ================================================ FILE: functions/private/Get-WinUtilVariables.ps1 ================================================ function Get-WinUtilVariables { <# .SYNOPSIS Gets every form object of the provided type .OUTPUTS List containing every object that matches the provided type #> param ( [Parameter()] [string[]]$Type ) $keys = ($sync.keys).where{ $_ -like "WPF*" } if ($Type) { $output = $keys | ForEach-Object { try { $objType = $sync["$psitem"].GetType().Name if ($Type -contains $objType) { Write-Output $psitem } } catch { <#I am here so errors don't get outputted for a couple variables that don't have the .GetType() attribute#> } } return $output } return $keys } ================================================ FILE: functions/private/Hide-WPFInstallAppBusy.ps1 ================================================ function Hide-WPFInstallAppBusy { <# .SYNOPSIS Hides the busy overlay in the install app area of the WPF form. This is used to indicate that an install or uninstall has finished. #> Invoke-WPFUIThread -ScriptBlock { $sync.InstallAppAreaOverlay.Visibility = [Windows.Visibility]::Collapsed $sync.InstallAppAreaBorder.IsEnabled = $true $sync.InstallAppAreaScrollViewer.Effect.Radius = 0 } } ================================================ FILE: functions/private/Initialize-InstallAppArea.ps1 ================================================ function Initialize-InstallAppArea { <# .SYNOPSIS Creates a [Windows.Controls.ScrollViewer] containing a [Windows.Controls.ItemsControl] which is setup to use Virtualization to only load the visible elements for performance reasons. This is used as the parent object for all category and app entries on the install tab Used to as part of the Install Tab UI generation Also creates an overlay with a progress bar and text to indicate that an install or uninstall is in progress .PARAMETER TargetElement The element to which the AppArea should be added #> param($TargetElement) $targetGrid = $sync.Form.FindName($TargetElement) $null = $targetGrid.Children.Clear() # Create the outer Border for the aren where the apps will be placed $Border = New-Object Windows.Controls.Border $Border.VerticalAlignment = "Stretch" $Border.SetResourceReference([Windows.Controls.Control]::StyleProperty, "BorderStyle") $sync.InstallAppAreaBorder = $Border # Add a ScrollViewer, because the ItemsControl does not support scrolling by itself $scrollViewer = New-Object Windows.Controls.ScrollViewer $scrollViewer.VerticalScrollBarVisibility = 'Auto' $scrollViewer.HorizontalAlignment = 'Stretch' $scrollViewer.VerticalAlignment = 'Stretch' $scrollViewer.CanContentScroll = $true $sync.InstallAppAreaScrollViewer = $scrollViewer $Border.Child = $scrollViewer # Initialize the Blur Effect for the ScrollViewer, which will be used to indicate that an install/uninstall is in progress $blurEffect = New-Object Windows.Media.Effects.BlurEffect $blurEffect.Radius = 0 $scrollViewer.Effect = $blurEffect ## Create the ItemsControl, which will be the parent of all the app entries $itemsControl = New-Object Windows.Controls.ItemsControl $itemsControl.HorizontalAlignment = 'Stretch' $itemsControl.VerticalAlignment = 'Stretch' $scrollViewer.Content = $itemsControl # Use WrapPanel to create dynamic columns based on AppEntryWidth and window width $itemsPanelTemplate = New-Object Windows.Controls.ItemsPanelTemplate $factory = New-Object Windows.FrameworkElementFactory ([Windows.Controls.WrapPanel]) $factory.SetValue([Windows.Controls.WrapPanel]::OrientationProperty, [Windows.Controls.Orientation]::Horizontal) $factory.SetValue([Windows.Controls.WrapPanel]::HorizontalAlignmentProperty, [Windows.HorizontalAlignment]::Left) $itemsPanelTemplate.VisualTree = $factory $itemsControl.ItemsPanel = $itemsPanelTemplate # Add the Border containing the App Area to the target Grid $targetGrid.Children.Add($Border) | Out-Null $overlay = New-Object Windows.Controls.Border $overlay.CornerRadius = New-Object Windows.CornerRadius(10) $overlay.SetResourceReference([Windows.Controls.Control]::BackgroundProperty, "AppInstallOverlayBackgroundColor") $overlay.Visibility = [Windows.Visibility]::Collapsed # Also add the overlay to the target Grid on top of the App Area $targetGrid.Children.Add($overlay) | Out-Null $sync.InstallAppAreaOverlay = $overlay $overlayText = New-Object Windows.Controls.TextBlock $overlayText.Text = "Installing apps..." $overlayText.HorizontalAlignment = 'Center' $overlayText.VerticalAlignment = 'Center' $overlayText.SetResourceReference([Windows.Controls.TextBlock]::ForegroundProperty, "MainForegroundColor") $overlayText.Background = "Transparent" $overlayText.SetResourceReference([Windows.Controls.TextBlock]::FontSizeProperty, "HeaderFontSize") $overlayText.SetResourceReference([Windows.Controls.TextBlock]::FontFamilyProperty, "MainFontFamily") $overlayText.SetResourceReference([Windows.Controls.TextBlock]::FontWeightProperty, "MainFontWeight") $overlayText.SetResourceReference([Windows.Controls.TextBlock]::MarginProperty, "MainMargin") $sync.InstallAppAreaOverlayText = $overlayText $progressbar = New-Object Windows.Controls.ProgressBar $progressbar.Name = "ProgressBar" $progressbar.Width = 250 $progressbar.Height = 50 $sync.ProgressBar = $progressbar # Add a TextBlock overlay for the progress bar text $progressBarTextBlock = New-Object Windows.Controls.TextBlock $progressBarTextBlock.Name = "progressBarTextBlock" $progressBarTextBlock.FontWeight = [Windows.FontWeights]::Bold $progressBarTextBlock.FontSize = 16 $progressBarTextBlock.Width = $progressbar.Width $progressBarTextBlock.Height = $progressbar.Height $progressBarTextBlock.SetResourceReference([Windows.Controls.TextBlock]::ForegroundProperty, "ProgressBarTextColor") $progressBarTextBlock.TextTrimming = "CharacterEllipsis" $progressBarTextBlock.Background = "Transparent" $sync.progressBarTextBlock = $progressBarTextBlock # Create a Grid to overlay the text on the progress bar $progressGrid = New-Object Windows.Controls.Grid $progressGrid.Width = $progressbar.Width $progressGrid.Height = $progressbar.Height $progressGrid.Margin = "0,10,0,10" $progressGrid.Children.Add($progressbar) | Out-Null $progressGrid.Children.Add($progressBarTextBlock) | Out-Null $overlayStackPanel = New-Object Windows.Controls.StackPanel $overlayStackPanel.Orientation = "Vertical" $overlayStackPanel.HorizontalAlignment = 'Center' $overlayStackPanel.VerticalAlignment = 'Center' $overlayStackPanel.Children.Add($overlayText) | Out-Null $overlayStackPanel.Children.Add($progressGrid) | Out-Null $overlay.Child = $overlayStackPanel return $itemsControl } ================================================ FILE: functions/private/Initialize-InstallAppEntry.ps1 ================================================ function Initialize-InstallAppEntry { <# .SYNOPSIS Creates the app entry to be placed on the install tab for a given app Used to as part of the Install Tab UI generation .PARAMETER TargetElement The Element into which the Apps should be placed .PARAMETER appKey The Key of the app inside the $sync.configs.applicationsHashtable #> param( [Windows.Controls.WrapPanel]$TargetElement, $appKey ) # Create the outer Border for the application type $border = New-Object Windows.Controls.Border $border.Style = $sync.Form.Resources.AppEntryBorderStyle $border.Tag = $appKey $border.ToolTip = $Apps.$appKey.description $border.Add_MouseLeftButtonUp({ $childCheckbox = ($this.Child | Where-Object {$_.Template.TargetType -eq [System.Windows.Controls.Checkbox]})[0] $childCheckBox.isChecked = -not $childCheckbox.IsChecked }) $border.Add_MouseEnter({ if (($sync.$($this.Tag).IsChecked) -eq $false) { $this.SetResourceReference([Windows.Controls.Control]::BackgroundProperty, "AppInstallHighlightedColor") } }) $border.Add_MouseLeave({ if (($sync.$($this.Tag).IsChecked) -eq $false) { $this.SetResourceReference([Windows.Controls.Control]::BackgroundProperty, "AppInstallUnselectedColor") } }) $border.Add_MouseRightButtonUp({ # Store the selected app in a global variable so it can be used in the popup $sync.appPopupSelectedApp = $this.Tag # Set the popup position to the current mouse position $sync.appPopup.PlacementTarget = $this $sync.appPopup.IsOpen = $true }) $checkBox = New-Object Windows.Controls.CheckBox # Sanitize the name for WPF $checkBox.Name = $appKey -replace '-', '_' # Store the original appKey in Tag $checkBox.Tag = $appKey $checkbox.Style = $sync.Form.Resources.AppEntryCheckboxStyle $checkbox.Add_Checked({ Invoke-WPFSelectedCheckboxesUpdate -type "Add" -checkboxName $this.Parent.Tag $borderElement = $this.Parent $borderElement.SetResourceReference([Windows.Controls.Control]::BackgroundProperty, "AppInstallSelectedColor") }) $checkbox.Add_Unchecked({ Invoke-WPFSelectedCheckboxesUpdate -type "Remove" -checkboxName $this.Parent.Tag $borderElement = $this.Parent $borderElement.SetResourceReference([Windows.Controls.Control]::BackgroundProperty, "AppInstallUnselectedColor") }) # Create the TextBlock for the application name $appName = New-Object Windows.Controls.TextBlock $appName.Style = $sync.Form.Resources.AppEntryNameStyle $appName.Text = $Apps.$appKey.content # Change color to Green if FOSS if ($Apps.$appKey.foss -eq $true) { $appName.SetResourceReference([Windows.Controls.Control]::ForegroundProperty, "FOSSColor") $appName.FontWeight = "Bold" } # Add the name to the Checkbox $checkBox.Content = $appName # Add accessibility properties to make the elements screen reader friendly $checkBox.SetValue([Windows.Automation.AutomationProperties]::NameProperty, $Apps.$appKey.content) $border.SetValue([Windows.Automation.AutomationProperties]::NameProperty, $Apps.$appKey.content) $border.Child = $checkBox # Add the border to the corresponding Category $TargetElement.Children.Add($border) | Out-Null return $checkbox } ================================================ FILE: functions/private/Initialize-InstallCategoryAppList.ps1 ================================================ function Initialize-InstallCategoryAppList { <# .SYNOPSIS Clears the Target Element and sets up a "Loading" message. This is done, because loading of all apps can take a bit of time in some scenarios Iterates through all Categories and Apps and adds them to the UI Used to as part of the Install Tab UI generation .PARAMETER TargetElement The Element into which the Categories and Apps should be placed .PARAMETER Apps The Hashtable of Apps to be added to the UI The Categories are also extracted from the Apps Hashtable #> param( $TargetElement, $Apps ) # Pre-group apps by category $appsByCategory = @{} foreach ($appKey in $Apps.Keys) { $category = $Apps.$appKey.Category if (-not $appsByCategory.ContainsKey($category)) { $appsByCategory[$category] = @() } $appsByCategory[$category] += $appKey } foreach ($category in $($appsByCategory.Keys | Sort-Object)) { # Create a container for category label + apps $categoryContainer = New-Object Windows.Controls.StackPanel $categoryContainer.Orientation = "Vertical" $categoryContainer.Margin = New-Object Windows.Thickness(0, 0, 0, 0) $categoryContainer.HorizontalAlignment = [Windows.HorizontalAlignment]::Stretch # Bind Width to the ItemsControl's ActualWidth to force full-row layout in WrapPanel $binding = New-Object Windows.Data.Binding $binding.Path = New-Object Windows.PropertyPath("ActualWidth") $binding.RelativeSource = New-Object Windows.Data.RelativeSource([Windows.Data.RelativeSourceMode]::FindAncestor, [Windows.Controls.ItemsControl], 1) [void][Windows.Data.BindingOperations]::SetBinding($categoryContainer, [Windows.FrameworkElement]::WidthProperty, $binding) # Add category label to container $toggleButton = New-Object Windows.Controls.Label $toggleButton.Content = "- $Category" $toggleButton.Tag = "CategoryToggleButton" $toggleButton.SetResourceReference([Windows.Controls.Control]::FontSizeProperty, "HeaderFontSize") $toggleButton.SetResourceReference([Windows.Controls.Control]::FontFamilyProperty, "HeaderFontFamily") $toggleButton.SetResourceReference([Windows.Controls.Control]::ForegroundProperty, "LabelboxForegroundColor") $toggleButton.Cursor = [System.Windows.Input.Cursors]::Hand $toggleButton.HorizontalAlignment = [Windows.HorizontalAlignment]::Stretch $sync.$Category = $toggleButton # Add click handler to toggle category visibility $toggleButton.Add_MouseLeftButtonUp({ param($sender, $e) # Find the parent StackPanel (categoryContainer) $categoryContainer = $sender.Parent if ($categoryContainer -and $categoryContainer.Children.Count -ge 2) { # The WrapPanel is the second child $wrapPanel = $categoryContainer.Children[1] # Toggle visibility if ($wrapPanel.Visibility -eq [Windows.Visibility]::Visible) { $wrapPanel.Visibility = [Windows.Visibility]::Collapsed # Change - to + $sender.Content = $sender.Content -replace "^- ", "+ " } else { $wrapPanel.Visibility = [Windows.Visibility]::Visible # Change + to - $sender.Content = $sender.Content -replace "^\+ ", "- " } } }) $null = $categoryContainer.Children.Add($toggleButton) # Add wrap panel for apps to container $wrapPanel = New-Object Windows.Controls.WrapPanel $wrapPanel.Orientation = "Horizontal" $wrapPanel.HorizontalAlignment = "Left" $wrapPanel.VerticalAlignment = "Top" $wrapPanel.Margin = New-Object Windows.Thickness(0, 0, 0, 0) $wrapPanel.Visibility = [Windows.Visibility]::Visible $wrapPanel.Tag = "CategoryWrapPanel_$category" $null = $categoryContainer.Children.Add($wrapPanel) # Add the entire category container to the target element $null = $TargetElement.Items.Add($categoryContainer) # Add apps to the wrap panel $appsByCategory[$category] | Sort-Object | ForEach-Object { $sync.$_ = $(Initialize-InstallAppEntry -TargetElement $wrapPanel -AppKey $_) } } } ================================================ FILE: functions/private/Install-WinUtilChoco.ps1 ================================================ function Install-WinUtilChoco { <# .SYNOPSIS Installs Chocolatey if it is not already installed #> if ((Test-WinUtilPackageManager -choco) -eq "installed") { return } Write-Host "Chocolatey is not installed, installing now." Invoke-WebRequest -Uri https://community.chocolatey.org/install.ps1 -UseBasicParsing | Invoke-Expression } ================================================ FILE: functions/private/Install-WinUtilProgramChoco.ps1 ================================================ function Install-WinUtilProgramChoco { <# .SYNOPSIS Manages the installation or uninstallation of a list of Chocolatey packages. .PARAMETER Programs A string array containing the programs to be installed or uninstalled. .PARAMETER Action Specifies the action to perform: "Install" or "Uninstall". The default value is "Install". .DESCRIPTION This function processes a list of programs to be managed using Chocolatey. Depending on the specified action, it either installs or uninstalls each program in the list, updating the taskbar progress accordingly. After all operations are completed, temporary output files are cleaned up. .EXAMPLE Install-WinUtilProgramChoco -Programs @("7zip","chrome") -Action "Uninstall" #> param( [Parameter(Mandatory, Position = 0)] [string[]]$Programs, [Parameter(Position = 1)] [String]$Action = "Install" ) function Initialize-OutputFile { <# .SYNOPSIS Initializes an output file by removing any existing file and creating a new, empty file at the specified path. .PARAMETER filePath The full path to the file to be initialized. .DESCRIPTION This function ensures that the specified file is reset by removing any existing file at the provided path and then creating a new, empty file. It is useful when preparing a log or output file for subsequent operations. .EXAMPLE Initialize-OutputFile -filePath "C:\temp\output.txt" #> param ($filePath) Remove-Item -Path $filePath -Force -ErrorAction SilentlyContinue New-Item -ItemType File -Path $filePath | Out-Null } function Invoke-ChocoCommand { <# .SYNOPSIS Executes a Chocolatey command with the specified arguments and returns the exit code. .PARAMETER arguments The arguments to be passed to the Chocolatey command. .DESCRIPTION This function runs a specified Chocolatey command by passing the provided arguments to the `choco` executable. It waits for the process to complete and then returns the exit code, allowing the caller to determine success or failure based on the exit code. .RETURNS [int] The exit code of the Chocolatey command. .EXAMPLE $exitCode = Invoke-ChocoCommand -arguments "install 7zip -y" #> param ($arguments) return (Start-Process -FilePath "choco" -ArgumentList $arguments -Wait -PassThru).ExitCode } function Test-UpgradeNeeded { <# .SYNOPSIS Checks if an upgrade is needed for a Chocolatey package based on the content of a log file. .PARAMETER filePath The path to the log file that contains the output of a Chocolatey install command. .DESCRIPTION This function reads the specified log file and checks for keywords that indicate whether an upgrade is needed. It returns a boolean value indicating whether the terms "reinstall" or "already installed" are present, which suggests that the package might need an upgrade. .RETURNS [bool] True if the log file indicates that an upgrade is needed; otherwise, false. .EXAMPLE $isUpgradeNeeded = Test-UpgradeNeeded -filePath "C:\temp\install-output.txt" #> param ($filePath) return Get-Content -Path $filePath | Select-String -Pattern "reinstall|already installed" -Quiet } function Update-TaskbarProgress { <# .SYNOPSIS Updates the taskbar progress based on the current installation progress. .PARAMETER currentIndex The current index of the program being installed or uninstalled. .PARAMETER totalPrograms The total number of programs to be installed or uninstalled. .DESCRIPTION This function calculates the progress of the installation or uninstallation process and updates the taskbar accordingly. The taskbar is set to "Normal" if all programs have been processed, otherwise, it is set to "Error" as a placeholder. .EXAMPLE Update-TaskbarProgress -currentIndex 3 -totalPrograms 10 #> param ( [int]$currentIndex, [int]$totalPrograms ) $progressState = if ($currentIndex -eq $totalPrograms) { "Normal" } else { "Error" } Invoke-WPFUIThread -ScriptBlock { Set-WinUtilTaskbaritem -state $progressState -value ($currentIndex / $totalPrograms) } } function Install-ChocoPackage { <# .SYNOPSIS Installs a Chocolatey package and optionally upgrades it if needed. .PARAMETER Program A string containing the name of the Chocolatey package to be installed. .PARAMETER currentIndex The current index of the program in the list of programs to be managed. .PARAMETER totalPrograms The total number of programs to be installed. .DESCRIPTION This function installs a Chocolatey package by running the `choco install` command. If the installation output indicates that an upgrade might be needed, the function will attempt to upgrade the package. The taskbar progress is updated after each package is processed. .EXAMPLE Install-ChocoPackage -Program $Program -currentIndex 0 -totalPrograms 5 #> param ( [string]$Program, [int]$currentIndex, [int]$totalPrograms ) $installOutputFile = "$env:TEMP\Install-WinUtilProgramChoco.install-command.output.txt" Initialize-OutputFile $installOutputFile Write-Host "Starting installation of $Program with Chocolatey." try { $installStatusCode = Invoke-ChocoCommand "install $Program -y --log-file $installOutputFile" if ($installStatusCode -eq 0) { if (Test-UpgradeNeeded $installOutputFile) { $upgradeStatusCode = Invoke-ChocoCommand "upgrade $Program -y" Write-Host "$Program was" $(if ($upgradeStatusCode -eq 0) { "upgraded successfully." } else { "not upgraded." }) } else { Write-Host "$Program installed successfully." } } else { Write-Host "Failed to install $Program." } } catch { Write-Host "Failed to install $Program due to an error: $_" } finally { Update-TaskbarProgress $currentIndex $totalPrograms } } function Uninstall-ChocoPackage { <# .SYNOPSIS Uninstalls a Chocolatey package and any related metapackages. .PARAMETER Program A string containing the name of the Chocolatey package to be uninstalled. .PARAMETER currentIndex The current index of the program in the list of programs to be managed. .PARAMETER totalPrograms The total number of programs to be uninstalled. .DESCRIPTION This function uninstalls a Chocolatey package and any related metapackages (e.g., .install or .portable variants). It updates the taskbar progress after processing each package. .EXAMPLE Uninstall-ChocoPackage -Program $Program -currentIndex 0 -totalPrograms 5 #> param ( [string]$Program, [int]$currentIndex, [int]$totalPrograms ) $uninstallOutputFile = "$env:TEMP\Install-WinUtilProgramChoco.uninstall-command.output.txt" Initialize-OutputFile $uninstallOutputFile Write-Host "Searching for metapackages of $Program (.install or .portable)" $chocoPackages = ((choco list | Select-String -Pattern "$Program(\.install|\.portable)?").Matches.Value) -join " " if ($chocoPackages) { Write-Host "Starting uninstallation of $chocoPackages with Chocolatey." try { $uninstallStatusCode = Invoke-ChocoCommand "uninstall $chocoPackages -y" Write-Host "$Program" $(if ($uninstallStatusCode -eq 0) { "uninstalled successfully." } else { "failed to uninstall." }) } catch { Write-Host "Failed to uninstall $Program due to an error: $_" } finally { Update-TaskbarProgress $currentIndex $totalPrograms } } else { Write-Host "$Program is not installed." } } $totalPrograms = $Programs.Count if ($totalPrograms -le 0) { throw "Parameter 'Programs' must have at least one item." } Write-Host "===========================================" Write-Host "-- Configuring Chocolatey packages ---" Write-Host "===========================================" for ($currentIndex = 0; $currentIndex -lt $totalPrograms; $currentIndex++) { $Program = $Programs[$currentIndex] Set-WinUtilProgressBar -label "$Action $($Program)" -percent ($currentIndex / $totalPrograms * 100) Invoke-WPFUIThread -ScriptBlock { Set-WinUtilTaskbaritem -value ($currentIndex / $totalPrograms)} switch ($Action) { "Install" { Install-ChocoPackage -Program $Program -currentIndex $currentIndex -totalPrograms $totalPrograms } "Uninstall" { Uninstall-ChocoPackage -Program $Program -currentIndex $currentIndex -totalPrograms $totalPrograms } default { throw "Invalid action parameter value: '$Action'." } } } Set-WinUtilProgressBar -label "$($Action)ation done" -percent 100 # Cleanup Output Files $outputFiles = @("$env:TEMP\Install-WinUtilProgramChoco.install-command.output.txt", "$env:TEMP\Install-WinUtilProgramChoco.uninstall-command.output.txt") foreach ($filePath in $outputFiles) { Remove-Item -Path $filePath -Force -ErrorAction SilentlyContinue } } ================================================ FILE: functions/private/Install-WinUtilProgramWinget.ps1 ================================================ Function Install-WinUtilProgramWinget { <# .SYNOPSIS Runs the designated action on the provided programs using Winget .PARAMETER Programs A list of programs to process .PARAMETER action The action to perform on the programs, can be either 'Install' or 'Uninstall' .NOTES The triple quotes are required any time you need a " in a normal script block. The winget Return codes are documented here: https://github.com/microsoft/winget-cli/blob/master/doc/windows/package-actionr/winget/returnCodes.md #> param( [Parameter(Mandatory, Position=0)]$Programs, [Parameter(Mandatory, Position=1)] [ValidateSet("Install", "Uninstall")] [String]$Action ) Function Invoke-Winget { <# .SYNOPSIS Invokes the winget.exe with the provided arguments and return the exit code .PARAMETER wingetId The Id of the Program that Winget should Install/Uninstall .NOTES Invoke Winget uses the public variable $Action defined outside the function to determine if a Program should be installed or removed #> param ( [string]$wingetId ) $commonArguments = "--id $wingetId --silent" $arguments = if ($Action -eq "Install") { "install $commonArguments --accept-source-agreements --accept-package-agreements --source winget" } else { "uninstall $commonArguments --source winget" } $processParams = @{ FilePath = "winget" ArgumentList = $arguments Wait = $true PassThru = $true NoNewWindow = $true } return (Start-Process @processParams).ExitCode } Function Invoke-Install { <# .SYNOPSIS Contains the Install Logic and return code handling from winget .PARAMETER Program The Winget ID of the Program that should be installed #> param ( [string]$Program ) $status = Invoke-Winget -wingetId $Program if ($status -eq 0) { Write-Host "$($Program) installed successfully." return $true } elseif ($status -eq -1978335189) { Write-Host "$($Program) No applicable update found" return $true } Write-Host "Failed to install $($Program)." return $false } Function Invoke-Uninstall { <# .SYNOPSIS Contains the Uninstall Logic and return code handling from winget .PARAMETER Program The Winget ID of the Program that should be uninstalled #> param ( [string]$Program ) try { $status = Invoke-Winget -wingetId $Program if ($status -eq 0) { Write-Host "$($Program) uninstalled successfully." return $true } else { Write-Host "Failed to uninstall $($Program)." return $false } } catch { Write-Host "Failed to uninstall $($Program) due to an error: $_" return $false } } $count = $Programs.Count $failedPackages = @() Write-Host "===========================================" Write-Host "-- Configuring winget packages ---" Write-Host "===========================================" for ($i = 0; $i -lt $count; $i++) { $Program = $Programs[$i] $result = $false Set-WinUtilProgressBar -label "$Action $($Program)" -percent ($i / $count * 100) Invoke-WPFUIThread -ScriptBlock{ Set-WinUtilTaskbaritem -value ($i / $count)} $result = switch ($Action) { "Install" {Invoke-Install -Program $Program} "Uninstall" {Invoke-Uninstall -Program $Program} default {throw "[Install-WinUtilProgramWinget] Invalid action: $Action"} } if (-not $result) { $failedPackages += $Program } } Set-WinUtilProgressBar -label "$($Action)ation done" -percent 100 return $failedPackages } ================================================ FILE: functions/private/Install-WinUtilWinget.ps1 ================================================ function Install-WinUtilWinget { <# .SYNOPSIS Installs Winget if not already installed. .DESCRIPTION installs winget if needed #> if ((Test-WinUtilPackageManager -winget) -eq "installed") { return } Write-Host "Winget is not Installed. Installing." -ForegroundColor Red Set-PSRepository -Name PSGallery -InstallationPolicy Trusted Install-PackageProvider -Name NuGet -Force Install-Module Microsoft.WinGet.Client -Force Import-Module Microsoft.WinGet.Client Repair-WinGetPackageManager } ================================================ FILE: functions/private/Invoke-WinUtilAssets.ps1 ================================================ function Invoke-WinUtilAssets { param ( $type, $Size, [switch]$render ) # Create the Viewbox and set its size $LogoViewbox = New-Object Windows.Controls.Viewbox $LogoViewbox.Width = $Size $LogoViewbox.Height = $Size # Create a Canvas to hold the paths $canvas = New-Object Windows.Controls.Canvas $canvas.Width = 100 $canvas.Height = 100 # Define a scale factor for the content inside the Canvas $scaleFactor = $Size / 100 # Apply a scale transform to the Canvas content $scaleTransform = New-Object Windows.Media.ScaleTransform($scaleFactor, $scaleFactor) $canvas.LayoutTransform = $scaleTransform switch ($type) { 'logo' { $LogoPathData1 = @" M 18.00,14.00 C 18.00,14.00 45.00,27.74 45.00,27.74 45.00,27.74 57.40,34.63 57.40,34.63 57.40,34.63 59.00,43.00 59.00,43.00 59.00,43.00 59.00,83.00 59.00,83.00 55.35,81.66 46.99,77.79 44.72,74.79 41.17,70.10 42.01,59.80 42.00,54.00 42.00,51.62 42.20,48.29 40.98,46.21 38.34,41.74 25.78,38.60 21.28,33.79 16.81,29.02 18.00,20.20 18.00,14.00 Z "@ $LogoPath1 = New-Object Windows.Shapes.Path $LogoPath1.Data = [Windows.Media.Geometry]::Parse($LogoPathData1) $LogoPath1.Fill = [System.Windows.Media.BrushConverter]::new().ConvertFromString("#0567ff") $LogoPathData2 = @" M 107.00,14.00 C 109.01,19.06 108.93,30.37 104.66,34.21 100.47,37.98 86.38,43.10 84.60,47.21 83.94,48.74 84.01,51.32 84.00,53.00 83.97,57.04 84.46,68.90 83.26,72.00 81.06,77.70 72.54,81.42 67.00,83.00 67.00,83.00 67.00,43.00 67.00,43.00 67.00,43.00 67.99,35.63 67.99,35.63 67.99,35.63 80.00,28.26 80.00,28.26 80.00,28.26 107.00,14.00 107.00,14.00 Z "@ $LogoPath2 = New-Object Windows.Shapes.Path $LogoPath2.Data = [Windows.Media.Geometry]::Parse($LogoPathData2) $LogoPath2.Fill = [System.Windows.Media.BrushConverter]::new().ConvertFromString("#0567ff") $LogoPathData3 = @" M 19.00,46.00 C 21.36,47.14 28.67,50.71 30.01,52.63 31.17,54.30 30.99,57.04 31.00,59.00 31.04,65.41 30.35,72.16 33.56,78.00 38.19,86.45 46.10,89.04 54.00,93.31 56.55,94.69 60.10,97.20 63.00,97.22 65.50,97.24 68.77,95.36 71.00,94.25 76.42,91.55 84.51,87.78 88.82,83.68 94.56,78.20 95.96,70.59 96.00,63.00 96.01,60.24 95.59,54.63 97.02,52.39 98.80,49.60 103.95,47.87 107.00,47.00 107.00,47.00 107.00,67.00 107.00,67.00 106.90,87.69 96.10,93.85 80.00,103.00 76.51,104.98 66.66,110.67 63.00,110.52 60.33,110.41 55.55,107.53 53.00,106.25 46.21,102.83 36.63,98.57 31.04,93.68 16.88,81.28 19.00,62.88 19.00,46.00 Z "@ $LogoPath3 = New-Object Windows.Shapes.Path $LogoPath3.Data = [Windows.Media.Geometry]::Parse($LogoPathData3) $LogoPath3.Fill = [System.Windows.Media.BrushConverter]::new().ConvertFromString("#a3a4a6") $canvas.Children.Add($LogoPath1) | Out-Null $canvas.Children.Add($LogoPath2) | Out-Null $canvas.Children.Add($LogoPath3) | Out-Null } 'checkmark' { $canvas.Width = 512 $canvas.Height = 512 $scaleFactor = $Size / 2.54 $scaleTransform = New-Object Windows.Media.ScaleTransform($scaleFactor, $scaleFactor) $canvas.LayoutTransform = $scaleTransform # Define the circle path $circlePathData = "M 1.27,0 A 1.27,1.27 0 1,0 1.27,2.54 A 1.27,1.27 0 1,0 1.27,0" $circlePath = New-Object Windows.Shapes.Path $circlePath.Data = [Windows.Media.Geometry]::Parse($circlePathData) $circlePath.Fill = [System.Windows.Media.BrushConverter]::new().ConvertFromString("#39ba00") # Define the checkmark path $checkmarkPathData = "M 0.873 1.89 L 0.41 1.391 A 0.17 0.17 0 0 1 0.418 1.151 A 0.17 0.17 0 0 1 0.658 1.16 L 1.016 1.543 L 1.583 1.013 A 0.17 0.17 0 0 1 1.599 1 L 1.865 0.751 A 0.17 0.17 0 0 1 2.105 0.759 A 0.17 0.17 0 0 1 2.097 0.999 L 1.282 1.759 L 0.999 2.022 L 0.874 1.888 Z" $checkmarkPath = New-Object Windows.Shapes.Path $checkmarkPath.Data = [Windows.Media.Geometry]::Parse($checkmarkPathData) $checkmarkPath.Fill = [Windows.Media.Brushes]::White # Add the paths to the Canvas $canvas.Children.Add($circlePath) | Out-Null $canvas.Children.Add($checkmarkPath) | Out-Null } 'warning' { $canvas.Width = 512 $canvas.Height = 512 # Define a scale factor for the content inside the Canvas $scaleFactor = $Size / 512 # Adjust scaling based on the canvas size $scaleTransform = New-Object Windows.Media.ScaleTransform($scaleFactor, $scaleFactor) $canvas.LayoutTransform = $scaleTransform # Define the circle path $circlePathData = "M 256,0 A 256,256 0 1,0 256,512 A 256,256 0 1,0 256,0" $circlePath = New-Object Windows.Shapes.Path $circlePath.Data = [Windows.Media.Geometry]::Parse($circlePathData) $circlePath.Fill = [System.Windows.Media.BrushConverter]::new().ConvertFromString("#f41b43") # Define the exclamation mark path $exclamationPathData = "M 256 307.2 A 35.89 35.89 0 0 1 220.14 272.74 L 215.41 153.3 A 35.89 35.89 0 0 1 251.27 116 H 260.73 A 35.89 35.89 0 0 1 296.59 153.3 L 291.86 272.74 A 35.89 35.89 0 0 1 256 307.2 Z" $exclamationPath = New-Object Windows.Shapes.Path $exclamationPath.Data = [Windows.Media.Geometry]::Parse($exclamationPathData) $exclamationPath.Fill = [Windows.Media.Brushes]::White # Get the bounds of the exclamation mark path $exclamationBounds = $exclamationPath.Data.Bounds # Calculate the center position for the exclamation mark path $exclamationCenterX = ($canvas.Width - $exclamationBounds.Width) / 2 - $exclamationBounds.X $exclamationPath.SetValue([Windows.Controls.Canvas]::LeftProperty, $exclamationCenterX) # Define the rounded rectangle at the bottom (dot of exclamation mark) $roundedRectangle = New-Object Windows.Shapes.Rectangle $roundedRectangle.Width = 80 $roundedRectangle.Height = 80 $roundedRectangle.RadiusX = 30 $roundedRectangle.RadiusY = 30 $roundedRectangle.Fill = [Windows.Media.Brushes]::White # Calculate the center position for the rounded rectangle $centerX = ($canvas.Width - $roundedRectangle.Width) / 2 $roundedRectangle.SetValue([Windows.Controls.Canvas]::LeftProperty, $centerX) $roundedRectangle.SetValue([Windows.Controls.Canvas]::TopProperty, 324.34) # Add the paths to the Canvas $canvas.Children.Add($circlePath) | Out-Null $canvas.Children.Add($exclamationPath) | Out-Null $canvas.Children.Add($roundedRectangle) | Out-Null } default { Write-Host "Invalid type: $type" } } # Add the Canvas to the Viewbox $LogoViewbox.Child = $canvas if ($render) { # Measure and arrange the canvas to ensure proper rendering $canvas.Measure([Windows.Size]::new($canvas.Width, $canvas.Height)) $canvas.Arrange([Windows.Rect]::new(0, 0, $canvas.Width, $canvas.Height)) $canvas.UpdateLayout() # Initialize RenderTargetBitmap correctly with dimensions $renderTargetBitmap = New-Object Windows.Media.Imaging.RenderTargetBitmap($canvas.Width, $canvas.Height, 96, 96, [Windows.Media.PixelFormats]::Pbgra32) # Render the canvas to the bitmap $renderTargetBitmap.Render($canvas) # Create a BitmapFrame from the RenderTargetBitmap $bitmapFrame = [Windows.Media.Imaging.BitmapFrame]::Create($renderTargetBitmap) # Create a PngBitmapEncoder and add the frame $bitmapEncoder = [Windows.Media.Imaging.PngBitmapEncoder]::new() $bitmapEncoder.Frames.Add($bitmapFrame) # Save to a memory stream $imageStream = New-Object System.IO.MemoryStream $bitmapEncoder.Save($imageStream) $imageStream.Position = 0 # Load the stream into a BitmapImage $bitmapImage = [Windows.Media.Imaging.BitmapImage]::new() $bitmapImage.BeginInit() $bitmapImage.StreamSource = $imageStream $bitmapImage.CacheOption = [Windows.Media.Imaging.BitmapCacheOption]::OnLoad $bitmapImage.EndInit() return $bitmapImage } else { return $LogoViewbox } } ================================================ FILE: functions/private/Invoke-WinUtilCurrentSystem.ps1 ================================================ Function Invoke-WinUtilCurrentSystem { <# .SYNOPSIS Checks to see what tweaks have already been applied and what programs are installed, and checks the according boxes .EXAMPLE InvokeWinUtilCurrentSystem -Checkbox "winget" #> param( $CheckBox ) if ($CheckBox -eq "choco") { $apps = (choco list | Select-String -Pattern "^\S+").Matches.Value $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).choco -split ";") if ($dependencies -in $apps) { Write-Output $psitem.name } } } if ($checkbox -eq "winget") { $originalEncoding = [Console]::OutputEncoding [Console]::OutputEncoding = [System.Text.UTF8Encoding]::new() $Sync.InstalledPrograms = winget list -s winget | Select-Object -skip 3 | ConvertFrom-String -PropertyNames "Name", "Id", "Version", "Available" -Delimiter '\s{2,}' [Console]::OutputEncoding = $originalEncoding $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 ";") if ($dependencies[-1] -in $sync.InstalledPrograms.Id) { Write-Output $psitem.name } } } if ($CheckBox -eq "tweaks") { if (!(Test-Path 'HKU:\')) {$null = (New-PSDrive -PSProvider Registry -Name HKU -Root HKEY_USERS)} $ScheduledTasks = Get-ScheduledTask $sync.configs.tweaks | Get-Member -MemberType NoteProperty | ForEach-Object { $Config = $psitem.Name #WPFEssTweaksTele $entry = $sync.configs.tweaks.$Config $registryKeys = $entry.registry $scheduledtaskKeys = $entry.scheduledtask $serviceKeys = $entry.service $appxKeys = $entry.appx $invokeScript = $entry.InvokeScript $entryType = $entry.Type if ($registryKeys -or $scheduledtaskKeys -or $serviceKeys) { $Values = @() if ($entryType -eq "Toggle") { if (-not (Get-WinUtilToggleStatus $Config)) { $values += $False } } else { $registryMatchCount = 0 $registryTotal = 0 Foreach ($tweaks in $registryKeys) { Foreach ($tweak in $tweaks) { $registryTotal++ $regstate = $null if (Test-Path $tweak.Path) { $regstate = Get-ItemProperty -Name $tweak.Name -Path $tweak.Path -ErrorAction SilentlyContinue | Select-Object -ExpandProperty $($tweak.Name) } if ($null -eq $regstate) { switch ($tweak.DefaultState) { "true" { $regstate = $tweak.Value } "false" { $regstate = $tweak.OriginalValue } default { $regstate = $tweak.OriginalValue } } } if ($regstate -eq $tweak.Value) { $registryMatchCount++ } } } if ($registryTotal -gt 0 -and $registryMatchCount -ne $registryTotal) { $values += $False } } Foreach ($tweaks in $scheduledtaskKeys) { Foreach ($tweak in $tweaks) { $task = $ScheduledTasks | Where-Object {$($psitem.TaskPath + $psitem.TaskName) -like "\$($tweak.name)"} if ($task) { $actualValue = $task.State $expectedValue = $tweak.State if ($expectedValue -ne $actualValue) { $values += $False } } } } Foreach ($tweaks in $serviceKeys) { Foreach ($tweak in $tweaks) { $Service = Get-Service -Name $tweak.Name if ($Service) { $actualValue = $Service.StartType $expectedValue = $tweak.StartupType if ($expectedValue -ne $actualValue) { $values += $False } } } } if ($values -notcontains $false) { Write-Output $Config } } else { if ($invokeScript -or $appxKeys) { Write-Debug "Skipping $Config in Get Installed: no detectable registry, scheduled task, or service state." } } } } } ================================================ FILE: functions/private/Invoke-WinUtilExplorerUpdate.ps1 ================================================ function Invoke-WinUtilExplorerUpdate { <# .SYNOPSIS Refreshes the Windows Explorer #> param ( [string]$action = "refresh" ) if ($action -eq "refresh") { Invoke-WPFRunspace -ScriptBlock { # Define the Win32 type only if it doesn't exist if (-not ([System.Management.Automation.PSTypeName]'Win32').Type) { Add-Type -TypeDefinition @" using System; using System.Runtime.InteropServices; public class Win32 { [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = false)] public static extern IntPtr SendMessageTimeout( IntPtr hWnd, uint Msg, IntPtr wParam, string lParam, uint fuFlags, uint uTimeout, out IntPtr lpdwResult); } "@ } $HWND_BROADCAST = [IntPtr]0xffff $WM_SETTINGCHANGE = 0x1A $SMTO_ABORTIFHUNG = 0x2 [Win32]::SendMessageTimeout($HWND_BROADCAST, $WM_SETTINGCHANGE, [IntPtr]::Zero, "ImmersiveColorSet", $SMTO_ABORTIFHUNG, 100, [ref]([IntPtr]::Zero)) } } elseif ($action -eq "restart") { taskkill.exe /F /IM "explorer.exe" Start-Process "explorer.exe" } } ================================================ FILE: functions/private/Invoke-WinUtilFeatureInstall.ps1 ================================================ function Invoke-WinUtilFeatureInstall { <# .SYNOPSIS Converts all the values from the tweaks.json and routes them to the appropriate function #> param( $CheckBox ) if($sync.configs.feature.$CheckBox.feature) { Foreach( $feature in $sync.configs.feature.$CheckBox.feature ) { try { Write-Host "Installing $feature" Enable-WindowsOptionalFeature -Online -FeatureName $feature -All -NoRestart } catch { if ($CheckBox.Exception.Message -like "*requires elevation*") { Write-Warning "Unable to Install $feature due to permissions. Are you running as admin?" Invoke-WPFUIThread -ScriptBlock { Set-WinUtilTaskbaritem -state "Error" } } else { Write-Warning "Unable to Install $feature due to unhandled exception" Write-Warning $CheckBox.Exception.StackTrace } } } } if($sync.configs.feature.$CheckBox.InvokeScript) { Foreach( $script in $sync.configs.feature.$CheckBox.InvokeScript ) { try { $Scriptblock = [scriptblock]::Create($script) Write-Host "Running Script for $CheckBox" Invoke-Command $scriptblock -ErrorAction stop } catch { if ($CheckBox.Exception.Message -like "*requires elevation*") { Write-Warning "Unable to Install $feature due to permissions. Are you running as admin?" Invoke-WPFUIThread -ScriptBlock { Set-WinUtilTaskbaritem -state "Error" } } else { Invoke-WPFUIThread -ScriptBlock { Set-WinUtilTaskbaritem -state "Error" } Write-Warning "Unable to Install $feature due to unhandled exception" Write-Warning $CheckBox.Exception.StackTrace } } } } } ================================================ FILE: functions/private/Invoke-WinUtilFontScaling.ps1 ================================================ function Invoke-WinUtilFontScaling { <# .SYNOPSIS Applies UI and font scaling for accessibility .PARAMETER ScaleFactor Sets the scaling from 0.75 and 2.0. Default is 1.0 (100% - no scaling) .EXAMPLE Invoke-WinUtilFontScaling -ScaleFactor 1.25 # Applies 125% scaling #> param ( [double]$ScaleFactor = 1.0 ) # Validate if scale factor is within the range if ($ScaleFactor -lt 0.75 -or $ScaleFactor -gt 2.0) { Write-Warning "Scale factor must be between 0.75 and 2.0. Using 1.0 instead." $ScaleFactor = 1.0 } # Define an array for resources to be scaled $fontResources = @( # Fonts "FontSize", "ButtonFontSize", "HeaderFontSize", "TabButtonFontSize", "ConfigTabButtonFontSize", "IconFontSize", "SettingsIconFontSize", "CloseIconFontSize", "AppEntryFontSize", "SearchBarTextBoxFontSize", "SearchBarClearButtonFontSize", "CustomDialogFontSize", "CustomDialogFontSizeHeader", "ConfigUpdateButtonFontSize", # Buttons and UI "CheckBoxBulletDecoratorSize", "ButtonWidth", "ButtonHeight", "TabButtonWidth", "TabButtonHeight", "IconButtonSize", "AppEntryWidth", "SearchBarWidth", "SearchBarHeight", "CustomDialogWidth", "CustomDialogHeight", "CustomDialogLogoSize", "ToolTipWidth" ) # Apply scaling to each resource foreach ($resourceName in $fontResources) { try { # Get the default font size from the theme configuration $originalValue = $sync.configs.themes.shared.$resourceName if ($originalValue) { # Convert string to double since values are stored as strings $originalValue = [double]$originalValue # Calculates and applies the new font size $newValue = [math]::Round($originalValue * $ScaleFactor, 1) $sync.Form.Resources[$resourceName] = $newValue Write-Debug "Scaled $resourceName from original $originalValue to $newValue (factor: $ScaleFactor)" } } catch { Write-Warning "Failed to scale resource $resourceName : $_" } } # Update the font scaling percentage displayed on the UI if ($sync.FontScalingValue) { $percentage = [math]::Round($ScaleFactor * 100) $sync.FontScalingValue.Text = "$percentage%" } Write-Debug "Font scaling applied with factor: $ScaleFactor" } ================================================ FILE: functions/private/Invoke-WinUtilISO.ps1 ================================================ function Write-Win11ISOLog { param([string]$Message) $ts = (Get-Date).ToString("HH:mm:ss") $sync["WPFWin11ISOStatusLog"].Dispatcher.Invoke([action]{ $current = $sync["WPFWin11ISOStatusLog"].Text if ($current -eq "Ready. Please select a Windows 11 ISO to begin.") { $sync["WPFWin11ISOStatusLog"].Text = "[$ts] $Message" } else { $sync["WPFWin11ISOStatusLog"].Text += "`n[$ts] $Message" } $sync["WPFWin11ISOStatusLog"].CaretIndex = $sync["WPFWin11ISOStatusLog"].Text.Length $sync["WPFWin11ISOStatusLog"].ScrollToEnd() }) } function Invoke-WinUtilISOBrowse { Add-Type -AssemblyName System.Windows.Forms $dlg = [System.Windows.Forms.OpenFileDialog]::new() $dlg.Title = "Select Windows 11 ISO" $dlg.Filter = "ISO files (*.iso)|*.iso|All files (*.*)|*.*" $dlg.InitialDirectory = [System.Environment]::GetFolderPath("Desktop") if ($dlg.ShowDialog() -ne [System.Windows.Forms.DialogResult]::OK) { return } $isoPath = $dlg.FileName $fileSizeGB = [math]::Round((Get-Item $isoPath).Length / 1GB, 2) $sync["WPFWin11ISOPath"].Text = $isoPath $sync["WPFWin11ISOFileInfo"].Text = "File size: $fileSizeGB GB" $sync["WPFWin11ISOFileInfo"].Visibility = "Visible" $sync["WPFWin11ISOMountSection"].Visibility = "Visible" $sync["WPFWin11ISOVerifyResultPanel"].Visibility = "Collapsed" $sync["WPFWin11ISOModifySection"].Visibility = "Collapsed" $sync["WPFWin11ISOOutputSection"].Visibility = "Collapsed" Write-Win11ISOLog "ISO selected: $isoPath ($fileSizeGB GB)" } function Invoke-WinUtilISOMountAndVerify { $isoPath = $sync["WPFWin11ISOPath"].Text if ([string]::IsNullOrWhiteSpace($isoPath) -or $isoPath -eq "No ISO selected...") { [System.Windows.MessageBox]::Show("Please select an ISO file first.", "No ISO Selected", "OK", "Warning") return } Write-Win11ISOLog "Mounting ISO: $isoPath" Set-WinUtilProgressBar -Label "Mounting ISO..." -Percent 10 try { Mount-DiskImage -ImagePath $isoPath -ErrorAction Stop | Out-Null do { Start-Sleep -Milliseconds 500 } until ((Get-DiskImage -ImagePath $isoPath | Get-Volume).DriveLetter) $driveLetter = (Get-DiskImage -ImagePath $isoPath | Get-Volume).DriveLetter + ":" Write-Win11ISOLog "Mounted at drive $driveLetter" Set-WinUtilProgressBar -Label "Verifying ISO contents..." -Percent 30 $wimPath = Join-Path $driveLetter "sources\install.wim" $esdPath = Join-Path $driveLetter "sources\install.esd" if (-not (Test-Path $wimPath) -and -not (Test-Path $esdPath)) { Dismount-DiskImage -ImagePath $isoPath | Out-Null Write-Win11ISOLog "ERROR: install.wim/install.esd not found — not a valid Windows ISO." [System.Windows.MessageBox]::Show( "This does not appear to be a valid Windows ISO.`n`ninstall.wim / install.esd was not found.", "Invalid ISO", "OK", "Error") Set-WinUtilProgressBar -Label "" -Percent 0 return } $activeWim = if (Test-Path $wimPath) { $wimPath } else { $esdPath } Set-WinUtilProgressBar -Label "Reading image metadata..." -Percent 55 $imageInfo = Get-WindowsImage -ImagePath $activeWim | Select-Object ImageIndex, ImageName if (-not ($imageInfo | Where-Object { $_.ImageName -match "Windows 11" })) { Dismount-DiskImage -ImagePath $isoPath | Out-Null Write-Win11ISOLog "ERROR: No 'Windows 11' edition found in the image." [System.Windows.MessageBox]::Show( "No Windows 11 edition was found in this ISO.`n`nOnly official Windows 11 ISOs are supported.", "Not a Windows 11 ISO", "OK", "Error") Set-WinUtilProgressBar -Label "" -Percent 0 return } $sync["Win11ISOImageInfo"] = $imageInfo $sync["WPFWin11ISOMountDriveLetter"].Text = "Mounted at: $driveLetter | Image file: $(Split-Path $activeWim -Leaf)" $sync["WPFWin11ISOEditionComboBox"].Dispatcher.Invoke([action]{ $sync["WPFWin11ISOEditionComboBox"].Items.Clear() foreach ($img in $imageInfo) { [void]$sync["WPFWin11ISOEditionComboBox"].Items.Add("$($img.ImageIndex): $($img.ImageName)") } if ($sync["WPFWin11ISOEditionComboBox"].Items.Count -gt 0) { $proIndex = -1 for ($i = 0; $i -lt $sync["WPFWin11ISOEditionComboBox"].Items.Count; $i++) { if ($sync["WPFWin11ISOEditionComboBox"].Items[$i] -match "Windows 11 Pro(?![\w ])") { $proIndex = $i; break } } $sync["WPFWin11ISOEditionComboBox"].SelectedIndex = if ($proIndex -ge 0) { $proIndex } else { 0 } } }) $sync["WPFWin11ISOVerifyResultPanel"].Visibility = "Visible" $sync["Win11ISODriveLetter"] = $driveLetter $sync["Win11ISOWimPath"] = $activeWim $sync["Win11ISOImagePath"] = $isoPath $sync["WPFWin11ISOModifySection"].Visibility = "Visible" Set-WinUtilProgressBar -Label "ISO verified" -Percent 100 Write-Win11ISOLog "ISO verified OK. Editions found: $($imageInfo.Count)" } catch { Write-Win11ISOLog "ERROR during mount/verify: $_" [System.Windows.MessageBox]::Show( "An error occurred while mounting or verifying the ISO:`n`n$_", "Error", "OK", "Error") } finally { Start-Sleep -Milliseconds 800 Set-WinUtilProgressBar -Label "" -Percent 0 } } function Invoke-WinUtilISOModify { $isoPath = $sync["Win11ISOImagePath"] $driveLetter = $sync["Win11ISODriveLetter"] $wimPath = $sync["Win11ISOWimPath"] if (-not $isoPath) { [System.Windows.MessageBox]::Show( "No verified ISO found. Please complete Steps 1 and 2 first.", "Not Ready", "OK", "Warning") return } $selectedItem = $sync["WPFWin11ISOEditionComboBox"].SelectedItem $selectedWimIndex = 1 if ($selectedItem -and $selectedItem -match '^(\d+):') { $selectedWimIndex = [int]$Matches[1] } elseif ($sync["Win11ISOImageInfo"]) { $selectedWimIndex = $sync["Win11ISOImageInfo"][0].ImageIndex } $selectedEditionName = if ($selectedItem) { ($selectedItem -replace '^\d+:\s*', '') } else { "Unknown" } Write-Win11ISOLog "Selected edition: $selectedEditionName (Index $selectedWimIndex)" $sync["WPFWin11ISOModifyButton"].IsEnabled = $false $sync["Win11ISOModifying"] = $true $existingWorkDir = Get-Item -Path (Join-Path $env:TEMP "WinUtil_Win11ISO*") -ErrorAction SilentlyContinue | Where-Object { $_.PSIsContainer } | Sort-Object LastWriteTime -Descending | Select-Object -First 1 $workDir = if ($existingWorkDir) { Write-Win11ISOLog "Reusing existing temp directory: $($existingWorkDir.FullName)" $existingWorkDir.FullName } else { Join-Path $env:TEMP "WinUtil_Win11ISO_$(Get-Date -Format 'yyyyMMdd_HHmmss')" } $autounattendContent = if ($WinUtilAutounattendXml) { $WinUtilAutounattendXml } else { $toolsXml = Join-Path $PSScriptRoot "..\..\tools\autounattend.xml" if (Test-Path $toolsXml) { Get-Content $toolsXml -Raw } else { "" } } $runspace = [Management.Automation.Runspaces.RunspaceFactory]::CreateRunspace() $runspace.ApartmentState = "STA" $runspace.ThreadOptions = "ReuseThread" $runspace.Open() $injectDrivers = $sync["WPFWin11ISOInjectDrivers"].IsChecked -eq $true $runspace.SessionStateProxy.SetVariable("sync", $sync) $runspace.SessionStateProxy.SetVariable("isoPath", $isoPath) $runspace.SessionStateProxy.SetVariable("driveLetter", $driveLetter) $runspace.SessionStateProxy.SetVariable("wimPath", $wimPath) $runspace.SessionStateProxy.SetVariable("workDir", $workDir) $runspace.SessionStateProxy.SetVariable("selectedWimIndex", $selectedWimIndex) $runspace.SessionStateProxy.SetVariable("selectedEditionName", $selectedEditionName) $runspace.SessionStateProxy.SetVariable("autounattendContent", $autounattendContent) $runspace.SessionStateProxy.SetVariable("injectDrivers", $injectDrivers) $isoScriptFuncDef = "function Invoke-WinUtilISOScript {`n" + ${function:Invoke-WinUtilISOScript}.ToString() + "`n}" $win11ISOLogFuncDef = "function Write-Win11ISOLog {`n" + ${function:Write-Win11ISOLog}.ToString() + "`n}" $runspace.SessionStateProxy.SetVariable("isoScriptFuncDef", $isoScriptFuncDef) $runspace.SessionStateProxy.SetVariable("win11ISOLogFuncDef", $win11ISOLogFuncDef) $script = [Management.Automation.PowerShell]::Create() $script.Runspace = $runspace $script.AddScript({ . ([scriptblock]::Create($isoScriptFuncDef)) . ([scriptblock]::Create($win11ISOLogFuncDef)) function Log($msg) { $ts = (Get-Date).ToString("HH:mm:ss") $sync["WPFWin11ISOStatusLog"].Dispatcher.Invoke([action]{ $sync["WPFWin11ISOStatusLog"].Text += "`n[$ts] $msg" $sync["WPFWin11ISOStatusLog"].CaretIndex = $sync["WPFWin11ISOStatusLog"].Text.Length $sync["WPFWin11ISOStatusLog"].ScrollToEnd() }) Add-Content -Path (Join-Path $workDir "WinUtil_Win11ISO.log") -Value "[$ts] $msg" -ErrorAction SilentlyContinue } function SetProgress($label, $pct) { $sync["WPFWin11ISOStatusLog"].Dispatcher.Invoke([action]{ $sync.progressBarTextBlock.Text = $label $sync.progressBarTextBlock.ToolTip = $label $sync.ProgressBar.Value = [Math]::Max($pct, 5) }) } try { $sync["WPFWin11ISOStatusLog"].Dispatcher.Invoke([action]{ $sync["WPFWin11ISOSelectSection"].Visibility = "Collapsed" $sync["WPFWin11ISOMountSection"].Visibility = "Collapsed" $sync["WPFWin11ISOModifySection"].Visibility = "Collapsed" }) Log "Creating working directory: $workDir" $isoContents = Join-Path $workDir "iso_contents" $mountDir = Join-Path $workDir "wim_mount" New-Item -ItemType Directory -Path $isoContents, $mountDir -Force | Out-Null SetProgress "Copying ISO contents..." 10 Log "Copying ISO contents from $driveLetter to $isoContents..." & robocopy $driveLetter $isoContents /E /NFL /NDL /NJH /NJS | Out-Null Log "ISO contents copied." SetProgress "Mounting install.wim..." 25 $localWim = Join-Path $isoContents "sources\install.wim" if (-not (Test-Path $localWim)) { $localWim = Join-Path $isoContents "sources\install.esd" } Set-ItemProperty -Path $localWim -Name IsReadOnly -Value $false Log "Mounting install.wim (Index ${selectedWimIndex}: $selectedEditionName) at $mountDir..." Mount-WindowsImage -ImagePath $localWim -Index $selectedWimIndex -Path $mountDir -ErrorAction Stop | Out-Null SetProgress "Modifying install.wim..." 45 Log "Applying WinUtil modifications to install.wim..." Invoke-WinUtilISOScript -ScratchDir $mountDir -ISOContentsDir $isoContents -AutoUnattendXml $autounattendContent -InjectCurrentSystemDrivers $injectDrivers -Log { param($m) Log $m } SetProgress "Cleaning up component store (WinSxS)..." 56 Log "Running DISM component store cleanup (/ResetBase)..." & dism /English "/image:$mountDir" /Cleanup-Image /StartComponentCleanup /ResetBase | ForEach-Object { Log $_ } Log "Component store cleanup complete." SetProgress "Saving modified install.wim..." 65 Log "Dismounting and saving install.wim. This will take several minutes..." Dismount-WindowsImage -Path $mountDir -Save -ErrorAction Stop | Out-Null Log "install.wim saved." SetProgress "Removing unused editions from install.wim..." 70 Log "Exporting edition '$selectedEditionName' (Index $selectedWimIndex) to a single-edition install.wim..." $exportWim = Join-Path $isoContents "sources\install_export.wim" Export-WindowsImage -SourceImagePath $localWim -SourceIndex $selectedWimIndex -DestinationImagePath $exportWim -ErrorAction Stop | Out-Null Remove-Item -Path $localWim -Force Rename-Item -Path $exportWim -NewName "install.wim" -Force $localWim = Join-Path $isoContents "sources\install.wim" Log "Unused editions removed. install.wim now contains only '$selectedEditionName'." SetProgress "Dismounting source ISO..." 80 Log "Dismounting original ISO..." Dismount-DiskImage -ImagePath $isoPath | Out-Null $sync["Win11ISOWorkDir"] = $workDir $sync["Win11ISOContentsDir"] = $isoContents SetProgress "Modification complete" 100 Log "install.wim modification complete. Choose an output option in Step 4." $sync["WPFWin11ISOOutputSection"].Dispatcher.Invoke([action]{ $sync["WPFWin11ISOOutputSection"].Visibility = "Visible" }) } catch { Log "ERROR during modification: $_" try { if (Test-Path $mountDir) { $mountedImages = Get-WindowsImage -Mounted -ErrorAction SilentlyContinue | Where-Object { $_.Path -eq $mountDir } if ($mountedImages) { Log "Cleaning up: dismounting install.wim (discarding changes)..." Dismount-WindowsImage -Path $mountDir -Discard -ErrorAction SilentlyContinue | Out-Null } } } catch { Log "Warning: could not dismount install.wim during cleanup: $_" } try { $mountedISO = Get-DiskImage -ImagePath $isoPath -ErrorAction SilentlyContinue if ($mountedISO -and $mountedISO.Attached) { Log "Cleaning up: dismounting source ISO..." Dismount-DiskImage -ImagePath $isoPath -ErrorAction SilentlyContinue | Out-Null } } catch { Log "Warning: could not dismount ISO during cleanup: $_" } try { if (Test-Path $workDir) { Log "Cleaning up: removing temp directory $workDir..." Remove-Item -Path $workDir -Recurse -Force -ErrorAction SilentlyContinue } } catch { Log "Warning: could not remove temp directory during cleanup: $_" } $sync["WPFWin11ISOStatusLog"].Dispatcher.Invoke([action]{ [System.Windows.MessageBox]::Show( "An error occurred during install.wim modification:`n`n$_", "Modification Error", "OK", "Error") }) } finally { Start-Sleep -Milliseconds 800 $sync["Win11ISOModifying"] = $false $sync["WPFWin11ISOStatusLog"].Dispatcher.Invoke([action]{ $sync.progressBarTextBlock.Text = "" $sync.progressBarTextBlock.ToolTip = "" $sync.ProgressBar.Value = 0 $sync["WPFWin11ISOModifyButton"].IsEnabled = $true if ($sync["WPFWin11ISOOutputSection"].Visibility -ne "Visible") { $sync["WPFWin11ISOSelectSection"].Visibility = "Visible" $sync["WPFWin11ISOMountSection"].Visibility = "Visible" $sync["WPFWin11ISOModifySection"].Visibility = "Visible" } }) } }) | Out-Null $script.BeginInvoke() | Out-Null } function Invoke-WinUtilISOCheckExistingWork { if ($sync["Win11ISOContentsDir"] -and (Test-Path $sync["Win11ISOContentsDir"])) { return } # Check if ISO modification is currently in progress if ($sync["Win11ISOModifying"]) { return } $existingWorkDir = Get-Item -Path (Join-Path $env:TEMP "WinUtil_Win11ISO*") -ErrorAction SilentlyContinue | Where-Object { $_.PSIsContainer } | Sort-Object LastWriteTime -Descending | Select-Object -First 1 if (-not $existingWorkDir) { return } $isoContents = Join-Path $existingWorkDir.FullName "iso_contents" if (-not (Test-Path $isoContents)) { return } $sync["Win11ISOWorkDir"] = $existingWorkDir.FullName $sync["Win11ISOContentsDir"] = $isoContents $sync["WPFWin11ISOSelectSection"].Visibility = "Collapsed" $sync["WPFWin11ISOMountSection"].Visibility = "Collapsed" $sync["WPFWin11ISOModifySection"].Visibility = "Collapsed" $sync["WPFWin11ISOOutputSection"].Visibility = "Visible" $modified = $existingWorkDir.LastWriteTime.ToString("yyyy-MM-dd HH:mm") Write-Win11ISOLog "Existing working directory found: $($existingWorkDir.FullName)" Write-Win11ISOLog "Last modified: $modified - Skipping Steps 1-3 and resuming at Step 4." Write-Win11ISOLog "Click 'Clean & Reset' if you want to start over with a new ISO." [System.Windows.MessageBox]::Show( "A previous WinUtil ISO working directory was found:`n`n$($existingWorkDir.FullName)`n`n(Last modified: $modified)`n`nStep 4 (output options) has been restored so you can save the already-modified image.`n`nClick 'Clean & Reset' in Step 4 if you want to start over.", "Existing Work Found", "OK", "Info") } function Invoke-WinUtilISOCleanAndReset { $workDir = $sync["Win11ISOWorkDir"] if ($workDir -and (Test-Path $workDir)) { $confirm = [System.Windows.MessageBox]::Show( "This will delete the temporary working directory:`n`n$workDir`n`nAnd reset the interface back to the start.`n`nContinue?", "Clean & Reset", "YesNo", "Warning") if ($confirm -ne "Yes") { return } } $sync["WPFWin11ISOCleanResetButton"].IsEnabled = $false $runspace = [Management.Automation.Runspaces.RunspaceFactory]::CreateRunspace() $runspace.ApartmentState = "STA" $runspace.ThreadOptions = "ReuseThread" $runspace.Open() $runspace.SessionStateProxy.SetVariable("sync", $sync) $runspace.SessionStateProxy.SetVariable("workDir", $workDir) $script = [Management.Automation.PowerShell]::Create() $script.Runspace = $runspace $script.AddScript({ function Log($msg) { $ts = (Get-Date).ToString("HH:mm:ss") $sync["WPFWin11ISOStatusLog"].Dispatcher.Invoke([action]{ $sync["WPFWin11ISOStatusLog"].Text += "`n[$ts] $msg" $sync["WPFWin11ISOStatusLog"].CaretIndex = $sync["WPFWin11ISOStatusLog"].Text.Length $sync["WPFWin11ISOStatusLog"].ScrollToEnd() }) Add-Content -Path (Join-Path $workDir "WinUtil_Win11ISO.log") -Value "[$ts] $msg" -ErrorAction SilentlyContinue } function SetProgress($label, $pct) { $sync["WPFWin11ISOStatusLog"].Dispatcher.Invoke([action]{ $sync.progressBarTextBlock.Text = $label $sync.progressBarTextBlock.ToolTip = $label $sync.ProgressBar.Value = [Math]::Max($pct, 5) }) } try { if ($workDir) { $mountDir = Join-Path $workDir "wim_mount" try { $mountedImages = Get-WindowsImage -Mounted -ErrorAction SilentlyContinue | Where-Object { $_.Path -like "$workDir*" } if ($mountedImages) { foreach ($img in $mountedImages) { Log "Dismounting WIM at: $($img.Path) (discarding changes)..." SetProgress "Dismounting WIM image..." 3 Dismount-WindowsImage -Path $img.Path -Discard -ErrorAction Stop | Out-Null Log "WIM dismounted successfully." } } elseif (Test-Path $mountDir) { Log "No mounted WIM reported by Get-WindowsImage, running DISM /Cleanup-Wim as a precaution..." SetProgress "Running DISM cleanup..." 3 & dism /English /Cleanup-Wim 2>&1 | ForEach-Object { Log $_ } } } catch { Log "Warning: could not dismount WIM cleanly, attempting DISM /Cleanup-Wim fallback: $_" try { & dism /English /Cleanup-Wim 2>&1 | ForEach-Object { Log $_ } } catch { Log "Warning: DISM /Cleanup-Wim also failed: $_" } } } if ($workDir -and (Test-Path $workDir)) { Log "Scanning files to delete in: $workDir" SetProgress "Scanning files..." 5 $allFiles = @(Get-ChildItem -Path $workDir -File -Recurse -Force -ErrorAction SilentlyContinue) $allDirs = @(Get-ChildItem -Path $workDir -Directory -Recurse -Force -ErrorAction SilentlyContinue | Sort-Object { $_.FullName.Length } -Descending) $total = $allFiles.Count $deleted = 0 Log "Found $total files to delete." foreach ($f in $allFiles) { try { Remove-Item -Path $f.FullName -Force -ErrorAction Stop } catch { Log "WARNING: could not delete $($f.FullName): $_" } $deleted++ if ($deleted % 100 -eq 0 -or $deleted -eq $total) { $pct = [math]::Round(($deleted / [Math]::Max($total, 1)) * 85) + 5 SetProgress "Deleting files in $($f.Directory.Name)... ($deleted / $total)" $pct } } foreach ($d in $allDirs) { try { Remove-Item -Path $d.FullName -Force -ErrorAction SilentlyContinue } catch {} } try { Remove-Item -Path $workDir -Recurse -Force -ErrorAction Stop } catch {} if (Test-Path $workDir) { Log "WARNING: some items could not be deleted in $workDir" } else { Log "Temp directory deleted successfully." } } else { Log "No temp directory found — resetting UI." } SetProgress "Resetting UI..." 95 Log "Resetting interface..." $sync["WPFWin11ISOStatusLog"].Dispatcher.Invoke([action]{ $sync["Win11ISOWorkDir"] = $null $sync["Win11ISOContentsDir"] = $null $sync["Win11ISOImagePath"] = $null $sync["Win11ISODriveLetter"] = $null $sync["Win11ISOWimPath"] = $null $sync["Win11ISOImageInfo"] = $null $sync["Win11ISOUSBDisks"] = $null $sync["WPFWin11ISOPath"].Text = "No ISO selected..." $sync["WPFWin11ISOFileInfo"].Visibility = "Collapsed" $sync["WPFWin11ISOVerifyResultPanel"].Visibility = "Collapsed" $sync["WPFWin11ISOOptionUSB"].Visibility = "Collapsed" $sync["WPFWin11ISOOutputSection"].Visibility = "Collapsed" $sync["WPFWin11ISOModifySection"].Visibility = "Collapsed" $sync["WPFWin11ISOMountSection"].Visibility = "Collapsed" $sync["WPFWin11ISOSelectSection"].Visibility = "Visible" $sync["WPFWin11ISOModifyButton"].IsEnabled = $true $sync["WPFWin11ISOCleanResetButton"].IsEnabled = $true $sync.progressBarTextBlock.Text = "" $sync.progressBarTextBlock.ToolTip = "" $sync.ProgressBar.Value = 0 $sync["WPFWin11ISOStatusLog"].Text = "Ready. Please select a Windows 11 ISO to begin." }) } catch { Log "ERROR during Clean & Reset: $_" $sync["WPFWin11ISOStatusLog"].Dispatcher.Invoke([action]{ $sync.progressBarTextBlock.Text = "" $sync.progressBarTextBlock.ToolTip = "" $sync.ProgressBar.Value = 0 $sync["WPFWin11ISOCleanResetButton"].IsEnabled = $true }) } }) | Out-Null $script.BeginInvoke() | Out-Null } function Invoke-WinUtilISOExport { $contentsDir = $sync["Win11ISOContentsDir"] if (-not $contentsDir -or -not (Test-Path $contentsDir)) { [System.Windows.MessageBox]::Show( "No modified ISO content found. Please complete Steps 1-3 first.", "Not Ready", "OK", "Warning") return } Add-Type -AssemblyName System.Windows.Forms $dlg = [System.Windows.Forms.SaveFileDialog]::new() $dlg.Title = "Save Modified Windows 11 ISO" $dlg.Filter = "ISO files (*.iso)|*.iso" $dlg.FileName = "Win11_Modified_$(Get-Date -Format 'yyyyMMdd').iso" $dlg.InitialDirectory = [System.Environment]::GetFolderPath("Desktop") if ($dlg.ShowDialog() -ne [System.Windows.Forms.DialogResult]::OK) { return } $outputISO = $dlg.FileName # Locate oscdimg.exe (Windows ADK or winget per-user install) $oscdimg = Get-ChildItem "C:\Program Files (x86)\Windows Kits" -Recurse -Filter "oscdimg.exe" -ErrorAction SilentlyContinue | Select-Object -First 1 -ExpandProperty FullName if (-not $oscdimg) { $oscdimg = Get-ChildItem "$env:LOCALAPPDATA\Microsoft\WinGet\Packages" -Recurse -Filter "oscdimg.exe" -ErrorAction SilentlyContinue | Where-Object { $_.FullName -match 'Microsoft\.OSCDIMG' } | Select-Object -First 1 -ExpandProperty FullName } if (-not $oscdimg) { Write-Win11ISOLog "oscdimg.exe not found. Attempting to install via winget..." try { $winget = Get-Command winget -ErrorAction Stop $result = & $winget install -e --id Microsoft.OSCDIMG --accept-package-agreements --accept-source-agreements 2>&1 Write-Win11ISOLog "winget output: $result" $oscdimg = Get-ChildItem "$env:LOCALAPPDATA\Microsoft\WinGet\Packages" -Recurse -Filter "oscdimg.exe" -ErrorAction SilentlyContinue | Where-Object { $_.FullName -match 'Microsoft\.OSCDIMG' } | Select-Object -First 1 -ExpandProperty FullName } catch { Write-Win11ISOLog "winget not available or install failed: $_" } if (-not $oscdimg) { Write-Win11ISOLog "oscdimg.exe still not found after install attempt." [System.Windows.MessageBox]::Show( "oscdimg.exe could not be found or installed automatically.`n`nPlease install it manually:`n winget install -e --id Microsoft.OSCDIMG`n`nOr install the Windows ADK from:`nhttps://learn.microsoft.com/windows-hardware/get-started/adk-install", "oscdimg Not Found", "OK", "Warning") return } Write-Win11ISOLog "oscdimg.exe installed successfully." } $sync["WPFWin11ISOChooseISOButton"].IsEnabled = $false $runspace = [Management.Automation.Runspaces.RunspaceFactory]::CreateRunspace() $runspace.ApartmentState = "STA" $runspace.ThreadOptions = "ReuseThread" $runspace.Open() $runspace.SessionStateProxy.SetVariable("sync", $sync) $runspace.SessionStateProxy.SetVariable("contentsDir", $contentsDir) $runspace.SessionStateProxy.SetVariable("outputISO", $outputISO) $runspace.SessionStateProxy.SetVariable("oscdimg", $oscdimg) $win11ISOLogFuncDef = "function Write-Win11ISOLog {`n" + ${function:Write-Win11ISOLog}.ToString() + "`n}" $runspace.SessionStateProxy.SetVariable("win11ISOLogFuncDef", $win11ISOLogFuncDef) $script = [Management.Automation.PowerShell]::Create() $script.Runspace = $runspace $script.AddScript({ . ([scriptblock]::Create($win11ISOLogFuncDef)) function SetProgress($label, $pct) { $sync["WPFWin11ISOStatusLog"].Dispatcher.Invoke([action]{ $sync.progressBarTextBlock.Text = $label $sync.progressBarTextBlock.ToolTip = $label $sync.ProgressBar.Value = [Math]::Max($pct, 5) }) } try { Write-Win11ISOLog "Exporting to ISO: $outputISO" SetProgress "Building ISO..." 10 $bootData = "2#p0,e,b`"$contentsDir\boot\etfsboot.com`"#pEF,e,b`"$contentsDir\efi\microsoft\boot\efisys.bin`"" $oscdimgArgs = @("-m", "-o", "-u2", "-udfver102", "-bootdata:$bootData", "-l`"CTOS_MODIFIED`"", "`"$contentsDir`"", "`"$outputISO`"") Write-Win11ISOLog "Running oscdimg..." $psi = [System.Diagnostics.ProcessStartInfo]::new() $psi.FileName = $oscdimg $psi.Arguments = $oscdimgArgs -join " " $psi.RedirectStandardOutput = $true $psi.RedirectStandardError = $true $psi.UseShellExecute = $false $psi.CreateNoWindow = $true $proc = [System.Diagnostics.Process]::new() $proc.StartInfo = $psi $proc.Start() | Out-Null # Stream stdout line-by-line as oscdimg runs while (-not $proc.StandardOutput.EndOfStream) { $line = $proc.StandardOutput.ReadLine() if ($line.Trim()) { Write-Win11ISOLog $line } } $proc.WaitForExit() # Flush any stderr after process exits $stderr = $proc.StandardError.ReadToEnd() foreach ($line in ($stderr -split "`r?`n")) { if ($line.Trim()) { Write-Win11ISOLog "[stderr]$line" } } if ($proc.ExitCode -eq 0) { SetProgress "ISO exported" 100 Write-Win11ISOLog "ISO exported successfully: $outputISO" $sync["WPFWin11ISOStatusLog"].Dispatcher.Invoke([action]{ [System.Windows.MessageBox]::Show("ISO exported successfully!`n`n$outputISO", "Export Complete", "OK", "Info") }) } else { Write-Win11ISOLog "oscdimg exited with code $($proc.ExitCode)." $sync["WPFWin11ISOStatusLog"].Dispatcher.Invoke([action]{ [System.Windows.MessageBox]::Show( "oscdimg exited with code $($proc.ExitCode).`nCheck the status log for details.", "Export Error", "OK", "Error") }) } } catch { Write-Win11ISOLog "ERROR during ISO export: $_" $sync["WPFWin11ISOStatusLog"].Dispatcher.Invoke([action]{ [System.Windows.MessageBox]::Show("ISO export failed:`n`n$_", "Error", "OK", "Error") }) } finally { Start-Sleep -Milliseconds 800 $sync["WPFWin11ISOStatusLog"].Dispatcher.Invoke([action]{ $sync.progressBarTextBlock.Text = "" $sync.progressBarTextBlock.ToolTip = "" $sync.ProgressBar.Value = 0 $sync["WPFWin11ISOChooseISOButton"].IsEnabled = $true }) } }) | Out-Null $script.BeginInvoke() | Out-Null } ================================================ FILE: functions/private/Invoke-WinUtilISOScript.ps1 ================================================ function Invoke-WinUtilISOScript { <# .SYNOPSIS Applies WinUtil modifications to a mounted Windows 11 install.wim image. .DESCRIPTION Removes AppX bloatware and OneDrive, optionally injects all drivers exported from the running system into install.wim and boot.wim (controlled by the -InjectCurrentSystemDrivers switch), applies offline registry tweaks (hardware bypass, privacy, OOBE, telemetry, update suppression), deletes CEIP/WU scheduled-task definition files, and optionally writes autounattend.xml to the ISO root and removes the support\ folder from the ISO contents directory. All setup scripts embedded in the autounattend.xml nodes are written directly into the WIM at their target paths under C:\Windows\Setup\Scripts\ to ensure they survive Windows Setup stripping unrecognised-namespace XML elements from the Panther copy of the answer file. Mounting/dismounting the WIM is the caller's responsibility (e.g. Invoke-WinUtilISO). .PARAMETER ScratchDir Mandatory. Full path to the directory where the Windows image is currently mounted. .PARAMETER ISOContentsDir Optional. Root directory of the extracted ISO contents. When supplied, autounattend.xml is written here and the support\ folder is removed. .PARAMETER AutoUnattendXml Optional. Full XML content for autounattend.xml. If empty, the OOBE bypass file is skipped and a warning is logged. .PARAMETER InjectCurrentSystemDrivers Optional. When $true, exports all drivers from the running system and injects them into install.wim and boot.wim index 2 (Windows Setup PE). Defaults to $false. .PARAMETER Log Optional ScriptBlock for progress/status logging. Receives a single [string] argument. .EXAMPLE Invoke-WinUtilISOScript -ScratchDir "C:\Temp\wim_mount" .EXAMPLE Invoke-WinUtilISOScript ` -ScratchDir $mountDir ` -ISOContentsDir $isoRoot ` -AutoUnattendXml (Get-Content .\tools\autounattend.xml -Raw) ` -Log { param($m) Write-Host $m } .NOTES Author : Chris Titus @christitustech GitHub : https://github.com/ChrisTitusTech Version : 26.03.02 #> param ( [Parameter(Mandatory)][string]$ScratchDir, [string]$ISOContentsDir = "", [string]$AutoUnattendXml = "", [bool]$InjectCurrentSystemDrivers = $false, [scriptblock]$Log = { param($m) Write-Output $m } ) $adminSID = New-Object System.Security.Principal.SecurityIdentifier('S-1-5-32-544') $adminGroup = $adminSID.Translate([System.Security.Principal.NTAccount]) function Set-ISOScriptReg { param ([string]$path, [string]$name, [string]$type, [string]$value) try { & reg add $path /v $name /t $type /d $value /f & $Log "Set registry value: $path\$name" } catch { & $Log "Error setting registry value: $_" } } function Remove-ISOScriptReg { param ([string]$path) try { & reg delete $path /f & $Log "Removed registry key: $path" } catch { & $Log "Error removing registry key: $_" } } function Add-DriversToImage { param ([string]$MountPath, [string]$DriverDir, [string]$Label = "image", [scriptblock]$Logger) & dism /English "/image:$MountPath" /Add-Driver "/Driver:$DriverDir" /Recurse 2>&1 | ForEach-Object { & $Logger " dism[$Label]: $_" } } function Invoke-BootWimInject { param ([string]$BootWimPath, [string]$DriverDir, [scriptblock]$Logger) Set-ItemProperty -Path $BootWimPath -Name IsReadOnly -Value $false -ErrorAction SilentlyContinue $mountDir = Join-Path $env:TEMP "WinUtil_BootMount_$(Get-Random)" New-Item -Path $mountDir -ItemType Directory -Force | Out-Null try { & $Logger "Mounting boot.wim (index 2) for driver injection..." Mount-WindowsImage -ImagePath $BootWimPath -Index 2 -Path $mountDir -ErrorAction Stop | Out-Null Add-DriversToImage -MountPath $mountDir -DriverDir $DriverDir -Label "boot" -Logger $Logger & $Logger "Saving boot.wim..." Dismount-WindowsImage -Path $mountDir -Save -ErrorAction Stop | Out-Null & $Logger "boot.wim driver injection complete." } catch { & $Logger "Warning: boot.wim driver injection failed: $_" try { Dismount-WindowsImage -Path $mountDir -Discard -ErrorAction SilentlyContinue | Out-Null } catch {} } finally { Remove-Item -Path $mountDir -Recurse -Force -ErrorAction SilentlyContinue } } # ── 1. Remove provisioned AppX packages ────────────────────────────────── & $Log "Removing provisioned AppX packages..." $packages = & dism /English "/image:$ScratchDir" /Get-ProvisionedAppxPackages | ForEach-Object { if ($_ -match 'PackageName : (.*)') { $matches[1] } } $packagePrefixes = @( 'AppUp.IntelManagementandSecurityStatus', 'Clipchamp.Clipchamp', 'DolbyLaboratories.DolbyAccess', 'DolbyLaboratories.DolbyDigitalPlusDecoderOEM', 'Microsoft.BingNews', 'Microsoft.BingSearch', 'Microsoft.BingWeather', 'Microsoft.Copilot', 'Microsoft.Windows.CrossDevice', 'Microsoft.GetHelp', 'Microsoft.Getstarted', 'Microsoft.Microsoft3DViewer', 'Microsoft.MicrosoftOfficeHub', 'Microsoft.MicrosoftSolitaireCollection', 'Microsoft.MicrosoftStickyNotes', 'Microsoft.MixedReality.Portal', 'Microsoft.MSPaint', 'Microsoft.Office.OneNote', 'Microsoft.OfficePushNotificationUtility', 'Microsoft.OutlookForWindows', 'Microsoft.Paint', 'Microsoft.People', 'Microsoft.PowerAutomateDesktop', 'Microsoft.SkypeApp', 'Microsoft.StartExperiencesApp', 'Microsoft.Todos', 'Microsoft.Wallet', 'Microsoft.Windows.DevHome', 'Microsoft.Windows.Copilot', 'Microsoft.Windows.Teams', 'Microsoft.WindowsAlarms', 'Microsoft.WindowsCamera', 'microsoft.windowscommunicationsapps', 'Microsoft.WindowsFeedbackHub', 'Microsoft.WindowsMaps', 'Microsoft.WindowsSoundRecorder', 'Microsoft.ZuneMusic', 'Microsoft.ZuneVideo', 'MicrosoftCorporationII.MicrosoftFamily', 'MicrosoftCorporationII.QuickAssist', 'MSTeams', 'MicrosoftTeams' ) $packages | Where-Object { $pkg = $_; $packagePrefixes | Where-Object { $pkg -like "*$_*" } } | ForEach-Object { & dism /English "/image:$ScratchDir" /Remove-ProvisionedAppxPackage "/PackageName:$_" } # ── 2. Inject current system drivers (optional) ─────────────────────────── if ($InjectCurrentSystemDrivers) { & $Log "Exporting all drivers from running system..." $driverExportRoot = Join-Path $env:TEMP "WinUtil_DriverExport_$(Get-Random)" New-Item -Path $driverExportRoot -ItemType Directory -Force | Out-Null try { Export-WindowsDriver -Online -Destination $driverExportRoot | Out-Null & $Log "Injecting current system drivers into install.wim..." Add-DriversToImage -MountPath $ScratchDir -DriverDir $driverExportRoot -Label "install" -Logger $Log & $Log "install.wim driver injection complete." if ($ISOContentsDir -and (Test-Path $ISOContentsDir)) { $bootWim = Join-Path $ISOContentsDir "sources\boot.wim" if (Test-Path $bootWim) { & $Log "Injecting current system drivers into boot.wim..." Invoke-BootWimInject -BootWimPath $bootWim -DriverDir $driverExportRoot -Logger $Log } else { & $Log "Warning: boot.wim not found — skipping boot.wim driver injection." } } } catch { & $Log "Error during driver export/injection: $_" } finally { Remove-Item -Path $driverExportRoot -Recurse -Force -ErrorAction SilentlyContinue } } else { & $Log "Driver injection skipped." } # ── 3. Remove OneDrive ──────────────────────────────────────────────────── & $Log "Removing OneDrive..." & takeown /f "$ScratchDir\Windows\System32\OneDriveSetup.exe" | Out-Null & icacls "$ScratchDir\Windows\System32\OneDriveSetup.exe" /grant "$($adminGroup.Value):(F)" /T /C | Out-Null Remove-Item -Path "$ScratchDir\Windows\System32\OneDriveSetup.exe" -Force -ErrorAction SilentlyContinue # ── 4. Registry tweaks ──────────────────────────────────────────────────── & $Log "Loading offline registry hives..." reg load HKLM\zCOMPONENTS "$ScratchDir\Windows\System32\config\COMPONENTS" reg load HKLM\zDEFAULT "$ScratchDir\Windows\System32\config\default" reg load HKLM\zNTUSER "$ScratchDir\Users\Default\ntuser.dat" reg load HKLM\zSOFTWARE "$ScratchDir\Windows\System32\config\SOFTWARE" reg load HKLM\zSYSTEM "$ScratchDir\Windows\System32\config\SYSTEM" & $Log "Bypassing system requirements..." Set-ISOScriptReg 'HKLM\zDEFAULT\Control Panel\UnsupportedHardwareNotificationCache' 'SV1' 'REG_DWORD' '0' Set-ISOScriptReg 'HKLM\zDEFAULT\Control Panel\UnsupportedHardwareNotificationCache' 'SV2' 'REG_DWORD' '0' Set-ISOScriptReg 'HKLM\zNTUSER\Control Panel\UnsupportedHardwareNotificationCache' 'SV1' 'REG_DWORD' '0' Set-ISOScriptReg 'HKLM\zNTUSER\Control Panel\UnsupportedHardwareNotificationCache' 'SV2' 'REG_DWORD' '0' Set-ISOScriptReg 'HKLM\zSYSTEM\Setup\LabConfig' 'BypassCPUCheck' 'REG_DWORD' '1' Set-ISOScriptReg 'HKLM\zSYSTEM\Setup\LabConfig' 'BypassRAMCheck' 'REG_DWORD' '1' Set-ISOScriptReg 'HKLM\zSYSTEM\Setup\LabConfig' 'BypassSecureBootCheck' 'REG_DWORD' '1' Set-ISOScriptReg 'HKLM\zSYSTEM\Setup\LabConfig' 'BypassStorageCheck' 'REG_DWORD' '1' Set-ISOScriptReg 'HKLM\zSYSTEM\Setup\LabConfig' 'BypassTPMCheck' 'REG_DWORD' '1' Set-ISOScriptReg 'HKLM\zSYSTEM\Setup\MoSetup' 'AllowUpgradesWithUnsupportedTPMOrCPU' 'REG_DWORD' '1' & $Log "Disabling sponsored apps..." Set-ISOScriptReg 'HKLM\zNTUSER\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager' 'OemPreInstalledAppsEnabled' 'REG_DWORD' '0' Set-ISOScriptReg 'HKLM\zNTUSER\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager' 'PreInstalledAppsEnabled' 'REG_DWORD' '0' Set-ISOScriptReg 'HKLM\zNTUSER\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager' 'SilentInstalledAppsEnabled' 'REG_DWORD' '0' Set-ISOScriptReg 'HKLM\zSOFTWARE\Policies\Microsoft\Windows\CloudContent' 'DisableWindowsConsumerFeatures' 'REG_DWORD' '1' Set-ISOScriptReg 'HKLM\zNTUSER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager' 'ContentDeliveryAllowed' 'REG_DWORD' '0' Set-ISOScriptReg 'HKLM\zSOFTWARE\Microsoft\PolicyManager\current\device\Start' 'ConfigureStartPins' 'REG_SZ' '{"pinnedList": [{}]}' Set-ISOScriptReg 'HKLM\zNTUSER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager' 'FeatureManagementEnabled' 'REG_DWORD' '0' Set-ISOScriptReg 'HKLM\zNTUSER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager' 'PreInstalledAppsEverEnabled' 'REG_DWORD' '0' Set-ISOScriptReg 'HKLM\zNTUSER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager' 'SoftLandingEnabled' 'REG_DWORD' '0' Set-ISOScriptReg 'HKLM\zNTUSER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager' 'SubscribedContentEnabled' 'REG_DWORD' '0' Set-ISOScriptReg 'HKLM\zNTUSER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager' 'SubscribedContent-310093Enabled' 'REG_DWORD' '0' Set-ISOScriptReg 'HKLM\zNTUSER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager' 'SubscribedContent-338388Enabled' 'REG_DWORD' '0' Set-ISOScriptReg 'HKLM\zNTUSER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager' 'SubscribedContent-338389Enabled' 'REG_DWORD' '0' Set-ISOScriptReg 'HKLM\zNTUSER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager' 'SubscribedContent-338393Enabled' 'REG_DWORD' '0' Set-ISOScriptReg 'HKLM\zNTUSER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager' 'SubscribedContent-353694Enabled' 'REG_DWORD' '0' Set-ISOScriptReg 'HKLM\zNTUSER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager' 'SubscribedContent-353696Enabled' 'REG_DWORD' '0' Set-ISOScriptReg 'HKLM\zNTUSER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager' 'SystemPaneSuggestionsEnabled' 'REG_DWORD' '0' Set-ISOScriptReg 'HKLM\zSOFTWARE\Policies\Microsoft\PushToInstall' 'DisablePushToInstall' 'REG_DWORD' '1' Set-ISOScriptReg 'HKLM\zSOFTWARE\Policies\Microsoft\MRT' 'DontOfferThroughWUAU' 'REG_DWORD' '1' Remove-ISOScriptReg 'HKLM\zNTUSER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager\Subscriptions' Remove-ISOScriptReg 'HKLM\zNTUSER\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager\SuggestedApps' Set-ISOScriptReg 'HKLM\zSOFTWARE\Policies\Microsoft\Windows\CloudContent' 'DisableConsumerAccountStateContent' 'REG_DWORD' '1' Set-ISOScriptReg 'HKLM\zSOFTWARE\Policies\Microsoft\Windows\CloudContent' 'DisableCloudOptimizedContent' 'REG_DWORD' '1' & $Log "Enabling local accounts on OOBE..." Set-ISOScriptReg 'HKLM\zSOFTWARE\Microsoft\Windows\CurrentVersion\OOBE' 'BypassNRO' 'REG_DWORD' '1' if ($AutoUnattendXml) { try { $xmlDoc = [xml]::new() $xmlDoc.LoadXml($AutoUnattendXml) $nsMgr = New-Object System.Xml.XmlNamespaceManager($xmlDoc.NameTable) $nsMgr.AddNamespace("sg", "https://schneegans.de/windows/unattend-generator/") $fileNodes = $xmlDoc.SelectNodes("//sg:File", $nsMgr) if ($fileNodes -and $fileNodes.Count -gt 0) { foreach ($fileNode in $fileNodes) { $absPath = $fileNode.GetAttribute("path") $relPath = $absPath -replace '^[A-Za-z]:[/\\]', '' $destPath = Join-Path $ScratchDir $relPath New-Item -Path (Split-Path $destPath -Parent) -ItemType Directory -Force -ErrorAction SilentlyContinue | Out-Null $ext = [IO.Path]::GetExtension($destPath).ToLower() $encoding = switch ($ext) { { $_ -in '.ps1', '.xml' } { [System.Text.Encoding]::UTF8 } { $_ -in '.reg', '.vbs', '.js' } { [System.Text.UnicodeEncoding]::new($false, $true) } default { [System.Text.Encoding]::Default } } [System.IO.File]::WriteAllBytes($destPath, ($encoding.GetPreamble() + $encoding.GetBytes($fileNode.InnerText.Trim()))) & $Log "Pre-staged setup script: $relPath" } } else { & $Log "Warning: no nodes found in autounattend.xml — setup scripts not pre-staged." } } catch { & $Log "Warning: could not pre-stage setup scripts from autounattend.xml: $_" } if ($ISOContentsDir -and (Test-Path $ISOContentsDir)) { $isoDest = Join-Path $ISOContentsDir "autounattend.xml" Set-Content -Path $isoDest -Value $AutoUnattendXml -Encoding UTF8 -Force & $Log "Written autounattend.xml to ISO root ($isoDest)." } } else { & $Log "Warning: autounattend.xml content is empty — skipping OOBE bypass file." } & $Log "Disabling reserved storage..." Set-ISOScriptReg 'HKLM\zSOFTWARE\Microsoft\Windows\CurrentVersion\ReserveManager' 'ShippedWithReserves' 'REG_DWORD' '0' & $Log "Disabling BitLocker device encryption..." Set-ISOScriptReg 'HKLM\zSYSTEM\ControlSet001\Control\BitLocker' 'PreventDeviceEncryption' 'REG_DWORD' '1' & $Log "Disabling Chat icon..." Set-ISOScriptReg 'HKLM\zSOFTWARE\Policies\Microsoft\Windows\Windows Chat' 'ChatIcon' 'REG_DWORD' '3' Set-ISOScriptReg 'HKLM\zNTUSER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced' 'TaskbarMn' 'REG_DWORD' '0' & $Log "Disabling OneDrive folder backup..." Set-ISOScriptReg 'HKLM\zSOFTWARE\Policies\Microsoft\Windows\OneDrive' 'DisableFileSyncNGSC' 'REG_DWORD' '1' & $Log "Disabling telemetry..." Set-ISOScriptReg 'HKLM\zNTUSER\Software\Microsoft\Windows\CurrentVersion\AdvertisingInfo' 'Enabled' 'REG_DWORD' '0' Set-ISOScriptReg 'HKLM\zNTUSER\Software\Microsoft\Windows\CurrentVersion\Privacy' 'TailoredExperiencesWithDiagnosticDataEnabled' 'REG_DWORD' '0' Set-ISOScriptReg 'HKLM\zNTUSER\Software\Microsoft\Speech_OneCore\Settings\OnlineSpeechPrivacy' 'HasAccepted' 'REG_DWORD' '0' Set-ISOScriptReg 'HKLM\zNTUSER\Software\Microsoft\Input\TIPC' 'Enabled' 'REG_DWORD' '0' Set-ISOScriptReg 'HKLM\zNTUSER\Software\Microsoft\InputPersonalization' 'RestrictImplicitInkCollection' 'REG_DWORD' '1' Set-ISOScriptReg 'HKLM\zNTUSER\Software\Microsoft\InputPersonalization' 'RestrictImplicitTextCollection' 'REG_DWORD' '1' Set-ISOScriptReg 'HKLM\zNTUSER\Software\Microsoft\InputPersonalization\TrainedDataStore' 'HarvestContacts' 'REG_DWORD' '0' Set-ISOScriptReg 'HKLM\zNTUSER\Software\Microsoft\Personalization\Settings' 'AcceptedPrivacyPolicy' 'REG_DWORD' '0' Set-ISOScriptReg 'HKLM\zSOFTWARE\Policies\Microsoft\Windows\DataCollection' 'AllowTelemetry' 'REG_DWORD' '0' Set-ISOScriptReg 'HKLM\zSYSTEM\ControlSet001\Services\dmwappushservice' 'Start' 'REG_DWORD' '4' & $Log "Preventing installation of DevHome and Outlook..." Set-ISOScriptReg 'HKLM\zSOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Orchestrator\UScheduler_Oobe\OutlookUpdate' 'workCompleted' 'REG_DWORD' '1' Set-ISOScriptReg 'HKLM\zSOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Orchestrator\UScheduler\OutlookUpdate' 'workCompleted' 'REG_DWORD' '1' Set-ISOScriptReg 'HKLM\zSOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Orchestrator\UScheduler\DevHomeUpdate' 'workCompleted' 'REG_DWORD' '1' Remove-ISOScriptReg 'HKLM\zSOFTWARE\Microsoft\WindowsUpdate\Orchestrator\UScheduler_Oobe\OutlookUpdate' Remove-ISOScriptReg 'HKLM\zSOFTWARE\Microsoft\WindowsUpdate\Orchestrator\UScheduler_Oobe\DevHomeUpdate' & $Log "Disabling Copilot..." Set-ISOScriptReg 'HKLM\zSOFTWARE\Policies\Microsoft\Windows\WindowsCopilot' 'TurnOffWindowsCopilot' 'REG_DWORD' '1' Set-ISOScriptReg 'HKLM\zSOFTWARE\Policies\Microsoft\Edge' 'HubsSidebarEnabled' 'REG_DWORD' '0' Set-ISOScriptReg 'HKLM\zSOFTWARE\Policies\Microsoft\Windows\Explorer' 'DisableSearchBoxSuggestions' 'REG_DWORD' '1' & $Log "Disabling Windows Update during OOBE (re-enabled on first logon via FirstLogon.ps1)..." Set-ISOScriptReg 'HKLM\zSOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU' 'NoAutoUpdate' 'REG_DWORD' '1' Set-ISOScriptReg 'HKLM\zSOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU' 'AUOptions' 'REG_DWORD' '1' Set-ISOScriptReg 'HKLM\zSOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU' 'UseWUServer' 'REG_DWORD' '1' Set-ISOScriptReg 'HKLM\zSOFTWARE\Policies\Microsoft\Windows\WindowsUpdate' 'DisableWindowsUpdateAccess' 'REG_DWORD' '1' Set-ISOScriptReg 'HKLM\zSOFTWARE\Policies\Microsoft\Windows\WindowsUpdate' 'WUServer' 'REG_SZ' 'http://localhost:8080' Set-ISOScriptReg 'HKLM\zSOFTWARE\Policies\Microsoft\Windows\WindowsUpdate' 'WUStatusServer' 'REG_SZ' 'http://localhost:8080' Set-ISOScriptReg 'HKLM\zSOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Orchestrator\UScheduler_Oobe\WindowsUpdate' 'workCompleted' 'REG_DWORD' '1' Remove-ISOScriptReg 'HKLM\zSOFTWARE\Microsoft\WindowsUpdate\Orchestrator\UScheduler_Oobe\WindowsUpdate' Set-ISOScriptReg 'HKLM\zSOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config' 'DODownloadMode' 'REG_DWORD' '0' Set-ISOScriptReg 'HKLM\zSYSTEM\ControlSet001\Services\BITS' 'Start' 'REG_DWORD' '4' Set-ISOScriptReg 'HKLM\zSYSTEM\ControlSet001\Services\wuauserv' 'Start' 'REG_DWORD' '4' Set-ISOScriptReg 'HKLM\zSYSTEM\ControlSet001\Services\UsoSvc' 'Start' 'REG_DWORD' '4' Set-ISOScriptReg 'HKLM\zSYSTEM\ControlSet001\Services\WaaSMedicSvc' 'Start' 'REG_DWORD' '4' & $Log "Preventing installation of Teams..." Set-ISOScriptReg 'HKLM\zSOFTWARE\Policies\Microsoft\Teams' 'DisableInstallation' 'REG_DWORD' '1' & $Log "Preventing installation of new Outlook..." Set-ISOScriptReg 'HKLM\zSOFTWARE\Policies\Microsoft\Windows\Windows Mail' 'PreventRun' 'REG_DWORD' '1' & $Log "Unloading offline registry hives..." reg unload HKLM\zCOMPONENTS reg unload HKLM\zDEFAULT reg unload HKLM\zNTUSER reg unload HKLM\zSOFTWARE reg unload HKLM\zSYSTEM # ── 5. Delete scheduled task definition files ───────────────────────────── & $Log "Deleting scheduled task definition files..." $tasksPath = "$ScratchDir\Windows\System32\Tasks" Remove-Item "$tasksPath\Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser" -Force -ErrorAction SilentlyContinue Remove-Item "$tasksPath\Microsoft\Windows\Customer Experience Improvement Program" -Recurse -Force -ErrorAction SilentlyContinue Remove-Item "$tasksPath\Microsoft\Windows\Application Experience\ProgramDataUpdater" -Force -ErrorAction SilentlyContinue Remove-Item "$tasksPath\Microsoft\Windows\Chkdsk\Proxy" -Force -ErrorAction SilentlyContinue Remove-Item "$tasksPath\Microsoft\Windows\Windows Error Reporting\QueueReporting" -Force -ErrorAction SilentlyContinue Remove-Item "$tasksPath\Microsoft\Windows\InstallService" -Recurse -Force -ErrorAction SilentlyContinue Remove-Item "$tasksPath\Microsoft\Windows\UpdateOrchestrator" -Recurse -Force -ErrorAction SilentlyContinue Remove-Item "$tasksPath\Microsoft\Windows\UpdateAssistant" -Recurse -Force -ErrorAction SilentlyContinue Remove-Item "$tasksPath\Microsoft\Windows\WaaSMedic" -Recurse -Force -ErrorAction SilentlyContinue Remove-Item "$tasksPath\Microsoft\Windows\WindowsUpdate" -Recurse -Force -ErrorAction SilentlyContinue Remove-Item "$tasksPath\Microsoft\WindowsUpdate" -Recurse -Force -ErrorAction SilentlyContinue & $Log "Scheduled task files deleted." # ── 6. Remove ISO support folder ───────────────────────────────────────── if ($ISOContentsDir -and (Test-Path $ISOContentsDir)) { & $Log "Removing ISO support\ folder..." Remove-Item -Path (Join-Path $ISOContentsDir "support") -Recurse -Force -ErrorAction SilentlyContinue & $Log "ISO support\ folder removed." } } ================================================ FILE: functions/private/Invoke-WinUtilISOUSB.ps1 ================================================ function Invoke-WinUtilISORefreshUSBDrives { $combo = $sync["WPFWin11ISOUSBDriveComboBox"] $removable = @(Get-Disk | Where-Object { $_.BusType -eq "USB" } | Sort-Object Number) $combo.Items.Clear() if ($removable.Count -eq 0) { $combo.Items.Add("No USB drives detected") $combo.SelectedIndex = 0 $sync["Win11ISOUSBDisks"] = @() Write-Win11ISOLog "No USB drives detected." return } foreach ($disk in $removable) { $sizeGB = [math]::Round($disk.Size / 1GB, 1) $combo.Items.Add("Disk $($disk.Number): $($disk.FriendlyName) [$sizeGB GB] - $($disk.PartitionStyle)") } $combo.SelectedIndex = 0 Write-Win11ISOLog "Found $($removable.Count) USB drive(s)." $sync["Win11ISOUSBDisks"] = $removable } function Invoke-WinUtilISOWriteUSB { $contentsDir = $sync["Win11ISOContentsDir"] $usbDisks = $sync["Win11ISOUSBDisks"] if (-not $contentsDir -or -not (Test-Path $contentsDir)) { [System.Windows.MessageBox]::Show("No modified ISO content found. Please complete Steps 1-3 first.", "Not Ready", "OK", "Warning") return } $combo = $sync["WPFWin11ISOUSBDriveComboBox"] $selectedIndex = $combo.SelectedIndex $selectedItemText = [string]$combo.SelectedItem $usbDisks = @($usbDisks) $targetDisk = $null if ($selectedIndex -ge 0 -and $selectedIndex -lt $usbDisks.Count) { $targetDisk = $usbDisks[$selectedIndex] } elseif ($selectedItemText -match 'Disk\s+(\d+):') { $selectedDiskNum = [int]$matches[1] $targetDisk = $usbDisks | Where-Object { $_.Number -eq $selectedDiskNum } | Select-Object -First 1 } if (-not $targetDisk) { [System.Windows.MessageBox]::Show("Please select a USB drive from the dropdown.", "No Drive Selected", "OK", "Warning") return } $diskNum = $targetDisk.Number $sizeGB = [math]::Round($targetDisk.Size / 1GB, 1) $confirm = [System.Windows.MessageBox]::Show( "ALL data on Disk $diskNum ($($targetDisk.FriendlyName), $sizeGB GB) will be PERMANENTLY ERASED.`n`nAre you sure you want to continue?", "Confirm USB Erase", "YesNo", "Warning") if ($confirm -ne "Yes") { Write-Win11ISOLog "USB write cancelled by user." return } $sync["WPFWin11ISOWriteUSBButton"].IsEnabled = $false Write-Win11ISOLog "Starting USB write to Disk $diskNum..." $runspace = [Management.Automation.Runspaces.RunspaceFactory]::CreateRunspace() $runspace.ApartmentState = "STA" $runspace.ThreadOptions = "ReuseThread" $runspace.Open() $runspace.SessionStateProxy.SetVariable("sync", $sync) $runspace.SessionStateProxy.SetVariable("diskNum", $diskNum) $runspace.SessionStateProxy.SetVariable("contentsDir", $contentsDir) $script = [Management.Automation.PowerShell]::Create() $script.Runspace = $runspace $script.AddScript({ function Log($msg) { $ts = (Get-Date).ToString("HH:mm:ss") $sync["WPFWin11ISOStatusLog"].Dispatcher.Invoke([action]{ $sync["WPFWin11ISOStatusLog"].Text += "`n[$ts] $msg" $sync["WPFWin11ISOStatusLog"].CaretIndex = $sync["WPFWin11ISOStatusLog"].Text.Length $sync["WPFWin11ISOStatusLog"].ScrollToEnd() }) } function SetProgress($label, $pct) { $sync["WPFWin11ISOStatusLog"].Dispatcher.Invoke([action]{ $sync.progressBarTextBlock.Text = $label $sync.progressBarTextBlock.ToolTip = $label $sync.ProgressBar.Value = [Math]::Max($pct, 5) }) } function Get-FreeDriveLetter { $used = (Get-PSDrive -PSProvider FileSystem -ErrorAction SilentlyContinue).Name foreach ($c in [char[]](68..90)) { if ($used -notcontains [string]$c) { return $c } } return $null } try { SetProgress "Formatting USB drive..." 10 # Phase 1: Clean disk via diskpart (retry once if the drive is not yet ready) $dpFile1 = Join-Path $env:TEMP "winutil_diskpart_$(Get-Random).txt" "select disk $diskNum`nclean`nexit" | Set-Content -Path $dpFile1 -Encoding ASCII Log "Running diskpart clean on Disk $diskNum..." $dpCleanOut = diskpart /s $dpFile1 2>&1 $dpCleanOut | Where-Object { $_ -match '\S' } | ForEach-Object { Log " diskpart: $_" } Remove-Item $dpFile1 -Force -ErrorAction SilentlyContinue if (($dpCleanOut -join ' ') -match 'device is not ready') { Log "Disk $diskNum was not ready; waiting 5 seconds and retrying clean..." Start-Sleep -Seconds 5 Update-Disk -Number $diskNum -ErrorAction SilentlyContinue $dpFile1b = Join-Path $env:TEMP "winutil_diskpart_$(Get-Random).txt" "select disk $diskNum`nclean`nexit" | Set-Content -Path $dpFile1b -Encoding ASCII diskpart /s $dpFile1b 2>&1 | Where-Object { $_ -match '\S' } | ForEach-Object { Log " diskpart: $_" } Remove-Item $dpFile1b -Force -ErrorAction SilentlyContinue } # Phase 2: Initialize as GPT Start-Sleep -Seconds 2 Update-Disk -Number $diskNum -ErrorAction SilentlyContinue $diskObj = Get-Disk -Number $diskNum -ErrorAction Stop if ($diskObj.PartitionStyle -eq 'RAW') { Initialize-Disk -Number $diskNum -PartitionStyle GPT -ErrorAction Stop Log "Disk $diskNum initialized as GPT." } else { Set-Disk -Number $diskNum -PartitionStyle GPT -ErrorAction Stop Log "Disk $diskNum converted to GPT (was $($diskObj.PartitionStyle))." } # Phase 3: Create FAT32 partition via diskpart, then format with Format-Volume # (diskpart's 'format' command can fail with "no volume selected" on fresh/never-formatted drives) $volLabel = "W11-" + (Get-Date).ToString('yyMMdd') $dpFile2 = Join-Path $env:TEMP "winutil_diskpart2_$(Get-Random).txt" $maxFat32PartitionMB = 32768 $diskSizeMB = [int][Math]::Floor((Get-Disk -Number $diskNum -ErrorAction Stop).Size / 1MB) $createPartitionCommand = "create partition primary" if ($diskSizeMB -gt $maxFat32PartitionMB) { $createPartitionCommand = "create partition primary size=$maxFat32PartitionMB" Log "Disk $diskNum is $diskSizeMB MB; creating FAT32 partition capped at $maxFat32PartitionMB MB (32 GB)." } @( "select disk $diskNum" $createPartitionCommand "exit" ) | Set-Content -Path $dpFile2 -Encoding ASCII Log "Creating partitions on Disk $diskNum..." diskpart /s $dpFile2 2>&1 | Where-Object { $_ -match '\S' } | ForEach-Object { Log " diskpart: $_" } Remove-Item $dpFile2 -Force -ErrorAction SilentlyContinue SetProgress "Formatting USB partition..." 25 Start-Sleep -Seconds 3 Update-Disk -Number $diskNum -ErrorAction SilentlyContinue $partitions = Get-Partition -DiskNumber $diskNum -ErrorAction Stop Log "Partitions on Disk $diskNum after creation: $($partitions.Count)" foreach ($p in $partitions) { Log " Partition $($p.PartitionNumber) Type=$($p.Type) Letter=$($p.DriveLetter) Size=$([math]::Round($p.Size/1MB))MB" } $winpePart = $partitions | Where-Object { $_.Type -eq "Basic" } | Select-Object -Last 1 if (-not $winpePart) { throw "Could not find the Basic partition on Disk $diskNum after creation." } # Format using Format-Volume (reliable on fresh drives; diskpart format fails # with 'no volume selected' when the partition has never been formatted before) Log "Formatting Partition $($winpePart.PartitionNumber) as FAT32 (label: $volLabel)..." Get-Partition -DiskNumber $diskNum -PartitionNumber $winpePart.PartitionNumber | Format-Volume -FileSystem FAT32 -NewFileSystemLabel $volLabel -Force -Confirm:$false | Out-Null Log "Partition $($winpePart.PartitionNumber) formatted as FAT32." SetProgress "Assigning drive letters..." 30 Start-Sleep -Seconds 2 Update-Disk -Number $diskNum -ErrorAction SilentlyContinue try { Remove-PartitionAccessPath -DiskNumber $diskNum -PartitionNumber $winpePart.PartitionNumber -AccessPath "$($winpePart.DriveLetter):" -ErrorAction SilentlyContinue } catch {} $usbLetter = Get-FreeDriveLetter if (-not $usbLetter) { throw "No free drive letters (D-Z) available to assign to the USB data partition." } Set-Partition -DiskNumber $diskNum -PartitionNumber $winpePart.PartitionNumber -NewDriveLetter $usbLetter Log "Assigned drive letter $usbLetter to WINPE partition (Partition $($winpePart.PartitionNumber))." Start-Sleep -Seconds 2 $usbDrive = "${usbLetter}:" $retries = 0 while (-not (Test-Path $usbDrive) -and $retries -lt 6) { $retries++ Log "Waiting for $usbDrive to become accessible (attempt $retries/6)..." Start-Sleep -Seconds 2 } if (-not (Test-Path $usbDrive)) { throw "Drive $usbDrive is not accessible after letter assignment." } Log "USB data partition: $usbDrive" $contentSizeBytes = (Get-ChildItem -LiteralPath $contentsDir -File -Recurse -Force -ErrorAction Stop | Measure-Object -Property Length -Sum).Sum if (-not $contentSizeBytes) { $contentSizeBytes = 0 } $usbVolume = Get-Volume -DriveLetter $usbLetter -ErrorAction Stop $partitionCapacityBytes = [int64]$usbVolume.Size $partitionFreeBytes = [int64]$usbVolume.SizeRemaining $contentSizeGB = [math]::Round($contentSizeBytes / 1GB, 2) $partitionCapacityGB = [math]::Round($partitionCapacityBytes / 1GB, 2) $partitionFreeGB = [math]::Round($partitionFreeBytes / 1GB, 2) Log "Source content size: $contentSizeGB GB. USB partition capacity: $partitionCapacityGB GB, free: $partitionFreeGB GB." if ($contentSizeBytes -gt $partitionCapacityBytes) { throw "ISO content ($contentSizeGB GB) is larger than the USB partition capacity ($partitionCapacityGB GB). Use a larger USB drive or reduce image size." } if ($contentSizeBytes -gt $partitionFreeBytes) { throw "Insufficient free space on USB partition. Required: $contentSizeGB GB, available: $partitionFreeGB GB." } SetProgress "Copying Windows 11 files to USB..." 45 # Copy files; split install.wim if > 4 GB (FAT32 limit) $installWim = Join-Path $contentsDir "sources\install.wim" if (Test-Path $installWim) { $wimSizeMB = [math]::Round((Get-Item $installWim).Length / 1MB) if ($wimSizeMB -gt 3800) { Log "install.wim is $wimSizeMB MB - splitting for FAT32 compatibility... This will take several minutes." $splitDest = Join-Path $usbDrive "sources\install.swm" New-Item -ItemType Directory -Path (Split-Path $splitDest) -Force | Out-Null Split-WindowsImage -ImagePath $installWim -SplitImagePath $splitDest -FileSize 3800 -CheckIntegrity Log "install.wim split complete." Log "Copying remaining files to USB..." & robocopy $contentsDir $usbDrive /E /XF install.wim /NFL /NDL /NJH /NJS } else { & robocopy $contentsDir $usbDrive /E /NFL /NDL /NJH /NJS } } else { & robocopy $contentsDir $usbDrive /E /NFL /NDL /NJH /NJS } SetProgress "Finalising USB drive..." 90 Log "Files copied to USB." SetProgress "USB write complete" 100 Log "USB drive is ready for use." $sync["WPFWin11ISOStatusLog"].Dispatcher.Invoke([action]{ [System.Windows.MessageBox]::Show( "USB drive created successfully!`n`nYou can now boot from this drive to install Windows 11.", "USB Ready", "OK", "Info") }) } catch { Log "ERROR during USB write: $_" $sync["WPFWin11ISOStatusLog"].Dispatcher.Invoke([action]{ [System.Windows.MessageBox]::Show("USB write failed:`n`n$_", "USB Write Error", "OK", "Error") }) } finally { Start-Sleep -Milliseconds 800 $sync["WPFWin11ISOStatusLog"].Dispatcher.Invoke([action]{ $sync.progressBarTextBlock.Text = "" $sync.progressBarTextBlock.ToolTip = "" $sync.ProgressBar.Value = 0 $sync["WPFWin11ISOWriteUSBButton"].IsEnabled = $true }) } }) | Out-Null $script.BeginInvoke() | Out-Null } ================================================ FILE: functions/private/Invoke-WinUtilInstallPSProfile.ps1 ================================================ function Invoke-WinUtilInstallPSProfile { if (Test-Path $Profile) { Rename-Item $Profile -NewName ($Profile + '.bak') } Start-Process pwsh -ArgumentList '-Command "irm https://github.com/ChrisTitusTech/powershell-profile/raw/main/setup.ps1 | iex"' } ================================================ FILE: functions/private/Invoke-WinUtilSSHServer.ps1 ================================================ function Invoke-WinUtilSSHServer { <# .SYNOPSIS Enables OpenSSH server to remote into your windows device #> # Get the latest version of OpenSSH Server $FeatureName = Get-WindowsCapability -Online | Where-Object { $_.Name -like "OpenSSH.Server*" } # Install the OpenSSH Server feature if not already installed if ($FeatureName.State -ne "Installed") { Write-Host "Enabling OpenSSH Server" Add-WindowsCapability -Online -Name $FeatureName.Name } # Sets up the OpenSSH Server service Write-Host "Starting the services" Start-Service -Name sshd Set-Service -Name sshd -StartupType Automatic # Sets up the ssh-agent service Start-Service 'ssh-agent' Set-Service -Name 'ssh-agent' -StartupType 'Automatic' # Confirm the required services are running $SSHDaemonService = Get-Service -Name sshd $SSHAgentService = Get-Service -Name 'ssh-agent' if ($SSHDaemonService.Status -eq 'Running') { Write-Host "OpenSSH Server is running." } else { try { Write-Host "OpenSSH Server is not running. Attempting to restart..." Restart-Service -Name sshd -Force Write-Host "OpenSSH Server has been restarted successfully." } catch { Write-Host "Failed to restart OpenSSH Server: $_" } } if ($SSHAgentService.Status -eq 'Running') { Write-Host "ssh-agent is running." } else { try { Write-Host "ssh-agent is not running. Attempting to restart..." Restart-Service -Name sshd -Force Write-Host "ssh-agent has been restarted successfully." } catch { Write-Host "Failed to restart ssh-agent : $_" } } #Adding Firewall rule for port 22 Write-Host "Setting up firewall rules" $firewallRule = (Get-NetFirewallRule -Name 'sshd').Enabled if ($firewallRule) { Write-Host "Firewall rule for OpenSSH Server (sshd) already exists." } else { New-NetFirewallRule -Name sshd -DisplayName 'OpenSSH Server (sshd)' -Enabled True -Direction Inbound -Protocol TCP -Action Allow -LocalPort 22 Write-Host "Firewall rule for OpenSSH Server created and enabled." } # Check for the authorized_keys file $sshFolderPath = "$env:HOMEDRIVE\$env:HOMEPATH\.ssh" $authorizedKeysPath = "$sshFolderPath\authorized_keys" if (-not (Test-Path -Path $sshFolderPath)) { Write-Host "Creating ssh directory..." New-Item -Path $sshFolderPath -ItemType Directory -Force } if (-not (Test-Path -Path $authorizedKeysPath)) { Write-Host "Creating authorized_keys file..." New-Item -Path $authorizedKeysPath -ItemType File -Force Write-Host "authorized_keys file created at $authorizedKeysPath." } else { Write-Host "authorized_keys file already exists at $authorizedKeysPath." } Write-Host "OpenSSH server was successfully enabled." Write-Host "The config file can be located at C:\ProgramData\ssh\sshd_config " Write-Host "Add your public keys to this file -> $authorizedKeysPath" } ================================================ FILE: functions/private/Invoke-WinUtilScript.ps1 ================================================ function Invoke-WinUtilScript { <# .SYNOPSIS Invokes the provided scriptblock. Intended for things that can't be handled with the other functions. .PARAMETER Name The name of the scriptblock being invoked .PARAMETER scriptblock The scriptblock to be invoked .EXAMPLE $Scriptblock = [scriptblock]::Create({"Write-output 'Hello World'"}) Invoke-WinUtilScript -ScriptBlock $scriptblock -Name "Hello World" #> param ( $Name, [scriptblock]$scriptblock ) try { Write-Host "Running Script for $name" Invoke-Command $scriptblock -ErrorAction Stop } catch [System.Management.Automation.CommandNotFoundException] { Write-Warning "The specified command was not found." Write-Warning $PSItem.Exception.message } catch [System.Management.Automation.RuntimeException] { Write-Warning "A runtime exception occurred." Write-Warning $PSItem.Exception.message } catch [System.Security.SecurityException] { Write-Warning "A security exception occurred." Write-Warning $PSItem.Exception.message } catch [System.UnauthorizedAccessException] { Write-Warning "Access denied. You do not have permission to perform this operation." Write-Warning $PSItem.Exception.message } catch { # Generic catch block to handle any other type of exception Write-Warning "Unable to run script for $name due to unhandled exception" Write-Warning $psitem.Exception.StackTrace } } ================================================ FILE: functions/private/Invoke-WinUtilSponsors.ps1 ================================================ Function Invoke-WinUtilSponsors { <# .SYNOPSIS Lists Sponsors from ChrisTitusTech .DESCRIPTION Lists Sponsors from ChrisTitusTech .EXAMPLE Invoke-WinUtilSponsors .NOTES This function is used to list sponsors from ChrisTitusTech #> try { # Define the URL and headers $url = "https://github.com/sponsors/ChrisTitusTech" $headers = @{ "User-Agent" = "Chrome/58.0.3029.110" } # Fetch the webpage content try { $html = Invoke-RestMethod -Uri $url -Headers $headers } catch { Write-Output $_.Exception.Message exit } # Use regex to extract the content between "Current sponsors" and "Past sponsors" $currentSponsorsPattern = '(?s)(?<=Current sponsors).*?(?=Past sponsors)' $currentSponsorsHtml = [regex]::Match($html, $currentSponsorsPattern).Value # Use regex to extract the sponsor usernames from the alt attributes in the "Current Sponsors" section $sponsorPattern = '(?<=alt="@)[^"]+' $sponsors = [regex]::Matches($currentSponsorsHtml, $sponsorPattern) | ForEach-Object { $_.Value } # Exclude "ChrisTitusTech" from the sponsors $sponsors = $sponsors | Where-Object { $_ -ne "ChrisTitusTech" } # Return the sponsors return $sponsors } catch { Write-Error "An error occurred while fetching or processing the sponsors: $_" return $null } } ================================================ FILE: functions/private/Invoke-WinUtilTweaks.ps1 ================================================ function Invoke-WinUtilTweaks { <# .SYNOPSIS Invokes the function associated with each provided checkbox .PARAMETER CheckBox The checkbox to invoke .PARAMETER undo Indicates whether to undo the operation contained in the checkbox .PARAMETER KeepServiceStartup Indicates whether to override the startup of a service with the one given from WinUtil, or to keep the startup of said service, if it was changed by the user, or another program, from its default value. #> param( $CheckBox, $undo = $false, $KeepServiceStartup = $true ) Write-Debug "Tweaks: $($CheckBox)" if($undo) { $Values = @{ Registry = "OriginalValue" ScheduledTask = "OriginalState" Service = "OriginalType" ScriptType = "UndoScript" } } else { $Values = @{ Registry = "Value" ScheduledTask = "State" Service = "StartupType" OriginalService = "OriginalType" ScriptType = "InvokeScript" } } if($sync.configs.tweaks.$CheckBox.ScheduledTask) { $sync.configs.tweaks.$CheckBox.ScheduledTask | ForEach-Object { Write-Debug "$($psitem.Name) and state is $($psitem.$($values.ScheduledTask))" Set-WinUtilScheduledTask -Name $psitem.Name -State $psitem.$($values.ScheduledTask) } } if($sync.configs.tweaks.$CheckBox.service) { Write-Debug "KeepServiceStartup is $KeepServiceStartup" $sync.configs.tweaks.$CheckBox.service | ForEach-Object { $changeservice = $true # The check for !($undo) is required, without it the script will throw an error for accessing unavailable member, which's the 'OriginalService' Property if($KeepServiceStartup -AND !($undo)) { try { # Check if the service exists $service = Get-Service -Name $psitem.Name -ErrorAction Stop if(!($service.StartType.ToString() -eq $psitem.$($values.OriginalService))) { Write-Debug "Service $($service.Name) was changed in the past to $($service.StartType.ToString()) from it's original type of $($psitem.$($values.OriginalService)), will not change it to $($psitem.$($values.service))" $changeservice = $false } } catch [System.ServiceProcess.ServiceNotFoundException] { Write-Warning "Service $($psitem.Name) was not found" } } if($changeservice) { Write-Debug "$($psitem.Name) and state is $($psitem.$($values.service))" Set-WinUtilService -Name $psitem.Name -StartupType $psitem.$($values.Service) } } } if($sync.configs.tweaks.$CheckBox.registry) { $sync.configs.tweaks.$CheckBox.registry | ForEach-Object { Write-Debug "$($psitem.Name) and state is $($psitem.$($values.registry))" if (($psitem.Path -imatch "hku") -and !(Get-PSDrive -Name HKU -ErrorAction SilentlyContinue)) { $null = (New-PSDrive -PSProvider Registry -Name HKU -Root HKEY_USERS) if (Get-PSDrive -Name HKU -ErrorAction SilentlyContinue) { Write-Debug "HKU drive created successfully" } else { Write-Debug "Failed to create HKU drive" } } Set-WinUtilRegistry -Name $psitem.Name -Path $psitem.Path -Type $psitem.Type -Value $psitem.$($values.registry) } } if($sync.configs.tweaks.$CheckBox.$($values.ScriptType)) { $sync.configs.tweaks.$CheckBox.$($values.ScriptType) | ForEach-Object { Write-Debug "$($psitem) and state is $($psitem.$($values.ScriptType))" $Scriptblock = [scriptblock]::Create($psitem) Invoke-WinUtilScript -ScriptBlock $scriptblock -Name $CheckBox } } if(!$undo) { if($sync.configs.tweaks.$CheckBox.appx) { $sync.configs.tweaks.$CheckBox.appx | ForEach-Object { Write-Debug "UNDO $($psitem.Name)" Remove-WinUtilAPPX -Name $psitem } } } } ================================================ FILE: functions/private/Invoke-WinUtilUninstallPSProfile.ps1 ================================================ function Invoke-WinUtilUninstallPSProfile { if (Test-Path ($Profile + '.bak')) { Remove-Item $Profile Rename-Item ($Profile + '.bak') -NewName $Profile } else { Remove-Item $Profile } Write-Host "Successfully uninstalled CTT Powershell Profile" -ForegroundColor Green } ================================================ FILE: functions/private/Invoke-WinutilThemeChange.ps1 ================================================ function Invoke-WinutilThemeChange { <# .SYNOPSIS Toggles between light and dark themes for a Windows utility application. .DESCRIPTION This function toggles the theme of the user interface between 'Light' and 'Dark' modes, modifying various UI elements such as colors, margins, corner radii, font families, etc. If the '-init' switch is used, it initializes the theme based on the system's current dark mode setting. .EXAMPLE Invoke-WinutilThemeChange # Toggles the theme between 'Light' and 'Dark'. #> param ( [string]$theme = "Auto" ) function Set-WinutilTheme { <# .SYNOPSIS Applies the specified theme to the application's user interface. .DESCRIPTION This internal function applies the given theme by setting the relevant properties like colors, font families, corner radii, etc., in the UI. It uses the 'Set-ThemeResourceProperty' helper function to modify the application's resources. .PARAMETER currentTheme The name of the theme to be applied. Common values are "Light", "Dark", or "shared". #> param ( [string]$currentTheme ) function Set-ThemeResourceProperty { <# .SYNOPSIS Sets a specific UI property in the application's resources. .DESCRIPTION This helper function sets a property (e.g., color, margin, corner radius) in the application's resources, based on the provided type and value. It includes error handling to manage potential issues while setting a property. .PARAMETER Name The name of the resource property to modify (e.g., "MainBackgroundColor", "ButtonBackgroundMouseoverColor"). .PARAMETER Value The value to assign to the resource property (e.g., "#FFFFFF" for a color). .PARAMETER Type The type of the resource, such as "ColorBrush", "CornerRadius", "GridLength", or "FontFamily". #> param($Name, $Value, $Type) try { # Set the resource property based on its type $sync.Form.Resources[$Name] = switch ($Type) { "ColorBrush" { [Windows.Media.SolidColorBrush]::new($Value) } "Color" { # Convert hex string to RGB values $hexColor = $Value.TrimStart("#") $r = [Convert]::ToInt32($hexColor.Substring(0,2), 16) $g = [Convert]::ToInt32($hexColor.Substring(2,2), 16) $b = [Convert]::ToInt32($hexColor.Substring(4,2), 16) [Windows.Media.Color]::FromRgb($r, $g, $b) } "CornerRadius" { [System.Windows.CornerRadius]::new($Value) } "GridLength" { [System.Windows.GridLength]::new($Value) } "Thickness" { # Parse the Thickness value (supports 1, 2, or 4 inputs) $values = $Value -split "," switch ($values.Count) { 1 { [System.Windows.Thickness]::new([double]$values[0]) } 2 { [System.Windows.Thickness]::new([double]$values[0], [double]$values[1]) } 4 { [System.Windows.Thickness]::new([double]$values[0], [double]$values[1], [double]$values[2], [double]$values[3]) } } } "FontFamily" { [Windows.Media.FontFamily]::new($Value) } "Double" { [double]$Value } default { $Value } } } catch { # Log a warning if there's an issue setting the property Write-Warning "Failed to set property $($Name): $_" } } # Retrieve all theme properties from the theme configuration $themeProperties = $sync.configs.themes.$currentTheme.PSObject.Properties foreach ($_ in $themeProperties) { # Apply properties that deal with colors if ($_.Name -like "*color*") { Set-ThemeResourceProperty -Name $_.Name -Value $_.Value -Type "ColorBrush" # For certain color properties, also set complementary values (e.g., BorderColor -> CBorderColor) This is required because e.g DropShadowEffect requires a and not a object if ($_.Name -in @("BorderColor", "ButtonBackgroundMouseoverColor")) { Set-ThemeResourceProperty -Name "C$($_.Name)" -Value $_.Value -Type "Color" } } # Apply corner radius properties elseif ($_.Name -like "*Radius*") { Set-ThemeResourceProperty -Name $_.Name -Value $_.Value -Type "CornerRadius" } # Apply row height properties elseif ($_.Name -like "*RowHeight*") { Set-ThemeResourceProperty -Name $_.Name -Value $_.Value -Type "GridLength" } # Apply thickness or margin properties elseif (($_.Name -like "*Thickness*") -or ($_.Name -like "*margin")) { Set-ThemeResourceProperty -Name $_.Name -Value $_.Value -Type "Thickness" } # Apply font family properties elseif ($_.Name -like "*FontFamily*") { Set-ThemeResourceProperty -Name $_.Name -Value $_.Value -Type "FontFamily" } # Apply any other properties as doubles (numerical values) else { Set-ThemeResourceProperty -Name $_.Name -Value $_.Value -Type "Double" } } } $sync.preferences.theme = $theme Set-Preferences -save Set-WinutilTheme -currentTheme "shared" switch ($sync.preferences.theme) { "Auto" { $systemUsesDarkMode = Get-WinUtilToggleStatus WPFToggleDarkMode if ($systemUsesDarkMode) { $theme = "Dark" } else{ $theme = "Light" } Set-WinutilTheme -currentTheme $theme $themeButtonIcon = [char]0xF08C } "Dark" { Set-WinutilTheme -currentTheme $sync.preferences.theme $themeButtonIcon = [char]0xE708 } "Light" { Set-WinutilTheme -currentTheme $sync.preferences.theme $themeButtonIcon = [char]0xE706 } } # Set FOSS Highlight Color $fossEnabled = $true if ($sync.WPFToggleFOSSHighlight) { $fossEnabled = $sync.WPFToggleFOSSHighlight.IsChecked } if ($fossEnabled) { $sync.Form.Resources["FOSSColor"] = [Windows.Media.SolidColorBrush]::new([Windows.Media.Color]::FromRgb(76, 175, 80)) # #4CAF50 } else { $sync.Form.Resources["FOSSColor"] = $sync.Form.Resources["MainForegroundColor"] } # Update the theme selector button with the appropriate icon $ThemeButton = $sync.Form.FindName("ThemeButton") $ThemeButton.Content = [string]$themeButtonIcon } ================================================ FILE: functions/private/Remove-WinUtilAPPX.ps1 ================================================ function Remove-WinUtilAPPX { <# .SYNOPSIS Removes all APPX packages that match the given name .PARAMETER Name The name of the APPX package to remove .EXAMPLE Remove-WinUtilAPPX -Name "Microsoft.Microsoft3DViewer" #> param ( $Name ) Write-Host "Removing $Name" Get-AppxPackage $Name -AllUsers | Remove-AppxPackage -AllUsers Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like $Name | Remove-AppxProvisionedPackage -Online } ================================================ FILE: functions/private/Reset-WPFCheckBoxes.ps1 ================================================ function Reset-WPFCheckBoxes { <# .SYNOPSIS Set winutil checkboxs to match $sync.selected values. Should only need to be run if $sync.selected updated outside of UI (i.e. presets or import) .PARAMETER doToggles Whether or not to set UI toggles. WARNING: they will trigger if altered .PARAMETER checkboxfilterpattern The Pattern to use when filtering through CheckBoxes, defaults to "**" Used to make reset blazingly fast. #> param ( [Parameter(position=0)] [bool]$doToggles = $false, [Parameter(position=1)] [string]$checkboxfilterpattern = "**" ) $CheckBoxesToCheck = $sync.selectedApps + $sync.selectedTweaks + $sync.selectedFeatures $CheckBoxes = ($sync.GetEnumerator()).where{ $_.Value -is [System.Windows.Controls.CheckBox] -and $_.Name -notlike "WPFToggle*" -and $_.Name -like "$checkboxfilterpattern"} Write-Debug "Getting checkboxes to set, number of checkboxes: $($CheckBoxes.Count)" if ($CheckBoxesToCheck -ne "") { $debugMsg = "CheckBoxes to Check are: " $CheckBoxesToCheck | ForEach-Object { $debugMsg += "$_, " } $debugMsg = $debugMsg -replace (',\s*$', '') Write-Debug "$debugMsg" } foreach ($CheckBox in $CheckBoxes) { $checkboxName = $CheckBox.Key if (-not $CheckBoxesToCheck) { $sync.$checkBoxName.IsChecked = $false continue } # Check if the checkbox name exists in the flattened JSON hashtable if ($CheckBoxesToCheck -contains $checkboxName) { # If it exists, set IsChecked to true $sync.$checkboxName.IsChecked = $true Write-Debug "$checkboxName is checked" } else { # If it doesn't exist, set IsChecked to false $sync.$checkboxName.IsChecked = $false Write-Debug "$checkboxName is not checked" } } # Update Installs tab UI values $count = $sync.SelectedApps.Count $sync.WPFselectedAppsButton.Content = "Selected Apps: $count" # On every change, remove all entries inside the Popup Menu. This is done, so we can keep the alphabetical order even if elements are selected in a random way $sync.selectedAppsstackPanel.Children.Clear() $sync.selectedApps | Foreach-Object { Add-SelectedAppsMenuItem -name $($sync.configs.applicationsHashtable.$_.Content) -key $_ } if($doToggles) { # Restore toggle switch states from imported config. # Only act on toggles that are explicitly listed in the import — toggles absent # from the export file were not part of the saved config and should keep whatever # state the live system already has (set during UI initialisation via Get-WinUtilToggleStatus). $importedToggles = $sync.selectedToggles $allToggles = $sync.GetEnumerator() | Where-Object { $_.Key -like "WPFToggle*" -and $_.Value -is [System.Windows.Controls.CheckBox] } foreach ($toggle in $allToggles) { if ($importedToggles -contains $toggle.Key) { $sync[$toggle.Key].IsChecked = $true Write-Debug "Restoring toggle: $($toggle.Key) = checked" } # Toggles not present in the import are intentionally left untouched; # their current UI state already reflects the real system state. } } } ================================================ FILE: functions/private/Set-Preferences.ps1 ================================================ function Set-Preferences{ param( [switch]$save=$false ) # TODO delete this function sometime later function Clean-OldPrefs{ if (Test-Path -Path "$winutildir\LightTheme.ini") { $sync.preferences.theme = "Light" Remove-Item -Path "$winutildir\LightTheme.ini" } if (Test-Path -Path "$winutildir\DarkTheme.ini") { $sync.preferences.theme = "Dark" Remove-Item -Path "$winutildir\DarkTheme.ini" } # check old prefs, if its first line has no =, then absorb it as pm if (Test-Path -Path $iniPath) { $oldPM = Get-Content $iniPath if ($oldPM -notlike "*=*") { $sync.preferences.packagemanager = $oldPM } } if (Test-Path -Path "$winutildir\preferChocolatey.ini") { $sync.preferences.packagemanager = "Choco" Remove-Item -Path "$winutildir\preferChocolatey.ini" } } function Save-Preferences{ $ini = "" foreach($key in $sync.preferences.Keys) { $pref = "$($key)=$($sync.preferences.$key)" Write-Debug "Saving pref: $($pref)" $ini = $ini + $pref + "`r`n" } $ini | Out-File $iniPath } function Load-Preferences{ Clean-OldPrefs if (Test-Path -Path $iniPath) { $iniData = Get-Content "$winutildir\preferences.ini" foreach ($line in $iniData) { if ($line -like "*=*") { $arr = $line -split "=",-2 $key = $arr[0] -replace "\s","" $value = $arr[1] -replace "\s","" Write-Debug "Preference: Key = '$($key)' Value ='$($value)'" $sync.preferences.$key = $value } } } # write defaults in case preferences dont exist if ($null -eq $sync.preferences.theme) { $sync.preferences.theme = "Auto" } if ($null -eq $sync.preferences.packagemanager) { $sync.preferences.packagemanager = "Winget" } # convert packagemanager to enum if ($sync.preferences.packagemanager -eq "Choco") { $sync.preferences.packagemanager = [PackageManagers]::Choco } elseif ($sync.preferences.packagemanager -eq "Winget") { $sync.preferences.packagemanager = [PackageManagers]::Winget } } $iniPath = "$winutildir\preferences.ini" if ($save) { Save-Preferences } else { Load-Preferences } } ================================================ FILE: functions/private/Set-WinUtilDNS.ps1 ================================================ function Set-WinUtilDNS { <# .SYNOPSIS Sets the DNS of all interfaces that are in the "Up" state. It will lookup the values from the DNS.Json file .PARAMETER DNSProvider The DNS provider to set the DNS server to .EXAMPLE Set-WinUtilDNS -DNSProvider "google" #> param($DNSProvider) if($DNSProvider -eq "Default") {return} try { $Adapters = Get-NetAdapter | Where-Object {$_.Status -eq "Up"} Write-Host "Ensuring DNS is set to $DNSProvider on the following interfaces" Write-Host $($Adapters | Out-String) Foreach ($Adapter in $Adapters) { if($DNSProvider -eq "DHCP") { Set-DnsClientServerAddress -InterfaceIndex $Adapter.ifIndex -ResetServerAddresses } else { Set-DnsClientServerAddress -InterfaceIndex $Adapter.ifIndex -ServerAddresses ("$($sync.configs.dns.$DNSProvider.Primary)", "$($sync.configs.dns.$DNSProvider.Secondary)") Set-DnsClientServerAddress -InterfaceIndex $Adapter.ifIndex -ServerAddresses ("$($sync.configs.dns.$DNSProvider.Primary6)", "$($sync.configs.dns.$DNSProvider.Secondary6)") } } } catch { Write-Warning "Unable to set DNS Provider due to an unhandled exception" Write-Warning $psitem.Exception.StackTrace } } ================================================ FILE: functions/private/Set-WinUtilProgressbar.ps1 ================================================ function Set-WinUtilProgressbar{ <# .SYNOPSIS This function is used to Update the Progress Bar displayed in the winutil GUI. It will be automatically hidden if the user clicks something and no process is running .PARAMETER Label The Text to be overlaid onto the Progress Bar .PARAMETER PERCENT The percentage of the Progress Bar that should be filled (0-100) #> param( [string]$Label, [ValidateRange(0,100)] [int]$Percent ) if($PARAM_NOUI) { return; } Invoke-WPFUIThread -ScriptBlock {$sync.progressBarTextBlock.Text = $label} Invoke-WPFUIThread -ScriptBlock {$sync.progressBarTextBlock.ToolTip = $label} if ($percent -lt 5 ) { $percent = 5 # Ensure the progress bar is not empty, as it looks weird } Invoke-WPFUIThread -ScriptBlock { $sync.ProgressBar.Value = $percent} } ================================================ FILE: functions/private/Set-WinUtilRegistry.ps1 ================================================ function Set-WinUtilRegistry { <# .SYNOPSIS Modifies the registry based on the given inputs .PARAMETER Name The name of the key to modify .PARAMETER Path The path to the key .PARAMETER Type The type of value to set the key to .PARAMETER Value The value to set the key to .EXAMPLE Set-WinUtilRegistry -Name "PublishUserActivities" -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\System" -Type "DWord" -Value "0" #> param ( $Name, $Path, $Type, $Value ) try { if(!(Test-Path 'HKU:\')) {New-PSDrive -PSProvider Registry -Name HKU -Root HKEY_USERS} If (!(Test-Path $Path)) { Write-Host "$Path was not found, Creating..." New-Item -Path $Path -Force -ErrorAction Stop | Out-Null } if ($Value -ne "") { Write-Host "Set $Path\$Name to $Value" Set-ItemProperty -Path $Path -Name $Name -Type $Type -Value $Value -Force -ErrorAction Stop | Out-Null } else{ Write-Host "Remove $Path\$Name" Remove-ItemProperty -Path $Path -Name $Name -Force -ErrorAction Stop | Out-Null } } catch [System.Security.SecurityException] { Write-Warning "Unable to set $Path\$Name to $Value due to a Security Exception" } catch [System.Management.Automation.ItemNotFoundException] { Write-Warning $psitem.Exception.ErrorRecord } catch [System.UnauthorizedAccessException] { Write-Warning $psitem.Exception.Message } catch { Write-Warning "Unable to set $Name due to unhandled exception" Write-Warning $psitem.Exception.StackTrace } } ================================================ FILE: functions/private/Set-WinUtilScheduledTask.ps1 ================================================ function Set-WinUtilScheduledTask { <# .SYNOPSIS Enables/Disables the provided Scheduled Task .PARAMETER Name The path to the Scheduled Task .PARAMETER State The State to set the Task to .EXAMPLE Set-WinUtilScheduledTask -Name "Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser" -State "Disabled" #> param ( $Name, $State ) try { if($State -eq "Disabled") { Write-Host "Disabling Scheduled Task $Name" Disable-ScheduledTask -TaskName $Name -ErrorAction Stop } if($State -eq "Enabled") { Write-Host "Enabling Scheduled Task $Name" Enable-ScheduledTask -TaskName $Name -ErrorAction Stop } } catch [System.Exception] { if($psitem.Exception.Message -like "*The system cannot find the file specified*") { Write-Warning "Scheduled Task $name was not Found" } else { Write-Warning "Unable to set $Name due to unhandled exception" Write-Warning $psitem.Exception.Message } } catch { Write-Warning "Unable to run script for $name due to unhandled exception" Write-Warning $psitem.Exception.StackTrace } } ================================================ FILE: functions/private/Set-WinUtilService.ps1 ================================================ Function Set-WinUtilService { <# .SYNOPSIS Changes the startup type of the given service .PARAMETER Name The name of the service to modify .PARAMETER StartupType The startup type to set the service to .EXAMPLE Set-WinUtilService -Name "HomeGroupListener" -StartupType "Manual" #> param ( $Name, $StartupType ) try { Write-Host "Setting Service $Name to $StartupType" # Check if the service exists $service = Get-Service -Name $Name -ErrorAction Stop # Service exists, proceed with changing properties -- while handling auto delayed start for PWSH 5 if (($PSVersionTable.PSVersion.Major -lt 7) -and ($StartupType -eq "AutomaticDelayedStart")) { sc.exe config $Name start=delayed-auto } else { $service | Set-Service -StartupType $StartupType -ErrorAction Stop } } catch [System.ServiceProcess.ServiceNotFoundException] { Write-Warning "Service $Name was not found" } catch { Write-Warning "Unable to set $Name due to unhandled exception" Write-Warning $_.Exception.Message } } ================================================ FILE: functions/private/Set-WinUtilTaskbarItem.ps1 ================================================ function Set-WinUtilTaskbaritem { <# .SYNOPSIS Modifies the Taskbaritem of the WPF Form .PARAMETER value Value can be between 0 and 1, 0 being no progress done yet and 1 being fully completed Value does not affect item without setting the state to 'Normal', 'Error' or 'Paused' Set-WinUtilTaskbaritem -value 0.5 .PARAMETER state State can be 'None' > No progress, 'Indeterminate' > inf. loading gray, 'Normal' > Gray, 'Error' > Red, 'Paused' > Yellow no value needed: - Set-WinUtilTaskbaritem -state "None" - Set-WinUtilTaskbaritem -state "Indeterminate" value needed: - Set-WinUtilTaskbaritem -state "Error" - Set-WinUtilTaskbaritem -state "Normal" - Set-WinUtilTaskbaritem -state "Paused" .PARAMETER overlay Overlay icon to display on the taskbar item, there are the presets 'None', 'logo' and 'checkmark' or you can specify a path/link to an image file. CTT logo preset: - Set-WinUtilTaskbaritem -overlay "logo" Checkmark preset: - Set-WinUtilTaskbaritem -overlay "checkmark" Warning preset: - Set-WinUtilTaskbaritem -overlay "warning" No overlay: - Set-WinUtilTaskbaritem -overlay "None" Custom icon (needs to be supported by WPF): - Set-WinUtilTaskbaritem -overlay "C:\path\to\icon.png" .PARAMETER description Description to display on the taskbar item preview Set-WinUtilTaskbaritem -description "This is a description" #> param ( [string]$state, [double]$value, [string]$overlay, [string]$description ) if ($value) { $sync["Form"].taskbarItemInfo.ProgressValue = $value } if ($state) { switch ($state) { 'None' { $sync["Form"].taskbarItemInfo.ProgressState = "None" } 'Indeterminate' { $sync["Form"].taskbarItemInfo.ProgressState = "Indeterminate" } 'Normal' { $sync["Form"].taskbarItemInfo.ProgressState = "Normal" } 'Error' { $sync["Form"].taskbarItemInfo.ProgressState = "Error" } 'Paused' { $sync["Form"].taskbarItemInfo.ProgressState = "Paused" } default { throw "[Set-WinUtilTaskbarItem] Invalid state" } } } if ($overlay) { switch ($overlay) { 'logo' { $sync["Form"].taskbarItemInfo.Overlay = $sync["logorender"] } 'checkmark' { $sync["Form"].taskbarItemInfo.Overlay = $sync["checkmarkrender"] } 'warning' { $sync["Form"].taskbarItemInfo.Overlay = $sync["warningrender"] } 'None' { $sync["Form"].taskbarItemInfo.Overlay = $null } default { if (Test-Path $overlay) { $sync["Form"].taskbarItemInfo.Overlay = $overlay } } } } if ($description) { $sync["Form"].taskbarItemInfo.Description = $description } } ================================================ FILE: functions/private/Show-CustomDialog.ps1 ================================================ function Show-CustomDialog { <# .SYNOPSIS Displays a custom dialog box with an image, heading, message, and an OK button. .DESCRIPTION This function creates a custom dialog box with the specified message and additional elements such as an image, heading, and an OK button. The dialog box is designed with a green border, rounded corners, and a black background. .PARAMETER Title The Title to use for the dialog window's Title Bar, this will not be visible by the user, as window styling is set to None. .PARAMETER Message The message to be displayed in the dialog box. .PARAMETER Width The width of the custom dialog window. .PARAMETER Height The height of the custom dialog window. .PARAMETER FontSize The Font Size of message shown inside custom dialog window. .PARAMETER HeaderFontSize The Font Size for the Header of custom dialog window. .PARAMETER LogoSize The Size of the Logo used inside the custom dialog window. .PARAMETER ForegroundColor The Foreground Color of dialog window title & message. .PARAMETER BackgroundColor The Background Color of dialog window. .PARAMETER BorderColor The Color for dialog window border. .PARAMETER ButtonBackgroundColor The Background Color for Buttons in dialog window. .PARAMETER ButtonForegroundColor The Foreground Color for Buttons in dialog window. .PARAMETER ShadowColor The Color used when creating the Drop-down Shadow effect for dialog window. .PARAMETER LogoColor The Color of WinUtil Text found next to WinUtil's Logo inside dialog window. .PARAMETER LinkForegroundColor The Foreground Color for Links inside dialog window. .PARAMETER LinkHoverForegroundColor The Foreground Color for Links when the mouse pointer hovers over them inside dialog window. .PARAMETER EnableScroll A flag indicating whether to enable scrolling if the content exceeds the window size. .EXAMPLE Show-CustomDialog -Title "My Custom Dialog" -Message "This is a custom dialog with a message and an image above." -Width 300 -Height 200 Makes a new Custom Dialog with the title 'My Custom Dialog' and a message 'This is a custom dialog with a message and an image above.', with dimensions of 300 by 200 pixels. Other styling options are grabbed from '$sync.Form.Resources' global variable. .EXAMPLE $foregroundColor = New-Object System.Windows.Media.SolidColorBrush("#0088e5") $backgroundColor = New-Object System.Windows.Media.SolidColorBrush("#1e1e1e") $linkForegroundColor = New-Object System.Windows.Media.SolidColorBrush("#0088e5") $linkHoverForegroundColor = New-Object System.Windows.Media.SolidColorBrush("#005289") Show-CustomDialog -Title "My Custom Dialog" -Message "This is a custom dialog with a message and an image above." -Width 300 -Height 200 -ForegroundColor $foregroundColor -BackgroundColor $backgroundColor -LinkForegroundColor $linkForegroundColor -LinkHoverForegroundColor $linkHoverForegroundColor Makes a new Custom Dialog with the title 'My Custom Dialog' and a message 'This is a custom dialog with a message and an image above.', with dimensions of 300 by 200 pixels, with a link foreground (and general foreground) colors of '#0088e5', background color of '#1e1e1e', and Link Color on Hover of '005289', all of which are in Hexadecimal (the '#' Symbol is required by SolidColorBrush Constructor). Other styling options are grabbed from '$sync.Form.Resources' global variable. #> param( [string]$Title, [string]$Message, [int]$Width = $sync.Form.Resources.CustomDialogWidth, [int]$Height = $sync.Form.Resources.CustomDialogHeight, [System.Windows.Media.FontFamily]$FontFamily = $sync.Form.Resources.FontFamily, [int]$FontSize = $sync.Form.Resources.CustomDialogFontSize, [int]$HeaderFontSize = $sync.Form.Resources.CustomDialogFontSizeHeader, [int]$LogoSize = $sync.Form.Resources.CustomDialogLogoSize, [System.Windows.Media.Color]$ShadowColor = "#AAAAAAAA", [System.Windows.Media.SolidColorBrush]$LogoColor = $sync.Form.Resources.LabelboxForegroundColor, [System.Windows.Media.SolidColorBrush]$BorderColor = $sync.Form.Resources.BorderColor, [System.Windows.Media.SolidColorBrush]$ForegroundColor = $sync.Form.Resources.MainForegroundColor, [System.Windows.Media.SolidColorBrush]$BackgroundColor = $sync.Form.Resources.MainBackgroundColor, [System.Windows.Media.SolidColorBrush]$ButtonForegroundColor = $sync.Form.Resources.ButtonInstallForegroundColor, [System.Windows.Media.SolidColorBrush]$ButtonBackgroundColor = $sync.Form.Resources.ButtonInstallBackgroundColor, [System.Windows.Media.SolidColorBrush]$LinkForegroundColor = $sync.Form.Resources.LinkForegroundColor, [System.Windows.Media.SolidColorBrush]$LinkHoverForegroundColor = $sync.Form.Resources.LinkHoverForegroundColor, [bool]$EnableScroll = $false ) # Create a custom dialog window $dialog = New-Object Windows.Window $dialog.Title = $Title $dialog.Height = $Height $dialog.Width = $Width $dialog.Margin = New-Object Windows.Thickness(10) # Add margin to the entire dialog box $dialog.WindowStyle = [Windows.WindowStyle]::None # Remove title bar and window controls $dialog.ResizeMode = [Windows.ResizeMode]::NoResize # Disable resizing $dialog.WindowStartupLocation = [Windows.WindowStartupLocation]::CenterScreen # Center the window $dialog.Foreground = $ForegroundColor $dialog.Background = $BackgroundColor $dialog.FontFamily = $FontFamily $dialog.FontSize = $FontSize # Create a Border for the green edge with rounded corners $border = New-Object Windows.Controls.Border $border.BorderBrush = $BorderColor $border.BorderThickness = New-Object Windows.Thickness(1) # Adjust border thickness as needed $border.CornerRadius = New-Object Windows.CornerRadius(10) # Adjust the radius for rounded corners # Create a drop shadow effect $dropShadow = New-Object Windows.Media.Effects.DropShadowEffect $dropShadow.Color = $shadowColor $dropShadow.Direction = 270 $dropShadow.ShadowDepth = 5 $dropShadow.BlurRadius = 10 # Apply drop shadow effect to the border $dialog.Effect = $dropShadow $dialog.Content = $border # Create a grid for layout inside the Border $grid = New-Object Windows.Controls.Grid $border.Child = $grid # Uncomment the following line to show gridlines #$grid.ShowGridLines = $true # Add the following line to set the background color of the grid $grid.Background = [Windows.Media.Brushes]::Transparent # Add the following line to make the Grid stretch $grid.HorizontalAlignment = [Windows.HorizontalAlignment]::Stretch $grid.VerticalAlignment = [Windows.VerticalAlignment]::Stretch # Add the following line to make the Border stretch $border.HorizontalAlignment = [Windows.HorizontalAlignment]::Stretch $border.VerticalAlignment = [Windows.VerticalAlignment]::Stretch # Set up Row Definitions $row0 = New-Object Windows.Controls.RowDefinition $row0.Height = [Windows.GridLength]::Auto $row1 = New-Object Windows.Controls.RowDefinition $row1.Height = [Windows.GridLength]::new(1, [Windows.GridUnitType]::Star) $row2 = New-Object Windows.Controls.RowDefinition $row2.Height = [Windows.GridLength]::Auto # Add Row Definitions to Grid $grid.RowDefinitions.Add($row0) $grid.RowDefinitions.Add($row1) $grid.RowDefinitions.Add($row2) # Add StackPanel for horizontal layout with margins $stackPanel = New-Object Windows.Controls.StackPanel $stackPanel.Margin = New-Object Windows.Thickness(10) # Add margins around the stack panel $stackPanel.Orientation = [Windows.Controls.Orientation]::Horizontal $stackPanel.HorizontalAlignment = [Windows.HorizontalAlignment]::Left # Align to the left $stackPanel.VerticalAlignment = [Windows.VerticalAlignment]::Top # Align to the top $grid.Children.Add($stackPanel) [Windows.Controls.Grid]::SetRow($stackPanel, 0) # Set the row to the second row (0-based index) # Add SVG path to the stack panel $stackPanel.Children.Add((Invoke-WinUtilAssets -Type "logo" -Size $LogoSize)) # Add "Winutil" text $winutilTextBlock = New-Object Windows.Controls.TextBlock $winutilTextBlock.Text = "Winutil" $winutilTextBlock.FontSize = $HeaderFontSize $winutilTextBlock.Foreground = $LogoColor $winutilTextBlock.Margin = New-Object Windows.Thickness(10, 10, 10, 5) # Add margins around the text block $stackPanel.Children.Add($winutilTextBlock) # Add TextBlock for information with text wrapping and margins $messageTextBlock = New-Object Windows.Controls.TextBlock $messageTextBlock.FontSize = $FontSize $messageTextBlock.TextWrapping = [Windows.TextWrapping]::Wrap # Enable text wrapping $messageTextBlock.HorizontalAlignment = [Windows.HorizontalAlignment]::Left $messageTextBlock.VerticalAlignment = [Windows.VerticalAlignment]::Top $messageTextBlock.Margin = New-Object Windows.Thickness(10) # Add margins around the text block # Define the Regex to find hyperlinks formatted as HTML tags $regex = [regex]::new('([^<]+)') $lastPos = 0 # Iterate through each match and add regular text and hyperlinks foreach ($match in $regex.Matches($Message)) { # Add the text before the hyperlink, if any $textBefore = $Message.Substring($lastPos, $match.Index - $lastPos) if ($textBefore.Length -gt 0) { $messageTextBlock.Inlines.Add((New-Object Windows.Documents.Run($textBefore))) } # Create and add the hyperlink $hyperlink = New-Object Windows.Documents.Hyperlink $hyperlink.NavigateUri = New-Object System.Uri($match.Groups[1].Value) $hyperlink.Inlines.Add($match.Groups[2].Value) $hyperlink.TextDecorations = [Windows.TextDecorations]::None # Remove underline $hyperlink.Foreground = $LinkForegroundColor $hyperlink.Add_Click({ param($sender, $args) Start-Process $sender.NavigateUri.AbsoluteUri }) $hyperlink.Add_MouseEnter({ param($sender, $args) $sender.Foreground = $LinkHoverForegroundColor $sender.FontSize = ($FontSize + ($FontSize / 4)) $sender.FontWeight = "SemiBold" }) $hyperlink.Add_MouseLeave({ param($sender, $args) $sender.Foreground = $LinkForegroundColor $sender.FontSize = $FontSize $sender.FontWeight = "Normal" }) $messageTextBlock.Inlines.Add($hyperlink) # Update the last position $lastPos = $match.Index + $match.Length } # Add any remaining text after the last hyperlink if ($lastPos -lt $Message.Length) { $textAfter = $Message.Substring($lastPos) $messageTextBlock.Inlines.Add((New-Object Windows.Documents.Run($textAfter))) } # If no matches, add the entire message as a run if ($regex.Matches($Message).Count -eq 0) { $messageTextBlock.Inlines.Add((New-Object Windows.Documents.Run($Message))) } # Create a ScrollViewer if EnableScroll is true if ($EnableScroll) { $scrollViewer = New-Object System.Windows.Controls.ScrollViewer $scrollViewer.VerticalScrollBarVisibility = 'Auto' $scrollViewer.HorizontalScrollBarVisibility = 'Disabled' $scrollViewer.Content = $messageTextBlock $grid.Children.Add($scrollViewer) [Windows.Controls.Grid]::SetRow($scrollViewer, 1) # Set the row to the second row (0-based index) } else { $grid.Children.Add($messageTextBlock) [Windows.Controls.Grid]::SetRow($messageTextBlock, 1) # Set the row to the second row (0-based index) } # Add OK button $okButton = New-Object Windows.Controls.Button $okButton.Content = "OK" $okButton.FontSize = $FontSize $okButton.Width = 80 $okButton.Height = 30 $okButton.HorizontalAlignment = [Windows.HorizontalAlignment]::Center $okButton.VerticalAlignment = [Windows.VerticalAlignment]::Bottom $okButton.Margin = New-Object Windows.Thickness(0, 0, 0, 10) $okButton.Background = $buttonBackgroundColor $okButton.Foreground = $buttonForegroundColor $okButton.BorderBrush = $BorderColor $okButton.Add_Click({ $dialog.Close() }) $grid.Children.Add($okButton) [Windows.Controls.Grid]::SetRow($okButton, 2) # Set the row to the third row (0-based index) # Handle Escape key press to close the dialog $dialog.Add_KeyDown({ if ($_.Key -eq 'Escape') { $dialog.Close() } }) # Set the OK button as the default button (activated on Enter) $okButton.IsDefault = $true # Show the custom dialog $dialog.ShowDialog() } ================================================ FILE: functions/private/Show-WPFInstallAppBusy.ps1 ================================================ function Show-WPFInstallAppBusy { <# .SYNOPSIS Displays a busy overlay in the install app area of the WPF form. This is used to indicate that an install or uninstall is in progress. Dynamically updates the size of the overlay based on the app area on each invocation. .PARAMETER text The text to display in the busy overlay. Defaults to "Installing apps...". #> param ( $text = "Installing apps..." ) Invoke-WPFUIThread -ScriptBlock { $sync.InstallAppAreaOverlay.Visibility = [Windows.Visibility]::Visible $sync.InstallAppAreaOverlay.Width = $($sync.InstallAppAreaScrollViewer.ActualWidth * 0.4) $sync.InstallAppAreaOverlay.Height = $($sync.InstallAppAreaScrollViewer.ActualWidth * 0.4) $sync.InstallAppAreaOverlayText.Text = $text $sync.InstallAppAreaBorder.IsEnabled = $false $sync.InstallAppAreaScrollViewer.Effect.Radius = 5 } } ================================================ FILE: functions/private/Test-WinUtilPackageManager.ps1 ================================================ function Test-WinUtilPackageManager { <# .SYNOPSIS Checks if Winget and/or Choco are installed .PARAMETER winget Check if Winget is installed .PARAMETER choco Check if Chocolatey is installed #> Param( [System.Management.Automation.SwitchParameter]$winget, [System.Management.Automation.SwitchParameter]$choco ) if ($winget) { if (Get-Command winget -ErrorAction SilentlyContinue) { Write-Host "===========================================" -ForegroundColor Green Write-Host "--- Winget is installed ---" -ForegroundColor Green Write-Host "===========================================" -ForegroundColor Green $status = "installed" } else { Write-Host "===========================================" -ForegroundColor Red Write-Host "--- Winget is not installed ---" -ForegroundColor Red Write-Host "===========================================" -ForegroundColor Red $status = "not-installed" } } if ($choco) { if (Get-Command choco -ErrorAction SilentlyContinue) { Write-Host "===========================================" -ForegroundColor Green Write-Host "--- Chocolatey is installed ---" -ForegroundColor Green Write-Host "===========================================" -ForegroundColor Green $status = "installed" } else { Write-Host "===========================================" -ForegroundColor Red Write-Host "--- Chocolatey is not installed ---" -ForegroundColor Red Write-Host "===========================================" -ForegroundColor Red $status = "not-installed" } } return $status } ================================================ FILE: functions/private/Update-WinUtilProgramWinget.ps1 ================================================ Function Update-WinUtilProgramWinget { <# .SYNOPSIS This will update all programs using Winget #> [ScriptBlock]$wingetinstall = { $host.ui.RawUI.WindowTitle = """Winget Install""" Start-Transcript "$logdir\winget-update_$dateTime.log" -Append winget upgrade --all --accept-source-agreements --accept-package-agreements --scope=machine --silent } $global:WinGetInstall = Start-Process -Verb runas powershell -ArgumentList "-command invoke-command -scriptblock {$wingetinstall} -argumentlist '$($ProgramsToInstall -join ",")'" -PassThru } ================================================ FILE: functions/private/Update-WinUtilSelections.ps1 ================================================ function Update-WinUtilSelections { <# .SYNOPSIS Updates the $sync.selected variables with a given preset. .PARAMETER flatJson The flattened json list of $sync values to select. #> param ( $flatJson ) Write-Debug "JSON to import: $($flatJson)" foreach ($item in $flatJson) { # Ensure each item is treated as a string to handle PSCustomObject from JSON deserialization $cbkey = [string]$item $group = if ($cbkey.StartsWith("WPFInstall")) { "Install" } elseif ($cbkey.StartsWith("WPFTweaks")) { "Tweaks" } elseif ($cbkey.StartsWith("WPFToggle")) { "Toggle" } elseif ($cbkey.StartsWith("WPFFeature")) { "Feature" } else { "na" } switch ($group) { "Install" { if (!$sync.selectedApps.Contains($cbkey)) { $sync.selectedApps.Add($cbkey) # The List type needs to be specified again, because otherwise Sort-Object will convert the list to a string if there is only a single entry [System.Collections.Generic.List[string]]$sync.selectedApps = $sync.SelectedApps | Sort-Object } } "Tweaks" { if (!$sync.selectedTweaks.Contains($cbkey)) { $sync.selectedTweaks.Add($cbkey) } } "Toggle" { if (!$sync.selectedToggles.Contains($cbkey)) { $sync.selectedToggles.Add($cbkey) } } "Feature" { if (!$sync.selectedFeatures.Contains($cbkey)) { $sync.selectedFeatures.Add($cbkey) } } default { Write-Host "Unknown group for checkbox: $($cbkey)" } } } Write-Debug "-------------------------------------" Write-Debug "Selected Apps: $($sync.selectedApps)" Write-Debug "Selected Tweaks: $($sync.selectedTweaks)" Write-Debug "Selected Toggles: $($sync.selectedToggles)" Write-Debug "Selected Features: $($sync.selectedFeatures)" Write-Debug "--------------------------------------" } ================================================ FILE: functions/public/Initialize-WPFUI.ps1 ================================================ function Initialize-WPFUI { [OutputType([void])] param( [Parameter(Mandatory)] [string]$TargetGridName ) switch ($TargetGridName) { "appscategory"{ # TODO # Switch UI generation of the sidebar to this function # $sync.ItemsControl = Initialize-InstallAppArea -TargetElement $TargetGridName # ... # Create and configure a popup for displaying selected apps $selectedAppsPopup = New-Object Windows.Controls.Primitives.Popup $selectedAppsPopup.IsOpen = $false $selectedAppsPopup.PlacementTarget = $sync.WPFselectedAppsButton $selectedAppsPopup.Placement = [System.Windows.Controls.Primitives.PlacementMode]::Bottom $selectedAppsPopup.AllowsTransparency = $true # Style the popup with a border and background $selectedAppsBorder = New-Object Windows.Controls.Border $selectedAppsBorder.SetResourceReference([Windows.Controls.Control]::BackgroundProperty, "MainBackgroundColor") $selectedAppsBorder.SetResourceReference([Windows.Controls.Control]::BorderBrushProperty, "MainForegroundColor") $selectedAppsBorder.SetResourceReference([Windows.Controls.Control]::BorderThicknessProperty, "ButtonBorderThickness") $selectedAppsBorder.Width = 200 $selectedAppsBorder.Padding = 5 $selectedAppsPopup.Child = $selectedAppsBorder $sync.selectedAppsPopup = $selectedAppsPopup # Add a stack panel inside the popup's border to organize its child elements $sync.selectedAppsstackPanel = New-Object Windows.Controls.StackPanel $selectedAppsBorder.Child = $sync.selectedAppsstackPanel # Close selectedAppsPopup when mouse leaves both button and selectedAppsPopup $sync.WPFselectedAppsButton.Add_MouseLeave({ if (-not $sync.selectedAppsPopup.IsMouseOver) { $sync.selectedAppsPopup.IsOpen = $false } }) $selectedAppsPopup.Add_MouseLeave({ if (-not $sync.WPFselectedAppsButton.IsMouseOver) { $sync.selectedAppsPopup.IsOpen = $false } }) # Creates the popup that is displayed when the user right-clicks on an app entry # This popup contains buttons for installing, uninstalling, and viewing app information $appPopup = New-Object Windows.Controls.Primitives.Popup $appPopup.StaysOpen = $false $appPopup.Placement = [System.Windows.Controls.Primitives.PlacementMode]::Bottom $appPopup.AllowsTransparency = $true # Store the popup globally so the position can be set later $sync.appPopup = $appPopup $appPopupStackPanel = New-Object Windows.Controls.StackPanel $appPopupStackPanel.Orientation = "Horizontal" $appPopupStackPanel.Add_MouseLeave({ $sync.appPopup.IsOpen = $false }) $appPopup.Child = $appPopupStackPanel $appButtons = @( [PSCustomObject]@{ Name = "Install"; Icon = [char]0xE118 }, [PSCustomObject]@{ Name = "Uninstall"; Icon = [char]0xE74D }, [PSCustomObject]@{ Name = "Info"; Icon = [char]0xE946 } ) foreach ($button in $appButtons) { $newButton = New-Object Windows.Controls.Button $newButton.Style = $sync.Form.Resources.AppEntryButtonStyle $newButton.Content = $button.Icon $appPopupStackPanel.Children.Add($newButton) | Out-Null # Dynamically load the selected app object so the buttons can be reused and do not need to be created for each app switch ($button.Name) { "Install" { $newButton.Add_MouseEnter({ $appObject = $sync.configs.applicationsHashtable.$($sync.appPopupSelectedApp) $this.ToolTip = "Install or Upgrade $($appObject.content)" }) $newButton.Add_Click({ $appObject = $sync.configs.applicationsHashtable.$($sync.appPopupSelectedApp) Invoke-WPFInstall -PackagesToInstall $appObject }) } "Uninstall" { $newButton.Add_MouseEnter({ $appObject = $sync.configs.applicationsHashtable.$($sync.appPopupSelectedApp) $this.ToolTip = "Uninstall $($appObject.content)" }) $newButton.Add_Click({ $appObject = $sync.configs.applicationsHashtable.$($sync.appPopupSelectedApp) Invoke-WPFUnInstall -PackagesToUninstall $appObject }) } "Info" { $newButton.Add_MouseEnter({ $appObject = $sync.configs.applicationsHashtable.$($sync.appPopupSelectedApp) $this.ToolTip = "Open the application's website in your default browser`n$($appObject.link)" }) $newButton.Add_Click({ $appObject = $sync.configs.applicationsHashtable.$($sync.appPopupSelectedApp) Start-Process $appObject.link }) } } } } "appspanel" { $sync.ItemsControl = Initialize-InstallAppArea -TargetElement $TargetGridName Initialize-InstallCategoryAppList -TargetElement $sync.ItemsControl -Apps $sync.configs.applicationsHashtable } default { Write-Output "$TargetGridName not yet implemented" } } } ================================================ FILE: functions/public/Invoke-WPFButton.ps1 ================================================ function Invoke-WPFButton { <# .SYNOPSIS Invokes the function associated with the clicked button .PARAMETER Button The name of the button that was clicked #> Param ([string]$Button) # Use this to get the name of the button #[System.Windows.MessageBox]::Show("$Button","Chris Titus Tech's Windows Utility","OK","Info") if (-not $sync.ProcessRunning) { Set-WinUtilProgressBar -label "" -percent 0 } # Check if button is defined in feature config with function or InvokeScript if ($sync.configs.feature.$Button) { $buttonConfig = $sync.configs.feature.$Button # If button has a function defined, call it if ($buttonConfig.function) { $functionName = $buttonConfig.function if (Get-Command $functionName -ErrorAction SilentlyContinue) { & $functionName return } } # If button has InvokeScript defined, execute the scripts if ($buttonConfig.InvokeScript -and $buttonConfig.InvokeScript.Count -gt 0) { foreach ($script in $buttonConfig.InvokeScript) { if (-not [string]::IsNullOrWhiteSpace($script)) { Invoke-Expression $script } } return } } # Fallback to hard-coded switch for buttons not in feature.json Switch -Wildcard ($Button) { "WPFTab?BT" {Invoke-WPFTab $Button} "WPFInstall" {Invoke-WPFInstall} "WPFUninstall" {Invoke-WPFUnInstall} "WPFInstallUpgrade" {Invoke-WPFInstallUpgrade} "WPFCollapseAllCategories" {Invoke-WPFToggleAllCategories -Action "Collapse"} "WPFExpandAllCategories" {Invoke-WPFToggleAllCategories -Action "Expand"} "WPFStandard" {Invoke-WPFPresets "Standard" -checkboxfilterpattern "WPFTweak*"} "WPFMinimal" {Invoke-WPFPresets "Minimal" -checkboxfilterpattern "WPFTweak*"} "WPFClearTweaksSelection" {Invoke-WPFPresets -imported $true -checkboxfilterpattern "WPFTweak*"} "WPFClearInstallSelection" {Invoke-WPFPresets -imported $true -checkboxfilterpattern "WPFInstall*"} "WPFtweaksbutton" {Invoke-WPFtweaksbutton} "WPFOOSUbutton" {Invoke-WPFOOSU} "WPFAddUltPerf" {Invoke-WPFUltimatePerformance -State "Enable"} "WPFRemoveUltPerf" {Invoke-WPFUltimatePerformance -State "Disable"} "WPFundoall" {Invoke-WPFundoall} "WPFUpdatesdefault" {Invoke-WPFUpdatesdefault} "WPFRunAdobeCCCleanerTool" {Invoke-WPFRunAdobeCCCleanerTool} "WPFUpdatesdisable" {Invoke-WPFUpdatesdisable} "WPFUpdatessecurity" {Invoke-WPFUpdatessecurity} "WPFWinUtilShortcut" {Invoke-WPFShortcut -ShortcutToAdd "WinUtil" -RunAsAdmin $true} "WPFGetInstalled" {Invoke-WPFGetInstalled -CheckBox "winget"} "WPFGetInstalledTweaks" {Invoke-WPFGetInstalled -CheckBox "tweaks"} "WPFCloseButton" {$sync.Form.Close(); Write-Host "Bye bye!"} "WPFselectedAppsButton" {$sync.selectedAppsPopup.IsOpen = -not $sync.selectedAppsPopup.IsOpen} "WPFToggleFOSSHighlight" { if ($sync.WPFToggleFOSSHighlight.IsChecked) { $sync.Form.Resources["FOSSColor"] = [Windows.Media.SolidColorBrush]::new([Windows.Media.Color]::FromRgb(76, 175, 80)) # #4CAF50 } else { $sync.Form.Resources["FOSSColor"] = $sync.Form.Resources["MainForegroundColor"] } } } } ================================================ FILE: functions/public/Invoke-WPFFeatureInstall.ps1 ================================================ function Invoke-WPFFeatureInstall { <# .SYNOPSIS Installs selected Windows Features #> if($sync.ProcessRunning) { $msg = "[Invoke-WPFFeatureInstall] Install process is currently running." [System.Windows.MessageBox]::Show($msg, "Winutil", [System.Windows.MessageBoxButton]::OK, [System.Windows.MessageBoxImage]::Warning) return } $handle = Invoke-WPFRunspace -ScriptBlock { $Features = $sync.selectedFeatures $sync.ProcessRunning = $true if ($Features.count -eq 1) { Invoke-WPFUIThread -ScriptBlock { Set-WinUtilTaskbaritem -state "Indeterminate" -value 0.01 -overlay "logo" } } else { Invoke-WPFUIThread -ScriptBlock { Set-WinUtilTaskbaritem -state "Normal" -value 0.01 -overlay "logo" } } $x = 0 $Features | ForEach-Object { Invoke-WinUtilFeatureInstall $Feature $X++ Invoke-WPFUIThread -ScriptBlock { Set-WinUtilTaskbaritem -value ($x/$CheckBox.Count) } } $sync.ProcessRunning = $false Invoke-WPFUIThread -ScriptBlock { Set-WinUtilTaskbaritem -state "None" -overlay "checkmark" } Write-Host "===================================" Write-Host "--- Features are Installed ---" Write-Host "--- A Reboot may be required ---" Write-Host "===================================" } } ================================================ FILE: functions/public/Invoke-WPFFixesNetwork.ps1 ================================================ function Invoke-WPFFixesNetwork { <# .SYNOPSIS Resets various network configurations #> Write-Host "Resetting Network with netsh" Set-WinUtilTaskbaritem -state "Normal" -value 0.01 -overlay "logo" # Reset WinSock catalog to a clean state Start-Process -NoNewWindow -FilePath "netsh" -ArgumentList "winsock", "reset" Set-WinUtilTaskbaritem -state "Normal" -value 0.35 -overlay "logo" # Resets WinHTTP proxy setting to DIRECT Start-Process -NoNewWindow -FilePath "netsh" -ArgumentList "winhttp", "reset", "proxy" Set-WinUtilTaskbaritem -state "Normal" -value 0.7 -overlay "logo" # Removes all user configured IP settings Start-Process -NoNewWindow -FilePath "netsh" -ArgumentList "int", "ip", "reset" Set-WinUtilTaskbaritem -state "None" -overlay "checkmark" Write-Host "Process complete. Please reboot your computer." $ButtonType = [System.Windows.MessageBoxButton]::OK $MessageboxTitle = "Network Reset " $Messageboxbody = ("Stock settings loaded.`n Please reboot your computer") $MessageIcon = [System.Windows.MessageBoxImage]::Information [System.Windows.MessageBox]::Show($Messageboxbody, $MessageboxTitle, $ButtonType, $MessageIcon) Write-Host "==========================================" Write-Host "-- Network Configuration has been Reset --" Write-Host "==========================================" } ================================================ FILE: functions/public/Invoke-WPFFixesUpdate.ps1 ================================================ function Invoke-WPFFixesUpdate { <# .SYNOPSIS Performs various tasks in an attempt to repair Windows Update .DESCRIPTION 1. (Aggressive Only) Scans the system for corruption using the Invoke-WPFSystemRepair function 2. Stops Windows Update Services 3. Remove the QMGR Data file, which stores BITS jobs 4. (Aggressive Only) Renames the DataStore and CatRoot2 folders DataStore - Contains the Windows Update History and Log Files CatRoot2 - Contains the Signatures for Windows Update Packages 5. Renames the Windows Update Download Folder 6. Deletes the Windows Update Log 7. (Aggressive Only) Resets the Security Descriptors on the Windows Update Services 8. Reregisters the BITS and Windows Update DLLs 9. Removes the WSUS client settings 10. Resets WinSock 11. Gets and deletes all BITS jobs 12. Sets the startup type of the Windows Update Services then starts them 13. Forces Windows Update to check for updates .PARAMETER Aggressive If specified, the script will take additional steps to repair Windows Update that are more dangerous, take a significant amount of time, or are generally unnecessary #> param($Aggressive = $false) Write-Progress -Id 0 -Activity "Repairing Windows Update" -PercentComplete 0 Set-WinUtilTaskbaritem -state "Indeterminate" -overlay "logo" Write-Host "Starting Windows Update Repair..." # Wait for the first progress bar to show, otherwise the second one won't show Start-Sleep -Milliseconds 200 if ($Aggressive) { Invoke-WPFSystemRepair } Write-Progress -Id 0 -Activity "Repairing Windows Update" -Status "Stopping Windows Update Services..." -PercentComplete 10 # Stop the Windows Update Services Write-Progress -Id 2 -ParentId 0 -Activity "Stopping Services" -Status "Stopping BITS..." -PercentComplete 0 Stop-Service -Name BITS -Force Write-Progress -Id 2 -ParentId 0 -Activity "Stopping Services" -Status "Stopping wuauserv..." -PercentComplete 20 Stop-Service -Name wuauserv -Force Write-Progress -Id 2 -ParentId 0 -Activity "Stopping Services" -Status "Stopping appidsvc..." -PercentComplete 40 Stop-Service -Name appidsvc -Force Write-Progress -Id 2 -ParentId 0 -Activity "Stopping Services" -Status "Stopping cryptsvc..." -PercentComplete 60 Stop-Service -Name cryptsvc -Force Write-Progress -Id 2 -ParentId 0 -Activity "Stopping Services" -Status "Completed" -PercentComplete 100 # Remove the QMGR Data file Write-Progress -Id 0 -Activity "Repairing Windows Update" -Status "Renaming/Removing Files..." -PercentComplete 20 Write-Progress -Id 3 -ParentId 0 -Activity "Renaming/Removing Files" -Status "Removing QMGR Data files..." -PercentComplete 0 Remove-Item "$env:allusersprofile\Application Data\Microsoft\Network\Downloader\qmgr*.dat" -ErrorAction SilentlyContinue if ($Aggressive) { # Rename the Windows Update Log and Signature Folders Write-Progress -Id 3 -ParentId 0 -Activity "Renaming/Removing Files" -Status "Renaming the Windows Update Log, Download, and Signature Folder..." -PercentComplete 20 Rename-Item $env:systemroot\SoftwareDistribution\DataStore DataStore.bak -ErrorAction SilentlyContinue Rename-Item $env:systemroot\System32\Catroot2 catroot2.bak -ErrorAction SilentlyContinue } # Rename the Windows Update Download Folder Write-Progress -Id 3 -ParentId 0 -Activity "Renaming/Removing Files" -Status "Renaming the Windows Update Download Folder..." -PercentComplete 20 Rename-Item $env:systemroot\SoftwareDistribution\Download Download.bak -ErrorAction SilentlyContinue # Delete the legacy Windows Update Log Write-Progress -Id 3 -ParentId 0 -Activity "Renaming/Removing Files" -Status "Removing the old Windows Update log..." -PercentComplete 80 Remove-Item $env:systemroot\WindowsUpdate.log -ErrorAction SilentlyContinue Write-Progress -Id 3 -ParentId 0 -Activity "Renaming/Removing Files" -Status "Completed" -PercentComplete 100 if ($Aggressive) { # Reset the Security Descriptors on the Windows Update Services Write-Progress -Id 0 -Activity "Repairing Windows Update" -Status "Resetting the WU Service Security Descriptors..." -PercentComplete 25 Write-Progress -Id 4 -ParentId 0 -Activity "Resetting the WU Service Security Descriptors" -Status "Resetting the BITS Security Descriptor..." -PercentComplete 0 Start-Process -NoNewWindow -FilePath "sc.exe" -ArgumentList "sdset", "bits", "D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)" -Wait Write-Progress -Id 4 -ParentId 0 -Activity "Resetting the WU Service Security Descriptors" -Status "Resetting the wuauserv Security Descriptor..." -PercentComplete 50 Start-Process -NoNewWindow -FilePath "sc.exe" -ArgumentList "sdset", "wuauserv", "D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)" -Wait Write-Progress -Id 4 -ParentId 0 -Activity "Resetting the WU Service Security Descriptors" -Status "Completed" -PercentComplete 100 } # Reregister the BITS and Windows Update DLLs Write-Progress -Id 0 -Activity "Repairing Windows Update" -Status "Reregistering DLLs..." -PercentComplete 40 $oldLocation = Get-Location Set-Location $env:systemroot\system32 $i = 0 $DLLs = @( "atl.dll", "urlmon.dll", "mshtml.dll", "shdocvw.dll", "browseui.dll", "jscript.dll", "vbscript.dll", "scrrun.dll", "msxml.dll", "msxml3.dll", "msxml6.dll", "actxprxy.dll", "softpub.dll", "wintrust.dll", "dssenh.dll", "rsaenh.dll", "gpkcsp.dll", "sccbase.dll", "slbcsp.dll", "cryptdlg.dll", "oleaut32.dll", "ole32.dll", "shell32.dll", "initpki.dll", "wuapi.dll", "wuaueng.dll", "wuaueng1.dll", "wucltui.dll", "wups.dll", "wups2.dll", "wuweb.dll", "qmgr.dll", "qmgrprxy.dll", "wucltux.dll", "muweb.dll", "wuwebv.dll" ) foreach ($dll in $DLLs) { Write-Progress -Id 5 -ParentId 0 -Activity "Reregistering DLLs" -Status "Registering $dll..." -PercentComplete ($i / $DLLs.Count * 100) $i++ Start-Process -NoNewWindow -FilePath "regsvr32.exe" -ArgumentList "/s", $dll } Set-Location $oldLocation Write-Progress -Id 5 -ParentId 0 -Activity "Reregistering DLLs" -Status "Completed" -PercentComplete 100 # Remove the WSUS client settings if (Test-Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate") { Write-Progress -Id 0 -Activity "Repairing Windows Update" -Status "Removing WSUS client settings..." -PercentComplete 60 Write-Progress -Id 6 -ParentId 0 -Activity "Removing WSUS client settings" -PercentComplete 0 Start-Process -NoNewWindow -FilePath "REG" -ArgumentList "DELETE", "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate", "/v", "AccountDomainSid", "/f" -RedirectStandardError "NUL" Start-Process -NoNewWindow -FilePath "REG" -ArgumentList "DELETE", "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate", "/v", "PingID", "/f" -RedirectStandardError "NUL" Start-Process -NoNewWindow -FilePath "REG" -ArgumentList "DELETE", "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate", "/v", "SusClientId", "/f" -RedirectStandardError "NUL" Write-Progress -Id 6 -ParentId 0 -Activity "Removing WSUS client settings" -Status "Completed" -PercentComplete 100 } # Remove Group Policy Windows Update settings Write-Progress -Id 0 -Activity "Repairing Windows Update" -Status "Removing Group Policy Windows Update settings..." -PercentComplete 60 Write-Progress -Id 7 -ParentId 0 -Activity "Removing Group Policy Windows Update settings" -PercentComplete 0 Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" -Name "ExcludeWUDriversInQualityUpdate" -ErrorAction SilentlyContinue Write-Host "Defaulting 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 "Defaulting 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 Write-Host "Clearing ANY Windows Update Policy settings..." Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" -Name "BranchReadinessLevel" -ErrorAction SilentlyContinue Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" -Name "DeferFeatureUpdatesPeriodInDays" -ErrorAction SilentlyContinue Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" -Name "DeferQualityUpdatesPeriodInDays" -ErrorAction SilentlyContinue Remove-Item -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies" -Recurse -Force -ErrorAction SilentlyContinue Remove-Item -Path "HKCU:\Software\Microsoft\WindowsSelfHost" -Recurse -Force -ErrorAction SilentlyContinue Remove-Item -Path "HKCU:\Software\Policies" -Recurse -Force -ErrorAction SilentlyContinue Remove-Item -Path "HKLM:\Software\Microsoft\Policies" -Recurse -Force -ErrorAction SilentlyContinue Remove-Item -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies" -Recurse -Force -ErrorAction SilentlyContinue Remove-Item -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\WindowsStore\WindowsUpdate" -Recurse -Force -ErrorAction SilentlyContinue Remove-Item -Path "HKLM:\Software\Microsoft\WindowsSelfHost" -Recurse -Force -ErrorAction SilentlyContinue Remove-Item -Path "HKLM:\Software\Policies" -Recurse -Force -ErrorAction SilentlyContinue Remove-Item -Path "HKLM:\Software\WOW6432Node\Microsoft\Policies" -Recurse -Force -ErrorAction SilentlyContinue Remove-Item -Path "HKLM:\Software\WOW6432Node\Microsoft\Windows\CurrentVersion\Policies" -Recurse -Force -ErrorAction SilentlyContinue Remove-Item -Path "HKLM:\Software\WOW6432Node\Microsoft\Windows\CurrentVersion\WindowsStore\WindowsUpdate" -Recurse -Force -ErrorAction SilentlyContinue Start-Process -NoNewWindow -FilePath "secedit" -ArgumentList "/configure", "/cfg", "$env:windir\inf\defltbase.inf", "/db", "defltbase.sdb", "/verbose" -Wait Start-Process -NoNewWindow -FilePath "cmd.exe" -ArgumentList "/c RD /S /Q $env:WinDir\System32\GroupPolicyUsers" -Wait Start-Process -NoNewWindow -FilePath "cmd.exe" -ArgumentList "/c RD /S /Q $env:WinDir\System32\GroupPolicy" -Wait Start-Process -NoNewWindow -FilePath "gpupdate" -ArgumentList "/force" -Wait Write-Progress -Id 7 -ParentId 0 -Activity "Removing Group Policy Windows Update settings" -Status "Completed" -PercentComplete 100 # Reset WinSock Write-Progress -Id 0 -Activity "Repairing Windows Update" -Status "Resetting WinSock..." -PercentComplete 65 Write-Progress -Id 7 -ParentId 0 -Activity "Resetting WinSock" -Status "Resetting WinSock..." -PercentComplete 0 Start-Process -NoNewWindow -FilePath "netsh" -ArgumentList "winsock", "reset" Start-Process -NoNewWindow -FilePath "netsh" -ArgumentList "winhttp", "reset", "proxy" Start-Process -NoNewWindow -FilePath "netsh" -ArgumentList "int", "ip", "reset" Write-Progress -Id 7 -ParentId 0 -Activity "Resetting WinSock" -Status "Completed" -PercentComplete 100 # Get and delete all BITS jobs Write-Progress -Id 0 -Activity "Repairing Windows Update" -Status "Deleting BITS jobs..." -PercentComplete 75 Write-Progress -Id 8 -ParentId 0 -Activity "Deleting BITS jobs" -Status "Deleting BITS jobs..." -PercentComplete 0 Get-BitsTransfer | Remove-BitsTransfer Write-Progress -Id 8 -ParentId 0 -Activity "Deleting BITS jobs" -Status "Completed" -PercentComplete 100 # Change the startup type of the Windows Update Services and start them Write-Progress -Id 0 -Activity "Repairing Windows Update" -Status "Starting Windows Update Services..." -PercentComplete 90 Write-Progress -Id 9 -ParentId 0 -Activity "Starting Windows Update Services" -Status "Starting BITS..." -PercentComplete 0 Get-Service BITS | Set-Service -StartupType Manual -PassThru | Start-Service Write-Progress -Id 9 -ParentId 0 -Activity "Starting Windows Update Services" -Status "Starting wuauserv..." -PercentComplete 25 Get-Service wuauserv | Set-Service -StartupType Manual -PassThru | Start-Service Write-Progress -Id 9 -ParentId 0 -Activity "Starting Windows Update Services" -Status "Starting AppIDSvc..." -PercentComplete 50 # The AppIDSvc service is protected, so the startup type has to be changed in the registry Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\AppIDSvc" -Name "Start" -Value "3" # Manual Start-Service AppIDSvc Write-Progress -Id 9 -ParentId 0 -Activity "Starting Windows Update Services" -Status "Starting CryptSvc..." -PercentComplete 75 Get-Service CryptSvc | Set-Service -StartupType Manual -PassThru | Start-Service Write-Progress -Id 9 -ParentId 0 -Activity "Starting Windows Update Services" -Status "Completed" -PercentComplete 100 # Force Windows Update to check for updates Write-Progress -Id 0 -Activity "Repairing Windows Update" -Status "Forcing discovery..." -PercentComplete 95 Write-Progress -Id 10 -ParentId 0 -Activity "Forcing discovery" -Status "Forcing discovery..." -PercentComplete 0 try { (New-Object -ComObject Microsoft.Update.AutoUpdate).DetectNow() } catch { Set-WinUtilTaskbaritem -state "Error" -overlay "warning" Write-Warning "Failed to create Windows Update COM object: $_" } Start-Process -NoNewWindow -FilePath "wuauclt" -ArgumentList "/resetauthorization", "/detectnow" Write-Progress -Id 10 -ParentId 0 -Activity "Forcing discovery" -Status "Completed" -PercentComplete 100 Write-Progress -Id 0 -Activity "Repairing Windows Update" -Status "Completed" -PercentComplete 100 Set-WinUtilTaskbaritem -state "None" -overlay "checkmark" $ButtonType = [System.Windows.MessageBoxButton]::OK $MessageboxTitle = "Reset Windows Update " $Messageboxbody = ("Stock settings loaded.`n Please reboot your computer") $MessageIcon = [System.Windows.MessageBoxImage]::Information [System.Windows.MessageBox]::Show($Messageboxbody, $MessageboxTitle, $ButtonType, $MessageIcon) Write-Host "===============================================" Write-Host "-- Reset All Windows Update Settings to Stock -" Write-Host "===============================================" # Remove the progress bars Write-Progress -Id 0 -Activity "Repairing Windows Update" -Completed Write-Progress -Id 1 -Activity "Scanning for corruption" -Completed Write-Progress -Id 2 -Activity "Stopping Services" -Completed Write-Progress -Id 3 -Activity "Renaming/Removing Files" -Completed Write-Progress -Id 4 -Activity "Resetting the WU Service Security Descriptors" -Completed Write-Progress -Id 5 -Activity "Reregistering DLLs" -Completed Write-Progress -Id 6 -Activity "Removing Group Policy Windows Update settings" -Completed Write-Progress -Id 7 -Activity "Resetting WinSock" -Completed Write-Progress -Id 8 -Activity "Deleting BITS jobs" -Completed Write-Progress -Id 9 -Activity "Starting Windows Update Services" -Completed Write-Progress -Id 10 -Activity "Forcing discovery" -Completed } ================================================ FILE: functions/public/Invoke-WPFFixesWinget.ps1 ================================================ function Invoke-WPFFixesWinget { <# .SYNOPSIS Fixes Winget by running choco install winget .DESCRIPTION BravoNorris for the fantastic idea of a button to reinstall winget #> # Install Choco if not already present try { Set-WinUtilTaskbaritem -state "Indeterminate" -overlay "logo" Write-Host "==> Starting Winget Repair" Install-WinUtilWinget } catch { Write-Error "Failed to install winget: $_" Set-WinUtilTaskbaritem -state "Error" -overlay "warning" } finally { Write-Host "==> Finished Winget Repair" Set-WinUtilTaskbaritem -state "None" -overlay "checkmark" } } ================================================ FILE: functions/public/Invoke-WPFGetInstalled.ps1 ================================================ function Invoke-WPFGetInstalled { <# TODO: Add the Option to use Chocolatey as Engine .SYNOPSIS Invokes the function that gets the checkboxes to check in a new runspace .PARAMETER checkbox Indicates whether to check for installed 'winget' programs or applied 'tweaks' #> param($checkbox) if ($sync.ProcessRunning) { $msg = "[Invoke-WPFGetInstalled] Install process is currently running." [System.Windows.MessageBox]::Show($msg, "Winutil", [System.Windows.MessageBoxButton]::OK, [System.Windows.MessageBoxImage]::Warning) return } if (($sync.ChocoRadioButton.IsChecked -eq $false) -and ((Test-WinUtilPackageManager -winget) -eq "not-installed") -and $checkbox -eq "winget") { return } $managerPreference = $sync.preferences.packagemanager Invoke-WPFRunspace -ParameterList @(("managerPreference", $managerPreference),("checkbox", $checkbox)) -ScriptBlock { param ( [string]$checkbox, [PackageManagers]$managerPreference ) $sync.ProcessRunning = $true Invoke-WPFUIThread -ScriptBlock { Set-WinUtilTaskbaritem -state "Indeterminate" } if ($checkbox -eq "winget") { Write-Host "Getting Installed Programs..." switch ($managerPreference) { "Choco"{$Checkboxes = Invoke-WinUtilCurrentSystem -CheckBox "choco"; break} "Winget"{$Checkboxes = Invoke-WinUtilCurrentSystem -CheckBox $checkbox; break} } } elseif ($checkbox -eq "tweaks") { Write-Host "Getting Installed Tweaks..." $Checkboxes = Invoke-WinUtilCurrentSystem -CheckBox $checkbox } $sync.form.Dispatcher.invoke({ foreach ($checkbox in $Checkboxes) { $sync.$checkbox.ischecked = $True } }) Write-Host "Done..." $sync.ProcessRunning = $false Invoke-WPFUIThread -ScriptBlock { Set-WinUtilTaskbaritem -state "None" } } } ================================================ FILE: functions/public/Invoke-WPFImpex.ps1 ================================================ function Invoke-WPFImpex { <# .SYNOPSIS Handles importing and exporting of the checkboxes checked for the tweaks section .PARAMETER type Indicates whether to 'import' or 'export' .PARAMETER checkbox The checkbox to export to a file or apply the imported file to .EXAMPLE Invoke-WPFImpex -type "export" #> param( $type, $Config = $null ) function ConfigDialog { if (!$Config) { switch ($type) { "export" { $FileBrowser = New-Object System.Windows.Forms.SaveFileDialog } "import" { $FileBrowser = New-Object System.Windows.Forms.OpenFileDialog } } $FileBrowser.InitialDirectory = [Environment]::GetFolderPath('Desktop') $FileBrowser.Filter = "JSON Files (*.json)|*.json" $FileBrowser.ShowDialog() | Out-Null if ($FileBrowser.FileName -eq "") { return $null } else { return $FileBrowser.FileName } } else { return $Config } } switch ($type) { "export" { try { $Config = ConfigDialog if ($Config) { $allConfs = ($sync.selectedApps + $sync.selectedTweaks + $sync.selectedToggles + $sync.selectedFeatures) | ForEach-Object { [string]$_ } if (-not $allConfs) { [System.Windows.MessageBox]::Show( "No settings are selected to export. Please select at least one app, tweak, toggle, or feature before exporting.", "Nothing to Export", "OK", "Warning") return } $jsonFile = $allConfs | ConvertTo-Json $jsonFile | Out-File $Config -Force "iex ""& { `$(irm https://christitus.com/win) } -Config '$Config'""" | Set-Clipboard } } catch { Write-Error "An error occurred while exporting: $_" } } "import" { try { $Config = ConfigDialog if ($Config) { try { if ($Config -match '^https?://') { $jsonFile = (Invoke-WebRequest "$Config").Content | ConvertFrom-Json } else { $jsonFile = Get-Content $Config | ConvertFrom-Json } } catch { Write-Error "Failed to load the JSON file from the specified path or URL: $_" return } # TODO how to handle old style? detected json type then flatten it in a func? # $flattenedJson = $jsonFile.PSObject.Properties.Where({ $_.Name -ne "Install" }).ForEach({ $_.Value }) $flattenedJson = $jsonFile if (-not $flattenedJson) { [System.Windows.MessageBox]::Show( "The selected file contains no settings to import. No changes have been made.", "Empty Configuration", "OK", "Warning") return } # Clear all existing selections before importing so the import replaces # the current state rather than merging with it $sync.selectedApps = [System.Collections.Generic.List[string]]::new() $sync.selectedTweaks = [System.Collections.Generic.List[string]]::new() $sync.selectedToggles = [System.Collections.Generic.List[string]]::new() $sync.selectedFeatures = [System.Collections.Generic.List[string]]::new() Update-WinUtilSelections -flatJson $flattenedJson if (!$PARAM_NOUI) { # Set flag so toggle Checked/Unchecked events don't trigger registry writes # while we're programmatically restoring UI state from the imported config $sync.ImportInProgress = $true try { Reset-WPFCheckBoxes -doToggles $true } finally { $sync.ImportInProgress = $false } } } } catch { Write-Error "An error occurred while importing: $_" } } } } ================================================ FILE: functions/public/Invoke-WPFInstall.ps1 ================================================ function Invoke-WPFInstall { <# .SYNOPSIS Installs the selected programs using winget, if one or more of the selected programs are already installed on the system, winget will try and perform an upgrade if there's a newer version to install. #> $PackagesToInstall = $sync.selectedApps | Foreach-Object { $sync.configs.applicationsHashtable.$_ } if($sync.ProcessRunning) { $msg = "[Invoke-WPFInstall] An Install process is currently running." [System.Windows.MessageBox]::Show($msg, "Winutil", [System.Windows.MessageBoxButton]::OK, [System.Windows.MessageBoxImage]::Warning) return } if ($PackagesToInstall.Count -eq 0) { $WarningMsg = "Please select the program(s) to install or upgrade" [System.Windows.MessageBox]::Show($WarningMsg, $AppTitle, [System.Windows.MessageBoxButton]::OK, [System.Windows.MessageBoxImage]::Warning) return } $ManagerPreference = $sync.preferences.packagemanager $handle = Invoke-WPFRunspace -ParameterList @(("PackagesToInstall", $PackagesToInstall),("ManagerPreference", $ManagerPreference)) -ScriptBlock { param($PackagesToInstall, $ManagerPreference) $packagesSorted = Get-WinUtilSelectedPackages -PackageList $PackagesToInstall -Preference $ManagerPreference $packagesWinget = $packagesSorted[[PackageManagers]::Winget] $packagesChoco = $packagesSorted[[PackageManagers]::Choco] try { $sync.ProcessRunning = $true if($packagesWinget.Count -gt 0 -and $packagesWinget -ne "0") { Show-WPFInstallAppBusy -text "Installing apps..." Install-WinUtilWinget Install-WinUtilProgramWinget -Action Install -Programs $packagesWinget } if($packagesChoco.Count -gt 0) { Install-WinUtilChoco Install-WinUtilProgramChoco -Action Install -Programs $packagesChoco } Hide-WPFInstallAppBusy Write-Host "===========================================" Write-Host "-- Installs have finished ---" Write-Host "===========================================" Invoke-WPFUIThread -ScriptBlock { Set-WinUtilTaskbaritem -state "None" -overlay "checkmark" } } catch { Write-Host "===========================================" Write-Host "Error: $_" Write-Host "===========================================" Invoke-WPFUIThread -ScriptBlock { Set-WinUtilTaskbaritem -state "Error" -overlay "warning" } } $sync.ProcessRunning = $False } } ================================================ FILE: functions/public/Invoke-WPFInstallUpgrade.ps1 ================================================ function Invoke-WPFInstallUpgrade { <# .SYNOPSIS Invokes the function that upgrades all installed programs #> if ($sync.ChocoRadioButton.IsChecked) { Install-WinUtilChoco $chocoUpgradeStatus = (Start-Process "choco" -ArgumentList "upgrade all -y" -Wait -PassThru -NoNewWindow).ExitCode if ($chocoUpgradeStatus -eq 0) { Write-Host "Upgrade Successful" } else{ Write-Host "Error Occurred. Return Code: $chocoUpgradeStatus" } } else{ if((Test-WinUtilPackageManager -winget) -eq "not-installed") { return } if(Get-WinUtilInstallerProcess -Process $global:WinGetInstall) { $msg = "[Invoke-WPFInstallUpgrade] Install process is currently running. Please check for a powershell window labeled 'Winget Install'" [System.Windows.MessageBox]::Show($msg, "Winutil", [System.Windows.MessageBoxButton]::OK, [System.Windows.MessageBoxImage]::Warning) return } Update-WinUtilProgramWinget Write-Host "===========================================" Write-Host "-- Updates started ---" Write-Host "-- You can close this window if desired ---" Write-Host "===========================================" } } ================================================ FILE: functions/public/Invoke-WPFOOSU.ps1 ================================================ function Invoke-WPFOOSU { <# .SYNOPSIS Downloads and runs OO Shutup 10 #> try { $OOSU_filepath = "$ENV:temp\OOSU10.exe" $Initial_ProgressPreference = $ProgressPreference $ProgressPreference = "SilentlyContinue" # Disables the Progress Bar to drasticly speed up Invoke-WebRequest Invoke-WebRequest -Uri "https://dl5.oo-software.com/files/ooshutup10/OOSU10.exe" -OutFile $OOSU_filepath Write-Host "Starting OO Shutup 10 ..." Start-Process $OOSU_filepath } catch { Write-Host "Error Downloading and Running OO Shutup 10" -ForegroundColor Red } finally { $ProgressPreference = $Initial_ProgressPreference } } ================================================ FILE: functions/public/Invoke-WPFPanelAutologin.ps1 ================================================ function Invoke-WPFPanelAutologin { <# .SYNOPSIS Enables autologin using Sysinternals Autologon.exe #> # Official Microsoft recommendation: https://learn.microsoft.com/en-us/sysinternals/downloads/autologon Invoke-WebRequest -Uri "https://live.sysinternals.com/Autologon.exe" -OutFile "$env:temp\autologin.exe" cmd /c "$env:temp\autologin.exe" /accepteula } ================================================ FILE: functions/public/Invoke-WPFPopup.ps1 ================================================ function Invoke-WPFPopup { param ( [ValidateSet("Show", "Hide", "Toggle")] [string]$Action = "", [string[]]$Popups = @(), [ValidateScript({ $invalid = $_.GetEnumerator() | Where-Object { $_.Value -notin @("Show", "Hide", "Toggle") } if ($invalid) { throw "Found invalid Popup-Action pair(s): " + ($invalid | ForEach-Object { "$($_.Key) = $($_.Value)" } -join "; ") } $true })] [hashtable]$PopupActionTable = @{} ) if (-not $PopupActionTable.Count -and (-not $Action -or -not $Popups.Count)) { throw "Provide either 'PopupActionTable' or both 'Action' and 'Popups'." } if ($PopupActionTable.Count -and ($Action -or $Popups.Count)) { throw "Use 'PopupActionTable' on its own, or 'Action' with 'Popups'." } # Collect popups and actions $PopupsToProcess = if ($PopupActionTable.Count) { $PopupActionTable.GetEnumerator() | ForEach-Object { [PSCustomObject]@{ Name = "$($_.Key)Popup"; Action = $_.Value } } } else { $Popups | ForEach-Object { [PSCustomObject]@{ Name = "$_`Popup"; Action = $Action } } } $PopupsNotFound = @() # Apply actions foreach ($popupEntry in $PopupsToProcess) { $popupName = $popupEntry.Name if (-not $sync.$popupName) { $PopupsNotFound += $popupName continue } $sync.$popupName.IsOpen = switch ($popupEntry.Action) { "Show" { $true } "Hide" { $false } "Toggle" { -not $sync.$popupName.IsOpen } } } if ($PopupsNotFound.Count -gt 0) { throw "Could not find the following popups: $($PopupsNotFound -join ', ')" } } ================================================ FILE: functions/public/Invoke-WPFPresets.ps1 ================================================ function Invoke-WPFPresets { <# .SYNOPSIS Sets the checkboxes in winutil to the given preset .PARAMETER preset The preset to set the checkboxes to .PARAMETER imported If the preset is imported from a file, defaults to false .PARAMETER checkboxfilterpattern The Pattern to use when filtering through CheckBoxes, defaults to "**" #> param ( [Parameter(position=0)] [Array]$preset = $null, [Parameter(position=1)] [bool]$imported = $false, [Parameter(position=2)] [string]$checkboxfilterpattern = "**" ) if ($imported -eq $true) { $CheckBoxesToCheck = $preset } else { $CheckBoxesToCheck = $sync.configs.preset.$preset } # clear out the filtered pattern so applying a preset replaces the current # state rather than merging with it switch ($checkboxfilterpattern) { "WPFTweak*" { $sync.selectedTweaks = [System.Collections.Generic.List[string]]::new() } "WPFInstall*" { $sync.selectedApps = [System.Collections.Generic.List[string]]::new() } "WPFeatures" { $sync.selectedFeatures = [System.Collections.Generic.List[string]]::new() } "WPFToggle" { $sync.selectedToggles = [System.Collections.Generic.List[string]]::new() } default {} } if ($preset) { Update-WinUtilSelections -flatJson $CheckBoxesToCheck } Reset-WPFCheckBoxes -doToggles $false -checkboxfilterpattern $checkboxfilterpattern } ================================================ FILE: functions/public/Invoke-WPFRunspace.ps1 ================================================ function Invoke-WPFRunspace { <# .SYNOPSIS Creates and invokes a runspace using the given scriptblock and argumentlist .PARAMETER ScriptBlock The scriptblock to invoke in the runspace .PARAMETER ArgumentList A list of arguments to pass to the runspace .PARAMETER ParameterList A list of named parameters that should be provided. .EXAMPLE Invoke-WPFRunspace ` -ScriptBlock $sync.ScriptsInstallPrograms ` -ArgumentList "Installadvancedip,Installbitwarden" ` Invoke-WPFRunspace` -ScriptBlock $sync.ScriptsInstallPrograms ` -ParameterList @(("PackagesToInstall", @("Installadvancedip,Installbitwarden")),("ChocoPreference", $true)) #> [CmdletBinding()] Param ( $ScriptBlock, $ArgumentList, $ParameterList ) # Create a PowerShell instance $script:powershell = [powershell]::Create() # Add Scriptblock and Arguments to runspace $script:powershell.AddScript($ScriptBlock) $script:powershell.AddArgument($ArgumentList) foreach ($parameter in $ParameterList) { $script:powershell.AddParameter($parameter[0], $parameter[1]) } $script:powershell.RunspacePool = $sync.runspace # Execute the RunspacePool $script:handle = $script:powershell.BeginInvoke() # Clean up the RunspacePool threads when they are complete, and invoke the garbage collector to clean up the memory if ($script:handle.IsCompleted) { $script:powershell.EndInvoke($script:handle) $script:powershell.Dispose() $sync.runspace.Dispose() $sync.runspace.Close() [System.GC]::Collect() } # Return the handle return $handle } ================================================ FILE: functions/public/Invoke-WPFSSHServer.ps1 ================================================ function Invoke-WPFSSHServer { <# .SYNOPSIS Invokes the OpenSSH Server install in a runspace #> Invoke-WPFRunspace -ScriptBlock { Invoke-WinUtilSSHServer Write-Host "=======================================" Write-Host "-- OpenSSH Server installed! ---" Write-Host "=======================================" } } ================================================ FILE: functions/public/Invoke-WPFSelectedCheckboxesUpdate.ps1 ================================================ function Invoke-WPFSelectedCheckboxesUpdate{ <# .SYNOPSIS This is a helper function that is called by the Checked and Unchecked events of the Checkboxes. It also Updates the "Selected Apps" selectedAppLabel on the Install Tab to represent the current collection .PARAMETER type Either: Add | Remove .PARAMETER checkboxName should contain the name of the current instance of the checkbox that triggered the Event. Most of the time will be the automatic variable $this.Parent.Tag .EXAMPLE $checkbox.Add_Unchecked({Invoke-WPFSelectedCheckboxesUpdate -type "Remove" -checkboxName $this.Parent.Tag}) OR Invoke-WPFSelectedCheckboxesUpdate -type "Add" -checkboxName $specificCheckbox.Parent.Tag #> param ( $type, $checkboxName ) if (($type -ne "Add") -and ($type -ne "Remove")) { Write-Error "Type: $type not implemented" return } # Get the actual Name from the selectedAppLabel inside the Checkbox $appKey = $checkboxName $group = if ($appKey.StartsWith("WPFInstall")) { "Install" } elseif ($appKey.StartsWith("WPFTweaks")) { "Tweaks" } elseif ($appKey.StartsWith("WPFToggle")) { "Toggle" } elseif ($appKey.StartsWith("WPFFeature")) { "Feature" } else { "na" } switch ($group) { "Install" { if ($type -eq "Add") { if (!$sync.selectedApps.Contains($appKey)) { $sync.selectedApps.Add($appKey) # The List type needs to be specified again, because otherwise Sort-Object will convert the list to a string if there is only a single entry [System.Collections.Generic.List[string]]$sync.selectedApps = $sync.SelectedApps | Sort-Object } } else{ $sync.selectedApps.Remove($appKey) } $count = $sync.SelectedApps.Count $sync.WPFselectedAppsButton.Content = "Selected Apps: $count" # On every change, remove all entries inside the Popup Menu. This is done, so we can keep the alphabetical order even if elements are selected in a random way $sync.selectedAppsstackPanel.Children.Clear() $sync.selectedApps | Foreach-Object { Add-SelectedAppsMenuItem -name $($sync.configs.applicationsHashtable.$_.Content) -key $_ } } "Tweaks" { if ($type -eq "Add") { if (!$sync.selectedTweaks.Contains($appKey)) { $sync.selectedTweaks.Add($appKey) } } else{ $sync.selectedTweaks.Remove($appKey) } } "Toggle" { if ($type -eq "Add") { if (!$sync.selectedToggles.Contains($appKey)) { $sync.selectedToggles.Add($appKey) } } else{ $sync.selectedToggles.Remove($appKey) } } "Feature" { if ($type -eq "Add") { if (!$sync.selectedFeatures.Contains($appKey)) { $sync.selectedFeatures.Add($appKey) } } else{ $sync.selectedFeatures.Remove($appKey) } } default { Write-Host "Unknown group for checkbox: $($appKey)" } } Write-Debug "-------------------------------------" Write-Debug "Selected Apps: $($sync.selectedApps)" Write-Debug "Selected Tweaks: $($sync.selectedTweaks)" Write-Debug "Selected Toggles: $($sync.selectedToggles)" Write-Debug "Selected Features: $($sync.selectedFeatures)" Write-Debug "--------------------------------------" } ================================================ FILE: functions/public/Invoke-WPFSystemRepair.ps1 ================================================ function Invoke-WPFSystemRepair { <# .SYNOPSIS Checks for system corruption using SFC, and DISM Checks for disk failure using Chkdsk .DESCRIPTION 1. Chkdsk - Checks for disk errors, which can cause system file corruption and notifies of early disk failure 2. SFC - scans protected system files for corruption and fixes them 3. DISM - Repair a corrupted Windows operating system image #> Start-Process cmd.exe -ArgumentList "/c chkdsk /scan /perf" -NoNewWindow -Wait Start-Process cmd.exe -ArgumentList "/c sfc /scannow" -NoNewWindow -Wait Start-Process cmd.exe -ArgumentList "/c dism /online /cleanup-image /restorehealth" -NoNewWindow -Wait Write-Host "==> Finished System Repair" Set-WinUtilTaskbaritem -state "None" -overlay "checkmark" } ================================================ FILE: functions/public/Invoke-WPFTab.ps1 ================================================ function Invoke-WPFTab { <# .SYNOPSIS Sets the selected tab to the tab that was clicked .PARAMETER ClickedTab The name of the tab that was clicked #> Param ( [Parameter(Mandatory,position=0)] [string]$ClickedTab ) $tabNav = Get-WinUtilVariables | Where-Object {$psitem -like "WPFTabNav"} $tabNumber = [int]($ClickedTab -replace "WPFTab","" -replace "BT","") - 1 $filter = Get-WinUtilVariables -Type ToggleButton | Where-Object {$psitem -like "WPFTab?BT"} ($sync.GetEnumerator()).where{$psitem.Key -in $filter} | ForEach-Object { if ($ClickedTab -ne $PSItem.name) { $sync[$PSItem.Name].IsChecked = $false } else { $sync["$ClickedTab"].IsChecked = $true $tabNumber = [int]($ClickedTab-replace "WPFTab","" -replace "BT","") - 1 $sync.$tabNav.Items[$tabNumber].IsSelected = $true } } $sync.currentTab = $sync.$tabNav.Items[$tabNumber].Header # Always reset the filter for the current tab if ($sync.currentTab -eq "Install") { # Reset Install tab filter Find-AppsByNameOrDescription -SearchString "" } elseif ($sync.currentTab -eq "Tweaks") { # Reset Tweaks tab filter Find-TweaksByNameOrDescription -SearchString "" } # Show search bar in Install and Tweaks tabs if ($tabNumber -eq 0 -or $tabNumber -eq 1) { $sync.SearchBar.Visibility = "Visible" $searchIcon = ($sync.Form.FindName("SearchBar").Parent.Children | Where-Object { $_ -is [System.Windows.Controls.TextBlock] -and $_.Text -eq [char]0xE721 })[0] if ($searchIcon) { $searchIcon.Visibility = "Visible" } } else { $sync.SearchBar.Visibility = "Collapsed" $searchIcon = ($sync.Form.FindName("SearchBar").Parent.Children | Where-Object { $_ -is [System.Windows.Controls.TextBlock] -and $_.Text -eq [char]0xE721 })[0] if ($searchIcon) { $searchIcon.Visibility = "Collapsed" } # Hide the clear button if it's visible $sync.SearchBarClearButton.Visibility = "Collapsed" } } ================================================ FILE: functions/public/Invoke-WPFToggleAllCategories.ps1 ================================================ function Invoke-WPFToggleAllCategories { <# .SYNOPSIS Expands or collapses all categories in the Install tab .PARAMETER Action The action to perform: "Expand" or "Collapse" .DESCRIPTION This function iterates through all category containers in the Install tab and expands or collapses their WrapPanels while updating the toggle button labels #> param( [Parameter(Mandatory=$true)] [ValidateSet("Expand", "Collapse")] [string]$Action ) try { if ($null -eq $sync.ItemsControl) { Write-Warning "ItemsControl not initialized" return } $targetVisibility = if ($Action -eq "Expand") { [Windows.Visibility]::Visible } else { [Windows.Visibility]::Collapsed } $targetPrefix = if ($Action -eq "Expand") { "-" } else { "+" } $sourcePrefix = if ($Action -eq "Expand") { "+" } else { "-" } # Iterate through all items in the ItemsControl $sync.ItemsControl.Items | ForEach-Object { $categoryContainer = $_ # Check if this is a category container (StackPanel with children) if ($categoryContainer -is [System.Windows.Controls.StackPanel] -and $categoryContainer.Children.Count -ge 2) { # Get the WrapPanel (second child) $wrapPanel = $categoryContainer.Children[1] $wrapPanel.Visibility = $targetVisibility # Update the label to show the correct state $categoryLabel = $categoryContainer.Children[0] if ($categoryLabel.Content -like "$sourcePrefix*") { $escapedSourcePrefix = [regex]::Escape($sourcePrefix) $categoryLabel.Content = $categoryLabel.Content -replace "^$escapedSourcePrefix ", "$targetPrefix " } } } } catch { Write-Error "Error toggling categories: $_" } } ================================================ FILE: functions/public/Invoke-WPFUIElements.ps1 ================================================ function Invoke-WPFUIElements { <# .SYNOPSIS Adds UI elements to a specified Grid in the WinUtil GUI based on a JSON configuration. .PARAMETER configVariable The variable/link containing the JSON configuration. .PARAMETER targetGridName The name of the grid to which the UI elements should be added. .PARAMETER columncount The number of columns to be used in the Grid. If not provided, a default value is used based on the panel. .EXAMPLE Invoke-WPFUIElements -configVariable $sync.configs.applications -targetGridName "install" -columncount 5 .NOTES Future me/contributor: If possible, please wrap this into a runspace to make it load all panels at the same time. #> param( [Parameter(Mandatory, Position = 0)] [PSCustomObject]$configVariable, [Parameter(Mandatory, Position = 1)] [string]$targetGridName, [Parameter(Mandatory, Position = 2)] [int]$columncount ) $window = $sync.form $borderstyle = $window.FindResource("BorderStyle") $HoverTextBlockStyle = $window.FindResource("HoverTextBlockStyle") $ColorfulToggleSwitchStyle = $window.FindResource("ColorfulToggleSwitchStyle") $ToggleButtonStyle = $window.FindResource("ToggleButtonStyle") if (!$borderstyle -or !$HoverTextBlockStyle -or !$ColorfulToggleSwitchStyle) { throw "Failed to retrieve Styles using 'FindResource' from main window element." } $targetGrid = $window.FindName($targetGridName) if (!$targetGrid) { throw "Failed to retrieve Target Grid by name, provided name: $targetGrid" } # Clear existing ColumnDefinitions and Children $targetGrid.ColumnDefinitions.Clear() | Out-Null $targetGrid.Children.Clear() | Out-Null # Add ColumnDefinitions to the target Grid for ($i = 0; $i -lt $columncount; $i++) { $colDef = New-Object Windows.Controls.ColumnDefinition $colDef.Width = New-Object Windows.GridLength(1, [Windows.GridUnitType]::Star) $targetGrid.ColumnDefinitions.Add($colDef) | Out-Null } # Convert PSCustomObject to Hashtable $configHashtable = @{} $configVariable.PSObject.Properties.Name | ForEach-Object { $configHashtable[$_] = $configVariable.$_ } $radioButtonGroups = @{} $organizedData = @{} # Iterate through JSON data and organize by panel and category foreach ($entry in $configHashtable.Keys) { $entryInfo = $configHashtable[$entry] # Create an object for the application $entryObject = [PSCustomObject]@{ Name = $entry Category = $entryInfo.Category Content = $entryInfo.Content Panel = if ($entryInfo.Panel) { $entryInfo.Panel } else { "0" } Link = $entryInfo.link Description = $entryInfo.description Type = $entryInfo.type ComboItems = $entryInfo.ComboItems Checked = $entryInfo.Checked ButtonWidth = $entryInfo.ButtonWidth GroupName = $entryInfo.GroupName # Added for RadioButton groupings } if (-not $organizedData.ContainsKey($entryObject.Panel)) { $organizedData[$entryObject.Panel] = @{} } if (-not $organizedData[$entryObject.Panel].ContainsKey($entryObject.Category)) { $organizedData[$entryObject.Panel][$entryObject.Category] = @() } # Store application data in an array under the category $organizedData[$entryObject.Panel][$entryObject.Category] += $entryObject } # Initialize panel count $panelcount = 0 # Iterate through 'organizedData' by panel, category, and application $count = 0 foreach ($panelKey in ($organizedData.Keys | Sort-Object)) { # Create a Border for each column $border = New-Object Windows.Controls.Border $border.VerticalAlignment = "Stretch" [System.Windows.Controls.Grid]::SetColumn($border, $panelcount) $border.style = $borderstyle $targetGrid.Children.Add($border) | Out-Null # Use a DockPanel to contain the content $dockPanelContainer = New-Object Windows.Controls.DockPanel $border.Child = $dockPanelContainer # Create an ItemsControl for application content $itemsControl = New-Object Windows.Controls.ItemsControl $itemsControl.HorizontalAlignment = 'Stretch' $itemsControl.VerticalAlignment = 'Stretch' # Set the ItemsPanel to a VirtualizingStackPanel $itemsPanelTemplate = New-Object Windows.Controls.ItemsPanelTemplate $factory = New-Object Windows.FrameworkElementFactory ([Windows.Controls.VirtualizingStackPanel]) $itemsPanelTemplate.VisualTree = $factory $itemsControl.ItemsPanel = $itemsPanelTemplate # Set virtualization properties $itemsControl.SetValue([Windows.Controls.VirtualizingStackPanel]::IsVirtualizingProperty, $true) $itemsControl.SetValue([Windows.Controls.VirtualizingStackPanel]::VirtualizationModeProperty, [Windows.Controls.VirtualizationMode]::Recycling) # Add the ItemsControl directly to the DockPanel [Windows.Controls.DockPanel]::SetDock($itemsControl, [Windows.Controls.Dock]::Bottom) $dockPanelContainer.Children.Add($itemsControl) | Out-Null $panelcount++ # Now proceed with adding category labels and entries to $itemsControl foreach ($category in ($organizedData[$panelKey].Keys | Sort-Object)) { $count++ $label = New-Object Windows.Controls.Label $label.Content = $category -replace ".*__", "" $label.SetResourceReference([Windows.Controls.Control]::FontSizeProperty, "HeaderFontSize") $label.SetResourceReference([Windows.Controls.Control]::FontFamilyProperty, "HeaderFontFamily") $label.UseLayoutRounding = $true $itemsControl.Items.Add($label) | Out-Null $sync[$category] = $label # Sort entries by type (checkboxes first, then buttons, then comboboxes) and then alphabetically by Content $entries = $organizedData[$panelKey][$category] | Sort-Object @{Expression = { switch ($_.Type) { 'Button' { 1 } 'Combobox' { 2 } default { 0 } } }}, Content foreach ($entryInfo in $entries) { $count++ # Create the UI elements based on the entry type switch ($entryInfo.Type) { "Toggle" { $dockPanel = New-Object Windows.Controls.DockPanel $checkBox = New-Object Windows.Controls.CheckBox $checkBox.Name = $entryInfo.Name $checkBox.HorizontalAlignment = "Right" $checkBox.UseLayoutRounding = $true [System.Windows.Automation.AutomationProperties]::SetName($checkBox, $entryInfo.Content) $dockPanel.Children.Add($checkBox) | Out-Null $checkBox.Style = $ColorfulToggleSwitchStyle $label = New-Object Windows.Controls.Label $label.Content = $entryInfo.Content $label.ToolTip = $entryInfo.Description $label.HorizontalAlignment = "Left" $label.SetResourceReference([Windows.Controls.Control]::FontSizeProperty, "FontSize") $label.SetResourceReference([Windows.Controls.Control]::ForegroundProperty, "MainForegroundColor") $label.UseLayoutRounding = $true $dockPanel.Children.Add($label) | Out-Null $itemsControl.Items.Add($dockPanel) | Out-Null $sync[$entryInfo.Name] = $checkBox if ($entryInfo.Name -eq "WPFToggleFOSSHighlight") { if ($entryInfo.Checked -eq $true) { $sync[$entryInfo.Name].IsChecked = $true } $sync[$entryInfo.Name].Add_Checked({ Invoke-WPFButton -Button "WPFToggleFOSSHighlight" }) $sync[$entryInfo.Name].Add_Unchecked({ Invoke-WPFButton -Button "WPFToggleFOSSHighlight" }) } else { $sync[$entryInfo.Name].IsChecked = (Get-WinUtilToggleStatus $entryInfo.Name) $sync[$entryInfo.Name].Add_Checked({ [System.Object]$Sender = $args[0] Invoke-WPFSelectedCheckboxesUpdate -type "Add" -checkboxName $Sender.name # Skip applying tweaks while an import is restoring toggle states if (-not $sync.ImportInProgress) { Invoke-WinUtilTweaks $Sender.name } }) $sync[$entryInfo.Name].Add_Unchecked({ [System.Object]$Sender = $args[0] Invoke-WPFSelectedCheckboxesUpdate -type "Remove" -checkboxName $Sender.name # Skip undoing tweaks while an import is restoring toggle states if (-not $sync.ImportInProgress) { Invoke-WinUtiltweaks $Sender.name -undo $true } }) } } "ToggleButton" { $toggleButton = New-Object Windows.Controls.Primitives.ToggleButton $toggleButton.Name = $entryInfo.Name $toggleButton.Content = $entryInfo.Content[1] $toggleButton.ToolTip = $entryInfo.Description $toggleButton.HorizontalAlignment = "Left" $toggleButton.Style = $ToggleButtonStyle [System.Windows.Automation.AutomationProperties]::SetName($toggleButton, $entryInfo.Content[0]) $toggleButton.Tag = @{ contentOn = if ($entryInfo.Content.Count -ge 1) { $entryInfo.Content[0] } else { "" } contentOff = if ($entryInfo.Content.Count -ge 2) { $entryInfo.Content[1] } else { $contentOn } } $itemsControl.Items.Add($toggleButton) | Out-Null $sync[$entryInfo.Name] = $toggleButton $sync[$entryInfo.Name].Add_Checked({ $this.Content = $this.Tag.contentOn }) $sync[$entryInfo.Name].Add_Unchecked({ $this.Content = $this.Tag.contentOff }) } "Combobox" { $horizontalStackPanel = New-Object Windows.Controls.StackPanel $horizontalStackPanel.Orientation = "Horizontal" $horizontalStackPanel.Margin = "0,5,0,0" $label = New-Object Windows.Controls.Label $label.Content = $entryInfo.Content $label.HorizontalAlignment = "Left" $label.VerticalAlignment = "Center" $label.SetResourceReference([Windows.Controls.Control]::FontSizeProperty, "ButtonFontSize") $label.UseLayoutRounding = $true $horizontalStackPanel.Children.Add($label) | Out-Null $comboBox = New-Object Windows.Controls.ComboBox $comboBox.Name = $entryInfo.Name $comboBox.SetResourceReference([Windows.Controls.Control]::HeightProperty, "ButtonHeight") $comboBox.SetResourceReference([Windows.Controls.Control]::WidthProperty, "ButtonWidth") $comboBox.HorizontalAlignment = "Left" $comboBox.VerticalAlignment = "Center" $comboBox.SetResourceReference([Windows.Controls.Control]::MarginProperty, "ButtonMargin") $comboBox.SetResourceReference([Windows.Controls.Control]::FontSizeProperty, "ButtonFontSize") $comboBox.UseLayoutRounding = $true [System.Windows.Automation.AutomationProperties]::SetName($comboBox, $entryInfo.Content) foreach ($comboitem in ($entryInfo.ComboItems -split " ")) { $comboBoxItem = New-Object Windows.Controls.ComboBoxItem $comboBoxItem.Content = $comboitem $comboBoxItem.SetResourceReference([Windows.Controls.Control]::FontSizeProperty, "ButtonFontSize") $comboBoxItem.UseLayoutRounding = $true $comboBox.Items.Add($comboBoxItem) | Out-Null } $horizontalStackPanel.Children.Add($comboBox) | Out-Null $itemsControl.Items.Add($horizontalStackPanel) | Out-Null $comboBox.SelectedIndex = 0 # Set initial text if ($comboBox.Items.Count -gt 0) { $comboBox.Text = $comboBox.Items[0].Content } # Add SelectionChanged event handler to update the text property $comboBox.Add_SelectionChanged({ $selectedItem = $this.SelectedItem if ($selectedItem) { $this.Text = $selectedItem.Content } }) $sync[$entryInfo.Name] = $comboBox } "Button" { $button = New-Object Windows.Controls.Button $button.Name = $entryInfo.Name $button.Content = $entryInfo.Content $button.HorizontalAlignment = "Left" $button.SetResourceReference([Windows.Controls.Control]::MarginProperty, "ButtonMargin") $button.SetResourceReference([Windows.Controls.Control]::FontSizeProperty, "ButtonFontSize") if ($entryInfo.ButtonWidth) { $baseWidth = [int]$entryInfo.ButtonWidth $button.Width = [math]::Max($baseWidth, 350) } [System.Windows.Automation.AutomationProperties]::SetName($button, $entryInfo.Content) $itemsControl.Items.Add($button) | Out-Null $sync[$entryInfo.Name] = $button } "RadioButton" { # Check if a container for this GroupName already exists if (-not $radioButtonGroups.ContainsKey($entryInfo.GroupName)) { # Create a StackPanel for this group $groupStackPanel = New-Object Windows.Controls.StackPanel $groupStackPanel.Orientation = "Vertical" # Add the group container to the ItemsControl $itemsControl.Items.Add($groupStackPanel) | Out-Null } else { # Retrieve the existing group container $groupStackPanel = $radioButtonGroups[$entryInfo.GroupName] } # Create the RadioButton $radioButton = New-Object Windows.Controls.RadioButton $radioButton.Name = $entryInfo.Name $radioButton.GroupName = $entryInfo.GroupName $radioButton.Content = $entryInfo.Content $radioButton.HorizontalAlignment = "Left" $radioButton.SetResourceReference([Windows.Controls.Control]::MarginProperty, "CheckBoxMargin") $radioButton.SetResourceReference([Windows.Controls.Control]::FontSizeProperty, "ButtonFontSize") $radioButton.ToolTip = $entryInfo.Description $radioButton.UseLayoutRounding = $true [System.Windows.Automation.AutomationProperties]::SetName($radioButton, $entryInfo.Content) if ($entryInfo.Checked -eq $true) { $radioButton.IsChecked = $true } # Add the RadioButton to the group container $groupStackPanel.Children.Add($radioButton) | Out-Null $sync[$entryInfo.Name] = $radioButton } default { $horizontalStackPanel = New-Object Windows.Controls.StackPanel $horizontalStackPanel.Orientation = "Horizontal" $checkBox = New-Object Windows.Controls.CheckBox $checkBox.Name = $entryInfo.Name $checkBox.Content = $entryInfo.Content $checkBox.SetResourceReference([Windows.Controls.Control]::FontSizeProperty, "FontSize") $checkBox.ToolTip = $entryInfo.Description $checkBox.SetResourceReference([Windows.Controls.Control]::MarginProperty, "CheckBoxMargin") $checkBox.UseLayoutRounding = $true [System.Windows.Automation.AutomationProperties]::SetName($checkBox, $entryInfo.Content) if ($entryInfo.Checked -eq $true) { $checkBox.IsChecked = $entryInfo.Checked } $horizontalStackPanel.Children.Add($checkBox) | Out-Null if ($entryInfo.Link) { $textBlock = New-Object Windows.Controls.TextBlock $textBlock.Name = $checkBox.Name + "Link" $textBlock.Text = "(?)" $textBlock.ToolTip = $entryInfo.Link $textBlock.Style = $HoverTextBlockStyle $textBlock.UseLayoutRounding = $true $horizontalStackPanel.Children.Add($textBlock) | Out-Null $sync[$textBlock.Name] = $textBlock } $itemsControl.Items.Add($horizontalStackPanel) | Out-Null $sync[$entryInfo.Name] = $checkBox $sync[$entryInfo.Name].Add_Checked({ [System.Object]$Sender = $args[0] Invoke-WPFSelectedCheckboxesUpdate -type "Add" -checkboxName $Sender.name }) $sync[$entryInfo.Name].Add_Unchecked({ [System.Object]$Sender = $args[0] Invoke-WPFSelectedCheckboxesUpdate -type "Remove" -checkbox $Sender.name }) } } } } } } ================================================ FILE: functions/public/Invoke-WPFUIThread.ps1 ================================================ function Invoke-WPFUIThread { <# .SYNOPSIS Creates and runs a task on Winutil's WPF Forms thread. .PARAMETER ScriptBlock The scriptblock to invoke in the thread #> [CmdletBinding()] Param ( $ScriptBlock ) if ($PARAM_NOUI) { return; } $sync.form.Dispatcher.Invoke([action]$ScriptBlock) } ================================================ FILE: functions/public/Invoke-WPFUltimatePerformance.ps1 ================================================ Function Invoke-WPFUltimatePerformance { <# .SYNOPSIS Enables or disables the Ultimate Performance power scheme based on its GUID. .PARAMETER State Specifies whether to "Enable" or "Disable" the Ultimate Performance power scheme. #> param( [Parameter(Mandatory = $true)] [ValidateSet("Enable", "Disable")] [string]$State ) try { # GUID of the Ultimate Performance power plan $ultimateGUID = "e9a42b02-d5df-448d-aa00-03f14749eb61" switch ($State) { "Enable" { # Duplicate the Ultimate Performance power plan using its GUID $duplicateOutput = powercfg /duplicatescheme $ultimateGUID $guid = $null $nameFromFile = "ChrisTitus - Ultimate Power Plan" $description = "Ultimate Power Plan, added via WinUtils" # Extract the new GUID from the duplicateOutput foreach ($line in $duplicateOutput) { if ($line -match "\b[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}\b") { $guid = $matches[0] # $matches[0] will contain the first match, which is the GUID Write-Output "GUID: $guid has been extracted and stored in the variable." break } } if (-not $guid) { Write-Output "No GUID found in the duplicateOutput. Check the output format." exit 1 } # Change the name of the power plan and set its description $changeNameOutput = powercfg /changename $guid "$nameFromFile" "$description" Write-Output "The power plan name and description have been changed. Output:" Write-Output $changeNameOutput # Set the duplicated Ultimate Performance plan as active $setActiveOutput = powercfg /setactive $guid Write-Output "The power plan has been set as active. Output:" Write-Output $setActiveOutput Write-Host "> Ultimate Performance plan installed and set as active." } "Disable" { # Check if the Ultimate Performance plan is installed by GUID $installedPlan = powercfg -list | Select-String -Pattern "ChrisTitus - Ultimate Power Plan" if ($installedPlan) { # Extract the GUID of the installed Ultimate Performance plan $ultimatePlanGUID = $installedPlan.Line.Split()[3] # Set a different power plan as active before deleting the Ultimate Performance plan $balancedPlanGUID = "381b4222-f694-41f0-9685-ff5bb260df2e" powercfg -setactive $balancedPlanGUID # Delete the Ultimate Performance plan by GUID powercfg -delete $ultimatePlanGUID Write-Host "Ultimate Performance plan has been uninstalled." Write-Host "> Balanced plan is now active." } else { Write-Host "Ultimate Performance plan is not installed." } } default { Write-Host "Invalid state. Please use 'Enable' or 'Disable'." } } } catch { Write-Error "Error occurred: $_" } } ================================================ FILE: functions/public/Invoke-WPFUnInstall.ps1 ================================================ function Invoke-WPFUnInstall { param( [Parameter(Mandatory=$false)] [PSObject[]]$PackagesToUninstall = $($sync.selectedApps | Foreach-Object { $sync.configs.applicationsHashtable.$_ }) ) <# .SYNOPSIS Uninstalls the selected programs #> if($sync.ProcessRunning) { $msg = "[Invoke-WPFUnInstall] Install process is currently running" [System.Windows.MessageBox]::Show($msg, "Winutil", [System.Windows.MessageBoxButton]::OK, [System.Windows.MessageBoxImage]::Warning) return } if ($PackagesToUninstall.Count -eq 0) { $WarningMsg = "Please select the program(s) to uninstall" [System.Windows.MessageBox]::Show($WarningMsg, $AppTitle, [System.Windows.MessageBoxButton]::OK, [System.Windows.MessageBoxImage]::Warning) return } $ButtonType = [System.Windows.MessageBoxButton]::YesNo $MessageboxTitle = "Are you sure?" $Messageboxbody = ("This will uninstall the following applications: `n $($PackagesToUninstall | Select-Object Name, Description| Out-String)") $MessageIcon = [System.Windows.MessageBoxImage]::Information $confirm = [System.Windows.MessageBox]::Show($Messageboxbody, $MessageboxTitle, $ButtonType, $MessageIcon) if($confirm -eq "No") {return} $ManagerPreference = $sync.preferences.packagemanager Invoke-WPFRunspace -ParameterList @(("PackagesToUninstall", $PackagesToUninstall),("ManagerPreference", $ManagerPreference)) -ScriptBlock { param($PackagesToUninstall, $ManagerPreference) $packagesSorted = Get-WinUtilSelectedPackages -PackageList $PackagesToUninstall -Preference $ManagerPreference $packagesWinget = $packagesSorted[[PackageManagers]::Winget] $packagesChoco = $packagesSorted[[PackageManagers]::Choco] try { $sync.ProcessRunning = $true Show-WPFInstallAppBusy -text "Uninstalling apps..." # Uninstall all selected programs in new window if($packagesWinget.Count -gt 0) { Install-WinUtilProgramWinget -Action Uninstall -Programs $packagesWinget } if($packagesChoco.Count -gt 0) { Install-WinUtilProgramChoco -Action Uninstall -Programs $packagesChoco } Hide-WPFInstallAppBusy Write-Host "===========================================" Write-Host "-- Uninstalls have finished ---" Write-Host "===========================================" Invoke-WPFUIThread -ScriptBlock { Set-WinUtilTaskbaritem -state "None" -overlay "checkmark" } } catch { Write-Host "===========================================" Write-Host "Error: $_" Write-Host "===========================================" Invoke-WPFUIThread -ScriptBlock { Set-WinUtilTaskbaritem -state "Error" -overlay "warning" } } $sync.ProcessRunning = $False } } ================================================ FILE: functions/public/Invoke-WPFUpdatesdefault.ps1 ================================================ function Invoke-WPFUpdatesdefault { <# .SYNOPSIS Resets Windows Update settings to default #> $ErrorActionPreference = 'SilentlyContinue' Write-Host "Removing Windows Update policy settings..." -ForegroundColor Green Remove-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Recurse -Force Remove-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization" -Recurse -Force Remove-Item -Path "HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" -Recurse -Force Remove-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Device Metadata" -Recurse -Force Remove-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DriverSearching" -Recurse -Force Remove-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" -Recurse -Force Write-Host "Reenabling Windows Update Services..." -ForegroundColor Green Write-Host "Restored BITS to Manual" Set-Service -Name BITS -StartupType Manual Write-Host "Restored wuauserv to Manual" Set-Service -Name wuauserv -StartupType Manual Write-Host "Restored UsoSvc to Automatic" Set-Service -Name UsoSvc -StartupType Automatic Write-Host "Restored WaaSMedicSvc to Manual" Set-Service -Name WaaSMedicSvc -StartupType Manual Write-Host "Enabling update related scheduled tasks..." -ForegroundColor Green $Tasks = '\Microsoft\Windows\InstallService\*', '\Microsoft\Windows\UpdateOrchestrator\*', '\Microsoft\Windows\UpdateAssistant\*', '\Microsoft\Windows\WaaSMedic\*', '\Microsoft\Windows\WindowsUpdate\*', '\Microsoft\WindowsUpdate\*' foreach ($Task in $Tasks) { Get-ScheduledTask -TaskPath $Task | Enable-ScheduledTask -ErrorAction SilentlyContinue } Write-Host "Windows Local Policies Reset to Default" secedit /configure /cfg "$Env:SystemRoot\inf\defltbase.inf" /db defltbase.sdb Write-Host "===================================================" -ForegroundColor Green Write-Host "--- Windows Update Settings Reset to Default ---" -ForegroundColor Green Write-Host "===================================================" -ForegroundColor Green Write-Host "Note: You must restart your system in order for all changes to take effect." -ForegroundColor Yellow } ================================================ FILE: functions/public/Invoke-WPFUpdatesdisable.ps1 ================================================ function Invoke-WPFUpdatesdisable { <# .SYNOPSIS Disables Windows Update .NOTES Disabling Windows Update is not recommended. This is only for advanced users who know what they are doing. #> $ErrorActionPreference = 'SilentlyContinue' Write-Host "Configuring registry settings..." -ForegroundColor Yellow New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Force Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name "NoAutoUpdate" -Type DWord -Value 1 Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name "AUOptions" -Type DWord -Value 1 New-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config" -Force Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config" -Name "DODownloadMode" -Type DWord -Value 0 Write-Host "Disabled BITS Service" Set-Service -Name BITS -StartupType Disabled Write-Host "Disabled wuauserv Service" Set-Service -Name wuauserv -StartupType Disabled Write-Host "Disabled UsoSvc Service" Set-Service -Name UsoSvc -StartupType Disabled Write-Host "Disabled WaaSMedicSvc Service" Set-Service -Name WaaSMedicSvc -StartupType Disabled Remove-Item "C:\Windows\SoftwareDistribution\*" -Recurse -Force Write-Host "Cleared SoftwareDistribution folder" Write-Host "Disabling update related scheduled tasks..." -ForegroundColor Yellow $Tasks = '\Microsoft\Windows\InstallService\*', '\Microsoft\Windows\UpdateOrchestrator\*', '\Microsoft\Windows\UpdateAssistant\*', '\Microsoft\Windows\WaaSMedic\*', '\Microsoft\Windows\WindowsUpdate\*', '\Microsoft\WindowsUpdate\*' foreach ($Task in $Tasks) { Get-ScheduledTask -TaskPath $Task | Disable-ScheduledTask -ErrorAction SilentlyContinue } Write-Host "=================================" -ForegroundColor Green Write-Host "--- Updates Are Disabled ---" -ForegroundColor Green Write-Host "=================================" -ForegroundColor Green Write-Host "Note: You must restart your system in order for all changes to take effect." -ForegroundColor Yellow } ================================================ FILE: functions/public/Invoke-WPFUpdatessecurity.ps1 ================================================ function Invoke-WPFUpdatessecurity { <# .SYNOPSIS Sets Windows Update to recommended settings .DESCRIPTION 1. Disables driver offering through Windows Update 2. Disables Windows Update automatic restart 3. Sets Windows Update to Semi-Annual Channel (Targeted) 4. Defers feature updates for 365 days 5. Defers quality updates for 4 days #> Write-Host "Disabling driver offering through Windows Update..." New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Device Metadata" -Force Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Device Metadata" -Name "PreventDeviceMetadataFromNetwork" -Type DWord -Value 1 New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DriverSearching" -Force 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 New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" -Force Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" -Name "ExcludeWUDriversInQualityUpdate" -Type DWord -Value 1 Write-Host "Setting cumulative updates back by 1 year and security updates by 4 days" New-Item -Path "HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" -Force Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" -Name "BranchReadinessLevel" -Type DWord -Value 20 Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" -Name "DeferFeatureUpdatesPeriodInDays" -Type DWord -Value 365 Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" -Name "DeferQualityUpdatesPeriodInDays" -Type DWord -Value 4 Write-Host "Disabling Windows Update automatic restart..." New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Force 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 "=================================" Write-Host "-- Updates Set to Recommended ---" Write-Host "=================================" } ================================================ FILE: functions/public/Invoke-WPFtweaksbutton.ps1 ================================================ function Invoke-WPFtweaksbutton { <# .SYNOPSIS Invokes the functions associated with each group of checkboxes #> if($sync.ProcessRunning) { $msg = "[Invoke-WPFtweaksbutton] Install process is currently running." [System.Windows.MessageBox]::Show($msg, "Winutil", [System.Windows.MessageBoxButton]::OK, [System.Windows.MessageBoxImage]::Warning) return } $Tweaks = $sync.selectedTweaks $dnsProvider = $sync["WPFchangedns"].text $restorePointTweak = "WPFTweaksRestorePoint" $restorePointSelected = $Tweaks -contains $restorePointTweak $tweaksToRun = @($Tweaks | Where-Object { $_ -ne $restorePointTweak }) $totalSteps = [Math]::Max($Tweaks.Count, 1) $completedSteps = 0 if ($tweaks.count -eq 0 -and $dnsProvider -eq "Default") { $msg = "Please check the tweaks you wish to perform." [System.Windows.MessageBox]::Show($msg, "Winutil", [System.Windows.MessageBoxButton]::OK, [System.Windows.MessageBoxImage]::Warning) return } Write-Debug "Number of tweaks to process: $($Tweaks.Count)" if ($restorePointSelected) { $sync.ProcessRunning = $true if ($Tweaks.Count -eq 1) { Invoke-WPFUIThread -ScriptBlock { Set-WinUtilTaskbaritem -state "Indeterminate" -value 0.01 -overlay "logo" } } else { Invoke-WPFUIThread -ScriptBlock { Set-WinUtilTaskbaritem -state "Normal" -value 0.01 -overlay "logo" } } Set-WinUtilProgressBar -Label "Creating restore point" -Percent 0 Invoke-WinUtilTweaks $restorePointTweak $completedSteps = 1 if ($tweaksToRun.Count -eq 0 -and $dnsProvider -eq "Default") { Set-WinUtilProgressBar -Label "Tweaks finished" -Percent 100 $sync.ProcessRunning = $false Invoke-WPFUIThread -ScriptBlock { Set-WinUtilTaskbaritem -state "None" -overlay "checkmark" } Write-Host "=================================" Write-Host "-- Tweaks are Finished ---" Write-Host "=================================" return } } # The leading "," in the ParameterList is necessary because we only provide one argument and powershell cannot be convinced that we want a nested loop with only one argument otherwise $handle = Invoke-WPFRunspace -ParameterList @(("tweaks", $tweaksToRun), ("dnsProvider", $dnsProvider), ("completedSteps", $completedSteps), ("totalSteps", $totalSteps)) -ScriptBlock { param($tweaks, $dnsProvider, $completedSteps, $totalSteps) Write-Debug "Inside Number of tweaks to process: $($Tweaks.Count)" $sync.ProcessRunning = $true if ($completedSteps -eq 0) { if ($Tweaks.count -eq 1) { Invoke-WPFUIThread -ScriptBlock { Set-WinUtilTaskbaritem -state "Indeterminate" -value 0.01 -overlay "logo" } } else { Invoke-WPFUIThread -ScriptBlock{ Set-WinUtilTaskbaritem -state "Normal" -value 0.01 -overlay "logo" } } } Set-WinUtilDNS -DNSProvider $dnsProvider for ($i = 0; $i -lt $tweaks.Count; $i++) { Set-WinUtilProgressBar -Label "Applying $($tweaks[$i])" -Percent ($completedSteps / $totalSteps * 100) Invoke-WinUtilTweaks $tweaks[$i] $completedSteps++ $progress = $completedSteps / $totalSteps Invoke-WPFUIThread -ScriptBlock { Set-WinUtilTaskbaritem -value $progress } } Set-WinUtilProgressBar -Label "Tweaks finished" -Percent 100 $sync.ProcessRunning = $false Invoke-WPFUIThread -ScriptBlock { Set-WinUtilTaskbaritem -state "None" -overlay "checkmark" } Write-Host "=================================" Write-Host "-- Tweaks are Finished ---" Write-Host "=================================" } } ================================================ FILE: functions/public/Invoke-WPFundoall.ps1 ================================================ function Invoke-WPFundoall { <# .SYNOPSIS Undoes every selected tweak #> if($sync.ProcessRunning) { $msg = "[Invoke-WPFundoall] Install process is currently running." [System.Windows.MessageBox]::Show($msg, "Winutil", [System.Windows.MessageBoxButton]::OK, [System.Windows.MessageBoxImage]::Warning) return } $tweaks = $sync.selectedTweaks if ($tweaks.count -eq 0) { $msg = "Please check the tweaks you wish to undo." [System.Windows.MessageBox]::Show($msg, "Winutil", [System.Windows.MessageBoxButton]::OK, [System.Windows.MessageBoxImage]::Warning) return } Invoke-WPFRunspace -ArgumentList $tweaks -ScriptBlock { param($tweaks) $sync.ProcessRunning = $true if ($tweaks.count -eq 1) { Invoke-WPFUIThread -ScriptBlock { Set-WinUtilTaskbaritem -state "Indeterminate" -value 0.01 -overlay "logo" } } else { Invoke-WPFUIThread -ScriptBlock { Set-WinUtilTaskbaritem -state "Normal" -value 0.01 -overlay "logo" } } for ($i = 0; $i -lt $tweaks.Count; $i++) { Set-WinUtilProgressBar -Label "Undoing $($tweaks[$i])" -Percent ($i / $tweaks.Count * 100) Invoke-WinUtiltweaks $tweaks[$i] -undo $true Invoke-WPFUIThread -ScriptBlock { Set-WinUtilTaskbaritem -value ($i/$tweaks.Count) } } Set-WinUtilProgressBar -Label "Undo Tweaks Finished" -Percent 100 $sync.ProcessRunning = $false Invoke-WPFUIThread -ScriptBlock { Set-WinUtilTaskbaritem -state "None" -overlay "checkmark" } Write-Host "==================================" Write-Host "--- Undo Tweaks are Finished ---" Write-Host "==================================" } } ================================================ FILE: functions/public/Invoke-WinUtilAutoRun.ps1 ================================================ function Invoke-WinUtilAutoRun { <# .SYNOPSIS Runs Install, Tweaks, and Features with optional UI invocation. #> function BusyWait { Start-Sleep -Seconds 5 while ($sync.ProcessRunning) { Start-Sleep -Seconds 5 } } BusyWait Write-Host "Applying tweaks..." Invoke-WPFtweaksbutton BusyWait Write-Host "Applying toggles..." $handle = Invoke-WPFRunspace -ScriptBlock { $Toggles = $sync.selectedToggles Write-Debug "Inside Number of toggles to process: $($Toggles.Count)" $sync.ProcessRunning = $true for ($i = 0; $i -lt $Tweaks.Count; $i++) { Invoke-WinUtilTweaks $Toggles[$i] } $sync.ProcessRunning = $false Write-Host "=================================" Write-Host "-- Toggles are Finished ---" Write-Host "=================================" } BusyWait Write-Host "Applying features..." Invoke-WPFFeatureInstall BusyWait Write-Host "Installing applications..." Invoke-WPFInstall BusyWait Write-Host "Done." } ================================================ FILE: functions/public/Invoke-WinUtilRemoveEdge.ps1 ================================================ function Invoke-WinUtilRemoveEdge { Write-Host "Unlocking The Offical Edge Uninstaller And Removing Microsoft Edge..." $Path = (Get-ChildItem "C:\Program Files (x86)\Microsoft\Edge\Application\*\Installer\setup.exe")[0].FullName New-Item "C:\Windows\SystemApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\MicrosoftEdge.exe" -Force Start-Process $Path -ArgumentList '--uninstall --system-level --force-uninstall --delete-profile' } ================================================ FILE: functions/public/Show-CTTLogo.ps1 ================================================ Function Show-CTTLogo { <# .SYNOPSIS Displays the CTT logo in ASCII art. .DESCRIPTION This function displays the CTT logo in ASCII art format. .PARAMETER None No parameters are required for this function. .EXAMPLE Show-CTTLogo Prints the CTT logo in ASCII art format to the console. #> $asciiArt = @" CCCCCCCCCCCCCTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT CCC::::::::::::CT:::::::::::::::::::::TT:::::::::::::::::::::T CC:::::::::::::::CT:::::::::::::::::::::TT:::::::::::::::::::::T C:::::CCCCCCCC::::CT:::::TT:::::::TT:::::TT:::::TT:::::::TT:::::T C:::::C CCCCCCTTTTTT T:::::T TTTTTTTTTTTT T:::::T TTTTTT C:::::C T:::::T T:::::T C:::::C T:::::T T:::::T C:::::C T:::::T T:::::T C:::::C T:::::T T:::::T C:::::C T:::::T T:::::T C:::::C T:::::T T:::::T C:::::C CCCCCC T:::::T T:::::T C:::::CCCCCCCC::::C TT:::::::TT TT:::::::TT CC:::::::::::::::C T:::::::::T T:::::::::T CCC::::::::::::C T:::::::::T T:::::::::T CCCCCCCCCCCCC TTTTTTTTTTT TTTTTTTTTTT ====Chris Titus Tech===== =====Windows Toolbox===== "@ Write-Host $asciiArt } ================================================ FILE: lint/PSScriptAnalyser.ps1 ================================================ @{ # Only diagnostic records of the specified severity will be generated. # Uncomment the following line if you only want Errors and Warnings but # not Information diagnostic records. # Severity = @('Error','Warning') # Analyze **only** the following rules. Use IncludeRules when you want # to invoke only a small subset of the default rules. <# IncludeRules = @('PSAvoidDefaultValueSwitchParameter', 'PSMisleadingBacktick', 'PSMissingModuleManifestField', 'PSReservedCmdletChar', 'PSReservedParams', 'PSShouldProcess', 'PSUseApprovedVerbs', 'PSUseDeclaredVarsMoreThanAssignments') #> # Do not analyze the following rules. Use ExcludeRules when you have # commented out the IncludeRules settings above and want to include all # the default rules except for those you exclude below. # Note: if a rule is in both IncludeRules and ExcludeRules, the rule # will be excluded. ExcludeRules = @('PSAvoidUsingWriteHost') } ================================================ FILE: overrides/main.html ================================================ {% extends "base.html" %} {% block header %} {{ super() }}
Announcement: We are currently reworking the docs to use Hugo rather then mkdocs.
{% endblock %} {% block footer %} {# Empty block to override the footer #} {% endblock %} ================================================ FILE: pester/configs.Tests.ps1 ================================================ # Import Config Files $global:importedconfigs = @{} Get-ChildItem .\config | Where-Object {$_.Extension -eq ".json"} | ForEach-Object { $global:importedconfigs[$psitem.BaseName] = Get-Content $psitem.FullName | ConvertFrom-Json } #=========================================================================== # Tests - Application Installs #=========================================================================== Describe "Config Files" -ForEach @( @{ name = "applications" config = $('{ "winget": "value", "choco": "value", "category": "value", "content": "value", "description": "value", "link": "value" }' | ConvertFrom-Json) }, @{ name = "tweaks" undo = $true } ) { Context "$name config file" { It "Imports with no errors" { $global:importedconfigs.$name | should -Not -BeNullOrEmpty } if ($config) { It "Imports should be the correct structure" { $applications = $global:importedconfigs.$name | Get-Member -MemberType NoteProperty | Select-Object -ExpandProperty name $template = $config | Get-Member -MemberType NoteProperty | Select-Object -ExpandProperty name $result = New-Object System.Collections.Generic.List[System.Object] Foreach ($application in $applications) { $compare = $global:importedconfigs.$name.$application | Get-Member -MemberType NoteProperty | Select-Object -ExpandProperty name if (-not $compare) { throw "Comparison object for application '$application' is null." } if (-not $template) { throw "Template object for application '$application' is null." } if ($(Compare-Object $compare $template) -ne $null) { $result.Add($application) } } $result | Select-String "WPF*" | should -BeNullOrEmpty } } if($undo) { It "Tweaks should contain original Value" { $tweaks = $global:importedconfigs.$name | Get-Member -MemberType NoteProperty | Select-Object -ExpandProperty name $result = New-Object System.Collections.Generic.List[System.Object] foreach ($tweak in $tweaks) { $Originals = @( @{ name = "registry" value = "OriginalValue" }, @{ name = "service" value = "OriginalType" }, @{ name = "ScheduledTask" value = "OriginalState" } ) Foreach ($original in $Originals) { $TotalCount = ($global:importedconfigs.$name.$tweak.$($original.name)).count $OriginalCount = ($global:importedconfigs.$name.$tweak.$($original.name).$($original.value) | Where-Object {$_}).count if($TotalCount -ne $OriginalCount) { $result.Add("$Tweak,$($original.name)") } } } $result | Select-String "WPF*" | should -BeNullOrEmpty } } } } ================================================ FILE: pester/functions.Tests.ps1 ================================================ #=========================================================================== # Tests - Functions #=========================================================================== Describe "Comprehensive Checks for PS1 Files in Functions Folder" { BeforeAll { # Get all .ps1 files in the functions folder $ps1Files = Get-ChildItem -Path ./functions -Filter *.ps1 -Recurse } foreach ($file in $ps1Files) { Context "Checking $($file.Name)" { It "Should import without errors" { { . $file.FullName } | Should -Not -Throw } It "Should have no syntax errors" { $syntaxErrors = $null $null = [System.Management.Automation.PSParser]::Tokenize((Get-Content -Path $file.FullName -Raw), [ref]$syntaxErrors) $syntaxErrors.Count | Should -Be 0 } It "Should not use deprecated cmdlets or aliases" { $content = Get-Content -Path $file.FullName -Raw # Example check for a known deprecated cmdlet or alias $content | Should -Not -Match 'DeprecatedCmdlet' # Add more checks as needed } It "Should follow naming conventions for functions" { $functions = (Get-Command -Path $file.FullName).Name foreach ($function in $functions) { $function | Should -Match '^[a-z]+(-[a-z]+)*$' # Enforce lower-kebab-case } } It "Should define mandatory parameters for all functions" { . $file.FullName $functions = (Get-Command -Path $file.FullName).Name foreach ($function in $functions) { $parameters = (Get-Command -Name $function).Parameters.Values $mandatoryParams = $parameters | Where-Object { $_.Attributes.Mandatory -eq $true } $mandatoryParams.Count | Should -BeGreaterThan 0 } } It "Should have all functions available after import" { . $file.FullName $functions = (Get-Command -Path $file.FullName).Name foreach ($function in $functions) { { Get-Command -Name $function -CommandType Function } | Should -Not -BeNullOrEmpty } } } } } ================================================ FILE: scripts/main.ps1 ================================================ # Create enums Add-Type @" public enum PackageManagers { Winget, Choco } "@ # SPDX-License-Identifier: MIT # Set the maximum number of threads for the RunspacePool to the number of threads on the machine $maxthreads = [int]$env:NUMBER_OF_PROCESSORS # Create a new session state for parsing variables into our runspace $hashVars = New-object System.Management.Automation.Runspaces.SessionStateVariableEntry -ArgumentList 'sync',$sync,$Null $debugVar = New-object System.Management.Automation.Runspaces.SessionStateVariableEntry -ArgumentList 'DebugPreference',$DebugPreference,$Null $uiVar = New-object System.Management.Automation.Runspaces.SessionStateVariableEntry -ArgumentList 'PARAM_NOUI',$PARAM_NOUI,$Null $offlineVar = New-object System.Management.Automation.Runspaces.SessionStateVariableEntry -ArgumentList 'PARAM_OFFLINE',$PARAM_OFFLINE,$Null $InitialSessionState = [System.Management.Automation.Runspaces.InitialSessionState]::CreateDefault() # Add the variable to the session state $InitialSessionState.Variables.Add($hashVars) $InitialSessionState.Variables.Add($debugVar) $InitialSessionState.Variables.Add($uiVar) $InitialSessionState.Variables.Add($offlineVar) # Get every private function and add them to the session state $functions = Get-ChildItem function:\ | Where-Object { $_.Name -imatch 'winutil|WPF' } foreach ($function in $functions) { $functionDefinition = Get-Content function:\$($function.name) $functionEntry = New-Object System.Management.Automation.Runspaces.SessionStateFunctionEntry -ArgumentList $($function.name), $functionDefinition $initialSessionState.Commands.Add($functionEntry) } # Create the runspace pool $sync.runspace = [runspacefactory]::CreateRunspacePool( 1, # Minimum thread count $maxthreads, # Maximum thread count $InitialSessionState, # Initial session state $Host # Machine to create runspaces on ) # Open the RunspacePool instance $sync.runspace.Open() # Create classes for different exceptions class WingetFailedInstall : Exception { [string]$additionalData WingetFailedInstall($Message) : base($Message) {} } class ChocoFailedInstall : Exception { [string]$additionalData ChocoFailedInstall($Message) : base($Message) {} } class GenericException : Exception { [string]$additionalData GenericException($Message) : base($Message) {} } # Load the configuration files $sync.configs.applicationsHashtable = @{} $sync.configs.applications.PSObject.Properties | ForEach-Object { $sync.configs.applicationsHashtable[$_.Name] = $_.Value } Set-Preferences if ($PARAM_NOUI) { Show-CTTLogo if ($PARAM_CONFIG -and -not [string]::IsNullOrWhiteSpace($PARAM_CONFIG)) { Write-Host "Running config file tasks..." Invoke-WPFImpex -type "import" -Config $PARAM_CONFIG if ($PARAM_RUN) { Invoke-WinUtilAutoRun } else { Write-Host "Did you forget to add '--Run'?"; } $sync.runspace.Dispose() $sync.runspace.Close() [System.GC]::Collect() Stop-Transcript exit 1 } else { Write-Host "Cannot automatically run without a config file provided." $sync.runspace.Dispose() $sync.runspace.Close() [System.GC]::Collect() Stop-Transcript exit 1 } } $inputXML = $inputXML -replace 'mc:Ignorable="d"', '' -replace "x:N", 'N' -replace '^ [char]0xF08C if (($msg -eq 0x001A) -and $sync.ThemeButton.Content -eq [char]0xF08C) { $currentTime = [datetime]::Now if ($currentTime - $lastThemeChangeTime -gt $debounceInterval) { Invoke-WinutilThemeChange -theme "Auto" $script:lastThemeChangeTime = $currentTime $handled = $true } } return 0 }) }) Invoke-WinutilThemeChange -theme $sync.preferences.theme # Now call the function with the final merged config Invoke-WPFUIElements -configVariable $sync.configs.appnavigation -targetGridName "appscategory" -columncount 1 Initialize-WPFUI -targetGridName "appscategory" Initialize-WPFUI -targetGridName "appspanel" Invoke-WPFUIElements -configVariable $sync.configs.tweaks -targetGridName "tweakspanel" -columncount 2 Invoke-WPFUIElements -configVariable $sync.configs.feature -targetGridName "featurespanel" -columncount 2 # Future implementation: Add Windows Version to updates panel #Invoke-WPFUIElements -configVariable $sync.configs.updates -targetGridName "updatespanel" -columncount 1 #=========================================================================== # Store Form Objects In PowerShell #=========================================================================== $xaml.SelectNodes("//*[@Name]") | ForEach-Object {$sync["$("$($psitem.Name)")"] = $sync["Form"].FindName($psitem.Name)} #Persist Package Manager preference across winutil restarts $sync.ChocoRadioButton.Add_Checked({ $sync.preferences.packagemanager = [PackageManagers]::Choco Set-Preferences -save }) $sync.WingetRadioButton.Add_Checked({ $sync.preferences.packagemanager = [PackageManagers]::Winget Set-Preferences -save }) switch ($sync.preferences.packagemanager) { "Choco" {$sync.ChocoRadioButton.IsChecked = $true; break} "Winget" {$sync.WingetRadioButton.IsChecked = $true; break} } $sync.keys | ForEach-Object { if($sync.$psitem) { if($($sync["$psitem"].GetType() | Select-Object -ExpandProperty Name) -eq "ToggleButton") { $sync["$psitem"].Add_Click({ [System.Object]$Sender = $args[0] Invoke-WPFButton $Sender.name }) } if($($sync["$psitem"].GetType() | Select-Object -ExpandProperty Name) -eq "Button") { $sync["$psitem"].Add_Click({ [System.Object]$Sender = $args[0] Invoke-WPFButton $Sender.name }) } if ($($sync["$psitem"].GetType() | Select-Object -ExpandProperty Name) -eq "TextBlock") { if ($sync["$psitem"].Name.EndsWith("Link")) { $sync["$psitem"].Add_MouseUp({ [System.Object]$Sender = $args[0] Start-Process $Sender.ToolTip -ErrorAction Stop Write-Debug "Opening: $($Sender.ToolTip)" }) } } } } #=========================================================================== # Setup background config #=========================================================================== # Load computer information in the background Invoke-WPFRunspace -ScriptBlock { try { $ProgressPreference = "SilentlyContinue" $sync.ConfigLoaded = $False $sync.ComputerInfo = Get-ComputerInfo $sync.ConfigLoaded = $True } finally{ $ProgressPreference = $oldProgressPreference } } | Out-Null #=========================================================================== # Setup and Show the Form #=========================================================================== # Print the logo Show-CTTLogo # Progress bar in taskbaritem > Set-WinUtilProgressbar $sync["Form"].TaskbarItemInfo = New-Object System.Windows.Shell.TaskbarItemInfo Set-WinUtilTaskbaritem -state "None" # Set the titlebar $sync["Form"].title = $sync["Form"].title + " " + $sync.version # Set the commands that will run when the form is closed $sync["Form"].Add_Closing({ $sync.runspace.Dispose() $sync.runspace.Close() [System.GC]::Collect() }) # Attach the event handler to the Click event $sync.SearchBarClearButton.Add_Click({ $sync.SearchBar.Text = "" $sync.SearchBarClearButton.Visibility = "Collapsed" # Focus the search bar after clearing the text $sync.SearchBar.Focus() $sync.SearchBar.SelectAll() }) # add some shortcuts for people that don't like clicking $commonKeyEvents = { # Prevent shortcuts from executing if a process is already running if ($sync.ProcessRunning -eq $true) { return } # Handle key presses of single keys switch ($_.Key) { "Escape" { $sync.SearchBar.Text = "" } } # Handle Alt key combinations for navigation if ($_.KeyboardDevice.Modifiers -eq "Alt") { $keyEventArgs = $_ switch ($_.SystemKey) { "I" { Invoke-WPFButton "WPFTab1BT"; $keyEventArgs.Handled = $true } # Navigate to Install tab and suppress Windows Warning Sound "T" { Invoke-WPFButton "WPFTab2BT"; $keyEventArgs.Handled = $true } # Navigate to Tweaks tab "C" { Invoke-WPFButton "WPFTab3BT"; $keyEventArgs.Handled = $true } # Navigate to Config tab "U" { Invoke-WPFButton "WPFTab4BT"; $keyEventArgs.Handled = $true } # Navigate to Updates tab "W" { Invoke-WPFButton "WPFTab5BT"; $keyEventArgs.Handled = $true } # Navigate to Win11ISO tab } } # Handle Ctrl key combinations for specific actions if ($_.KeyboardDevice.Modifiers -eq "Ctrl") { switch ($_.Key) { "F" { $sync.SearchBar.Focus() } # Focus on the search bar "Q" { $this.Close() } # Close the application } } } $sync["Form"].Add_PreViewKeyDown($commonKeyEvents) $sync["Form"].Add_MouseLeftButtonDown({ Invoke-WPFPopup -Action "Hide" -Popups @("Settings", "Theme", "FontScaling") $sync["Form"].DragMove() }) $sync["Form"].Add_MouseDoubleClick({ if ($_.OriginalSource.Name -eq "NavDockPanel" -or $_.OriginalSource.Name -eq "GridBesideNavDockPanel") { if ($sync["Form"].WindowState -eq [Windows.WindowState]::Normal) { $sync["Form"].WindowState = [Windows.WindowState]::Maximized } else{ $sync["Form"].WindowState = [Windows.WindowState]::Normal } } }) $sync["Form"].Add_Deactivated({ Write-Debug "WinUtil lost focus" Invoke-WPFPopup -Action "Hide" -Popups @("Settings", "Theme", "FontScaling") }) $sync["Form"].Add_ContentRendered({ # Load the Windows Forms assembly Add-Type -AssemblyName System.Windows.Forms $primaryScreen = [System.Windows.Forms.Screen]::PrimaryScreen # Check if the primary screen is found if ($primaryScreen) { # Extract screen width and height for the primary monitor $screenWidth = $primaryScreen.Bounds.Width $screenHeight = $primaryScreen.Bounds.Height # Print the screen size Write-Debug "Primary Monitor Width: $screenWidth pixels" Write-Debug "Primary Monitor Height: $screenHeight pixels" # Compare with the primary monitor size if ($sync.Form.ActualWidth -gt $screenWidth -or $sync.Form.ActualHeight -gt $screenHeight) { Write-Debug "The specified width and/or height is greater than the primary monitor size." $sync.Form.Left = 0 $sync.Form.Top = 0 $sync.Form.Width = $screenWidth $sync.Form.Height = $screenHeight } else { Write-Debug "The specified width and height are within the primary monitor size limits." } } else { Write-Debug "Unable to retrieve information about the primary monitor." } if ($PARAM_OFFLINE) { # Show offline banner $sync.WPFOfflineBanner.Visibility = [System.Windows.Visibility]::Visible # Disable the install tab $sync.WPFTab1BT.IsEnabled = $false $sync.WPFTab1BT.Opacity = 0.5 $sync.WPFTab1BT.ToolTip = "Internet connection required for installing applications" # Disable install-related buttons $sync.WPFInstall.IsEnabled = $false $sync.WPFUninstall.IsEnabled = $false $sync.WPFInstallUpgrade.IsEnabled = $false $sync.WPFGetInstalled.IsEnabled = $false # Show offline indicator Write-Host "Offline mode detected - Install tab disabled" -ForegroundColor Yellow # Optionally switch to a different tab if install tab was going to be default Invoke-WPFTab "WPFTab2BT" # Switch to Tweaks tab instead } else { # Online - ensure install tab is enabled $sync.WPFTab1BT.IsEnabled = $true $sync.WPFTab1BT.Opacity = 1.0 $sync.WPFTab1BT.ToolTip = $null Invoke-WPFTab "WPFTab1BT" # Default to install tab } $sync["Form"].Focus() if ($PARAM_CONFIG -and -not [string]::IsNullOrWhiteSpace($PARAM_CONFIG)) { Write-Host "Running config file tasks..." Invoke-WPFImpex -type "import" -Config $PARAM_CONFIG if ($PARAM_RUN) { Invoke-WinUtilAutoRun } } }) # The SearchBarTimer is used to delay the search operation until the user has stopped typing for a short period # This prevents the ui from stuttering when the user types quickly as it dosnt need to update the ui for every keystroke $searchBarTimer = New-Object System.Windows.Threading.DispatcherTimer $searchBarTimer.Interval = [TimeSpan]::FromMilliseconds(300) $searchBarTimer.IsEnabled = $false $searchBarTimer.add_Tick({ $searchBarTimer.Stop() switch ($sync.currentTab) { "Install" { Find-AppsByNameOrDescription -SearchString $sync.SearchBar.Text } "Tweaks" { Find-TweaksByNameOrDescription -SearchString $sync.SearchBar.Text } } }) $sync["SearchBar"].Add_TextChanged({ if ($sync.SearchBar.Text -ne "") { $sync.SearchBarClearButton.Visibility = "Visible" } else { $sync.SearchBarClearButton.Visibility = "Collapsed" } if ($searchBarTimer.IsEnabled) { $searchBarTimer.Stop() } $searchBarTimer.Start() }) $sync["Form"].Add_Loaded({ param($e) $sync.Form.MinWidth = "1000" $sync["Form"].MaxWidth = [Double]::PositiveInfinity $sync["Form"].MaxHeight = [Double]::PositiveInfinity }) $NavLogoPanel = $sync["Form"].FindName("NavLogoPanel") $NavLogoPanel.Children.Add((Invoke-WinUtilAssets -Type "logo" -Size 25)) | Out-Null if (Test-Path "$winutildir\logo.ico") { $sync["logorender"] = "$winutildir\logo.ico" } else { $sync["logorender"] = (Invoke-WinUtilAssets -Type "Logo" -Size 90 -Render) } $sync["checkmarkrender"] = (Invoke-WinUtilAssets -Type "checkmark" -Size 512 -Render) $sync["warningrender"] = (Invoke-WinUtilAssets -Type "warning" -Size 512 -Render) Set-WinUtilTaskbaritem -overlay "logo" $sync["Form"].Add_Activated({ Set-WinUtilTaskbaritem -overlay "logo" }) $sync["ThemeButton"].Add_Click({ Write-Debug "ThemeButton clicked" Invoke-WPFPopup -PopupActionTable @{ "Settings" = "Hide"; "Theme" = "Toggle"; "FontScaling" = "Hide" } }) $sync["AutoThemeMenuItem"].Add_Click({ Write-Debug "About clicked" Invoke-WPFPopup -Action "Hide" -Popups @("Theme") Invoke-WinutilThemeChange -theme "Auto" }) $sync["DarkThemeMenuItem"].Add_Click({ Write-Debug "Dark Theme clicked" Invoke-WPFPopup -Action "Hide" -Popups @("Theme") Invoke-WinutilThemeChange -theme "Dark" }) $sync["LightThemeMenuItem"].Add_Click({ Write-Debug "Light Theme clicked" Invoke-WPFPopup -Action "Hide" -Popups @("Theme") Invoke-WinutilThemeChange -theme "Light" }) $sync["SettingsButton"].Add_Click({ Write-Debug "SettingsButton clicked" Invoke-WPFPopup -PopupActionTable @{ "Settings" = "Toggle"; "Theme" = "Hide"; "FontScaling" = "Hide" } }) $sync["ImportMenuItem"].Add_Click({ Write-Debug "Import clicked" Invoke-WPFPopup -Action "Hide" -Popups @("Settings") Invoke-WPFImpex -type "import" }) $sync["ExportMenuItem"].Add_Click({ Write-Debug "Export clicked" Invoke-WPFPopup -Action "Hide" -Popups @("Settings") Invoke-WPFImpex -type "export" }) $sync["AboutMenuItem"].Add_Click({ Write-Debug "About clicked" Invoke-WPFPopup -Action "Hide" -Popups @("Settings") $authorInfo = @" Author : @ChrisTitusTech UI : @MyDrift-user, @Marterich Runspace : @DeveloperDurp, @Marterich GitHub : ChrisTitusTech/winutil Version : $($sync.version) "@ Show-CustomDialog -Title "About" -Message $authorInfo }) $sync["DocumentationMenuItem"].Add_Click({ Write-Debug "Documentation clicked" Invoke-WPFPopup -Action "Hide" -Popups @("Settings") Start-Process "https://winutil.christitus.com/" }) $sync["SponsorMenuItem"].Add_Click({ Write-Debug "Sponsors clicked" Invoke-WPFPopup -Action "Hide" -Popups @("Settings") $authorInfo = @" Current sponsors for ChrisTitusTech: "@ $authorInfo += "`n" try { $sponsors = Invoke-WinUtilSponsors foreach ($sponsor in $sponsors) { $authorInfo += "$sponsor`n" } } catch { $authorInfo += "An error occurred while fetching or processing the sponsors: $_`n" } Show-CustomDialog -Title "Sponsors" -Message $authorInfo -EnableScroll $true }) # Font Scaling Event Handlers $sync["FontScalingButton"].Add_Click({ Write-Debug "FontScalingButton clicked" Invoke-WPFPopup -PopupActionTable @{ "Settings" = "Hide"; "Theme" = "Hide"; "FontScaling" = "Toggle" } }) $sync["FontScalingSlider"].Add_ValueChanged({ param($slider) $percentage = [math]::Round($slider.Value * 100) $sync.FontScalingValue.Text = "$percentage%" }) $sync["FontScalingResetButton"].Add_Click({ Write-Debug "FontScalingResetButton clicked" $sync.FontScalingSlider.Value = 1.0 $sync.FontScalingValue.Text = "100%" }) $sync["FontScalingApplyButton"].Add_Click({ Write-Debug "FontScalingApplyButton clicked" $scaleFactor = $sync.FontScalingSlider.Value Invoke-WinUtilFontScaling -ScaleFactor $scaleFactor Invoke-WPFPopup -Action "Hide" -Popups @("FontScaling") }) # ── Win11ISO Tab button handlers ────────────────────────────────────────────── $sync["WPFTab5BT"].Add_Click({ $sync["Form"].Dispatcher.BeginInvoke([System.Windows.Threading.DispatcherPriority]::Background, [action]{ Invoke-WinUtilISOCheckExistingWork }) | Out-Null }) $sync["WPFWin11ISOBrowseButton"].Add_Click({ Write-Debug "WPFWin11ISOBrowseButton clicked" Invoke-WinUtilISOBrowse }) $sync["WPFWin11ISODownloadLink"].Add_Click({ Write-Debug "WPFWin11ISODownloadLink clicked" Start-Process "https://www.microsoft.com/software-download/windows11" }) $sync["WPFWin11ISOMountButton"].Add_Click({ Write-Debug "WPFWin11ISOMountButton clicked" Invoke-WinUtilISOMountAndVerify }) $sync["WPFWin11ISOModifyButton"].Add_Click({ Write-Debug "WPFWin11ISOModifyButton clicked" Invoke-WinUtilISOModify }) $sync["WPFWin11ISOChooseISOButton"].Add_Click({ Write-Debug "WPFWin11ISOChooseISOButton clicked" $sync["WPFWin11ISOOptionUSB"].Visibility = "Collapsed" Invoke-WinUtilISOExport }) $sync["WPFWin11ISOChooseUSBButton"].Add_Click({ Write-Debug "WPFWin11ISOChooseUSBButton clicked" $sync["WPFWin11ISOOptionUSB"].Visibility = "Visible" Invoke-WinUtilISORefreshUSBDrives }) $sync["WPFWin11ISORefreshUSBButton"].Add_Click({ Write-Debug "WPFWin11ISORefreshUSBButton clicked" Invoke-WinUtilISORefreshUSBDrives }) $sync["WPFWin11ISOWriteUSBButton"].Add_Click({ Write-Debug "WPFWin11ISOWriteUSBButton clicked" Invoke-WinUtilISOWriteUSB }) $sync["WPFWin11ISOCleanResetButton"].Add_Click({ Write-Debug "WPFWin11ISOCleanResetButton clicked" Invoke-WinUtilISOCleanAndReset }) # ────────────────────────────────────────────────────────────────────────────── $sync["Form"].ShowDialog() | out-null Stop-Transcript ================================================ FILE: scripts/start.ps1 ================================================ <# .NOTES Author : Chris Titus @christitustech Runspace Author: @DeveloperDurp GitHub : https://github.com/ChrisTitusTech Version : #{replaceme} #> param ( [string]$Config, [switch]$Run, [switch]$Noui, [switch]$Offline ) if ($Config) { $PARAM_CONFIG = $Config } $PARAM_RUN = $false # Handle the -Run switch if ($Run) { $PARAM_RUN = $true } $PARAM_NOUI = $false if ($Noui) { $PARAM_NOUI = $true } $PARAM_OFFLINE = $false if ($Offline) { $PARAM_OFFLINE = $true } if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) { Write-Output "Winutil needs to be run as Administrator. Attempting to relaunch." $argList = @() $PSBoundParameters.GetEnumerator() | ForEach-Object { $argList += if ($_.Value -is [switch] -and $_.Value) { "-$($_.Key)" } elseif ($_.Value -is [array]) { "-$($_.Key) $($_.Value -join ',')" } elseif ($_.Value) { "-$($_.Key) '$($_.Value)'" } } $script = if ($PSCommandPath) { "& { & `'$($PSCommandPath)`' $($argList -join ' ') }" } else { "&([ScriptBlock]::Create((irm https://github.com/ChrisTitusTech/winutil/releases/latest/download/winutil.ps1))) $($argList -join ' ')" } $powershellCmd = if (Get-Command pwsh -ErrorAction SilentlyContinue) { "pwsh" } else { "powershell" } $processCmd = if (Get-Command wt.exe -ErrorAction SilentlyContinue) { "wt.exe" } else { "$powershellCmd" } if ($processCmd -eq "wt.exe") { Start-Process $processCmd -ArgumentList "$powershellCmd -ExecutionPolicy Bypass -NoProfile -Command `"$script`"" -Verb RunAs } else { Start-Process $processCmd -ArgumentList "-ExecutionPolicy Bypass -NoProfile -Command `"$script`"" -Verb RunAs } break } # Load DLLs Add-Type -AssemblyName PresentationFramework Add-Type -AssemblyName System.Windows.Forms # Variable to sync between runspaces $sync = [Hashtable]::Synchronized(@{}) $sync.PSScriptRoot = $PSScriptRoot $sync.version = "#{replaceme}" $sync.configs = @{} $sync.Buttons = [System.Collections.Generic.List[PSObject]]::new() $sync.preferences = @{} $sync.ProcessRunning = $false $sync.selectedApps = [System.Collections.Generic.List[string]]::new() $sync.selectedTweaks = [System.Collections.Generic.List[string]]::new() $sync.selectedToggles = [System.Collections.Generic.List[string]]::new() $sync.selectedFeatures = [System.Collections.Generic.List[string]]::new() $sync.currentTab = "Install" $sync.selectedAppsStackPanel $sync.selectedAppsPopup $dateTime = Get-Date -Format "yyyy-MM-dd_HH-mm-ss" # Set the path for the winutil directory $winutildir = "$env:LocalAppData\winutil" New-Item $winutildir -ItemType Directory -Force | Out-Null $logdir = "$winutildir\logs" New-Item $logdir -ItemType Directory -Force | Out-Null Start-Transcript -Path "$logdir\winutil_$dateTime.log" -Append -NoClobber | Out-Null # Set PowerShell window title $Host.UI.RawUI.WindowTitle = "WinUtil (Admin)" clear-host ================================================ FILE: sign.bat ================================================ signtool.exe sign /td sha256 /tr http://timestamp.digicert.com /fd sha256 /n "CT Tech Group LLC" .\winutil.ps1 ================================================ FILE: tools/Invoke-Preprocessing.ps1 ================================================ function Invoke-Preprocessing { <# .SYNOPSIS A function that does Code Formatting using RegEx, useful when trying to force specific coding standard(s) to a project. .PARAMETER ExcludedFiles A list of file paths which're *relative to* 'WorkingDir' Folder, every item in the list can be pointing to File (doesn't end with '\') or Directory (ends with '\') or None-Existing File/Directory. By default, it checks if everyitem exists, and throws an exception if one or more are not found (None-Existing). .PARAMETER WorkingDir The folder to search inside recursively for files which're going to be Preprocessed (Code Formatted), unless they're found in 'ExcludedFiles' List. Note: The path should be absolute, NOT relative. .PARAMETER ProgressStatusMessage The status message used when displaying the progress bar, which's done through PowerShell 'Write-Progress' Cmdlet. This's a Required Parameter, as the information displayed to terminal is useful when running this function, which might take less than 1 sec to minutes depending on project's scale & hardware performance. .PARAMETER ProgressActivity The activity message used when displaying the progress bar, which's done through PowerShell 'Write-Progress' Cmdlet, This's an Optional Parameter, default value is 'Preprocessing', used in combination with 'ProgressStatusMessage' Parameter Value. .EXAMPLE Invoke-Preprocessing -WorkingDir "DRIVE:\Path\To\Folder\" -ExcludedFiles @('file.txt', '.\.git\', '*.png') -ProgressStatusMessage "Doing Preprocessing" Calls 'Invoke-Preprocessing' function using Named Parameters, with 'WorkingDir' (Mandatory Parameter) which's used as the base folder when searching for files recursively (using 'Get-ChildItem'), other two parameters are, in order from right to left, the Optional 'ExcludeFiles', which can be a path to a file, folder, or pattern-matched (like '*.png'), and the 'ProgressStatusMessage', which's used in Progress Bar. .EXAMPLE Invoke-Preprocessing -WorkingDir "DRIVE:\Path\To\Folder\" -ExcludedFiles @('file.txt', '.\.git\', '*.png') -ProgressStatusMessage "Doing Preprocessing" -ProgressActivity "Re-Formatting Code" Same as Example No. 1, but uses 'ProgressActivity' which's used in Progress Bar. .EXAMPLE Invoke-Preprocessing -Skip -WorkingDir "DRIVE:\Path\To\Folder\" -ExcludedFiles @('file.txt', '.\.git\', '*.png') -ProgressStatusMessage "Doing Preprocessing" #> param ( [Parameter(Mandatory, position=1)] [ValidateScript({[System.IO.Path]::IsPathRooted($_)})] [string]$WorkingDir, [Parameter(position=2)] [string[]]$ExcludedFiles, [Parameter(Mandatory, position=3)] [string]$ProgressStatusMessage, [Parameter(position=4)] [string]$ProgressActivity = "Preprocessing" ) if (-NOT (Test-Path -PathType Container -Path "$WorkingDir")) { throw "[Invoke-Preprocessing] Invalid Parameter Value for 'WorkingDir', passed value: '$WorkingDir'. Either the path is a File or Non-Existing/Invlid, please double check your code." } $InternalExcludedFiles = [System.Collections.Generic.List[string]]::new($ExcludedFiles.Count) ForEach ($excludedFile in $ExcludedFiles) { $InternalExcludedFiles.Add($excludedFile) | Out-Null } # Validate the ExcludedItems List before continuing on if ($ExcludedFiles.Count -gt 0) { ForEach ($excludedFile in $ExcludedFiles) { $filePath = "$(($WorkingDir -replace ('\\$', '')) + '\' + ($excludedFile -replace ('\.\\', '')))" # Only attempt to create the directory if the excludedFile ends with '\' if ($excludedFile -match '\\$' -and -not (Test-Path "$filePath")) { New-Item -Path "$filePath" -ItemType Directory -Force | Out-Null } $files = Get-ChildItem -Recurse -Path "$filePath" -File -Force if ($files.Count -gt 0) { ForEach ($file in $files) { $InternalExcludedFiles.Add("$($file.FullName)") | Out-Null } } else { $failedFilesList += "'$filePath', " } } $failedFilesList = $failedFilesList -replace (',\s*$', '') } # Get Files List [System.Collections.ArrayList]$files = Get-ChildItem -LiteralPath $WorkingDir -Recurse -Exclude $InternalExcludedFiles -File -Force # Only keep the 'FullName' Property for every entry in the list for ($i = 0; $i -lt $files.Count; $i++) { $file = $files[$i] $files[$i] = $file.FullName } # If a file(s) are found in Exclude List, # Remove the file from files list. ForEach ($excludedFile in $InternalExcludedFiles) { $index = $files.IndexOf("$excludedFile") if ($index -ge 0) { $files.RemoveAt($index) } } # Define a path to store the file hashes $hashFilePath = Join-Path -Path $WorkingDir -ChildPath ".preprocessor_hashes.json" # Load existing hashes if the file exists $existingHashes = @{} if (Test-Path -Path $hashFilePath) { # intentionally dosn't use ConvertFrom-Json -AsHashtable as it isn't supported on old powershell versions $file_content = Get-Content -Path $hashFilePath | ConvertFrom-Json foreach ($property in $file_content.PSObject.Properties) { $existingHashes[$property.Name] = $property.Value } } $newHashes = @{} $changedFiles = @() $hashingAlgorithm = "MD5" foreach ($file in $files){ # Calculate the hash of the file $hash = Get-FileHash -Path $file -Algorithm $hashingAlgorithm | Select-Object -ExpandProperty Hash $newHashes[$file] = $hash # Check if the hash already exists in the existing hashes if (($existingHashes.ContainsKey($file) -and $existingHashes[$file] -eq $hash)) { # Skip processing this file as it hasn't changed continue; } else { # If the hash doesn't exist or has changed, add it to the changed files list $changedFiles += $file } } $files = $changedFiles $numOfFiles = $files.Count Write-Debug "[Invoke-Preprocessing] Files Changed: $numOfFiles" if ($numOfFiles -eq 0){ Write-Debug "[Invoke-Preprocessing] Found 0 Files to Preprocess inside 'WorkingDir' Directory : '$WorkingDir'." return } for ($i = 0; $i -lt $numOfFiles; $i++) { $fullFileName = $files[$i] # TODO: # make more formatting rules, and document them in WinUtil Official Documentation (Get-Content "$fullFileName").TrimEnd() ` -replace ('\t', ' ') ` -replace ('\)\s*\{', ') {') ` -replace ('(?if|for|foreach)\s*(?\([.*?]\))\s*\{', '${keyword} ${condition} {') ` -replace ('\}\s*elseif\s*(?\([.*?]\))\s*\{', '} elseif ${condition} {') ` -replace ('\}\s*else\s*\{', '} else {') ` -replace ('Try\s*\{', 'try {') ` -replace ('Catch\s*\{', 'catch {') ` -replace ('\}\s*Catch', '} catch') ` -replace ('\}\s*Catch\s*(?(\[.*?\]\s*(\,)?\s*)+)\s*\{', '} catch ${exceptions} {') ` -replace ('\}\s*Catch\s*(?\[.*?\])\s*\{', '} catch ${exceptions} {') ` -replace ('(?\[[^$0-9]+\])\s*(?\$.*?)', '${parameter_type}${str_after_type}') ` | Set-Content "$fullFileName" $newHashes[$fullFileName] = Get-FileHash -Path $fullFileName -Algorithm $hashingAlgorithm | Select-Object -ExpandProperty Hash Write-Progress -Activity $ProgressActivity -Status "$ProgressStatusMessage - Finished $i out of $numOfFiles" -PercentComplete (($i/$numOfFiles)*100) } Write-Progress -Activity $ProgressActivity -Status "$ProgressStatusMessage - Finished Task Successfully" -Completed # Save the new hashes to the file $newHashes | ConvertTo-Json -Depth 10 | Set-Content -Path $hashFilePath } ================================================ FILE: tools/autounattend.xml ================================================ true false 1 reg.exe add "HKLM\SYSTEM\Setup\LabConfig" /v BypassTPMCheck /t REG_DWORD /d 1 /f 2 reg.exe add "HKLM\SYSTEM\Setup\LabConfig" /v BypassSecureBootCheck /t REG_DWORD /d 1 /f 3 reg.exe add "HKLM\SYSTEM\Setup\LabConfig" /v BypassRAMCheck /t REG_DWORD /d 1 /f 1 powershell.exe -WindowStyle "Normal" -NoProfile -Command "$xml = [xml]::new(); $xml.Load('C:\Windows\Panther\unattend.xml'); $sb = [scriptblock]::Create( $xml.unattend.Extensions.ExtractScript ); Invoke-Command -ScriptBlock $sb -ArgumentList $xml;" 2 powershell.exe -WindowStyle "Normal" -ExecutionPolicy "Unrestricted" -NoProfile -File "C:\Windows\Setup\Scripts\Specialize.ps1" 3 reg.exe load "HKU\DefaultUser" "C:\Users\Default\NTUSER.DAT" 4 powershell.exe -WindowStyle "Normal" -ExecutionPolicy "Unrestricted" -NoProfile -File "C:\Windows\Setup\Scripts\DefaultUser.ps1" 5 reg.exe unload "HKU\DefaultUser" 3 true true true 1 powershell.exe -WindowStyle "Normal" -ExecutionPolicy "Unrestricted" -NoProfile -File "C:\Windows\Setup\Scripts\FirstLogon.ps1" param( [xml]$Document ); foreach( $file in $Document.unattend.Extensions.File ) { $path = [System.Environment]::ExpandEnvironmentVariables( $file.GetAttribute( 'path' ) ); mkdir -Path( $path | Split-Path -Parent ) -ErrorAction 'SilentlyContinue'; $encoding = switch( [System.IO.Path]::GetExtension( $path ) ) { { $_ -in '.ps1', '.xml' } { [System.Text.Encoding]::UTF8; } { $_ -in '.reg', '.vbs', '.js' } { [System.Text.UnicodeEncoding]::new( $false, $true ); } default { [System.Text.Encoding]::Default; } }; $bytes = $encoding.GetPreamble() + $encoding.GetBytes( $file.InnerText.Trim() ); [System.IO.File]::WriteAllBytes( $path, $bytes ); } <LayoutModificationTemplate xmlns="http://schemas.microsoft.com/Start/2014/LayoutModification" xmlns:defaultlayout="http://schemas.microsoft.com/Start/2014/FullDefaultLayout" xmlns:start="http://schemas.microsoft.com/Start/2014/StartLayout" xmlns:taskbar="http://schemas.microsoft.com/Start/2014/TaskbarLayout" Version="1"> <CustomTaskbarLayoutCollection PinListPlacement="Replace"> <defaultlayout:TaskbarLayout> <taskbar:TaskbarPinList> <taskbar:DesktopApp DesktopApplicationLinkPath="#leaveempty" /> </taskbar:TaskbarPinList> </defaultlayout:TaskbarLayout> </CustomTaskbarLayoutCollection> </LayoutModificationTemplate> HKU = &H80000003 Set reg = GetObject("winmgmts://./root/default:StdRegProv") Set fso = CreateObject("Scripting.FileSystemObject") If reg.EnumKey(HKU, "", sids) = 0 Then If Not IsNull(sids) Then For Each sid In sids key = sid + "\Software\Policies\Microsoft\Windows\Explorer" name = "LockedStartLayout" If reg.GetDWORDValue(HKU, key, name, existing) = 0 Then reg.SetDWORDValue HKU, key, name, 0 End If Next End If End If <Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task"> <Triggers> <EventTrigger> <Enabled>true</Enabled> <Subscription>&lt;QueryList&gt;&lt;Query Id="0" Path="Application"&gt;&lt;Select Path="Application"&gt;*[System[Provider[@Name='UnattendGenerator'] and EventID=1]]&lt;/Select&gt;&lt;/Query&gt;&lt;/QueryList&gt;</Subscription> </EventTrigger> </Triggers> <Principals> <Principal id="Author"> <UserId>S-1-5-18</UserId> <RunLevel>LeastPrivilege</RunLevel> </Principal> </Principals> <Settings> <MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy> <DisallowStartIfOnBatteries>false</DisallowStartIfOnBatteries> <StopIfGoingOnBatteries>false</StopIfGoingOnBatteries> <AllowHardTerminate>true</AllowHardTerminate> <StartWhenAvailable>false</StartWhenAvailable> <RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable> <IdleSettings> <StopOnIdleEnd>true</StopOnIdleEnd> <RestartOnIdle>false</RestartOnIdle> </IdleSettings> <AllowStartOnDemand>true</AllowStartOnDemand> <Enabled>true</Enabled> <Hidden>false</Hidden> <RunOnlyIfIdle>false</RunOnlyIfIdle> <WakeToRun>false</WakeToRun> <ExecutionTimeLimit>PT72H</ExecutionTimeLimit> <Priority>7</Priority> </Settings> <Actions Context="Author"> <Exec> <Command>C:\Windows\System32\wscript.exe</Command> <Arguments>C:\Windows\Setup\Scripts\UnlockStartLayout.vbs</Arguments> </Exec> </Actions> </Task> $json = '{"pinnedList":[]}'; if( [System.Environment]::OSVersion.Version.Build -lt 20000 ) { return; } $key = 'Registry::HKLM\SOFTWARE\Microsoft\PolicyManager\current\device\Start'; New-Item -Path $key -ItemType 'Directory' -ErrorAction 'SilentlyContinue'; Set-ItemProperty -LiteralPath $key -Name 'ConfigureStartPins' -Value $json -Type 'String'; $lightThemeSystem = 0; $lightThemeApps = 0; $accentColorOnStart = 0; $enableTransparency = 0; $htmlAccentColor = '#0078D4'; & { $params = @{ LiteralPath = 'Registry::HKCU\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize'; Force = $true; Type = 'DWord'; }; Set-ItemProperty @params -Name 'SystemUsesLightTheme' -Value $lightThemeSystem; Set-ItemProperty @params -Name 'AppsUseLightTheme' -Value $lightThemeApps; Set-ItemProperty @params -Name 'ColorPrevalence' -Value $accentColorOnStart; Set-ItemProperty @params -Name 'EnableTransparency' -Value $enableTransparency; }; & { Add-Type -AssemblyName 'System.Drawing'; $accentColor = [System.Drawing.ColorTranslator]::FromHtml( $htmlAccentColor ); function ConvertTo-DWord { param( [System.Drawing.Color] $Color ); [byte[]]$bytes = @( $Color.R; $Color.G; $Color.B; $Color.A; ); return [System.BitConverter]::ToUInt32( $bytes, 0); } $startColor = [System.Drawing.Color]::FromArgb( 0xD2, $accentColor ); Set-ItemProperty -LiteralPath 'Registry::HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Accent' -Name 'StartColorMenu' -Value( ConvertTo-DWord -Color $accentColor ) -Type 'DWord' -Force; Set-ItemProperty -LiteralPath 'Registry::HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Accent' -Name 'AccentColorMenu' -Value( ConvertTo-DWord -Color $accentColor ) -Type 'DWord' -Force; Set-ItemProperty -LiteralPath 'Registry::HKCU\Software\Microsoft\Windows\DWM' -Name 'AccentColor' -Value( ConvertTo-DWord -Color $accentColor ) -Type 'DWord' -Force; $params = @{ LiteralPath = 'Registry::HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Accent'; Name = 'AccentPalette'; }; $palette = Get-ItemPropertyValue @params; $index = 20; $palette[ $index++ ] = $accentColor.R; $palette[ $index++ ] = $accentColor.G; $palette[ $index++ ] = $accentColor.B; $palette[ $index++ ] = $accentColor.A; Set-ItemProperty @params -Value $palette -Type 'Binary' -Force; }; $scripts = @( { reg.exe add "HKLM\SYSTEM\Setup\MoSetup" /v AllowUpgradesWithUnsupportedTPMOrCPU /t REG_DWORD /d 1 /f; }; { net.exe accounts /maxpwage:UNLIMITED; }; { reg.exe add "HKLM\Software\Policies\Microsoft\Windows\CloudContent" /v "DisableCloudOptimizedContent" /t REG_DWORD /d 1 /f; [System.Diagnostics.EventLog]::CreateEventSource( 'UnattendGenerator', 'Application' ); }; { Register-ScheduledTask -TaskName 'UnlockStartLayout' -Xml $( Get-Content -LiteralPath 'C:\Windows\Setup\Scripts\UnlockStartLayout.xml' -Raw ); }; { reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\FileSystem" /v LongPathsEnabled /t REG_DWORD /d 1 /f }; { Remove-Item -LiteralPath 'C:\Users\Public\Desktop\Microsoft Edge.lnk' -ErrorAction 'SilentlyContinue' -Verbose; }; { reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Dsh" /v AllowNewsAndInterests /t REG_DWORD /d 0 /f; }; { reg.exe add "HKLM\Software\Policies\Microsoft\Edge" /v HideFirstRunExperience /t REG_DWORD /d 1 /f; }; { reg.exe add "HKLM\Software\Policies\Microsoft\Edge\Recommended" /v BackgroundModeEnabled /t REG_DWORD /d 0 /f; reg.exe add "HKLM\Software\Policies\Microsoft\Edge\Recommended" /v StartupBoostEnabled /t REG_DWORD /d 0 /f; }; { & 'C:\Windows\Setup\Scripts\SetStartPins.ps1'; }; { reg.exe add "HKU\.DEFAULT\Control Panel\Accessibility\StickyKeys" /v Flags /t REG_SZ /d 10 /f; }; { reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v NoAutoUpdate /t REG_DWORD /d 1 /f; reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v DisableWindowsUpdateAccess /t REG_DWORD /d 1 /f; }; ); & { [float]$complete = 0; [float]$increment = 100 / $scripts.Count; foreach( $script in $scripts ) { Write-Progress -Id 0 -Activity 'Running scripts to customize your Windows installation. Do not close this window.' -PercentComplete $complete; '*** Will now execute command «{0}».' -f $( $str = $script.ToString().Trim() -replace '\s+', ' '; $max = 100; if( $str.Length -le $max ) { $str; } else { $str.Substring( 0, $max - 1 ) + '…'; } ); $start = [datetime]::Now; & $script; '*** Finished executing command after {0:0} ms.' -f [datetime]::Now.Subtract( $start ).TotalMilliseconds; "`r`n" * 3; $complete += $increment; } } *>&1 | Out-String -Width 1KB -Stream >> "C:\Windows\Setup\Scripts\Specialize.log"; $scripts = @( { [System.Diagnostics.EventLog]::WriteEntry( 'UnattendGenerator', "User '$env:USERNAME' has requested to unlock the Start menu layout.", [System.Diagnostics.EventLogEntryType]::Information, 1 ); }; { Remove-Item -Path "${env:USERPROFILE}\Desktop\*.lnk" -Force -ErrorAction 'SilentlyContinue'; Remove-Item -Path "$env:HOMEDRIVE\Users\Default\Desktop\*.lnk" -Force -ErrorAction 'SilentlyContinue'; }; { $taskbarPath = "$env:AppData\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar"; if( Test-Path $taskbarPath ) { Get-ChildItem -Path $taskbarPath -File | Remove-Item -Force; } Remove-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Taskband' -Name 'FavoritesRemovedChanges' -Force -ErrorAction 'SilentlyContinue'; Remove-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Taskband' -Name 'FavoritesChanges' -Force -ErrorAction 'SilentlyContinue'; Remove-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Taskband' -Name 'Favorites' -Force -ErrorAction 'SilentlyContinue'; }; { reg.exe add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /ve /f; }; { Set-ItemProperty -LiteralPath 'Registry::HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced' -Name 'LaunchTo' -Type 'DWord' -Value 1; }; { Set-ItemProperty -LiteralPath 'Registry::HKCU\Software\Microsoft\Windows\CurrentVersion\Search' -Name 'SearchboxTaskbarMode' -Type 'DWord' -Value 0; }; { & 'C:\Windows\Setup\Scripts\SetColorTheme.ps1'; }; { reg.exe add "HKCU\Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Windows.SystemToast.Suggested" /f; reg.exe add "HKCU\Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Windows.SystemToast.Suggested" /v Enabled /t REG_DWORD /d 0 /f; reg.exe add "HKCU\Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Windows.SystemToast.StartupApp" /f; reg.exe add "HKCU\Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Windows.SystemToast.StartupApp" /v Enabled /t REG_DWORD /d 0 /f; reg.exe add "HKCU\Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Microsoft.SkyDrive.Desktop" /f; reg.exe add "HKCU\Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Microsoft.SkyDrive.Desktop" /v Enabled /t REG_DWORD /d 0 /f; reg.exe add "HKCU\Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Windows.SystemToast.AccountHealth" /f; reg.exe add "HKCU\Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Windows.SystemToast.AccountHealth" /v Enabled /t REG_DWORD /d 0 /f; }; { reg.exe add "HKCU\Software\Microsoft\Windows\CurrentVersion\Start" /v AllAppsViewMode /t REG_DWORD /d 2 /f; reg.exe add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v Start_IrisRecommendations /t REG_DWORD /d 0 /f; reg.exe add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v Start_AccountNotifications /t REG_DWORD /d 0 /f; reg.exe add "HKCU\Software\Microsoft\Windows\CurrentVersion\Start" /v ShowAllPinsList /t REG_DWORD /d 0 /f; reg.exe add "HKCU\Software\Microsoft\Windows\CurrentVersion\Start" /v ShowFrequentList /t REG_DWORD /d 0 /f; reg.exe add "HKCU\Software\Microsoft\Windows\CurrentVersion\Start" /v ShowRecentList /t REG_DWORD /d 0 /f; reg.exe add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v Start_TrackDocs /t REG_DWORD /d 0 /f; }; { Restart-Computer -Force; }; ); & { [float]$complete = 0; [float]$increment = 100 / $scripts.Count; foreach( $script in $scripts ) { Write-Progress -Id 0 -Activity 'Running scripts to configure this user account. Do not close this window.' -PercentComplete $complete; '*** Will now execute command «{0}».' -f $( $str = $script.ToString().Trim() -replace '\s+', ' '; $max = 100; if( $str.Length -le $max ) { $str; } else { $str.Substring( 0, $max - 1 ) + '…'; } ); $start = [datetime]::Now; & $script; '*** Finished executing command after {0:0} ms.' -f [datetime]::Now.Subtract( $start ).TotalMilliseconds; "`r`n" * 3; $complete += $increment; } } *>&1 | Out-String -Width 1KB -Stream >> "$env:TEMP\UserOnce.log"; $scripts = @( { reg.exe add "HKU\DefaultUser\Software\Policies\Microsoft\Windows\Explorer" /v "StartLayoutFile" /t REG_SZ /d "C:\Windows\Setup\Scripts\TaskbarLayoutModification.xml" /f; reg.exe add "HKU\DefaultUser\Software\Policies\Microsoft\Windows\Explorer" /v "LockedStartLayout" /t REG_DWORD /d 1 /f; }; { reg.exe add "HKU\DefaultUser\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v ShowTaskViewButton /t REG_DWORD /d 0 /f; }; { reg.exe add "HKU\DefaultUser\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v TaskbarAl /t REG_DWORD /d 0 /f; }; { foreach( $root in 'Registry::HKU\.DEFAULT', 'Registry::HKU\DefaultUser' ) { Set-ItemProperty -LiteralPath "$root\Control Panel\Keyboard" -Name 'InitialKeyboardIndicators' -Type 'String' -Value 2 -Force; } }; { reg.exe add "HKU\DefaultUser\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\TaskbarDeveloperSettings" /v TaskbarEndTask /t REG_DWORD /d 1 /f; }; { reg.exe add "HKU\DefaultUser\Control Panel\Accessibility\StickyKeys" /v Flags /t REG_SZ /d 10 /f; }; { reg.exe add "HKU\DefaultUser\Software\Microsoft\Windows\DWM" /v ColorPrevalence /t REG_DWORD /d 0 /f; }; { reg.exe add "HKU\DefaultUser\Software\Microsoft\Windows\CurrentVersion\RunOnce" /v "UnattendedSetup" /t REG_SZ /d "powershell.exe -WindowStyle \""Normal\"" -ExecutionPolicy \""Unrestricted\"" -NoProfile -File \""C:\Windows\Setup\Scripts\UserOnce.ps1\""" /f; }; ); & { [float]$complete = 0; [float]$increment = 100 / $scripts.Count; foreach( $script in $scripts ) { Write-Progress -Id 0 -Activity 'Running scripts to modify the default user’’s registry hive. Do not close this window.' -PercentComplete $complete; '*** Will now execute command «{0}».' -f $( $str = $script.ToString().Trim() -replace '\s+', ' '; $max = 100; if( $str.Length -le $max ) { $str; } else { $str.Substring( 0, $max - 1 ) + '…'; } ); $start = [datetime]::Now; & $script; '*** Finished executing command after {0:0} ms.' -f [datetime]::Now.Subtract( $start ).TotalMilliseconds; "`r`n" * 3; $complete += $increment; } } *>&1 | Out-String -Width 1KB -Stream >> "C:\Windows\Setup\Scripts\DefaultUser.log"; $scripts = @( { Remove-Item -LiteralPath @( 'C:\Windows\Panther\unattend.xml'; 'C:\Windows\Panther\unattend-original.xml'; 'C:\Windows\Setup\Scripts\Wifi.xml'; 'C:\Windows.old'; ) -Recurse -Force -ErrorAction 'SilentlyContinue'; }; { reg.exe delete "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v NoAutoUpdate /f; reg.exe delete "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v AUOptions /f; reg.exe delete "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v UseWUServer /f; reg.exe delete "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v DisableWindowsUpdateAccess /f; reg.exe delete "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v WUServer /f; reg.exe delete "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v WUStatusServer /f; reg.exe delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config" /v DODownloadMode /f; reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\BITS" /v Start /t REG_DWORD /d 3 /f; reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\wuauserv" /v Start /t REG_DWORD /d 3 /f; reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\UsoSvc" /v Start /t REG_DWORD /d 2 /f; reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\WaaSMedicSvc" /v Start /t REG_DWORD /d 3 /f; }; { reg.exe add "HKLM\SOFTWARE\Microsoft\PolicyManager\current\device\Education" /f; reg.exe add "HKLM\SOFTWARE\Microsoft\PolicyManager\current\device\Start" /f; reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Explorer" /f; reg.exe add "HKLM\SOFTWARE\Microsoft\PolicyManager\current\device\Education" /v IsEducationEnvironment /t REG_DWORD /d 1 /f; reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Explorer" /v HideRecommendedSection /t REG_DWORD /d 1 /f; reg.exe add "HKLM\SOFTWARE\Microsoft\PolicyManager\current\device\Start" /v HideRecommendedSection /t REG_DWORD /d 1 /f; }; { $recallFeature = Get-WindowsOptionalFeature -Online -ErrorAction SilentlyContinue | Where-Object { $_.State -eq 'Enabled' -and $_.FeatureName -like 'Recall' }; if( $recallFeature ) { Disable-WindowsOptionalFeature -Online -FeatureName 'Recall' -Remove -ErrorAction SilentlyContinue; } }; { $viveDir = Join-Path $env:TEMP 'ViVeTool'; $viveZip = Join-Path $env:TEMP 'ViVeTool.zip'; Invoke-WebRequest 'https://github.com/thebookisclosed/ViVe/releases/download/v0.3.4/ViVeTool-v0.3.4-IntelAmd.zip' -OutFile $viveZip; Expand-Archive -Path $viveZip -DestinationPath $viveDir -Force; Remove-Item -Path $viveZip -Force; Start-Process -FilePath (Join-Path $viveDir 'ViVeTool.exe') -ArgumentList '/disable /id:47205210' -Wait -NoNewWindow; Remove-Item -Path $viveDir -Recurse -Force; }; { if( (Get-BitLockerVolume -MountPoint $Env:SystemDrive).ProtectionStatus -eq 'On' ) { Disable-BitLocker -MountPoint $Env:SystemDrive; } }; { if( (bcdedit | Select-String 'path').Count -eq 2 ) { bcdedit /set `{bootmgr`} timeout 0; } }; ); & { [float]$complete = 0; [float]$increment = 100 / $scripts.Count; foreach( $script in $scripts ) { Write-Progress -Id 0 -Activity 'Running scripts to finalize your Windows installation. Do not close this window.' -PercentComplete $complete; '*** Will now execute command «{0}».' -f $( $str = $script.ToString().Trim() -replace '\s+', ' '; $max = 100; if( $str.Length -le $max ) { $str; } else { $str.Substring( 0, $max - 1 ) + '…'; } ); $start = [datetime]::Now; & $script; '*** Finished executing command after {0:0} ms.' -f [datetime]::Now.Subtract( $start ).TotalMilliseconds; "`r`n" * 3; $complete += $increment; } } *>&1 | Out-String -Width 1KB -Stream >> "C:\Windows\Setup\Scripts\FirstLogon.log"; ================================================ FILE: tools/devdocs-generator.md ================================================ --- title: "Dev Docs Generator" description: "How the devdocs-generator.ps1 script works" --- # Dev Docs Generator The `devdocs-generator.ps1` script automatically generates Hugo-compatible markdown files for the development documentation. It pulls content directly from the JSON config files and PowerShell function files so the docs never go out of sync. ## When Does it Run? - Automatically triggered by the `docs.yaml` GitHub Actions workflow, which generates the `.md` files, commits them back to the repo, and then triggers Hugo to build the site - Automatically runs during the pre-release workflow, committing the updated `"link"` properties back to the JSON config files - Watches `docs/**`, `config/tweaks.json`, `config/feature.json`, and `functions/**` for changes - Supports manual runs via `workflow_dispatch` ## What Does It Do? ### 1. Loads the Data - Reads `config/tweaks.json` and `config/feature.json` - Reads all `.ps1` function files from `functions/public/` and `functions/private/` - Parses `Invoke-WPFButton.ps1` to build a mapping of button names to their function names ### 2. Updates Links in JSON - Adds or updates a `"link"` property on every entry in both JSON config files - Each link points to that entry's documentation page on the Hugo site - The updated links are automatically committed back to the JSON config files as part of the pre-release workflow ### 3. Cleans Up Old Docs - Deletes all `.md` files (except `_index.md`) from `docs/content/dev/tweaks/` and `docs/content/dev/features/` - This prevents duplicate or orphaned files from previous runs ### 4. Generates Tweak Documentation For each entry in `tweaks.json` that belongs to a documented category: - **Button type** entries get the mapped PowerShell function file embedded - **All other types** get the raw JSON snippet embedded with correct line numbers from the source file - Entries with **registry changes** get a Registry Changes section added - Entries with **services** get the `Set-WinUtilService.ps1` function appended ### 5. Generates Feature Documentation For each entry in `feature.json` that belongs to a documented category: - **Fixes and Legacy Windows Panels** get the mapped PowerShell function file embedded - **Features** get the raw JSON snippet embedded with correct line numbers ### 6. Output Format - Every `.md` file gets Hugo frontmatter with `title` and `description` - Code blocks use Hugo syntax with filename labels and line numbers - Files are organized into category subdirectories matching the JSON `category` field ## Documented Categories The script generates docs for entries in these categories: - Essential Tweaks - z--Advanced-Tweaks---CAUTION - Customize Preferences - Performance Plans - Features - Fixes - Legacy Windows Panels ## File Structure ``` docs/content/dev/ tweaks/ Essential-Tweaks/ z--Advanced-Tweaks---CAUTION/ Customize-Preferences/ Performance-Plans/ features/ Features/ Fixes/ Legacy-Windows-Panels/ ``` ## How File Names Are Derived The script strips common prefixes from the JSON key names using the pattern `WPF(WinUtil|Toggle|Features?|Tweaks?|Panel|Fix(es)?)?`. For example: | JSON Key | Generated File | | ------------------- | -------------- | | `WPFTweaksHiber` | `Hiber.md` | | `WPFTweaksDeBloat` | `DeBloat.md` | | `WPFFeatureshyperv` | `hyperv.md` | | `WPFPanelDISM` | `DISM.md` | ## Key Points - The JSON config files are the single source of truth - Manual edits to generated `.md` files will be overwritten on the next run - The script does not modify `_index.md` or `architecture.md` — do not delete `_index.md` or `architecture.md`, as they will need to be recreated manually. - Category directories are created automatically if they don't exist - The `"link"` property added to JSON entries is excluded from the displayed code blocks - The `docs` workflow generates the `.md` files and commits them back to the repo before Hugo builds the site - The `pre-release` workflow generates the `"link"` properties and commits them back to the repo ================================================ FILE: tools/devdocs-generator.ps1 ================================================ <# .DESCRIPTION Generates Hugo markdown docs from config/tweaks.json and config/feature.json. Run by the GitHub Actions docs workflow before Hugo build. #> function Update-Progress { param ( [Parameter(Mandatory, position=0)] [string]$StatusMessage, [Parameter(Mandatory, position=1)] [ValidateRange(0,100)] [int]$Percent ) Write-Progress -Activity "Generating Dev Docs" -Status $StatusMessage -PercentComplete $Percent } function Get-RawJsonBlock { # Returns the raw JSON text and 1-based start line for an item, excluding the "link" property. param ( [Parameter(Mandatory)] [string]$ItemName, [Parameter(Mandatory)] [AllowEmptyString()] [string[]]$JsonLines ) $escapedName = [regex]::Escape($ItemName) $startIndex = -1 $startIndent = "" for ($i = 0; $i -lt $JsonLines.Count; $i++) { if ($JsonLines[$i] -match "^(\s*)`"$escapedName`"\s*:\s*\{") { $startIndex = $i $startIndent = $matches[1] break } } if ($startIndex -eq -1) { Write-Warning "Could not find '$ItemName' in JSON" return $null } $escapedIndent = [regex]::Escape($startIndent) $endIndex = -1 for ($i = ($startIndex + 1); $i -lt $JsonLines.Count; $i++) { if ($JsonLines[$i] -match "^$escapedIndent\}") { $endIndex = $i break } } if ($endIndex -eq -1) { Write-Warning "Could not find closing brace for '$ItemName'" return $null } # Strip trailing "link" property and blank lines before returning $lastContentIndex = $endIndex - 1 while ($lastContentIndex -gt $startIndex) { $trimmed = $JsonLines[$lastContentIndex].Trim() if ($trimmed -eq "" -or $trimmed -match '^"link"') { $lastContentIndex-- } else { break } } return @{ LineNumber = $startIndex + 1 RawText = ($JsonLines[$startIndex..$lastContentIndex] -join "`r`n") } } function Get-ButtonFunctionMapping { # Parses Invoke-WPFButton.ps1 and returns a hashtable of button name -> function name. param ( [Parameter(Mandatory)] [string]$ButtonFilePath ) $mapping = @{} foreach ($line in (Get-Content -Path $ButtonFilePath)) { if ($line -match '^\s*"(\w+)"\s*\{(Invoke-\w+)') { $mapping[$matches[1]] = $matches[2] } } return $mapping } function Add-LinkAttributeToJson { # Updates only the "link" property for each entry in a JSON config file. # Reads via ConvertFrom-Json for metadata, then edits lines directly to avoid reformatting. param ( [Parameter(Mandatory)] [string]$JsonFilePath, [Parameter(Mandatory)] [string]$UrlPrefix, [Parameter(Mandatory)] [string]$ItemNameToCut ) $jsonData = Get-Content -Path $JsonFilePath -Raw | ConvertFrom-Json $lines = [System.Collections.Generic.List[string]](Get-Content -Path $JsonFilePath) foreach ($item in $jsonData.PSObject.Properties) { $itemName = $item.Name $category = $item.Value.category -replace '[^a-zA-Z0-9]', '-' $displayName = $itemName -replace $ItemNameToCut, '' $newLink = "$UrlPrefix/$($category.ToLower())/$($displayName.ToLower())" $escapedName = [regex]::Escape($itemName) # Find item start line $startIdx = -1 for ($i = 0; $i -lt $lines.Count; $i++) { if ($lines[$i] -match "^\s*`"$escapedName`"\s*:\s*\{") { $startIdx = $i break } } if ($startIdx -eq -1) { continue } # Derive indentation: propIndent is one level deeper than the item start. # Used to target only top-level properties and skip nested object braces. $null = $lines[$startIdx] -match '^(\s*)' $propIndent = $matches[1] + ' ' $propIndentLen = $propIndent.Length $escapedPropIndent = [regex]::Escape($propIndent) # Scan forward: update existing "link" or find the closing brace to insert one. # Closing brace is matched by indent <= propIndentLen to handle inconsistent formatting. $linkUpdated = $false $closeBraceIdx = -1 for ($j = $startIdx + 1; $j -lt $lines.Count; $j++) { if ($lines[$j] -match "^$escapedPropIndent`"link`"\s*:") { $lines[$j] = $lines[$j] -replace '"link"\s*:\s*"[^"]*"', "`"link`": `"$newLink`"" $linkUpdated = $true break } if ($lines[$j] -match '^\s*\}') { $null = $lines[$j] -match '^(\s*)' if ($matches[1].Length -le $propIndentLen) { $closeBraceIdx = $j break } } } if (-not $linkUpdated -and $closeBraceIdx -ne -1) { # Insert "link" before the closing brace $prevPropIdx = $closeBraceIdx - 1 while ($prevPropIdx -gt $startIdx -and $lines[$prevPropIdx].Trim() -eq '') { $prevPropIdx-- } if ($lines[$prevPropIdx] -notmatch ',\s*$') { $lines[$prevPropIdx] = $lines[$prevPropIdx].TrimEnd() + ',' } $lines.Insert($closeBraceIdx, "$propIndent`"link`": `"$newLink`"") } } Set-Content -Path $JsonFilePath -Value $lines -Encoding utf8 } # ============================================================================== # Main # ============================================================================== $scriptDir = if ($PSScriptRoot) { $PSScriptRoot } else { (Get-Location).Path } $repoRoot = Resolve-Path "$scriptDir/.." $tweaksJsonPath = "$repoRoot/config/tweaks.json" $featuresJsonPath = "$repoRoot/config/feature.json" $tweaksOutputDir = "$repoRoot/docs/content/dev/tweaks" $featuresOutputDir = "$repoRoot/docs/content/dev/features" $publicFunctionsDir = "$repoRoot/functions/public" $privateFunctionsDir = "$repoRoot/functions/private" $itemnametocut = 'WPF(WinUtil|Toggle|Features?|Tweaks?|Panel|Fix(es)?)?' $baseUrl = "https://winutil.christitus.com" # Categories with generated docs $documentedCategories = @( "Essential Tweaks", "z__Advanced Tweaks - CAUTION", "Customize Preferences", "Performance Plans", "Features", "Fixes", "Legacy Windows Panels", "Powershell Profile Powershell 7+ Only", "Remote Access" ) # Categories where Button entries embed a PS function instead of raw JSON $functionEmbedCategories = @( "Fixes", "Powershell Profile Powershell 7+ Only", "Remote Access" ) Update-Progress "Loading JSON files" 10 $tweaks = Get-Content -Path $tweaksJsonPath -Raw | ConvertFrom-Json $features = Get-Content -Path $featuresJsonPath -Raw | ConvertFrom-Json Update-Progress "Loading function files" 20 $functionFiles = @{} Get-ChildItem -Path $publicFunctionsDir -Filter *.ps1 | ForEach-Object { $functionFiles[$_.BaseName] = @{ Content = (Get-Content -Path $_.FullName -Raw).TrimEnd(); RelativePath = "functions/public/$($_.Name)" } } Get-ChildItem -Path $privateFunctionsDir -Filter *.ps1 | ForEach-Object { $functionFiles[$_.BaseName] = @{ Content = (Get-Content -Path $_.FullName -Raw).TrimEnd(); RelativePath = "functions/private/$($_.Name)" } } Update-Progress "Building button-to-function mapping" 30 $buttonFunctionMap = Get-ButtonFunctionMapping -ButtonFilePath "$publicFunctionsDir/Invoke-WPFButton.ps1" Update-Progress "Updating documentation links in JSON" 40 Add-LinkAttributeToJson -JsonFilePath $tweaksJsonPath -UrlPrefix "$baseUrl/dev/tweaks" -ItemNameToCut $itemnametocut Add-LinkAttributeToJson -JsonFilePath $featuresJsonPath -UrlPrefix "$baseUrl/dev/features" -ItemNameToCut $itemnametocut # Reload lines after link update so line numbers in docs are accurate $tweaksLines = Get-Content -Path $tweaksJsonPath $featuresLines = Get-Content -Path $featuresJsonPath # ============================================================================== # Clean up old generated .md files (preserve _index.md) # ============================================================================== Update-Progress "Cleaning up old generated docs" 45 foreach ($dir in @($tweaksOutputDir, $featuresOutputDir)) { Get-ChildItem -Path $dir -Recurse -Filter *.md | Where-Object { $_.Name -ne "_index.md" } | Remove-Item -Force } # ============================================================================== # Generate Tweak Documentation # ============================================================================== Update-Progress "Generating tweak documentation" 50 $tweakNames = $tweaks.PSObject.Properties.Name $totalTweaks = $tweakNames.Count $tweakCount = 0 foreach ($itemName in $tweakNames) { $item = $tweaks.$itemName $tweakCount++ if ($item.category -notin $documentedCategories) { continue } $category = $item.category -replace '[^a-zA-Z0-9]', '-' $displayName = $itemName -replace $itemnametocut, '' $categoryDir = "$tweaksOutputDir/$category" $filename = "$categoryDir/$displayName.md" if (-Not (Test-Path -Path $categoryDir)) { New-Item -ItemType Directory -Path $categoryDir | Out-Null } $title = $item.Content -replace '"', '\"' $content = "---`r`ntitle: `"$title`"`r`ndescription: `"`"`r`n---`r`n`r`n" if ($item.Type -eq "Button") { $funcName = $buttonFunctionMap[$itemName] if ($funcName -and $functionFiles.ContainsKey($funcName)) { $func = $functionFiles[$funcName] $content += "``````powershell {filename=`"$($func.RelativePath)`",linenos=inline,linenostart=1}`r`n" $content += $func.Content + "`r`n" $content += "```````r`n" } } else { $jsonBlock = Get-RawJsonBlock -ItemName $itemName -JsonLines $tweaksLines if ($jsonBlock) { $content += "``````json {filename=`"config/tweaks.json`",linenos=inline,linenostart=$($jsonBlock.LineNumber)}`r`n" $content += $jsonBlock.RawText + "`r`n" $content += "```````r`n" } if ($item.registry) { $content += "`r`n## Registry Changes`r`n`r`n" $content += "Applications and System Components store and retrieve configuration data to modify windows settings, so we can use the registry to change many settings in one place.`r`n`r`n" $content += "You can find information about the registry on [Wikipedia](https://www.wikiwand.com/en/Windows_Registry) and [Microsoft's Website](https://learn.microsoft.com/en-us/windows/win32/sysinfo/registry).`r`n" } } Set-Content -Path $filename -Value $content -Encoding utf8 -NoNewline $percent = [Math]::Min(70, 50 + [int](($tweakCount / $totalTweaks) * 20)) Update-Progress "Generating tweak documentation ($tweakCount/$totalTweaks)" $percent } # ============================================================================== # Generate Feature Documentation # ============================================================================== Update-Progress "Generating feature documentation" 70 $featureNames = $features.PSObject.Properties.Name $totalFeatures = $featureNames.Count $featureCount = 0 foreach ($itemName in $featureNames) { $item = $features.$itemName $featureCount++ if ($item.category -notin $documentedCategories) { continue } if ($itemName -eq "WPFFeatureInstall") { continue } $category = $item.category -replace '[^a-zA-Z0-9]', '-' $displayName = $itemName -replace $itemnametocut, '' $categoryDir = "$featuresOutputDir/$category" $filename = "$categoryDir/$displayName.md" if (-Not (Test-Path -Path $categoryDir)) { New-Item -ItemType Directory -Path $categoryDir | Out-Null } $title = $item.Content -replace '"', '\"' $content = "---`r`ntitle: `"$title`"`r`ndescription: `"`"`r`n---`r`n`r`n" if ($item.category -in $functionEmbedCategories) { $funcName = if ($item.function) { $item.function } else { $buttonFunctionMap[$itemName] } if ($funcName -and $functionFiles.ContainsKey($funcName)) { $func = $functionFiles[$funcName] $content += "``````powershell {filename=`"$($func.RelativePath)`",linenos=inline,linenostart=1}`r`n" $content += $func.Content + "`r`n" $content += "```````r`n" } } else { $jsonBlock = Get-RawJsonBlock -ItemName $itemName -JsonLines $featuresLines if ($jsonBlock) { $content += "``````json {filename=`"config/feature.json`",linenos=inline,linenostart=$($jsonBlock.LineNumber)}`r`n" $content += $jsonBlock.RawText + "`r`n" $content += "```````r`n" } } Set-Content -Path $filename -Value $content -Encoding utf8 -NoNewline $percent = [Math]::Min(90, 70 + [int](($featureCount / $totalFeatures) * 20)) Update-Progress "Generating feature documentation ($featureCount/$totalFeatures)" $percent } Update-Progress "Process Completed" 100 Write-Host "Documentation generation complete." ================================================ FILE: windev.ps1 ================================================ <# .SYNOPSIS This Script is used as a target for the https://christitus.com/windev alias. .DESCRIPTION This Script provides a simple way to start the bleeding edge release of winutil. .EXAMPLE irm https://christitus.com/windev | iex OR Run in Admin Powershell > ./windev.ps1 #> $latestTag = (Invoke-RestMethod "https://api.github.com/repos/ChrisTitusTech/winutil/tags")[0].name Invoke-RestMethod "https://github.com/ChrisTitusTech/winutil/releases/download/$latestTag/winutil.ps1" | Invoke-Expression ================================================ FILE: xaml/inputXML.xaml ================================================ Install Tweaks Config Updates Win11 Creator