From a2d9f47ea6e0c752b23b50f4fd7827bfb9fe52c7 Mon Sep 17 00:00:00 2001 From: ChrisTitusTech Date: Wed, 7 Aug 2024 15:32:09 +0000 Subject: [PATCH 1/4] =?UTF-8?q?Deploying=20to=20main=20from=20@=20ChrisTit?= =?UTF-8?q?usTech/winutil@da824d58a745ac74085ac87c31ef051718ed5c8d=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 359ea51c82..82549f1099 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ If you have Issues, refer to [Known Issues](https://christitustech.github.io/win These are the sponsors that help keep this project alive with monthly contributions. -Gregory NavasarkianYusuke SaitoTriHyderaMark AmosJason A. DiegmuellerwyattOwenStefanthaddlPaulDave JonesAnthony Mendez +Gregory NavasarkianYusuke SaitoTriHyderaMark AmosJason A. DiegmuellerwyattOwenStefanthaddlPaulDave JonesAnthony MendezMichael Wozniak ## 🏅 Thanks to all Contributors Thanks a lot for spending your time helping Winutil grow. Thanks a lot! Keep rocking 🍻. From 123d78116b7c28e4d4cc4a76bd05b8ddad644869 Mon Sep 17 00:00:00 2001 From: Chris Titus Date: Wed, 7 Aug 2024 10:42:12 -0500 Subject: [PATCH 2/4] Delete .github/workflows/createchangelog.yml --- .github/workflows/createchangelog.yml | 117 -------------------------- 1 file changed, 117 deletions(-) delete mode 100644 .github/workflows/createchangelog.yml diff --git a/.github/workflows/createchangelog.yml b/.github/workflows/createchangelog.yml deleted file mode 100644 index 65028a43a8..0000000000 --- a/.github/workflows/createchangelog.yml +++ /dev/null @@ -1,117 +0,0 @@ -name: Update changelog.md on Release - -on: - release: - types: [published, created, edited, deleted] - workflow_dispatch: - inputs: - reason: - description: 'Reason for manual trigger' - required: false - default: 'Manual update' - -jobs: - update-file: - runs-on: ubuntu-latest - - steps: - - name: Checkout Repository - uses: actions/checkout@v4 - - - name: Get all releases and update changelog.md file - run: | - # Initialize some values - changelog_path="docs/changelog.md" - gh release list --exclude-drafts --json tagName,name,isLatest,isPrerelease --limit 1000000 > releases.txt - declare -r number_of_releases=$(cat releases.txt | grep -Po '"tagName"' | wc --lines) - - # Clear the contents of changelog file - echo "" > $changelog_path - - # Write some Initial Content to changelog file - echo "# Changelog" >> $changelog_path - echo "" >> $changelog_path - echo "WinUtil change log received from GitHub Releases, it's autogenerated using GitHub Actions." >> $changelog_path - echo "" >> $changelog_path - echo "> [!WARNING]" >> $changelog_path - echo "> This file **SHOULD NOT** be edited directly, any PRs that tries changing it directly will either be requested on not changing it, or it'll get rejected." >> $changelog_path - echo "" >> $changelog_path - - # Make array for git tag names - tag_arr=() - cat releases.txt | grep -Po '"tagName":\s*.*?[^\\]"' | awk -F ':' '{print $2}' | sed s/\"//g > tags_list.txt - while read -r line; do - tag_arr+=("$line") - done < tags_list.txt - - # Make array for releases names - name_arr=() - cat releases.txt | grep -Po '"name":\s*.*?[^\\]"' | awk -F ':' '{print $2}' | sed s/\"//g > releases_names_list.txt - while read -r line; do - name_arr+=("$line") - done < releases_names_list.txt - - # Make array for isPrerelease - isprerelease_arr=() - cat releases.txt | grep -Po '"isPrerelease":\s*(false|true)' | awk -F ':' '{print $2}' | sed s/\"//g > isprerelease_list.txt - while read -r line; do - isprerelease_arr+=("$line") - done < isprerelease_list.txt - - # Make array for isLatest - islatest_arr=() - cat releases.txt | grep -Po '"isLatest":\s*(false|true)' | awk -F ':' '{print $2}' | sed s/\"//g > islatest_list.txt - while read -r line; do - islatest_arr+=("$line") - done < islatest_list.txt - - # Debug Output - echo "Tag Array: " ${tag_arr[@]} - echo "Array Length: " ${#tag_arr[@]} - echo "" - - echo "Release Name Array: " ${name_arr[@]} - echo "Array Length: " ${#name_arr[@]} - echo "" - - echo "IsPrerelease Array: " ${isprerelease_arr[@]} - echo "Array Length: " ${#isprerelease_arr[@]} - echo "" - - echo "IsLatest Array: " ${islatest_arr[@]} - echo "Array Length: " ${#islatest_arr[@]} - echo "" - - # Exit when this impossible condition is met (just to be safe) - if [[ ! (${#tag_arr[@]}==${#name_arr[@]} && ${#tag_arr[@]}==${#isprerelease_arr[@]} && ${#tag_arr[@]}==${#islatest_arr[@]} ) ]] ; then - echo "Impossible Condition has been met, the Name Array Length Does Not match Tag Array Length, exiting..." - exit 1 - fi - - # Main loop that does the heavy lifting (Content Generation) - for (( i=0; i<${number_of_releases}; i++ )); - do - # The Variables to use on each iteration - tag=${tag_arr[$i]} - name=${name_arr[$i]} - isprerelease=${isprerelease_arr[$i]} - islatest=${islatest_arr[$i]} - body=$(gh release view "$tag" --json body --jq .body) || { echo "Failed to fetch release body for $tag"; exit 1; } - - # The generation of changelog file contents - echo "# $name" >> $changelog_path - echo "" >> $changelog_path - echo "$body" >> $changelog_path - echo "" >> $changelog_path - done - env: - GH_TOKEN: ${{ github.token }} - - - name: Commit and Push Changes - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - git config --global user.name 'github-actions[bot]' - git config --global user.email 'github-actions[bot]@users.noreply.github.com' - git add docs/changelog.md - git diff --quiet && git diff --staged --quiet || (git commit -m "Update changelog.md with all releases" && git push) From 478aa4ac7b3b60df09f98cd003f3c0ef5caa8d6f Mon Sep 17 00:00:00 2001 From: ChrisTitusTech Date: Wed, 7 Aug 2024 15:42:38 +0000 Subject: [PATCH 3/4] Compile Winutil --- winutil.ps1 | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/winutil.ps1 b/winutil.ps1 index 9ed55f7a67..d46f5b66e9 100644 --- a/winutil.ps1 +++ b/winutil.ps1 @@ -8,7 +8,7 @@ Author : Chris Titus @christitustech Runspace Author: @DeveloperDurp GitHub : https://github.com/ChrisTitusTech - Version : 24.08.06 + Version : 24.08.07 #> param ( [switch]$Debug, @@ -45,7 +45,7 @@ Add-Type -AssemblyName System.Windows.Forms # Variable to sync between runspaces $sync = [Hashtable]::Synchronized(@{}) $sync.PSScriptRoot = $PSScriptRoot -$sync.version = "24.08.06" +$sync.version = "24.08.07" $sync.configs = @{} $sync.ProcessRunning = $false @@ -15951,8 +15951,8 @@ Stop-Transcript # SIG # Begin signature block # MIIQRwYJKoZIhvcNAQcCoIIQODCCEDQCAQExDzANBglghkgBZQMEAgEFADB5Bgor # BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG -# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCASdst6rBqOnrRY -# lkuvbkrLUlXr7EPNTrVc8iNJqDB6FKCCDIMwggYaMIIEAqADAgECAhBiHW0MUgGe +# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCBwfa4pnNrVy98I +# mTVpIIjPDqRRR4/HZkn8o/oErTxHkqCCDIMwggYaMIIEAqADAgECAhBiHW0MUgGe # O5B5FSCJIRwKMA0GCSqGSIb3DQEBDAUAMFYxCzAJBgNVBAYTAkdCMRgwFgYDVQQK # Ew9TZWN0aWdvIExpbWl0ZWQxLTArBgNVBAMTJFNlY3RpZ28gUHVibGljIENvZGUg # U2lnbmluZyBSb290IFI0NjAeFw0yMTAzMjIwMDAwMDBaFw0zNjAzMjEyMzU5NTla @@ -16024,16 +16024,16 @@ Stop-Transcript # ZSBTaWduaW5nIENBIFIzNgIQJs052f8oQtNfSG2ygwabxTANBglghkgBZQMEAgEF # AKCBhDAYBgorBgEEAYI3AgEMMQowCKACgAChAoAAMBkGCSqGSIb3DQEJAzEMBgor # BgEEAYI3AgEEMBwGCisGAQQBgjcCAQsxDjAMBgorBgEEAYI3AgEVMC8GCSqGSIb3 -# DQEJBDEiBCAn+LI1XgvUxsdTqy9Kp9kQeuUA20W/GbgUGk9Sub19yzANBgkqhkiG -# 9w0BAQEFAASCAgAWQCk9OgzXbfHeohIomXWRbs4AVy0Lzj40hdsXDvAyyPCA8XXf -# yUVV7UAIZNAI2AU0kcto9nA5V+mc0aptD74pQSDsoQeMz/IFOpbKlk8KyPcyyiSU -# ZETchflc/+Masin9i9SJJKVHmiNVlZ5D4E5jwXQvdRV/1hOfo1llolvTQy+OqIec -# tQF0iKaARSCKhdAxFLxtrKE84AkwX2nVPf82f1+ZS9Z91A4CwcoeV2LF0/9Pjval -# iyLC3I9bJCfPI+/XZozJBqzcUPVzzMrNXYwX5t0SmIXweMfYC4HuHG/knZhgptXF -# A6zTqIX92LcZS/i1zPq79PyuytDaU8s6sKsN3YqcLKxnl1STY8GCzh6yTwLDj0ym -# oufrOO523GKB+Koh2MLLBzwCbpvtmhhL2LJmB8k7deeYWqKZBlVxunvs85ZatUQX -# aNCIlGGIqM8Ix6U/e1ZOv+mzP8McWuDOUlMlF6eUC+fsn5HvaE5ixOVOnpNcgTXZ -# wmBxE1HHbDGlKsw28b1JDustvQSQk4AmI9cEWi2EJJv/1DB8p76SQNWFHI+tacMJ -# ifAU1beowhld6kZKYAQkQBY2xM4Qq2GO2BGW0d/Hhj/3MDssZ6PWudxplMEamBrE -# LhM1aX+msnyqqXC80O+eF9GDDmwyZ4V9qh1pPMqJ96YKnxb9jQPNRG/cmQ== +# DQEJBDEiBCBp+VlAhVWx8v3J2911K5Y3gOVfTGF3DGyakuayxAVjnzANBgkqhkiG +# 9w0BAQEFAASCAgCOo/Mi2xz5/7MZaCo1O1nn4RkhrNRKdKMA0vio3SiJKupSeawM +# Ks/BB5CGqWUT8lW6t2l468Z6UX6gxkwju3OPy2qOPEnZtErjt6bMbA97xJkmeN5b +# 3+YoraPkIvaJdWckbTFRCDItCJLx6T9sMk47Nx5NhF73orIf/mBORr5+v8hdQ/Ti +# KxQkLOX59oqYi9ch7Z5v7U+uIr+o1SEuSwPYwbYkVX3PC375TY3l1GmBLHtgvZtV +# sWc/GqpujKrP50ZnpQKoXh4HC3kj0sGlA3HNDWyZo62B/Tahzk4Xd3b6mzFSW4ba +# hKCgJc7x5BkPWxnNTDcgDlk82I3ns/9fxCfgO6kAuhCONOtOkzpzYTsZyRUbIF6S +# 9bL7MlRISSK2axBMx75kjiG94/2ou1909smesaY2/XbPDpPV0++bU4pFYLi7jj5+ +# CLT7NsJYOL4UXAdpGnUxKjf81or38AM+MZApzflNGepg5+LUtpLtM48LxiNT6MMY +# 9dXV3N4pMxQqYwuTrB75VHMOnqFsTyNGf9RksmaSH1zcrUoo0FETjIlYzM+YZsTn +# fvhZk7oVB0KZ8woB4onPbKCGFK7xXZkIeajC3zWDAH+w1fpfaWpX/Sam1sA0gJD+ +# zXDL51guV80bSW8fnON/n2FXBhEi+ecXM4omfEMOZOKkJertBtFCJB65yQ== # SIG # End signature block From 5e3c6ba45273cb40764283eef71637dc8c679134 Mon Sep 17 00:00:00 2001 From: MyDrift Date: Wed, 7 Aug 2024 17:55:23 +0200 Subject: [PATCH 4/4] [Docs 02] Auto dev-docs & more (#2481) * Compile Winutil * pre-Releases (#1) * Create pre-release.yaml * Update release.yaml * Update pre-release.yaml * Create release-drafter.yml * Update release-drafter.yml * Update pre-release.yaml * Update pre-release.yaml * Update pre-release.yaml * Update pre-release.yaml * Update pre-release.yaml * Update pre-release.yaml * Update pre-release.yaml * Update pre-release.yaml * Update pre-release.yaml * Update release-drafter.yml * Update pre-release.yaml * Update release-drafter.yml * Update pre-release.yaml * Update release-drafter.yml * Update release-drafter.yml * Update pre-release.yaml * Update pre-release.yaml * Update release-drafter.yml * Update release-drafter.yml * Update release.yaml * Update release-drafter.yml * Update release-drafter.yml * Update pre-release.yaml * Compile Winutil * fixed end task with right click * Compile Winutil * code generator & compile integration * Compile Winutil * finish - add autogenerated table of content page named "Dev Docs", with table of content to all .md files - added invokescript & undoscript - generate documentation files * oops, remove dublicates * undo winutil.ps1 * remove prefixes WPF WinUtil Toggle $category Features Tweaks Panel Fixes * fixes - fix inconsistency in Featurenaming - add "Enable" & "Disable" as prefix to remove * fix spellin mistake * remove unneccesary whitespaces update info remove unnecessary whitespaces by only adding stuff to the md if it actually exists * rewrite prefix removal into one line definition * added taskscheduler support * add support for function calling add support for functioncalling - replace code formatting for invoke & undo script from json to powershell * content instead of displayname * add last modified date * contributing + docs generator - moved contribute.md to root CONTRIBUTING.md - referenced CONTRIBUTING.md in contribute.md - added toggle & button reference to functions - added function references in functions - changed mkdocs site styling * Use HashSet for processedFunctions Use HashSet for processedFunctions: - Ensures dynamic addition of functions without duplication. Recursive Function Scanning: - Includes all nested functions called by InvokeScript, UndoScript, ToggleScript, and ButtonScript. * follow github standards - add code of conduct - reference code of conduct in docs - regrouped docs navigation - add comment about the sourced md file * small fixes * change color from teal to blue in light mode * add links to tweaks * add archiving feature to autodocs * administrative - add script to releases and remove from compile - move link from after description to after category * small fixes - add S in feature.json - fix dating - move link to after category * fix links * undo link bc of bugs * add progress bar to script - add progress like in compile - moved archive folder creation to the beginning of the script * Simple improvements to 'auto-devdocs' branch (#3) * Fix links for tweaks & features * Make New Line characters work for Json Snippet * Change NewLine Character from Unix Style (LF) to Windows/DOS Style (CRLF) * rerun script * und workflows & rearrange navigation items * layer out itemname cutout * rework links & temp removal of archivation * fix adding link in json root not adding link member to root in json files * fix json generation replace '\r\n',"`r`n" with ('\n',"`n") * add features to auto md docs * add minify plugin * regex hotfix * refractor * add changelog to about section add link to changelog in docs for about section * undo changelog * Cleanup 'devdocs-generator.ps1' - Implement Zig Multiline String Feature (#4) * Cleanup 'devdocs-generator.ps1' - Implement Zig Multiline String Feature * Fix NewLine character replace in 'devdocs-generator.ps1' * run script * run script * Fix 'itemnametocut' RegEx in 'devdocs-generator.ps1' (#5) * rerun script * rework nav + remove code of conduct * undo workflow changes * run script * remove changelog --------- Co-authored-by: MyDrift-user Co-authored-by: Mr.k --- .github/workflows/github-pages.yml | 3 + CONTRIBUTING.md | 106 + config/feature.json | 98 +- config/tweaks.json | 198 +- devdocs-generator.ps1 | 644 ++++ docs/changelog.md | 175 - docs/contribute.md | 118 +- .../Features/DisableLegacyRecovery.md | 61 + .../Features/DisableSearchSuggestions.md | 61 + .../features/Features/EnableLegacyRecovery.md | 61 + .../Features/EnableSearchSuggestions.md | 61 + docs/dev/features/Features/Install.md | 80 + docs/dev/features/Features/RegBackup.md | 61 + docs/dev/features/Features/Sandbox.md | 39 + docs/dev/features/Features/dotnet.md | 56 + docs/dev/features/Features/hyperv.md | 76 + docs/dev/features/Features/legacymedia.md | 60 + docs/dev/features/Features/nfs.md | 74 + docs/dev/features/Features/wsl.md | 56 + docs/dev/features/Fixes/Autologin.md | 56 + docs/dev/features/Fixes/DISM.md | 74 + docs/dev/features/Fixes/Network.md | 73 + .../features/Fixes/RunAdobeCCCleanerTool.md | 76 + docs/dev/features/Fixes/Update.md | 336 ++ docs/dev/features/Fixes/Winget.md | 58 + .../features/Legacy-Windows-Panels/control.md | 65 + .../features/Legacy-Windows-Panels/network.md | 65 + .../features/Legacy-Windows-Panels/power.md | 65 + .../features/Legacy-Windows-Panels/region.md | 65 + .../features/Legacy-Windows-Panels/sound.md | 65 + .../features/Legacy-Windows-Panels/system.md | 65 + .../features/Legacy-Windows-Panels/user.md | 65 + .../Customize-Preferences/BingSearch.md | 76 + .../tweaks/Customize-Preferences/DarkMode.md | 78 + .../Customize-Preferences/DetailedBSoD.md | 76 + .../Customize-Preferences/HiddenFiles.md | 76 + .../MouseAcceleration.md | 84 + .../tweaks/Customize-Preferences/NumLock.md | 77 + .../tweaks/Customize-Preferences/ShowExt.md | 73 + .../Customize-Preferences/SnapFlyout.md | 76 + .../Customize-Preferences/SnapSuggestion.md | 76 + .../Customize-Preferences/SnapWindow.md | 73 + .../Customize-Preferences/StickyKeys.md | 73 + .../tweaks/Customize-Preferences/TaskView.md | 76 + .../Customize-Preferences/TaskbarAlignment.md | 76 + .../Customize-Preferences/TaskbarSearch.md | 76 + .../Customize-Preferences/TaskbarWidgets.md | 76 + .../Customize-Preferences/VerboseLogon.md | 73 + docs/dev/tweaks/Essential-Tweaks/AH.md | 93 + .../Essential-Tweaks/ConsumerFeatures.md | 63 + docs/dev/tweaks/Essential-Tweaks/DVR.md | 123 + .../Essential-Tweaks/DeleteTempFiles.md | 50 + .../tweaks/Essential-Tweaks/DiskCleanup.md | 54 + .../tweaks/Essential-Tweaks/EdgeDebloat.md | 363 ++ .../Essential-Tweaks/EndTaskOnTaskbar.md | 97 + docs/dev/tweaks/Essential-Tweaks/Hiber.md | 96 + docs/dev/tweaks/Essential-Tweaks/Home.md | 70 + .../Essential-Tweaks/LaptopHibernation.md | 132 + docs/dev/tweaks/Essential-Tweaks/Loc.md | 108 + .../tweaks/Essential-Tweaks/Powershell7.md | 416 +++ .../Essential-Tweaks/Powershell7Tele.md | 57 + .../tweaks/Essential-Tweaks/RestorePoint.md | 139 + docs/dev/tweaks/Essential-Tweaks/Services.md | 3150 +++++++++++++++++ docs/dev/tweaks/Essential-Tweaks/Storage.md | 57 + docs/dev/tweaks/Essential-Tweaks/Tele.md | 830 +++++ docs/dev/tweaks/Essential-Tweaks/Teredo.md | 81 + docs/dev/tweaks/Essential-Tweaks/Wifi.md | 78 + .../tweaks/Performance-Plans/AddUltPerf.md | 97 + .../tweaks/Performance-Plans/RemoveUltPerf.md | 97 + docs/dev/tweaks/Shortcuts/Shortcut.md | 113 + .../BlockAdobeNet.md | 245 ++ .../z--Advanced-Tweaks---CAUTION/DeBloat.md | 189 + .../DebloatAdobe.md | 342 ++ .../DisableBGapps.md | 63 + .../DisableFSO.md | 63 + .../DisableLMS1.md | 145 + .../DisableNotifications.md | 78 + .../Disableipsix.md | 81 + .../z--Advanced-Tweaks---CAUTION/Display.md | 261 ++ .../OOSUbutton.md | 62 + .../RemoveCopilot.md | 123 + .../RemoveEdge.md | 225 ++ .../RemoveHomeGallery.md | 73 + .../RemoveOnedrive.md | 219 ++ .../RightClickMenu.md | 79 + .../z--Advanced-Tweaks---CAUTION/UTC.md | 63 + .../z--Advanced-Tweaks---CAUTION/Undoall.md | 91 + .../z--Advanced-Tweaks---CAUTION/button.md | 100 + .../z--Advanced-Tweaks---CAUTION/changedns.md | 38 + docs/devdocs.md | 108 + mkdocs.yml | 30 +- 91 files changed, 13060 insertions(+), 413 deletions(-) create mode 100644 CONTRIBUTING.md create mode 100644 devdocs-generator.ps1 delete mode 100644 docs/changelog.md create mode 100644 docs/dev/features/Features/DisableLegacyRecovery.md create mode 100644 docs/dev/features/Features/DisableSearchSuggestions.md create mode 100644 docs/dev/features/Features/EnableLegacyRecovery.md create mode 100644 docs/dev/features/Features/EnableSearchSuggestions.md create mode 100644 docs/dev/features/Features/Install.md create mode 100644 docs/dev/features/Features/RegBackup.md create mode 100644 docs/dev/features/Features/Sandbox.md create mode 100644 docs/dev/features/Features/dotnet.md create mode 100644 docs/dev/features/Features/hyperv.md create mode 100644 docs/dev/features/Features/legacymedia.md create mode 100644 docs/dev/features/Features/nfs.md create mode 100644 docs/dev/features/Features/wsl.md create mode 100644 docs/dev/features/Fixes/Autologin.md create mode 100644 docs/dev/features/Fixes/DISM.md create mode 100644 docs/dev/features/Fixes/Network.md create mode 100644 docs/dev/features/Fixes/RunAdobeCCCleanerTool.md create mode 100644 docs/dev/features/Fixes/Update.md create mode 100644 docs/dev/features/Fixes/Winget.md create mode 100644 docs/dev/features/Legacy-Windows-Panels/control.md create mode 100644 docs/dev/features/Legacy-Windows-Panels/network.md create mode 100644 docs/dev/features/Legacy-Windows-Panels/power.md create mode 100644 docs/dev/features/Legacy-Windows-Panels/region.md create mode 100644 docs/dev/features/Legacy-Windows-Panels/sound.md create mode 100644 docs/dev/features/Legacy-Windows-Panels/system.md create mode 100644 docs/dev/features/Legacy-Windows-Panels/user.md create mode 100644 docs/dev/tweaks/Customize-Preferences/BingSearch.md create mode 100644 docs/dev/tweaks/Customize-Preferences/DarkMode.md create mode 100644 docs/dev/tweaks/Customize-Preferences/DetailedBSoD.md create mode 100644 docs/dev/tweaks/Customize-Preferences/HiddenFiles.md create mode 100644 docs/dev/tweaks/Customize-Preferences/MouseAcceleration.md create mode 100644 docs/dev/tweaks/Customize-Preferences/NumLock.md create mode 100644 docs/dev/tweaks/Customize-Preferences/ShowExt.md create mode 100644 docs/dev/tweaks/Customize-Preferences/SnapFlyout.md create mode 100644 docs/dev/tweaks/Customize-Preferences/SnapSuggestion.md create mode 100644 docs/dev/tweaks/Customize-Preferences/SnapWindow.md create mode 100644 docs/dev/tweaks/Customize-Preferences/StickyKeys.md create mode 100644 docs/dev/tweaks/Customize-Preferences/TaskView.md create mode 100644 docs/dev/tweaks/Customize-Preferences/TaskbarAlignment.md create mode 100644 docs/dev/tweaks/Customize-Preferences/TaskbarSearch.md create mode 100644 docs/dev/tweaks/Customize-Preferences/TaskbarWidgets.md create mode 100644 docs/dev/tweaks/Customize-Preferences/VerboseLogon.md create mode 100644 docs/dev/tweaks/Essential-Tweaks/AH.md create mode 100644 docs/dev/tweaks/Essential-Tweaks/ConsumerFeatures.md create mode 100644 docs/dev/tweaks/Essential-Tweaks/DVR.md create mode 100644 docs/dev/tweaks/Essential-Tweaks/DeleteTempFiles.md create mode 100644 docs/dev/tweaks/Essential-Tweaks/DiskCleanup.md create mode 100644 docs/dev/tweaks/Essential-Tweaks/EdgeDebloat.md create mode 100644 docs/dev/tweaks/Essential-Tweaks/EndTaskOnTaskbar.md create mode 100644 docs/dev/tweaks/Essential-Tweaks/Hiber.md create mode 100644 docs/dev/tweaks/Essential-Tweaks/Home.md create mode 100644 docs/dev/tweaks/Essential-Tweaks/LaptopHibernation.md create mode 100644 docs/dev/tweaks/Essential-Tweaks/Loc.md create mode 100644 docs/dev/tweaks/Essential-Tweaks/Powershell7.md create mode 100644 docs/dev/tweaks/Essential-Tweaks/Powershell7Tele.md create mode 100644 docs/dev/tweaks/Essential-Tweaks/RestorePoint.md create mode 100644 docs/dev/tweaks/Essential-Tweaks/Services.md create mode 100644 docs/dev/tweaks/Essential-Tweaks/Storage.md create mode 100644 docs/dev/tweaks/Essential-Tweaks/Tele.md create mode 100644 docs/dev/tweaks/Essential-Tweaks/Teredo.md create mode 100644 docs/dev/tweaks/Essential-Tweaks/Wifi.md create mode 100644 docs/dev/tweaks/Performance-Plans/AddUltPerf.md create mode 100644 docs/dev/tweaks/Performance-Plans/RemoveUltPerf.md create mode 100644 docs/dev/tweaks/Shortcuts/Shortcut.md create mode 100644 docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/BlockAdobeNet.md create mode 100644 docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/DeBloat.md create mode 100644 docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/DebloatAdobe.md create mode 100644 docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/DisableBGapps.md create mode 100644 docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/DisableFSO.md create mode 100644 docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/DisableLMS1.md create mode 100644 docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/DisableNotifications.md create mode 100644 docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/Disableipsix.md create mode 100644 docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/Display.md create mode 100644 docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/OOSUbutton.md create mode 100644 docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/RemoveCopilot.md create mode 100644 docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/RemoveEdge.md create mode 100644 docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/RemoveHomeGallery.md create mode 100644 docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/RemoveOnedrive.md create mode 100644 docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/RightClickMenu.md create mode 100644 docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/UTC.md create mode 100644 docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/Undoall.md create mode 100644 docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/button.md create mode 100644 docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/changedns.md create mode 100644 docs/devdocs.md diff --git a/.github/workflows/github-pages.yml b/.github/workflows/github-pages.yml index 7737726e40..7d38c5eb59 100644 --- a/.github/workflows/github-pages.yml +++ b/.github/workflows/github-pages.yml @@ -19,4 +19,7 @@ jobs: path: .cache - run: pip install mkdocs-material - run: pip install pillow cairosvg + - run: pip install mkdocs-awesome-pages-plugin + - run: pip install mkdocs-git-revision-date-localized-plugin + - run: pip install mkdocs-minify-plugin - run: mkdocs gh-deploy --force diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000000..fe1776760e --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,106 @@ +# 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 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 +graph LR +  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]; +  E --> F[Push Branch]; +  H -->|No| J[Fix Issues]; +  F --> K[Create Pull Request]; +  K --> L[Fill out PR template]; +  J --> G; +``` +!!! 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](assets/Fork-Button-Dark.png#only-dark) +![FOrk Image](assets/Fork-Button-Light.png#only-light) + +### 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 teminal 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](assets/Compile.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](assets/Discard-GHD.png) +* Now, commit your changes once you are happy with the result. +![Commit Image](assets/Commit-GHD.png) +* Push the changes to upload them to your fork on github.com. +![Push Commit Image](assets/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. diff --git a/config/feature.json b/config/feature.json index bd66859ab4..f28a92ed64 100644 --- a/config/feature.json +++ b/config/feature.json @@ -9,9 +9,8 @@ "NetFx4-AdvSrvs", "NetFx3" ], - "InvokeScript": [ - - ] + "InvokeScript": [], + "link": "https://christitustech.github.io/winutil/dev/features/Features/dotnet" }, "WPFFeatureshyperv": { "Content": "HyperV Virtualization", @@ -31,7 +30,8 @@ ], "InvokeScript": [ "Start-Process -FilePath cmd.exe -ArgumentList '/c bcdedit /set hypervisorschedulertype classic' -Wait" - ] + ], + "link": "https://christitustech.github.io/winutil/dev/features/Features/hyperv" }, "WPFFeatureslegacymedia": { "Content": "Legacy Media (WMP, DirectPlay)", @@ -45,9 +45,8 @@ "DirectPlay", "LegacyComponents" ], - "InvokeScript": [ - - ] + "InvokeScript": [], + "link": "https://christitustech.github.io/winutil/dev/features/Features/legacymedia" }, "WPFFeaturewsl": { "Content": "Windows Subsystem for Linux", @@ -59,9 +58,8 @@ "VirtualMachinePlatform", "Microsoft-Windows-Subsystem-Linux" ], - "InvokeScript": [ - - ] + "InvokeScript": [], + "link": "https://christitustech.github.io/winutil/dev/features/Features/wsl" }, "WPFFeaturenfs": { "Content": "NFS - Network File System", @@ -80,7 +78,8 @@ "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://christitustech.github.io/winutil/dev/features/Features/nfs" }, "WPFFeatureEnableSearchSuggestions": { "Content": "Enable Search Box Web Suggestions in Registry(explorer restart)", @@ -88,8 +87,7 @@ "category": "Features", "panel": "1", "Order": "a015_", - "feature": [ - ], + "feature": [], "InvokeScript": [ " If (!(Test-Path 'HKCU:\\SOFTWARE\\Policies\\Microsoft\\Windows\\Explorer')) { @@ -98,7 +96,8 @@ New-ItemProperty -Path 'HKCU:\\SOFTWARE\\Policies\\Microsoft\\Windows\\Explorer' -Name 'DisableSearchBoxSuggestions' -Type DWord -Value 0 -Force Stop-Process -name explorer -force " - ] + ], + "link": "https://christitustech.github.io/winutil/dev/features/Features/EnableSearchSuggestions" }, "WPFFeatureDisableSearchSuggestions": { "Content": "Disable Search Box Web Suggestions in Registry(explorer restart)", @@ -106,8 +105,7 @@ "category": "Features", "panel": "1", "Order": "a016_", - "feature": [ - ], + "feature": [], "InvokeScript": [ " If (!(Test-Path 'HKCU:\\SOFTWARE\\Policies\\Microsoft\\Windows\\Explorer')) { @@ -116,7 +114,8 @@ New-ItemProperty -Path 'HKCU:\\SOFTWARE\\Policies\\Microsoft\\Windows\\Explorer' -Name 'DisableSearchBoxSuggestions' -Type DWord -Value 1 -Force Stop-Process -name explorer -force " - ] + ], + "link": "https://christitustech.github.io/winutil/dev/features/Features/DisableSearchSuggestions" }, "WPFFeatureRegBackup": { "Content": "Enable Daily Registry Backup Task 12.30am", @@ -124,8 +123,7 @@ "category": "Features", "panel": "1", "Order": "a017_", - "feature": [ - ], + "feature": [], "InvokeScript": [ " New-ItemProperty -Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Configuration Manager' -Name 'EnablePeriodicBackup' -Type DWord -Value 1 -Force @@ -134,7 +132,8 @@ $trigger = New-ScheduledTaskTrigger -Daily -At 00:30 Register-ScheduledTask -Action $action -Trigger $trigger -TaskName 'AutoRegBackup' -Description 'Create System Registry Backups' -User 'System' " - ] + ], + "link": "https://christitustech.github.io/winutil/dev/features/Features/RegBackup" }, "WPFFeatureEnableLegacyRecovery": { "Content": "Enable Legacy F8 Boot Recovery", @@ -142,8 +141,7 @@ "category": "Features", "panel": "1", "Order": "a018_", - "feature": [ - ], + "feature": [], "InvokeScript": [ " If (!(Test-Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Configuration Manager\\LastKnownGood')) { @@ -152,7 +150,8 @@ New-ItemProperty -Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Configuration Manager\\LastKnownGood' -Name 'Enabled' -Type DWord -Value 1 -Force Start-Process -FilePath cmd.exe -ArgumentList '/c bcdedit /Set {Current} BootMenuPolicy Legacy' -Wait " - ] + ], + "link": "https://christitustech.github.io/winutil/dev/features/Features/EnableLegacyRecovery" }, "WPFFeatureDisableLegacyRecovery": { "Content": "Disable Legacy F8 Boot Recovery", @@ -160,8 +159,7 @@ "category": "Features", "panel": "1", "Order": "a019_", - "feature": [ - ], + "feature": [], "InvokeScript": [ " If (!(Test-Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Configuration Manager\\LastKnownGood')) { @@ -170,14 +168,16 @@ New-ItemProperty -Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Configuration Manager\\LastKnownGood' -Name 'Enabled' -Type DWord -Value 0 -Force Start-Process -FilePath cmd.exe -ArgumentList '/c bcdedit /Set {Current} BootMenuPolicy Standard' -Wait " - ] + ], + "link": "https://christitustech.github.io/winutil/dev/features/Features/DisableLegacyRecovery" }, - "WPFFeaturesandbox": { + "WPFFeaturesSandbox": { "Content": "Windows Sandbox", "category": "Features", "panel": "1", "Order": "a021_", - "Description": "Windows Sandbox is a lightweight virtual machine that provides a temporary desktop environment to safely run applications and programs in isolation." + "Description": "Windows Sandbox is a lightweight virtual machine that provides a temporary desktop environment to safely run applications and programs in isolation.", + "link": "https://christitustech.github.io/winutil/dev/features/Features/Sandbox" }, "WPFFeatureInstall": { "Content": "Install Features", @@ -185,7 +185,8 @@ "panel": "1", "Order": "a060_", "Type": "Button", - "ButtonWidth": "300" + "ButtonWidth": "300", + "link": "https://christitustech.github.io/winutil/dev/features/Features/Install" }, "WPFPanelAutologin": { "Content": "Set Up Autologin", @@ -193,7 +194,8 @@ "Order": "a040_", "panel": "1", "Type": "Button", - "ButtonWidth": "300" + "ButtonWidth": "300", + "link": "https://christitustech.github.io/winutil/dev/features/Fixes/Autologin" }, "WPFFixesUpdate": { "Content": "Reset Windows Update", @@ -201,7 +203,8 @@ "panel": "1", "Order": "a041_", "Type": "Button", - "ButtonWidth": "300" + "ButtonWidth": "300", + "link": "https://christitustech.github.io/winutil/dev/features/Fixes/Update" }, "WPFFixesNetwork": { "Content": "Reset Network", @@ -209,7 +212,8 @@ "Order": "a042_", "panel": "1", "Type": "Button", - "ButtonWidth": "300" + "ButtonWidth": "300", + "link": "https://christitustech.github.io/winutil/dev/features/Fixes/Network" }, "WPFPanelDISM": { "Content": "System Corruption Scan", @@ -217,7 +221,8 @@ "panel": "1", "Order": "a043_", "Type": "Button", - "ButtonWidth": "300" + "ButtonWidth": "300", + "link": "https://christitustech.github.io/winutil/dev/features/Fixes/DISM" }, "WPFFixesWinget": { "Content": "WinGet Reinstall", @@ -225,7 +230,8 @@ "panel": "1", "Order": "a044_", "Type": "Button", - "ButtonWidth": "300" + "ButtonWidth": "300", + "link": "https://christitustech.github.io/winutil/dev/features/Fixes/Winget" }, "WPFRunAdobeCCCleanerTool": { "Content": "Remove Adobe Creative Cloud", @@ -233,55 +239,63 @@ "panel": "1", "Order": "a045_", "Type": "Button", - "ButtonWidth": "300" + "ButtonWidth": "300", + "link": "https://christitustech.github.io/winutil/dev/features/Fixes/RunAdobeCCCleanerTool" }, "WPFPanelnetwork": { "Content": "Network Connections", "category": "Legacy Windows Panels", "panel": "2", "Type": "Button", - "ButtonWidth": "300" + "ButtonWidth": "300", + "link": "https://christitustech.github.io/winutil/dev/features/Legacy-Windows-Panels/network" }, "WPFPanelcontrol": { "Content": "Control Panel", "category": "Legacy Windows Panels", "panel": "2", "Type": "Button", - "ButtonWidth": "300" + "ButtonWidth": "300", + "link": "https://christitustech.github.io/winutil/dev/features/Legacy-Windows-Panels/control" }, "WPFPanelpower": { "Content": "Power Panel", "category": "Legacy Windows Panels", "panel": "2", "Type": "Button", - "ButtonWidth": "300" + "ButtonWidth": "300", + "link": "https://christitustech.github.io/winutil/dev/features/Legacy-Windows-Panels/power" }, "WPFPanelregion": { "Content": "Region", "category": "Legacy Windows Panels", "panel": "2", "Type": "Button", - "ButtonWidth": "300" + "ButtonWidth": "300", + "link": "https://christitustech.github.io/winutil/dev/features/Legacy-Windows-Panels/region" }, "WPFPanelsound": { "Content": "Sound Settings", "category": "Legacy Windows Panels", "panel": "2", "Type": "Button", - "ButtonWidth": "300" + "ButtonWidth": "300", + "link": "https://christitustech.github.io/winutil/dev/features/Legacy-Windows-Panels/sound" }, "WPFPanelsystem": { "Content": "System Properties", "category": "Legacy Windows Panels", "panel": "2", "Type": "Button", - "ButtonWidth": "300" + "ButtonWidth": "300", + "link": "https://christitustech.github.io/winutil/dev/features/Legacy-Windows-Panels/system" }, "WPFPaneluser": { "Content": "User Accounts", "category": "Legacy Windows Panels", "panel": "2", "Type": "Button", - "ButtonWidth": "300" + "ButtonWidth": "300", + "link": "https://christitustech.github.io/winutil/dev/features/Legacy-Windows-Panels/user" } } diff --git a/config/tweaks.json b/config/tweaks.json index fcd0f30742..98ae976330 100644 --- a/config/tweaks.json +++ b/config/tweaks.json @@ -27,7 +27,8 @@ "Value": "0", "OriginalValue": "1" } - ] + ], + "link": "https://christitustech.github.io/winutil/dev/tweaks/Essential-Tweaks/AH" }, "WPFTweaksHiber": { "Content": "Disable Hibernation", @@ -52,11 +53,12 @@ } ], "InvokeScript": [ - "powercfg.exe /hibernate off" + "powercfg.exe /hibernate off" ], "UndoScript": [ - "powercfg.exe /hibernate on" - ] + "powercfg.exe /hibernate on" + ], + "link": "https://christitustech.github.io/winutil/dev/tweaks/Essential-Tweaks/Hiber" }, "WPFTweaksLaptopHibernation": { "Content": "Set Hibernation as default (good for laptops)", @@ -103,7 +105,8 @@ Start-Process -FilePath powercfg -ArgumentList \"/change monitor-timeout-ac 15\" -NoNewWindow -Wait Start-Process -FilePath powercfg -ArgumentList \"/change monitor-timeout-dc 15\" -NoNewWindow -Wait " - ] + ], + "link": "https://christitustech.github.io/winutil/dev/tweaks/Essential-Tweaks/LaptopHibernation" }, "WPFTweaksHome": { "Content": "Disable Homegroup", @@ -122,7 +125,8 @@ "StartupType": "Manual", "OriginalType": "Automatic" } - ] + ], + "link": "https://christitustech.github.io/winutil/dev/tweaks/Essential-Tweaks/Home" }, "WPFTweaksLoc": { "Content": "Disable Location Tracking", @@ -159,7 +163,8 @@ "Value": "0", "OriginalValue": "1" } - ] + ], + "link": "https://christitustech.github.io/winutil/dev/tweaks/Essential-Tweaks/Loc" }, "WPFTweaksServices": { "Content": "Set Services to Manual", @@ -1578,7 +1583,8 @@ "StartupType": "Manual", "OriginalType": "Manual" } - ] + ], + "link": "https://christitustech.github.io/winutil/dev/tweaks/Essential-Tweaks/Services" }, "WPFTweaksEdgeDebloat": { "Content": "Debloat Edge", @@ -1734,9 +1740,10 @@ "Value": "0", "OriginalValue": "1" } - ] + ], + "link": "https://christitustech.github.io/winutil/dev/tweaks/Essential-Tweaks/EdgeDebloat" }, - "WPFTweaksConsumerFeatures":{ + "WPFTweaksConsumerFeatures": { "Content": "Disable ConsumerFeatures", "Description": "Windows 10 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", @@ -1744,13 +1751,14 @@ "Order": "a003_", "registry": [ { - "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\CloudContent", - "OriginalValue": "0", - "Name": "DisableWindowsConsumerFeatures", - "Value": "1", - "Type": "DWord" + "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\CloudContent", + "OriginalValue": "0", + "Name": "DisableWindowsConsumerFeatures", + "Value": "1", + "Type": "DWord" } - ] + ], + "link": "https://christitustech.github.io/winutil/dev/tweaks/Essential-Tweaks/ConsumerFeatures" }, "WPFTweaksTele": { "Content": "Disable Telemetry", @@ -1995,7 +2003,7 @@ "Type": "DWord" }, { - "_Comment" : "Driver searching is a function that should be left in", + "_Comment": "Driver searching is a function that should be left in", "Path": "HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\DriverSearching", "OriginalValue": "1", "Name": "SearchOrderConfig", @@ -2121,7 +2129,8 @@ # Disable Defender Auto Sample Submission Set-MpPreference -SubmitSamplesConsent 2 -ErrorAction SilentlyContinue | Out-Null " - ] + ], + "link": "https://christitustech.github.io/winutil/dev/tweaks/Essential-Tweaks/Tele" }, "WPFTweaksWifi": { "Content": "Disable Wifi-Sense", @@ -2144,7 +2153,8 @@ "Value": "0", "OriginalValue": "1" } - ] + ], + "link": "https://christitustech.github.io/winutil/dev/tweaks/Essential-Tweaks/Wifi" }, "WPFTweaksUTC": { "Content": "Set Time to UTC (Dual Boot)", @@ -2160,7 +2170,8 @@ "Value": "1", "OriginalValue": "0" } - ] + ], + "link": "https://christitustech.github.io/winutil/dev/tweaks/z--Advanced-Tweaks---CAUTION/UTC" }, "WPFTweaksRemoveHomeGallery": { "Content": "Remove Home and Gallery from explorer", @@ -2174,14 +2185,15 @@ REG DELETE \"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Desktop\\NameSpace\\{f874310e-b6b7-47dc-bc84-b9e6b38f5903}\" /f REG ADD \"HKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced\" /f /v \"LaunchTo\" /t REG_DWORD /d \"1\" " - ], - "UndoScript": [ + ], + "UndoScript": [ " REG ADD \"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Desktop\\NameSpace\\{e88865ea-0e1c-4e20-9aa6-edcd0212c87c}\" /f /ve /t REG_SZ /d \"{e88865ea-0e1c-4e20-9aa6-edcd0212c87c}\" REG ADD \"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Desktop\\NameSpace\\{f874310e-b6b7-47dc-bc84-b9e6b38f5903}\" /f /ve /t REG_SZ /d \"CLSID_MSGraphHomeFolder\" REG DELETE \"HKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced\" /f /v \"LaunchTo\" " - ] + ], + "link": "https://christitustech.github.io/winutil/dev/tweaks/z--Advanced-Tweaks---CAUTION/RemoveHomeGallery" }, "WPFTweaksDisplay": { "Content": "Set Display for Performance", @@ -2287,7 +2299,8 @@ ], "UndoScript": [ "Remove-ItemProperty -Path \"HKCU:\\Control Panel\\Desktop\" -Name \"UserPreferencesMask\"" - ] + ], + "link": "https://christitustech.github.io/winutil/dev/tweaks/z--Advanced-Tweaks---CAUTION/Display" }, "WPFTweaksDeBloat": { "Content": "Remove ALL MS Store Apps - NOT RECOMMENDED", @@ -2405,7 +2418,8 @@ $proc.WaitForExit() } " - ] + ], + "link": "https://christitustech.github.io/winutil/dev/tweaks/z--Advanced-Tweaks---CAUTION/DeBloat" }, "WPFTweaksRestorePoint": { "Content": "Create Restore Point", @@ -2461,7 +2475,8 @@ Write-Host -ForegroundColor Green \"System Restore Point Created Successfully\" } " - ] + ], + "link": "https://christitustech.github.io/winutil/dev/tweaks/Essential-Tweaks/RestorePoint" }, "WPFTweaksEndTaskOnTaskbar": { "Content": "Enable End Task With Right Click", @@ -2494,7 +2509,8 @@ # Set the property, creating it if it doesn't exist New-ItemProperty -Path $path -Name $name -PropertyType DWord -Value $value -Force | Out-Null" - ] + ], + "link": "https://christitustech.github.io/winutil/dev/tweaks/Essential-Tweaks/EndTaskOnTaskbar" }, "WPFTweaksPowershell7": { "Content": "Change Windows Terminal default: PowerShell 5 -> PowerShell 7", @@ -2507,7 +2523,8 @@ ], "UndoScript": [ "Invoke-WPFTweakPS7 -action \"PS5\"" - ] + ], + "link": "https://christitustech.github.io/winutil/dev/tweaks/Essential-Tweaks/Powershell7" }, "WPFTweaksPowershell7Tele": { "Content": "Disable Powershell 7 Telemetry", @@ -2520,7 +2537,8 @@ ], "UndoScript": [ "[Environment]::SetEnvironmentVariable('POWERSHELL_TELEMETRY_OPTOUT', '', 'Machine')" - ] + ], + "link": "https://christitustech.github.io/winutil/dev/tweaks/Essential-Tweaks/Powershell7Tele" }, "WPFTweaksStorage": { "Content": "Disable Storage Sense", @@ -2533,7 +2551,8 @@ ], "UndoScript": [ "Set-ItemProperty -Path \"HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\StorageSense\\Parameters\\StoragePolicy\" -Name \"01\" -Value 1 -Type Dword -Force" - ] + ], + "link": "https://christitustech.github.io/winutil/dev/tweaks/Essential-Tweaks/Storage" }, "WPFTweaksRemoveEdge": { "Content": "Remove Microsoft Edge", @@ -2542,7 +2561,7 @@ "panel": "1", "Order": "a029_", "InvokeScript": [ - " + " Uninstall-WinUtilEdgeBrowser " ], @@ -2551,7 +2570,8 @@ Write-Host \"Install Microsoft Edge\" Start-Process -FilePath winget -ArgumentList \"install --force -e --accept-source-agreements --accept-package-agreements --silent Microsoft.Edge \" -NoNewWindow -Wait " - ] + ], + "link": "https://christitustech.github.io/winutil/dev/tweaks/z--Advanced-Tweaks---CAUTION/RemoveEdge" }, "WPFTweaksRemoveCopilot": { "Content": "Disable Microsoft Copilot", @@ -2561,7 +2581,6 @@ "Order": "a025_", "registry": [ { - "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\WindowsCopilot", "Name": "TurnOffWindowsCopilot", "Type": "DWord", @@ -2594,7 +2613,8 @@ Write-Host \"Install Copilot\" dism /online /add-package /package-name:Microsoft.Windows.Copilot " - ] + ], + "link": "https://christitustech.github.io/winutil/dev/tweaks/z--Advanced-Tweaks---CAUTION/RemoveCopilot" }, "WPFTweaksDisableLMS1": { "Content": "Disable Intel MM (vPro LMS)", @@ -2603,7 +2623,7 @@ "panel": "1", "Order": "a026_", "InvokeScript": [ - " + " Write-Host \"Kill LMS\" $serviceName = \"LMS\" Write-Host \"Stopping and disabling service: $serviceName\" @@ -2651,7 +2671,8 @@ Write-Host \"LMS vPro needs to be redownloaded from intel.com\" " - ] + ], + "link": "https://christitustech.github.io/winutil/dev/tweaks/z--Advanced-Tweaks---CAUTION/DisableLMS1" }, "WPFTweaksRemoveOnedrive": { "Content": "Remove OneDrive", @@ -2745,7 +2766,8 @@ Write-Host \"Install OneDrive\" Start-Process -FilePath winget -ArgumentList \"install -e --accept-source-agreements --accept-package-agreements --silent Microsoft.OneDrive \" -NoNewWindow -Wait " - ] + ], + "link": "https://christitustech.github.io/winutil/dev/tweaks/z--Advanced-Tweaks---CAUTION/RemoveOnedrive" }, "WPFTweaksDisableNotifications": { "Content": "Disable Notification Tray/Calendar", @@ -2768,7 +2790,8 @@ "Value": "0", "OriginalValue": "1" } - ] + ], + "link": "https://christitustech.github.io/winutil/dev/tweaks/z--Advanced-Tweaks---CAUTION/DisableNotifications" }, "WPFTweaksDebloatAdobe": { "Content": "Adobe Debloat", @@ -2916,7 +2939,8 @@ "StartupType": "Manual", "OriginalType": "Automatic" } - ] + ], + "link": "https://christitustech.github.io/winutil/dev/tweaks/z--Advanced-Tweaks---CAUTION/DebloatAdobe" }, "WPFTweaksBlockAdobeNet": { "Content": "Adobe Network Block", @@ -3023,7 +3047,8 @@ Write-Error \"Failed to flush DNS cache. Error: $_\" } " - ] + ], + "link": "https://christitustech.github.io/winutil/dev/tweaks/z--Advanced-Tweaks---CAUTION/BlockAdobeNet" }, "WPFTweaksRightClickMenu": { "Content": "Set Classic Right-Click Menu ", @@ -3047,7 +3072,8 @@ $process = Get-Process -Name \"explorer\" Stop-Process -InputObject $process " - ] + ], + "link": "https://christitustech.github.io/winutil/dev/tweaks/z--Advanced-Tweaks---CAUTION/RightClickMenu" }, "WPFTweaksDiskCleanup": { "Content": "Run Disk Cleanup", @@ -3060,7 +3086,8 @@ cleanmgr.exe /d C: /VERYLOWDISK Dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase " - ] + ], + "link": "https://christitustech.github.io/winutil/dev/tweaks/Essential-Tweaks/DiskCleanup" }, "WPFTweaksDeleteTempFiles": { "Content": "Delete Temporary Files", @@ -3071,7 +3098,8 @@ "InvokeScript": [ "Get-ChildItem -Path \"C:\\Windows\\Temp\" *.* -Recurse | Remove-Item -Force -Recurse Get-ChildItem -Path $env:TEMP *.* -Recurse | Remove-Item -Force -Recurse" - ] + ], + "link": "https://christitustech.github.io/winutil/dev/tweaks/Essential-Tweaks/DeleteTempFiles" }, "WPFTweaksDVR": { "Content": "Disable GameDVR", @@ -3115,7 +3143,8 @@ "OriginalValue": "1", "Type": "DWord" } - ] + ], + "link": "https://christitustech.github.io/winutil/dev/tweaks/Essential-Tweaks/DVR" }, "WPFTweaksTeredo": { "Content": "Disable Teredo", @@ -3137,7 +3166,8 @@ ], "UndoScript": [ "netsh interface teredo set state default" - ] + ], + "link": "https://christitustech.github.io/winutil/dev/tweaks/Essential-Tweaks/Teredo" }, "WPFTweaksDisableipsix": { "Content": "Disable IPv6", @@ -3159,7 +3189,8 @@ ], "UndoScript": [ "Enable-NetAdapterBinding -Name \"*\" -ComponentID ms_tcpip6" - ] + ], + "link": "https://christitustech.github.io/winutil/dev/tweaks/z--Advanced-Tweaks---CAUTION/Disableipsix" }, "WPFTweaksDisableBGapps": { "Content": "Disable Background Apps", @@ -3175,7 +3206,8 @@ "OriginalValue": "0", "Type": "DWord" } - ] + ], + "link": "https://christitustech.github.io/winutil/dev/tweaks/z--Advanced-Tweaks---CAUTION/DisableBGapps" }, "WPFTweaksDisableFSO": { "Content": "Disable Fullscreen Optimizations", @@ -3191,7 +3223,8 @@ "OriginalValue": "0", "Type": "DWord" } - ] + ], + "link": "https://christitustech.github.io/winutil/dev/tweaks/z--Advanced-Tweaks---CAUTION/DisableFSO" }, "WPFToggleDarkMode": { "Content": "Dark Theme for Windows", @@ -3199,7 +3232,8 @@ "category": "Customize Preferences", "panel": "2", "Order": "a100_", - "Type": "Toggle" + "Type": "Toggle", + "link": "https://christitustech.github.io/winutil/dev/tweaks/Customize-Preferences/DarkMode" }, "WPFToggleBingSearch": { "Content": "Bing Search in Start Menu", @@ -3207,7 +3241,8 @@ "category": "Customize Preferences", "panel": "2", "Order": "a101_", - "Type": "Toggle" + "Type": "Toggle", + "link": "https://christitustech.github.io/winutil/dev/tweaks/Customize-Preferences/BingSearch" }, "WPFToggleNumLock": { "Content": "NumLock on Startup", @@ -3215,7 +3250,8 @@ "category": "Customize Preferences", "panel": "2", "Order": "a102_", - "Type": "Toggle" + "Type": "Toggle", + "link": "https://christitustech.github.io/winutil/dev/tweaks/Customize-Preferences/NumLock" }, "WPFToggleVerboseLogon": { "Content": "Verbose Messages During Logon", @@ -3223,7 +3259,8 @@ "category": "Customize Preferences", "panel": "2", "Order": "a103_", - "Type": "Toggle" + "Type": "Toggle", + "link": "https://christitustech.github.io/winutil/dev/tweaks/Customize-Preferences/VerboseLogon" }, "WPFToggleSnapWindow": { "Content": "Snap Window", @@ -3231,7 +3268,8 @@ "category": "Customize Preferences", "panel": "2", "Order": "a104_", - "Type": "Toggle" + "Type": "Toggle", + "link": "https://christitustech.github.io/winutil/dev/tweaks/Customize-Preferences/SnapWindow" }, "WPFToggleSnapFlyout": { "Content": "Snap Assist Flyout", @@ -3239,7 +3277,8 @@ "category": "Customize Preferences", "panel": "2", "Order": "a105_", - "Type": "Toggle" + "Type": "Toggle", + "link": "https://christitustech.github.io/winutil/dev/tweaks/Customize-Preferences/SnapFlyout" }, "WPFToggleSnapSuggestion": { "Content": "Snap Assist Suggestion", @@ -3247,7 +3286,8 @@ "category": "Customize Preferences", "panel": "2", "Order": "a106_", - "Type": "Toggle" + "Type": "Toggle", + "link": "https://christitustech.github.io/winutil/dev/tweaks/Customize-Preferences/SnapSuggestion" }, "WPFToggleMouseAcceleration": { "Content": "Mouse Acceleration", @@ -3255,7 +3295,8 @@ "category": "Customize Preferences", "panel": "2", "Order": "a107_", - "Type": "Toggle" + "Type": "Toggle", + "link": "https://christitustech.github.io/winutil/dev/tweaks/Customize-Preferences/MouseAcceleration" }, "WPFToggleStickyKeys": { "Content": "Sticky Keys", @@ -3263,7 +3304,8 @@ "category": "Customize Preferences", "panel": "2", "Order": "a108_", - "Type": "Toggle" + "Type": "Toggle", + "link": "https://christitustech.github.io/winutil/dev/tweaks/Customize-Preferences/StickyKeys" }, "WPFToggleHiddenFiles": { "Content": "Show Hidden Files", @@ -3271,7 +3313,8 @@ "category": "Customize Preferences", "panel": "2", "Order": "a200_", - "Type": "Toggle" + "Type": "Toggle", + "link": "https://christitustech.github.io/winutil/dev/tweaks/Customize-Preferences/HiddenFiles" }, "WPFToggleShowExt": { "Content": "Show File Extensions", @@ -3279,7 +3322,8 @@ "category": "Customize Preferences", "panel": "2", "Order": "a201_", - "Type": "Toggle" + "Type": "Toggle", + "link": "https://christitustech.github.io/winutil/dev/tweaks/Customize-Preferences/ShowExt" }, "WPFToggleTaskbarSearch": { "Content": "Search Button in Taskbar", @@ -3287,7 +3331,8 @@ "category": "Customize Preferences", "panel": "2", "Order": "a202_", - "Type": "Toggle" + "Type": "Toggle", + "link": "https://christitustech.github.io/winutil/dev/tweaks/Customize-Preferences/TaskbarSearch" }, "WPFToggleTaskView": { "Content": "Task View Button in Taskbar", @@ -3295,7 +3340,8 @@ "category": "Customize Preferences", "panel": "2", "Order": "a203_", - "Type": "Toggle" + "Type": "Toggle", + "link": "https://christitustech.github.io/winutil/dev/tweaks/Customize-Preferences/TaskView" }, "WPFToggleTaskbarWidgets": { "Content": "Widgets Button in Taskbar", @@ -3303,7 +3349,8 @@ "category": "Customize Preferences", "panel": "2", "Order": "a204_", - "Type": "Toggle" + "Type": "Toggle", + "link": "https://christitustech.github.io/winutil/dev/tweaks/Customize-Preferences/TaskbarWidgets" }, "WPFToggleTaskbarAlignment": { "Content": "Center Taskbar Items", @@ -3311,7 +3358,8 @@ "category": "Customize Preferences", "panel": "2", "Order": "a204_", - "Type": "Toggle" + "Type": "Toggle", + "link": "https://christitustech.github.io/winutil/dev/tweaks/Customize-Preferences/TaskbarAlignment" }, "WPFToggleDetailedBSoD": { "Content": "Detailed BSoD", @@ -3319,14 +3367,16 @@ "category": "Customize Preferences", "panel": "2", "Order": "a205_", - "Type": "Toggle" + "Type": "Toggle", + "link": "https://christitustech.github.io/winutil/dev/tweaks/Customize-Preferences/DetailedBSoD" }, "WPFOOSUbutton": { "Content": "Run OO Shutup 10", "category": "z__Advanced Tweaks - CAUTION", "panel": "1", "Order": "a039_", - "Type": "Button" + "Type": "Button", + "link": "https://christitustech.github.io/winutil/dev/tweaks/z--Advanced-Tweaks---CAUTION/OOSUbutton" }, "WPFchangedns": { "Content": "DNS", @@ -3334,21 +3384,24 @@ "panel": "1", "Order": "a040_", "Type": "Combobox", - "ComboItems": "Default DHCP Google Cloudflare Cloudflare_Malware Cloudflare_Malware_Adult Open_DNS Quad9 AdGuard_Ads_Trackers AdGuard_Ads_Trackers_Malware_Adult" + "ComboItems": "Default DHCP Google Cloudflare Cloudflare_Malware Cloudflare_Malware_Adult Open_DNS Quad9 AdGuard_Ads_Trackers AdGuard_Ads_Trackers_Malware_Adult", + "link": "https://christitustech.github.io/winutil/dev/tweaks/z--Advanced-Tweaks---CAUTION/changedns" }, "WPFTweaksbutton": { "Content": "Run Tweaks", "category": "z__Advanced Tweaks - CAUTION", "panel": "1", "Order": "a041_", - "Type": "Button" + "Type": "Button", + "link": "https://christitustech.github.io/winutil/dev/tweaks/z--Advanced-Tweaks---CAUTION/button" }, "WPFUndoall": { "Content": "Undo Selected Tweaks", "category": "z__Advanced Tweaks - CAUTION", "panel": "1", "Order": "a042_", - "Type": "Button" + "Type": "Button", + "link": "https://christitustech.github.io/winutil/dev/tweaks/z--Advanced-Tweaks---CAUTION/Undoall" }, "WPFAddUltPerf": { "Content": "Add and Activate Ultimate Performance Profile", @@ -3356,7 +3409,8 @@ "panel": "2", "Order": "a080_", "Type": "Button", - "ButtonWidth": "300" + "ButtonWidth": "300", + "link": "https://christitustech.github.io/winutil/dev/tweaks/Performance-Plans/AddUltPerf" }, "WPFRemoveUltPerf": { "Content": "Remove Ultimate Performance Profile", @@ -3364,7 +3418,8 @@ "panel": "2", "Order": "a081_", "Type": "Button", - "ButtonWidth": "300" + "ButtonWidth": "300", + "link": "https://christitustech.github.io/winutil/dev/tweaks/Performance-Plans/RemoveUltPerf" }, "WPFWinUtilShortcut": { "Content": "Create WinUtil Shortcut", @@ -3372,6 +3427,7 @@ "panel": "2", "Order": "a082_", "Type": "Button", - "ButtonWidth": "300" + "ButtonWidth": "300", + "link": "https://christitustech.github.io/winutil/dev/tweaks/Shortcuts/Shortcut" } } diff --git a/devdocs-generator.ps1 b/devdocs-generator.ps1 new file mode 100644 index 0000000000..8f5f408120 --- /dev/null +++ b/devdocs-generator.ps1 @@ -0,0 +1,644 @@ +<# + .DESCRIPTION + This script generates markdown files for the development documentation based on the existing JSON files. + Create table of content and archive any files in the dev folder not modified by this script. + This script is not meant to be used manually, it is called by the github action workflow. +#> + +function Process-MultilineStrings { + param ( + [Parameter(Mandatory, position=0)] + [string]$str + ) + + $lines = $str.Split("`r`n") + $count = $lines.Count + + # Loop through every line, expect last line in the string + # We'll add it after the for loop + for ($i = 0; $i -lt ($count - 1); $i++) { + $line = $lines[$i] + $processedStr += $line -replace ('^\s*\\\\', '') + # Add the previously removed NewLine character by 'Split' Method + $processedStr += "`r`n" + } + + # Add last line *without* a NewLine character. + $processedStr += $lines[$($count - 1)] -replace ('^\s*\\\\', '') + + return $processedStr +} + +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 +} + +function Load-Functions { + param ( + [Parameter(Mandatory, position=0)] + [string]$dir + ) + + Get-ChildItem -Path $dir -Filter *.ps1 | ForEach-Object { + $functionName = $_.BaseName + $functionContent = Get-Content -Path $_.FullName -Raw + $functions[$functionName] = $functionContent + } +} + +function Get-CalledFunctions { + param ( + [Parameter(Mandatory, position=0)] + $scriptContent, + + [Parameter(Mandatory, position=1)] + [hashtable]$functionList, + + [Parameter(Mandatory, position=2)] + [ref]$processedFunctions + ) + + $calledFunctions = @() + foreach ($functionName in $functionList.Keys) { + if ($scriptContent -match "\b$functionName\b" -and -not $processedFunctions.Value.Contains($functionName)) { + $calledFunctions += $functionName + $processedFunctions.Value.Add($functionName) + if ($functionList[$functionName]) { + $nestedFunctions = Get-CalledFunctions -scriptContent $functionList[$functionName] -functionList $functionList -processedFunctions $processedFunctions + $calledFunctions += $nestedFunctions + } + } + } + return $calledFunctions +} + +function Get-AdditionalFunctionsFromToggle { + param ( + [Parameter(Mandatory, position=0)] + [string]$buttonName + ) + + $invokeWpfToggleContent = Get-Content -Path "$publicFunctionsDir/Invoke-WPFToggle.ps1" -Raw + $lines = $invokeWpfToggleContent -split "`r`n" + foreach ($line in $lines) { + if ($line -match "`"$buttonName`" \{Invoke-(WinUtil[a-zA-Z]+)") { + return $matches[1] + } + } +} + +function Get-AdditionalFunctionsFromButton { + param ( + [Parameter(Mandatory, position=0)] + [string]$buttonName + ) + + $invokeWpfButtonContent = Get-Content -Path "$publicFunctionsDir/Invoke-WPFButton.ps1" -Raw + $lines = $invokeWpfButtonContent -split "`r`n" + foreach ($line in $lines) { + if ($line -match "`"$buttonName`" \{Invoke-(WPF[a-zA-Z]+)") { + return $matches[1] + } + } +} + +function Add-LinkAttribute { + param ( + [Parameter(Mandatory)] + [PSCustomObject]$jsonObject + ) + + $totalProperties = ($jsonObject.PSObject.Properties | Measure-Object).Count + $progressIncrement = 50 / $totalProperties + $currentProgress = 50 + + foreach ($property in $jsonObject.PSObject.Properties) { + if ($property.Value -is [PSCustomObject]) { + Add-LinkAttribute -jsonObject $property.Value + } elseif ($property.Value -is [System.Collections.ArrayList]) { + foreach ($item in $property.Value) { + if ($item -is [PSCustomObject]) { + Add-LinkAttribute -jsonObject $item + } + } + } + $currentProgress += $progressIncrement + $roundedProgress = [math]::Round($currentProgress) + Update-Progress -StatusMessage "Adding documentation links" -Percent $roundedProgress + } + if ($jsonObject -ne $global:rootObject) { + $jsonObject | Add-Member -NotePropertyName "link" -NotePropertyValue "" -Force + } +} + +function Generate-MarkdownFiles { + param ( + [Parameter(Mandatory, position=0)] + [PSCustomObject]$data, + + [Parameter(Mandatory, position=1)] + [string]$outputDir, + + [Parameter(Mandatory, position=2)] + [string]$jsonFilePath, + + [Parameter(Mandatory, position=3)] + [string]$lastModified, + + [Parameter(Mandatory, position=4)] + [string]$type, + + [Parameter(position=5)] + [int]$initialProgress + ) + + # TODO: Make the function reference generation better by making a Graph, so it highlights + # Which function "depends" on which, and makes it clearer on a high-level for the reader + # to understand the general structure. + + $totalItems = ($data.PSObject.Properties | Measure-Object).Count + $progressIncrement = 10 / $totalItems + $currentProgress = [int]$initialProgress + + $tocEntries = @() + $processedFiles = @() + foreach ($itemName in $data.PSObject.Properties.Name) { + # Create Category Directory if needed. + $itemDetails = $data.$itemName + $category = $itemDetails.category -replace '[^a-zA-Z0-9]', '-' + $categoryDir = "$outputDir/$category" + if (-Not (Test-Path -Path $categoryDir)) { + New-Item -ItemType Directory -Path $categoryDir | Out-Null + } + + # Create empty files with correct path + $fullItemName = $itemName + $displayName = $itemName -replace $itemnametocut, '' + $filename = "$categoryDir/$displayName.md" + $relativePath = "$outputDir/$category/$displayName.md" -replace '^docs/', '' + if (-Not (Test-Path -Path $filename)) { + Set-Content -Path $filename -Value "" -Encoding utf8 + } + + # Add the entry to 'tocEntries' so we can generate Table Of Content easily + # And add the Full FileName of entry + $tocEntries += @{ + Category = $category + Path = $relativePath + Name = $itemDetails.Content + Type = $type + } + $processedFiles += (Get-Item $filename).FullName + + $header = "# $([string]$itemDetails.Content)" + "`r`n" + $lastUpdatedNotice = "Last Updated: $lastModified" + "`r`n" + $autoupdatenotice = Process-MultilineStrings @" + \\!!! info + \\ The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** +"@ + + $description = Process-MultilineStrings @" + \\## Description + \\ + \\$([string]$itemDetails.Description) +"@ + + $jsonContent = ($itemDetails | ConvertTo-Json -Depth 10).replace('\n',"`n").replace('\r', "`r") + $codeBlock = Process-MultilineStrings @" + \\
+ \\Preview Code + \\ + \\``````json + \\$jsonContent + \\`````` + \\ + \\
+"@ + + # Clear the variable before continuing, will cause problems otherwise + $FeaturesDocs = "" + if ($itemDetails.feature) { + $FeaturesDocs += Process-MultilineStrings @" + \\## Features + \\ + \\ + \\Optional Windows Features are additional functionalities or components in the Windows operating system that users can choose to enable or disable based on their specific needs and preferences. + \\ + \\ + \\You can find information about Optional Windows Features on [Microsoft's Website for Optional Features](https://learn.microsoft.com/en-us/windows/client-management/client-tools/add-remove-hide-features?pivots=windows-11). + \\ + \\ +"@ + if (($itemDetails.feature).Count -gt 1) { + $FeaturesDocs += "### Features to install" + "`r`n" + } else { + $FeaturesDocs += "### Feature to install" + "`r`n" + } + foreach ($feature in $itemDetails.feature) { + $FeaturesDocs += "- $($feature)" + "`r`n" + } + } + + # Clear the variable before continuing, will cause problems otherwise + $InvokeScript = "" + if ($itemDetails.InvokeScript) { + $InvokeScriptContent = $itemDetails.InvokeScript | Out-String + $InvokeScript = Process-MultilineStrings @" + \\## Invoke Script + \\ + \\``````powershell + \\$InvokeScriptContent + \\`````` +"@ + } + + # Clear the variable before continuing, will cause problems otherwise + $UndoScript = "" + if ($itemDetails.UndoScript) { + $UndoScriptContent = $itemDetails.UndoScript | Out-String + $UndoScript = Process-MultilineStrings @" + \\## Undo Script + \\ + \\``````powershell + \\$UndoScriptContent + \\`````` +"@ + } + + # Clear the variable before continuing, will cause problems otherwise + $ToggleScript = "" + if ($itemDetails.ToggleScript) { + $ToggleScriptContent = $itemDetails.ToggleScript | Out-String + $ToggleScript = Process-MultilineStrings @" + \\## Toggle Script + \\ + \\``````powershell + \\$ToggleScriptContent + \\`````` +"@ + } + + # Clear the variable before continuing, will cause problems otherwise + $ButtonScript = "" + if ($itemDetails.ButtonScript) { + $ButtonScriptContent = $itemDetails.ButtonScript | Out-String + $ButtonScript = Process-MultilineStrings @" + \\## Button Script + \\ + \\``````powershell + \\$ButtonScriptContent + \\`````` +"@ + } + + # Clear the variable before continuing, will cause problems otherwise + $FunctionDetails = "" + $processedFunctions = New-Object 'System.Collections.Generic.HashSet[System.String]' + $allScripts = @($itemDetails.InvokeScript, $itemDetails.UndoScript, $itemDetails.ToggleScript, $itemDetails.ButtonScript) + foreach ($script in $allScripts) { + if ($script) { + $calledFunctions = Get-CalledFunctions -scriptContent $script -functionList $functions -processedFunctions ([ref]$processedFunctions) + foreach ($functionName in $calledFunctions) { + if ($functions.ContainsKey($functionName)) { + $FunctionDetails += Process-MultilineStrings @" + \\## Function: $functionName + \\ + \\``````powershell + \\$($functions[$functionName]) + \\`````` + \\ +"@ + } + } + } + } + + $additionalFunctionToggle = Get-AdditionalFunctionsFromToggle -buttonName $fullItemName + if ($additionalFunctionToggle) { + $additionalFunctionNameToggle = "Invoke-$additionalFunctionToggle" + if ($functions.ContainsKey($additionalFunctionNameToggle) -and -not $processedFunctions.Contains($additionalFunctionNameToggle)) { + $FunctionDetails += Process-MultilineStrings @" + \\## Function: $additionalFunctionNameToggle + \\ + \\``````powershell + \\$($functions[$additionalFunctionNameToggle]) + \\`````` + \\ +"@ + $processedFunctions.Add($additionalFunctionNameToggle) + } + } + + $additionalFunctionButton = Get-AdditionalFunctionsFromButton -buttonName $fullItemName + if ($additionalFunctionButton) { + $additionalFunctionNameButton = "Invoke-$additionalFunctionButton" + if ($functions.ContainsKey($additionalFunctionNameButton) -and -not $processedFunctions.Contains($additionalFunctionNameButton)) { + $FunctionDetails += Process-MultilineStrings @" + \\## Function: $additionalFunctionNameButton + \\ + \\``````powershell + \\$($functions[$additionalFunctionNameButton]) + \\`````` + \\ +"@ + $processedFunctions.Add($additionalFunctionNameButton) + } + } + + # Clear the variable before continuing, will cause problems otherwise + $registryDocs = "" + if ($itemDetails.registry) { + $registryDocs += Process-MultilineStrings @" + \\## 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). + \\ + \\ +"@ + foreach ($regEntry in $itemDetails.registry) { + $registryDocs += Process-MultilineStrings @" + \\### Registry Key: $($regEntry.Name) + \\ + \\**Type:** $($regEntry.Type) + \\ + \\**Original Value:** $($regEntry.OriginalValue) + \\ + \\**New Value:** $($regEntry.Value) + \\ + \\ +"@ + } + } + + # Clear the variable before continuing, will cause problems otherwise + $serviceDocs = "" + if ($itemDetails.service) { + $serviceDocs = Process-MultilineStrings @" + \\## Service Changes + \\ + \\Windows services are background processes for system functions or applications. Setting some to manual optimizes performance by starting them only when needed. + \\ + \\You can find information about services on [Wikipedia](https://www.wikiwand.com/en/Windows_service) and [Microsoft's Website](https://learn.microsoft.com/en-us/dotnet/framework/windows-services/introduction-to-windows-service-applications). + \\ + \\ +"@ + foreach ($service in $itemDetails.service) { + $serviceDocs += Process-MultilineStrings @" + \\### Service Name: $($service.Name) + \\ + \\**Startup Type:** $($service.StartupType) + \\ + \\**Original Type:** $($service.OriginalType) + \\ + \\ +"@ + } + } + + # Clear the variable before continuing, will cause problems otherwise + $scheduledTaskDocs = "" + if ($itemDetails.ScheduledTask) { + $scheduledTaskDocs = Process-MultilineStrings @" + \\## Scheduled Task Changes + \\ + \\Windows scheduled tasks are used to run scripts or programs at specific times or events. Disabling unnecessary tasks can improve system performance and reduce unwanted background activity. + \\ + \\ + \\You can find information about scheduled tasks on [Wikipedia](https://www.wikiwand.com/en/Windows_Task_Scheduler) and [Microsoft's Website](https://learn.microsoft.com/en-us/windows/desktop/taskschd/about-the-task-scheduler). + \\ + \\ +"@ + foreach ($task in $itemDetails.ScheduledTask) { + $scheduledTaskDocs += Process-MultilineStrings @" + \\### Task Name: $($task.Name) + \\ + \\**State:** $($task.State) + \\ + \\**Original State:** $($task.OriginalState) + \\ + \\ +"@ + } + } + + $jsonLink = "[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/$jsonFilePath)" + $customContentStartTag = "" + $customContentEndTag = "" + $secondCustomContentStartTag = "" + $secondCustomContentEndTag = "" + + if (Test-Path -Path "$filename") { + $existingContent = Get-Content -Path "$filename" -Raw + $customContentPattern = "(?s)$customContentStartTag(.*?)$customContentEndTag" + $secondCustomContentPattern = "(?s)$secondCustomContentStartTag(.*?)$secondCustomContentEndTag" + if ($existingContent -match $customContentPattern) { + $customContent = $matches[1].Trim() + } + if ($existingContent -match $secondCustomContentPattern) { + $secondCustomContent = $matches[1].Trim() + } + } + + $fileContent = Process-MultilineStrings @" + \\$header + \\$lastUpdatedNotice + \\ + \\$autoupdatenotice + \\$( if ($itemDetails.Description) { $description } ) + \\ + \\$customContentStartTag + \\$customContent + \\$customContentEndTag + \\ + \\$codeBlock + \\ + \\$( + if ($FeaturesDocs) { $FeaturesDocs + "`r`n" } + if ($itemDetails.InvokeScript) { $InvokeScript + "`r`n" } + if ($itemDetails.UndoScript) { $UndoScript + "`r`n" } + if ($itemDetails.ToggleScript) { $ToggleScript + "`r`n" } + if ($itemDetails.ButtonScript) { $ButtonScript + "`r`n" } + if ($FunctionDetails) { $FunctionDetails + "`r`n" } + if ($itemDetails.registry) { $registryDocs + "`r`n" } + if ($itemDetails.service) { $serviceDocs + "`r`n" } + if ($itemDetails.ScheduledTask) { $scheduledTaskDocs + "`r`n" } + ) + \\$secondCustomContentStartTag + \\$secondCustomContent + \\$secondCustomContentEndTag + \\ + \\ + \\$jsonLink +"@ + + Set-Content -Path "$filename" -Value "$fileContent" -Encoding utf8 + + # TODO: For whatever reason, some headers have a space before them, + # so as a temporary fix.. we'll remove these it so mkdocs can render properly + (Get-Content -Raw -Path "$filename").Replace(' ##', '##') | Set-Content "$filename" + $currentProgress += $progressIncrement + $roundedProgress = [math]::Round($currentProgress) + Update-Progress -StatusMessage "Generating content for documentation" -Percent $roundedProgress + } + + return [PSCustomObject]@{ + TocEntries = $tocEntries + ProcessedFiles = $processedFiles + } +} + +function Generate-TypeSectionContent { + param ( + [array]$entries + ) + + $totalEntries = $entries.Count + $progressIncrement = 10 / $totalEntries + $currentProgress = 90 + + $sectionContent = "" + $categories = @{} + foreach ($entry in $entries) { + if (-Not $categories.ContainsKey($entry.Category)) { + $categories[$entry.Category] = @() + } + $categories[$entry.Category] += $entry + + $currentProgress += $progressIncrement + $roundedProgress = [math]::Round($currentProgress) + Update-Progress -StatusMessage "Generating table of contents" -Percent $roundedProgress + } + foreach ($category in $categories.Keys) { + $sectionContent += "### $category`r`n`r`n" + foreach ($entry in $categories[$category]) { + $sectionContent += "- [$($entry.Name)]($($entry.Path))`r`n" + } + } + return $sectionContent +} + +function Add-LinkAttributeToJson { + param ( + [string]$jsonFilePath, + [string]$outputDir + ) + + $jsonText = Get-Content -Path $jsonFilePath -Raw + $jsonData = $jsonText | ConvertFrom-Json + + $totalItems = ($jsonData.PSObject.Properties | Measure-Object).Count + $progressIncrement = 20 / $totalItems + $currentProgress = 70 + + foreach ($item in $jsonData.PSObject.Properties) { + $itemName = $item.Name + $itemDetails = $item.Value + $category = $itemDetails.category -replace '[^a-zA-Z0-9]', '-' + $displayName = $itemName -replace "$itemnametocut", '' + $relativePath = "$outputDir/$category/$displayName" -replace '^docs/', '' + $docLink = "https://christitustech.github.io/winutil/$relativePath" + $jsonData.$itemName.link = $docLink + + $currentProgress += $progressIncrement + $roundedProgress = [math]::Round($currentProgress) + Update-Progress -StatusMessage "Adding documentation links to JSON" -Percent $roundedProgress + } + + $jsonText = ($jsonData | ConvertTo-Json -Depth 10).replace('\n',"`n").replace('\r', "`r") + Set-Content -Path $jsonFilePath -Value ($jsonText) -Encoding utf8 +} + +Update-Progress "Loading JSON files" 10 +$tweaks = Get-Content -Path "config/tweaks.json" | ConvertFrom-Json +$features = Get-Content -Path "config/feature.json" | ConvertFrom-Json + +Update-Progress "Getting last modified dates of the JSON files" 20 +$tweaksLastModified = (Get-Item "config/tweaks.json").LastWriteTime.ToString("yyyy-MM-dd") +$featuresLastModified = (Get-Item "config/feature.json").LastWriteTime.ToString("yyyy-MM-dd") + +$tweaksOutputDir = "docs/dev/tweaks" +$featuresOutputDir = "docs/dev/features" +$privateFunctionsDir = "functions/private" +$publicFunctionsDir = "functions/public" +$functions = @{} +$itemnametocut = "WPF(WinUtil|Toggle|Features?|Tweaks?|Panel|Fix(es)?)?" + +Update-Progress "Creating Directories" 30 +if (-Not (Test-Path -Path $tweaksOutputDir)) { + New-Item -ItemType Directory -Path $tweaksOutputDir | Out-Null +} +if (-Not (Test-Path -Path $featuresOutputDir)) { + New-Item -ItemType Directory -Path $featuresOutputDir | Out-Null +} + +Update-Progress "Loading existing Functions" 40 +Load-Functions -dir $privateFunctionsDir +Load-Functions -dir $publicFunctionsDir + +Update-Progress "Adding documentation links to JSON files" 50 + +# Define the JSON file paths +$jsonPaths = @(".\config\feature.json", ".\config\tweaks.json") + +# Loop through each JSON file path +foreach ($jsonPath in $jsonPaths) { + # Load the JSON content + $json = Get-Content -Raw -Path $jsonPath | ConvertFrom-Json + + # Set the global root object to the current json object + $global:rootObject = $json + + # Add the "link" attribute to the JSON + Add-LinkAttribute -jsonObject $json + + # Convert back to JSON with the original formatting + $jsonString = ($json | ConvertTo-Json -Depth 100).replace('\n',"`n").replace('\r', "`r") + + # Save the JSON back to the file + Set-Content -Path $jsonPath -Value $jsonString +} + +Add-LinkAttributeToJson -jsonFilePath "config/tweaks.json" -outputDir "dev/tweaks" +Add-LinkAttributeToJson -jsonFilePath "config/feature.json" -outputDir "dev/features" + +Update-Progress "Generating content for documentation" 60 +$tweakResult = Generate-MarkdownFiles -data $tweaks -outputDir $tweaksOutputDir -jsonFilePath "config/tweaks.json" -lastModified $tweaksLastModified -type "tweak" -initialProgress 60 +$featureResult = Generate-MarkdownFiles -data $features -outputDir $featuresOutputDir -jsonFilePath "config/feature.json" -lastModified $featuresLastModified -type "feature" -initialProgress 70 + +Update-Progress "Generating table of contents" 80 +$allTocEntries = $tweakResult.TocEntries + $featureResult.TocEntries +$tweakEntries = ($allTocEntries).where{ $_.Type -eq 'tweak' } | Sort-Object Category, Name +$featureEntries = ($allTocEntries).where{ $_.Type -eq 'feature' } | Sort-Object Category, Name + +$indexContent += Process-MultilineStrings @" + \\# Table of Contents + \\ + \\ + \\## Tweaks + \\ + \\ +"@ +$indexContent += $(Generate-TypeSectionContent $tweakEntries) + "`r`n" +$indexContent += Process-MultilineStrings @" + \\## Features + \\ + \\ +"@ +$indexContent += $(Generate-TypeSectionContent $featureEntries) + "`r`n" +Set-Content -Path "docs/devdocs.md" -Value $indexContent -Encoding utf8 + +Update-Progress "Process Completed" 100 diff --git a/docs/changelog.md b/docs/changelog.md deleted file mode 100644 index 498aee8971..0000000000 --- a/docs/changelog.md +++ /dev/null @@ -1,175 +0,0 @@ - -# Changelog - -WinUtil change log received from GitHub Releases, it's autogenerated using GitHub Actions. - -> [!WARNING] -> This file **SHOULD NOT** be edited directly, any PRs that tries changing it directly will either be requested on not changing it, or it'll get rejected. - -# Release 24.07.17 - -![GitHub Downloads (specific asset, specific tag)](https://img.shields.io/github/downloads/ChrisTitusTech/winutil/24.07.17/winutil.ps1) - -## What's Changed -* Pump up the value of 'operations-per-run' Field for 'Close Old Issues' Workflow by @og-mrk in https://github.com/ChrisTitusTech/winutil/pull/2219 -* Improvements/Fixes for the Release Actions by @Marterich in https://github.com/ChrisTitusTech/winutil/pull/2221 -* Move Launch Issues from ReadMe to Known Issues by @MyDrift-user in https://github.com/ChrisTitusTech/winutil/pull/2222 -* [01] Refactoring UI code by @og-mrk in https://github.com/ChrisTitusTech/winutil/pull/2274 -* Delete Un-used 'helperscript.ps1' File by @og-mrk in https://github.com/ChrisTitusTech/winutil/pull/2223 -* Known Issues: Removed redundancy caused by resolving the merge conflict. by @MyDrift-user in https://github.com/ChrisTitusTech/winutil/pull/2224 -* Redirect dev to latest Full Release if can't find prerelease by @MyDrift-user in https://github.com/ChrisTitusTech/winutil/pull/2225 -* Add 'CONTRIBUTING.md' File by @og-mrk in https://github.com/ChrisTitusTech/winutil/pull/2227 -* Update main.ps1 by @eltociear in https://github.com/ChrisTitusTech/winutil/pull/2229 -* Added get installed check for classic right click menu tweak by @btstromberg in https://github.com/ChrisTitusTech/winutil/pull/2231 -* fix syntax highlighting in .MDs by @MyDrift-user in https://github.com/ChrisTitusTech/winutil/pull/2235 -* Add "Shotcut" in applications by @ksb2311 in https://github.com/ChrisTitusTech/winutil/pull/2238 -* Fix Icon Support for Shortcut Creation by @og-mrk in https://github.com/ChrisTitusTech/winutil/pull/2242 -* Allow for tasks to be distinguished by @CodingWonders in https://github.com/ChrisTitusTech/winutil/pull/2251 -* Fix & Rename Nilesoft Shell by @MyDrift-user in https://github.com/ChrisTitusTech/winutil/pull/2261 -* Fix: Ultimate Performance Plan by @MyDrift-user in https://github.com/ChrisTitusTech/winutil/pull/2267 -* Change Main loop from 'ForEach' to 'For' inside 'Install-WinUtilProgramWinget' Private Function by @og-mrk in https://github.com/ChrisTitusTech/winutil/pull/2271 -* Fix 'Close Old Issues' Workflow by @og-mrk in https://github.com/ChrisTitusTech/winutil/pull/2272 -* Add new 'Disable Powershell 7 Telemetry' Tweak by @og-mrk in https://github.com/ChrisTitusTech/winutil/pull/2273 -* Fix Typo in 'Invoke-WinUtilTaskbarSearch' Private Function by @og-mrk in https://github.com/ChrisTitusTech/winutil/pull/2275 -* Update applications.json by @dhruvmistry2000 in https://github.com/ChrisTitusTech/winutil/pull/2290 -* Add app: Modern Flyouts by @MyDrift-user in https://github.com/ChrisTitusTech/winutil/pull/2293 -* Adds PR template by @Real-MullaC in https://github.com/ChrisTitusTech/winutil/pull/2299 -* Add download counter by @Marterich in https://github.com/ChrisTitusTech/winutil/pull/2300 -* Change Kicad category by @Joanty24 in https://github.com/ChrisTitusTech/winutil/pull/2302 -* Fix: PR Template file extension by @MyDrift-user in https://github.com/ChrisTitusTech/winutil/pull/2304 -* Rework JDK packages with Corretto LTS ones by @meenbeese in https://github.com/ChrisTitusTech/winutil/pull/2305 -* Added IPv6 DNS by @Joanty24 in https://github.com/ChrisTitusTech/winutil/pull/2303 -* Create createchangelog.yml for docs page by @Real-MullaC in https://github.com/ChrisTitusTech/winutil/pull/2346 -* Adds all files for winutil docs by @Real-MullaC in https://github.com/ChrisTitusTech/winutil/pull/2342 -* Adds Community Discord to ReadMe file by @Real-MullaC in https://github.com/ChrisTitusTech/winutil/pull/2343 -* Discussions close on PR merge by @Real-MullaC in https://github.com/ChrisTitusTech/winutil/pull/2336 -* Documentation & ReadMe Cleanup by @MyDrift-user in https://github.com/ChrisTitusTech/winutil/pull/2310 -* Added MicroWin documentation by @CodingWonders in https://github.com/ChrisTitusTech/winutil/pull/2349 -* Update Install-WinUtilProgramChoco.ps1 by @Real-MullaC in https://github.com/ChrisTitusTech/winutil/pull/2307 -* Addition of Fork by @Real-MullaC in https://github.com/ChrisTitusTech/winutil/pull/2313 -* Hidden File Tweaks by @Real-MullaC in https://github.com/ChrisTitusTech/winutil/pull/2320 -* Optimized: Shortcut Creation and PS7 Tweak by @Marterich in https://github.com/ChrisTitusTech/winutil/pull/2314 -* Addition of multiple applications by @Real-MullaC in https://github.com/ChrisTitusTech/winutil/pull/2316 -* Add Application: ZoomIt by @MyDrift-user in https://github.com/ChrisTitusTech/winutil/pull/2319 -* Fix Compile Errors on PowerShell 5 by @Marterich in https://github.com/ChrisTitusTech/winutil/pull/2322 -* Add application: Lenovo Legion Toolkit by @Klusio19 in https://github.com/ChrisTitusTech/winutil/pull/2324 -* Remove Edge leftovers from WOW6432Node by @CodingWonders in https://github.com/ChrisTitusTech/winutil/pull/2328 -* Fix: End Task with right click by @MyDrift-user in https://github.com/ChrisTitusTech/winutil/pull/2331 -* Adds Palemoon and closes old issues if not needed by @Real-MullaC in https://github.com/ChrisTitusTech/winutil/pull/2332 -* Change the titles for each section from Bold Text to Header 2 in Bug Report Issue Template by @og-mrk in https://github.com/ChrisTitusTech/winutil/pull/2339 -* Optimize badges by @Marterich in https://github.com/ChrisTitusTech/winutil/pull/2356 -* Add New Windows 11 Specific Toggle - The 'Taskbar Alignment' Toggle by @og-mrk in https://github.com/ChrisTitusTech/winutil/pull/2347 -* Make the 'Youtube Tutorial' Header be the link instead of the Youtube Thumbnail for it, Making the 'README.md' even shorter by @og-mrk in https://github.com/ChrisTitusTech/winutil/pull/2359 -* Fix WinUtil Crashing on Startup - Xaml Error from Generated Applications List by @og-mrk in https://github.com/ChrisTitusTech/winutil/pull/2361 -* [Wiki] Automatically enabling Dark/Light mode set by user's browser Preference by @Angxddeep in https://github.com/ChrisTitusTech/winutil/pull/2366 -* Fixes an issue with create changelog not working by @Real-MullaC in https://github.com/ChrisTitusTech/winutil/pull/2375 -* Updates PR template so disscussion and issue is on the same line. by @Real-MullaC in https://github.com/ChrisTitusTech/winutil/pull/2363 -* Update close-discussion.yml so it detects based on new previous PR by @Real-MullaC in https://github.com/ChrisTitusTech/winutil/pull/2364 -* Repo Cleanup by @MyDrift-user in https://github.com/ChrisTitusTech/winutil/pull/2367 -* Add /close command for the active contributors to close issues by @Marterich in https://github.com/ChrisTitusTech/winutil/pull/2380 -* Update workflows to remove `::set-output` by @wojsmol in https://github.com/ChrisTitusTech/winutil/pull/2384 -* Fixes release log by @Real-MullaC in https://github.com/ChrisTitusTech/winutil/pull/2377 -* Bump actions/checkout from 2 to 4 by @dependabot in https://github.com/ChrisTitusTech/winutil/pull/2389 -* Bump actions/cache from 2 to 4 by @dependabot in https://github.com/ChrisTitusTech/winutil/pull/2390 - -## New Contributors -* @btstromberg made their first contribution in https://github.com/ChrisTitusTech/winutil/pull/2231 -* @ksb2311 made their first contribution in https://github.com/ChrisTitusTech/winutil/pull/2238 -* @dhruvmistry2000 made their first contribution in https://github.com/ChrisTitusTech/winutil/pull/2290 -* @Klusio19 made their first contribution in https://github.com/ChrisTitusTech/winutil/pull/2324 -* @Angxddeep made their first contribution in https://github.com/ChrisTitusTech/winutil/pull/2366 -* @wojsmol made their first contribution in https://github.com/ChrisTitusTech/winutil/pull/2384 -* @dependabot made their first contribution in https://github.com/ChrisTitusTech/winutil/pull/2389 - -**Full Changelog**: https://github.com/ChrisTitusTech/winutil/compare/24.06.29...24.07.17 - -# Release 24.06.28 - -![GitHub Downloads (specific asset, specific tag)](https://img.shields.io/github/downloads/ChrisTitusTech/winutil/24.06.28/winutil.ps1) - -## What's Changed -* Rename Application: ForceAutoHDR by @MyDrift-user in https://github.com/ChrisTitusTech/winutil/pull/2081 -* Remove force install of Winget + Small improvements by @Marterich in https://github.com/ChrisTitusTech/winutil/pull/2083 -* Remove WwanSvc Service From Manual Services Tweak by @Marterich in https://github.com/ChrisTitusTech/winutil/pull/2086 -* Added Plex Desktop along side Plex Media Server by @PedroBuffon in https://github.com/ChrisTitusTech/winutil/pull/2091 -* Remove java 20 by @brrock in https://github.com/ChrisTitusTech/winutil/pull/2095 -* Remove oosu essential tweak by @Marterich in https://github.com/ChrisTitusTech/winutil/pull/2099 -* Removed Free File Sync because of Malware warning on choco repo by @Marterich in https://github.com/ChrisTitusTech/winutil/pull/2101 -* Remove unused Functions by @Marterich in https://github.com/ChrisTitusTech/winutil/pull/2102 -* Remove Extra Tabs in 'applications.json' File by @og-mrk in https://github.com/ChrisTitusTech/winutil/pull/2113 -* Fix Compile -Run always starting as PS5 by @Marterich in https://github.com/ChrisTitusTech/winutil/pull/2165 -* Fix White space (bottom right of Application Tab) by @MyDrift-user in https://github.com/ChrisTitusTech/winutil/pull/2120 -* Delete Un-used 'logs' Folder by @og-mrk in https://github.com/ChrisTitusTech/winutil/pull/2135 -* Fixes Edge Removal by @Real-MullaC in https://github.com/ChrisTitusTech/winutil/pull/2136 -* Added kicad by @Real-MullaC in https://github.com/ChrisTitusTech/winutil/pull/2138 -* Addition of Dropbox by @Real-MullaC in https://github.com/ChrisTitusTech/winutil/pull/2200 -* Spelling Fix: uninstall button by @MyDrift-user in https://github.com/ChrisTitusTech/winutil/pull/2197 -* Add Overlay to Taskbaritem by @MyDrift-user in https://github.com/ChrisTitusTech/winutil/pull/2196 - -## New Contributors -* @PedroBuffon made their first contribution in https://github.com/ChrisTitusTech/winutil/pull/2091 -* @brrock made their first contribution in https://github.com/ChrisTitusTech/winutil/pull/2095 - -**Full Changelog**: https://github.com/ChrisTitusTech/winutil/compare/24.06.25...24.06.28 - -# Release 24.06.18 - -## What's Changed -* Update Invoke-WinUtilNumLock.ps1 by @ChrisTitusTech in https://github.com/ChrisTitusTech/winutil/pull/2104 - - -**Full Changelog**: https://github.com/ChrisTitusTech/winutil/compare/24.06.11...24.06.18 - -# Release 24.06.11 - -This release is an auto generated release. - -From now on any pull request on the main branch generates a release like this, which ensures you can rewind in time to ANY version of winutil. Also this makes it easy to launch winutil from github.com instead of using raw GitHub which is blocked in some countries. Big shoutout to KonTy for the auto release idea! - -## What's Changed -* Fix Numlock toggle by @ChrisTitusTech in https://github.com/ChrisTitusTech/winutil/pull/2044 -* fix typo by @nikolan123 in https://github.com/ChrisTitusTech/winutil/pull/2041 -* Simplify 'Close Old Issues' Workflow by using 'actions/stale' GitHub Action by @og-mrk in https://github.com/ChrisTitusTech/winutil/pull/2055 -* Compile Cleanup and Tweak Fixes by @ChrisTitusTech in https://github.com/ChrisTitusTech/winutil/pull/2062 -* Fix the URL of an Example in 'README.md' File by @og-mrk in https://github.com/ChrisTitusTech/winutil/pull/2063 - -## New Contributors -* @nikolan123 made their first contribution in https://github.com/ChrisTitusTech/winutil/pull/2041 - -**Full Changelog**: https://github.com/ChrisTitusTech/winutil/compare/v2024.06.05...24.06.11 - -# WinUtil 2024.06.05 Bug Fixes and Feature Additions - -- Applications cleanup (Few unmaintained applications culled) -- Application Additions -- Various Microwin fixes thanks to @KonTy -- Better application filtering @Marterich -- CoPilot Removal @KonTy @ModernTTY -- Import Drivers @CodingWonders -- OOSU updates @Marterich -- Fix Auto HDR @og-mrk -- Only install chocolatey if needed @Marterich -- Various winget fixes @og-mrk -- Adobe Fixes @MyDrift-user -- Disable Fullscreen Optimizations Tweak Added -- Tweaks reorder and cleanup -- Chocolatey fallback fix @ty802 - -This was a massive 100+ commit PR and the last of it's size. Going forward I will be making multiple branches to separate the pr's into. This will help seperate application PRs, GUI PRs, Tweaks, and others into their own branches based on features. - -# WinUtil 2024.04.20 Bug Fixes and Issue Fixes - -- Toggle Widgets fix @og-mrk -- Fix Special Characters causing errors in JSON files @og-mrk -- Restart explorer on classic right click tweak @og-mrk -- Fix Disable Storage Sense @og-mrk -- Robocopy fix when username has space in during OneDrive uninstall @og-mrk -- Multiple Winget Fixes made by @ruxunderscore -- Fix DISM Conversion for ESD files @CodingWonders -- Independent Edge Removal Update by @DaEpicR -- Disable SCOOBE @ICTdE -- O&O Tweaks update by @Marterich -- Bugfix for Window Restore Creation by @ChrisTitusTech -- Fix Winget Installs for Default -> User Scope -> Unelevated if one fails it trys the next method. @ChrisTitusTech -- Fix Unit Tests for Functions @ChrisTitusTech - diff --git a/docs/contribute.md b/docs/contribute.md index 59d7d805e9..c93fd74c9a 100644 --- a/docs/contribute.md +++ b/docs/contribute.md @@ -1,117 +1,3 @@ -# How to Contribute? +--8<-- "CONTRIBUTING.md" -## 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 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](assets/Fork-Button-Dark.png#only-dark) - -![Fork Image](assets/Fork-Button-Light.png#only-light) - -### 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 teminal 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](assets/Compile.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](assets/Discard-GHD.png) - -* Now, commit your changes once you are happy with the result. - -![Commit Image](assets/Commit-GHD.png) - -* Push the changes to upload them to your fork on github.com. - -![Push Commit Image](assets/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. + diff --git a/docs/dev/features/Features/DisableLegacyRecovery.md b/docs/dev/features/Features/DisableLegacyRecovery.md new file mode 100644 index 0000000000..4b8fbb962c --- /dev/null +++ b/docs/dev/features/Features/DisableLegacyRecovery.md @@ -0,0 +1,61 @@ +# Disable Legacy F8 Boot Recovery + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** +## Description + +Disables Advanced Boot Options screen that lets you start Windows in advanced troubleshooting modes. + + + + + +
+Preview Code + +```json +{ + "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", + "Order": "a019_", + "feature": [], + "InvokeScript": [ + " + If (!(Test-Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Configuration Manager\\LastKnownGood')) { + New-Item -Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Configuration Manager\\LastKnownGood' -Force | Out-Null + } + New-ItemProperty -Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Configuration Manager\\LastKnownGood' -Name 'Enabled' -Type DWord -Value 0 -Force + Start-Process -FilePath cmd.exe -ArgumentList '/c bcdedit /Set {Current} BootMenuPolicy Standard' -Wait + " + ], + "link": "https://christitustech.github.io/winutil/dev/features/Features/DisableLegacyRecovery" +} +``` + +
+ +## Invoke Script + +```powershell + + If (!(Test-Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Configuration Manager\LastKnownGood')) { + New-Item -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Configuration Manager\LastKnownGood' -Force | Out-Null + } + New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Configuration Manager\LastKnownGood' -Name 'Enabled' -Type DWord -Value 0 -Force + Start-Process -FilePath cmd.exe -ArgumentList '/c bcdedit /Set {Current} BootMenuPolicy Standard' -Wait + + +``` + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/feature.json) + diff --git a/docs/dev/features/Features/DisableSearchSuggestions.md b/docs/dev/features/Features/DisableSearchSuggestions.md new file mode 100644 index 0000000000..3c94d0bbdd --- /dev/null +++ b/docs/dev/features/Features/DisableSearchSuggestions.md @@ -0,0 +1,61 @@ +# Disable Search Box Web Suggestions in Registry(explorer restart) + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** +## Description + +Disables web suggestions when searching using Windows Search. + + + + + +
+Preview Code + +```json +{ + "Content": "Disable Search Box Web Suggestions in Registry(explorer restart)", + "Description": "Disables web suggestions when searching using Windows Search.", + "category": "Features", + "panel": "1", + "Order": "a016_", + "feature": [], + "InvokeScript": [ + " + If (!(Test-Path 'HKCU:\\SOFTWARE\\Policies\\Microsoft\\Windows\\Explorer')) { + New-Item -Path 'HKCU:\\SOFTWARE\\Policies\\Microsoft\\Windows\\Explorer' -Force | Out-Null + } + New-ItemProperty -Path 'HKCU:\\SOFTWARE\\Policies\\Microsoft\\Windows\\Explorer' -Name 'DisableSearchBoxSuggestions' -Type DWord -Value 1 -Force + Stop-Process -name explorer -force + " + ], + "link": "https://christitustech.github.io/winutil/dev/features/Features/DisableSearchSuggestions" +} +``` + +
+ +## Invoke Script + +```powershell + + If (!(Test-Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows\Explorer')) { + New-Item -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows\Explorer' -Force | Out-Null + } + New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows\Explorer' -Name 'DisableSearchBoxSuggestions' -Type DWord -Value 1 -Force + Stop-Process -name explorer -force + + +``` + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/feature.json) + diff --git a/docs/dev/features/Features/EnableLegacyRecovery.md b/docs/dev/features/Features/EnableLegacyRecovery.md new file mode 100644 index 0000000000..9f03b193dc --- /dev/null +++ b/docs/dev/features/Features/EnableLegacyRecovery.md @@ -0,0 +1,61 @@ +# Enable Legacy F8 Boot Recovery + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** +## Description + +Enables Advanced Boot Options screen that lets you start Windows in advanced troubleshooting modes. + + + + + +
+Preview Code + +```json +{ + "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", + "Order": "a018_", + "feature": [], + "InvokeScript": [ + " + If (!(Test-Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Configuration Manager\\LastKnownGood')) { + New-Item -Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Configuration Manager\\LastKnownGood' -Force | Out-Null + } + New-ItemProperty -Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Configuration Manager\\LastKnownGood' -Name 'Enabled' -Type DWord -Value 1 -Force + Start-Process -FilePath cmd.exe -ArgumentList '/c bcdedit /Set {Current} BootMenuPolicy Legacy' -Wait + " + ], + "link": "https://christitustech.github.io/winutil/dev/features/Features/EnableLegacyRecovery" +} +``` + +
+ +## Invoke Script + +```powershell + + If (!(Test-Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Configuration Manager\LastKnownGood')) { + New-Item -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Configuration Manager\LastKnownGood' -Force | Out-Null + } + New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Configuration Manager\LastKnownGood' -Name 'Enabled' -Type DWord -Value 1 -Force + Start-Process -FilePath cmd.exe -ArgumentList '/c bcdedit /Set {Current} BootMenuPolicy Legacy' -Wait + + +``` + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/feature.json) + diff --git a/docs/dev/features/Features/EnableSearchSuggestions.md b/docs/dev/features/Features/EnableSearchSuggestions.md new file mode 100644 index 0000000000..3c8177327a --- /dev/null +++ b/docs/dev/features/Features/EnableSearchSuggestions.md @@ -0,0 +1,61 @@ +# Enable Search Box Web Suggestions in Registry(explorer restart) + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** +## Description + +Enables web suggestions when searching using Windows Search. + + + + + +
+Preview Code + +```json +{ + "Content": "Enable Search Box Web Suggestions in Registry(explorer restart)", + "Description": "Enables web suggestions when searching using Windows Search.", + "category": "Features", + "panel": "1", + "Order": "a015_", + "feature": [], + "InvokeScript": [ + " + If (!(Test-Path 'HKCU:\\SOFTWARE\\Policies\\Microsoft\\Windows\\Explorer')) { + New-Item -Path 'HKCU:\\SOFTWARE\\Policies\\Microsoft\\Windows\\Explorer' -Force | Out-Null + } + New-ItemProperty -Path 'HKCU:\\SOFTWARE\\Policies\\Microsoft\\Windows\\Explorer' -Name 'DisableSearchBoxSuggestions' -Type DWord -Value 0 -Force + Stop-Process -name explorer -force + " + ], + "link": "https://christitustech.github.io/winutil/dev/features/Features/EnableSearchSuggestions" +} +``` + +
+ +## Invoke Script + +```powershell + + If (!(Test-Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows\Explorer')) { + New-Item -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows\Explorer' -Force | Out-Null + } + New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows\Explorer' -Name 'DisableSearchBoxSuggestions' -Type DWord -Value 0 -Force + Stop-Process -name explorer -force + + +``` + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/feature.json) + diff --git a/docs/dev/features/Features/Install.md b/docs/dev/features/Features/Install.md new file mode 100644 index 0000000000..048cd801fb --- /dev/null +++ b/docs/dev/features/Features/Install.md @@ -0,0 +1,80 @@ +# Install Features + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** + + + + + + +
+Preview Code + +```json +{ + "Content": "Install Features", + "category": "Features", + "panel": "1", + "Order": "a060_", + "Type": "Button", + "ButtonWidth": "300", + "link": "https://christitustech.github.io/winutil/dev/features/Features/Install" +} +``` + +
+ +## Function: Invoke-WPFFeatureInstall + +```powershell +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 + } + + $Features = (Get-WinUtilCheckBoxes)["WPFFeature"] + + Invoke-WPFRunspace -ArgumentList $Features -DebugPreference $DebugPreference -ScriptBlock { + param($Features, $DebugPreference) + $sync.ProcessRunning = $true + if ($Features.count -eq 1) { + $sync.form.Dispatcher.Invoke([action]{ Set-WinUtilTaskbaritem -state "Indeterminate" -value 0.01 -overlay "logo" }) + } else { + $sync.form.Dispatcher.Invoke([action]{ Set-WinUtilTaskbaritem -state "Normal" -value 0.01 -overlay "logo" }) + } + + Invoke-WinUtilFeatureInstall $Features + + $sync.ProcessRunning = $false + $sync.form.Dispatcher.Invoke([action]{ Set-WinUtilTaskbaritem -state "None" -overlay "checkmark" }) + + Write-Host "===================================" + Write-Host "--- Features are Installed ---" + Write-Host "--- A Reboot may be required ---" + Write-Host "===================================" + } +} + +``` + + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/feature.json) + diff --git a/docs/dev/features/Features/RegBackup.md b/docs/dev/features/Features/RegBackup.md new file mode 100644 index 0000000000..4b81bb9e83 --- /dev/null +++ b/docs/dev/features/Features/RegBackup.md @@ -0,0 +1,61 @@ +# Enable Daily Registry Backup Task 12.30am + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** +## Description + +Enables daily registry backup, previously disabled by Microsoft in Windows 10 1803. + + + + + +
+Preview Code + +```json +{ + "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", + "Order": "a017_", + "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://christitustech.github.io/winutil/dev/features/Features/RegBackup" +} +``` + +
+ +## Invoke Script + +```powershell + + 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' + + +``` + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/feature.json) + diff --git a/docs/dev/features/Features/Sandbox.md b/docs/dev/features/Features/Sandbox.md new file mode 100644 index 0000000000..bd10ee8294 --- /dev/null +++ b/docs/dev/features/Features/Sandbox.md @@ -0,0 +1,39 @@ +# Windows Sandbox + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** +## Description + +Windows Sandbox is a lightweight virtual machine that provides a temporary desktop environment to safely run applications and programs in isolation. + + + + + +
+Preview Code + +```json +{ + "Content": "Windows Sandbox", + "category": "Features", + "panel": "1", + "Order": "a021_", + "Description": "Windows Sandbox is a lightweight virtual machine that provides a temporary desktop environment to safely run applications and programs in isolation.", + "link": "https://christitustech.github.io/winutil/dev/features/Features/Sandbox" +} +``` + +
+ + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/feature.json) + diff --git a/docs/dev/features/Features/dotnet.md b/docs/dev/features/Features/dotnet.md new file mode 100644 index 0000000000..b6f8526bb6 --- /dev/null +++ b/docs/dev/features/Features/dotnet.md @@ -0,0 +1,56 @@ +# All .Net Framework (2,3,4) + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** +## Description + +.NET and .NET Framework is a developer platform made up of tools, programming languages, and libraries for building many different types of applications. + + + + + +
+Preview Code + +```json +{ + "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", + "Order": "a010_", + "feature": [ + "NetFx4-AdvSrvs", + "NetFx3" + ], + "InvokeScript": [], + "link": "https://christitustech.github.io/winutil/dev/features/Features/dotnet" +} +``` + +
+ +## Features + + +Optional Windows Features are additional functionalities or components in the Windows operating system that users can choose to enable or disable based on their specific needs and preferences. + + +You can find information about Optional Windows Features on [Microsoft's Website for Optional Features](https://learn.microsoft.com/en-us/windows/client-management/client-tools/add-remove-hide-features?pivots=windows-11). + +### Features to install +- NetFx4-AdvSrvs +- NetFx3 + + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/feature.json) + diff --git a/docs/dev/features/Features/hyperv.md b/docs/dev/features/Features/hyperv.md new file mode 100644 index 0000000000..e1b77463c7 --- /dev/null +++ b/docs/dev/features/Features/hyperv.md @@ -0,0 +1,76 @@ +# HyperV Virtualization + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** +## Description + +Hyper-V is a hardware virtualization product developed by Microsoft that allows users to create and manage virtual machines. + + + + + +
+Preview Code + +```json +{ + "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", + "Order": "a011_", + "feature": [ + "HypervisorPlatform", + "Microsoft-Hyper-V-All", + "Microsoft-Hyper-V", + "Microsoft-Hyper-V-Tools-All", + "Microsoft-Hyper-V-Management-PowerShell", + "Microsoft-Hyper-V-Hypervisor", + "Microsoft-Hyper-V-Services", + "Microsoft-Hyper-V-Management-Clients" + ], + "InvokeScript": [ + "Start-Process -FilePath cmd.exe -ArgumentList '/c bcdedit /set hypervisorschedulertype classic' -Wait" + ], + "link": "https://christitustech.github.io/winutil/dev/features/Features/hyperv" +} +``` + +
+ +## Features + + +Optional Windows Features are additional functionalities or components in the Windows operating system that users can choose to enable or disable based on their specific needs and preferences. + + +You can find information about Optional Windows Features on [Microsoft's Website for Optional Features](https://learn.microsoft.com/en-us/windows/client-management/client-tools/add-remove-hide-features?pivots=windows-11). + +### Features to install +- HypervisorPlatform +- Microsoft-Hyper-V-All +- Microsoft-Hyper-V +- Microsoft-Hyper-V-Tools-All +- Microsoft-Hyper-V-Management-PowerShell +- Microsoft-Hyper-V-Hypervisor +- Microsoft-Hyper-V-Services +- Microsoft-Hyper-V-Management-Clients + +## Invoke Script + +```powershell +Start-Process -FilePath cmd.exe -ArgumentList '/c bcdedit /set hypervisorschedulertype classic' -Wait + +``` + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/feature.json) + diff --git a/docs/dev/features/Features/legacymedia.md b/docs/dev/features/Features/legacymedia.md new file mode 100644 index 0000000000..64bac661a7 --- /dev/null +++ b/docs/dev/features/Features/legacymedia.md @@ -0,0 +1,60 @@ +# Legacy Media (WMP, DirectPlay) + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** +## Description + +Enables legacy programs from previous versions of windows + + + + + +
+Preview Code + +```json +{ + "Content": "Legacy Media (WMP, DirectPlay)", + "Description": "Enables legacy programs from previous versions of windows", + "category": "Features", + "panel": "1", + "Order": "a012_", + "feature": [ + "WindowsMediaPlayer", + "MediaPlayback", + "DirectPlay", + "LegacyComponents" + ], + "InvokeScript": [], + "link": "https://christitustech.github.io/winutil/dev/features/Features/legacymedia" +} +``` + +
+ +## Features + + +Optional Windows Features are additional functionalities or components in the Windows operating system that users can choose to enable or disable based on their specific needs and preferences. + + +You can find information about Optional Windows Features on [Microsoft's Website for Optional Features](https://learn.microsoft.com/en-us/windows/client-management/client-tools/add-remove-hide-features?pivots=windows-11). + +### Features to install +- WindowsMediaPlayer +- MediaPlayback +- DirectPlay +- LegacyComponents + + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/feature.json) + diff --git a/docs/dev/features/Features/nfs.md b/docs/dev/features/Features/nfs.md new file mode 100644 index 0000000000..5c726a1f4d --- /dev/null +++ b/docs/dev/features/Features/nfs.md @@ -0,0 +1,74 @@ +# NFS - Network File System + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** +## Description + +Network File System (NFS) is a mechanism for storing files on a network. + + + + + +
+Preview Code + +```json +{ + "Content": "NFS - Network File System", + "Description": "Network File System (NFS) is a mechanism for storing files on a network.", + "category": "Features", + "panel": "1", + "Order": "a014_", + "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://christitustech.github.io/winutil/dev/features/Features/nfs" +} +``` + +
+ +## Features + + +Optional Windows Features are additional functionalities or components in the Windows operating system that users can choose to enable or disable based on their specific needs and preferences. + + +You can find information about Optional Windows Features on [Microsoft's Website for Optional Features](https://learn.microsoft.com/en-us/windows/client-management/client-tools/add-remove-hide-features?pivots=windows-11). + +### Features to install +- ServicesForNFS-ClientOnly +- ClientForNFS-Infrastructure +- NFS-Administration + +## Invoke Script + +```powershell +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 + +``` + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/feature.json) + diff --git a/docs/dev/features/Features/wsl.md b/docs/dev/features/Features/wsl.md new file mode 100644 index 0000000000..fbf15cc6ea --- /dev/null +++ b/docs/dev/features/Features/wsl.md @@ -0,0 +1,56 @@ +# Windows Subsystem for Linux + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** +## 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. + + + + + +
+Preview Code + +```json +{ + "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", + "Order": "a020_", + "feature": [ + "VirtualMachinePlatform", + "Microsoft-Windows-Subsystem-Linux" + ], + "InvokeScript": [], + "link": "https://christitustech.github.io/winutil/dev/features/Features/wsl" +} +``` + +
+ +## Features + + +Optional Windows Features are additional functionalities or components in the Windows operating system that users can choose to enable or disable based on their specific needs and preferences. + + +You can find information about Optional Windows Features on [Microsoft's Website for Optional Features](https://learn.microsoft.com/en-us/windows/client-management/client-tools/add-remove-hide-features?pivots=windows-11). + +### Features to install +- VirtualMachinePlatform +- Microsoft-Windows-Subsystem-Linux + + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/feature.json) + diff --git a/docs/dev/features/Fixes/Autologin.md b/docs/dev/features/Fixes/Autologin.md new file mode 100644 index 0000000000..ae269ab4d8 --- /dev/null +++ b/docs/dev/features/Fixes/Autologin.md @@ -0,0 +1,56 @@ +# Set Up Autologin + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** + + + + + + +
+Preview Code + +```json +{ + "Content": "Set Up Autologin", + "category": "Fixes", + "Order": "a040_", + "panel": "1", + "Type": "Button", + "ButtonWidth": "300", + "link": "https://christitustech.github.io/winutil/dev/features/Fixes/Autologin" +} +``` + +
+ +## Function: Invoke-WPFPanelAutologin + +```powershell +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 +} + +``` + + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/feature.json) + diff --git a/docs/dev/features/Fixes/DISM.md b/docs/dev/features/Fixes/DISM.md new file mode 100644 index 0000000000..b768796724 --- /dev/null +++ b/docs/dev/features/Fixes/DISM.md @@ -0,0 +1,74 @@ +# System Corruption Scan + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** + + + + + + +
+Preview Code + +```json +{ + "Content": "System Corruption Scan", + "category": "Fixes", + "panel": "1", + "Order": "a043_", + "Type": "Button", + "ButtonWidth": "300", + "link": "https://christitustech.github.io/winutil/dev/features/Fixes/DISM" +} +``` + +
+ +## Function: Invoke-WPFPanelDISM + +```powershell +function Invoke-WPFPanelDISM { + <# + + .SYNOPSIS + Checks for system corruption using Chkdsk, SFC, and DISM + + .DESCRIPTION + 1. Chkdsk - Fixes disk and filesystem corruption + 2. SFC Run 1 - Fixes system file corruption, and fixes DISM if it was corrupted + 3. DISM - Fixes system image corruption, and fixes SFC's system image if it was corrupted + 4. SFC Run 2 - Fixes system file corruption, this time with an almost guaranteed uncorrupted system image + + .NOTES + Command Arguments: + 1. Chkdsk + /Scan - Runs an online scan on the system drive, attempts to fix any corruption, and queues other corruption for fixing on reboot + 2. SFC + /ScanNow - Performs a scan of the system files and fixes any corruption + 3. DISM - Fixes system image corruption, and fixes SFC's system image if it was corrupted + /Online - Fixes the currently running system image + /Cleanup-Image - Performs cleanup operations on the image, could remove some unneeded temporary files + /Restorehealth - Performs a scan of the image and fixes any corruption + + #> + Start-Process PowerShell -ArgumentList "Write-Host '(1/4) Chkdsk' -ForegroundColor Green; Chkdsk /scan; + Write-Host '`n(2/4) SFC - 1st scan' -ForegroundColor Green; sfc /scannow; + Write-Host '`n(3/4) DISM' -ForegroundColor Green; DISM /Online /Cleanup-Image /Restorehealth; + Write-Host '`n(4/4) SFC - 2nd scan' -ForegroundColor Green; sfc /scannow; + Read-Host '`nPress Enter to Continue'" -verb runas +} + +``` + + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/feature.json) + diff --git a/docs/dev/features/Fixes/Network.md b/docs/dev/features/Fixes/Network.md new file mode 100644 index 0000000000..2f5dc47fd4 --- /dev/null +++ b/docs/dev/features/Fixes/Network.md @@ -0,0 +1,73 @@ +# Reset Network + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** + + + + + + +
+Preview Code + +```json +{ + "Content": "Reset Network", + "category": "Fixes", + "Order": "a042_", + "panel": "1", + "Type": "Button", + "ButtonWidth": "300", + "link": "https://christitustech.github.io/winutil/dev/features/Fixes/Network" +} +``` + +
+ +## Function: Invoke-WPFFixesNetwork + +```powershell +function Invoke-WPFFixesNetwork { + <# + + .SYNOPSIS + Resets various network configurations + + #> + + Write-Host "Resetting Network with netsh" + + # Reset WinSock catalog to a clean state + Start-Process -NoNewWindow -FilePath "netsh" -ArgumentList "winsock", "reset" + # Resets WinHTTP proxy setting to DIRECT + Start-Process -NoNewWindow -FilePath "netsh" -ArgumentList "winhttp", "reset", "proxy" + # Removes all user configured IP settings + Start-Process -NoNewWindow -FilePath "netsh" -ArgumentList "int", "ip", "reset" + + 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 "==========================================" +} + +``` + + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/feature.json) + diff --git a/docs/dev/features/Fixes/RunAdobeCCCleanerTool.md b/docs/dev/features/Fixes/RunAdobeCCCleanerTool.md new file mode 100644 index 0000000000..7707736ee5 --- /dev/null +++ b/docs/dev/features/Fixes/RunAdobeCCCleanerTool.md @@ -0,0 +1,76 @@ +# Remove Adobe Creative Cloud + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** + + + + + + +
+Preview Code + +```json +{ + "Content": "Remove Adobe Creative Cloud", + "category": "Fixes", + "panel": "1", + "Order": "a045_", + "Type": "Button", + "ButtonWidth": "300", + "link": "https://christitustech.github.io/winutil/dev/features/Fixes/RunAdobeCCCleanerTool" +} +``` + +
+ +## Function: Invoke-WPFRunAdobeCCCleanerTool + +```powershell +function Invoke-WPFRunAdobeCCCleanerTool { + <# + .SYNOPSIS + It removes or fixes problem files and resolves permission issues in registry keys. + .DESCRIPTION + The Creative Cloud Cleaner tool is a utility for experienced users to clean up corrupted installations. + #> + + [string]$url="https://swupmf.adobe.com/webfeed/CleanerTool/win/AdobeCreativeCloudCleanerTool.exe" + + Write-Host "The Adobe Creative Cloud Cleaner tool is hosted at" + Write-Host "$url" + + try { + # Don't show the progress because it will slow down the download speed + $ProgressPreference='SilentlyContinue' + + Invoke-WebRequest -Uri $url -OutFile "$env:TEMP\AdobeCreativeCloudCleanerTool.exe" -UseBasicParsing -ErrorAction SilentlyContinue -Verbose + + # Revert back the ProgressPreference variable to the default value since we got the file desired + $ProgressPreference='Continue' + + Start-Process -FilePath "$env:TEMP\AdobeCreativeCloudCleanerTool.exe" -Wait -ErrorAction SilentlyContinue -Verbose + } catch { + Write-Error $_.Exception.Message + } finally { + if (Test-Path -Path "$env:TEMP\AdobeCreativeCloudCleanerTool.exe") { + Write-Host "Cleaning up..." + Remove-Item -Path "$env:TEMP\AdobeCreativeCloudCleanerTool.exe" -Verbose + } + } +} + +``` + + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/feature.json) + diff --git a/docs/dev/features/Fixes/Update.md b/docs/dev/features/Fixes/Update.md new file mode 100644 index 0000000000..027829fd6b --- /dev/null +++ b/docs/dev/features/Fixes/Update.md @@ -0,0 +1,336 @@ +# Reset Windows Update + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** + + + + + + +
+Preview Code + +```json +{ + "Content": "Reset Windows Update", + "category": "Fixes", + "panel": "1", + "Order": "a041_", + "Type": "Button", + "ButtonWidth": "300", + "link": "https://christitustech.github.io/winutil/dev/features/Fixes/Update" +} +``` + +
+ +## Function: Invoke-WPFFixesUpdate + +```powershell +function Invoke-WPFFixesUpdate { + + <# + + .SYNOPSIS + Performs various tasks in an attempt to repair Windows Update + + .DESCRIPTION + 1. (Aggressive Only) Scans the system for corruption using chkdsk, SFC, and DISM + Steps: + 1. Runs chkdsk /scan /perf + /scan - Runs an online scan on the volume + /perf - Uses more system resources to complete a scan as fast as possible + 2. Runs SFC /scannow + /scannow - Scans integrity of all protected system files and repairs files with problems when possible + 3. Runs DISM /Online /Cleanup-Image /RestoreHealth + /Online - Targets the running operating system + /Cleanup-Image - Performs cleanup and recovery operations on the image + /RestoreHealth - Scans the image for component store corruption and attempts to repair the corruption using Windows Update + 4. Runs SFC /scannow + Ran twice in case DISM repaired SFC + 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 + # Wait for the first progress bar to show, otherwise the second one won't show + Start-Sleep -Milliseconds 200 + + if ($Aggressive) { + # Scan system for corruption + Write-Progress -Id 0 -Activity "Repairing Windows Update" -Status "Scanning for corruption..." -PercentComplete 0 + Write-Progress -Id 1 -ParentId 0 -Activity "Scanning for corruption" -Status "Running chkdsk..." -PercentComplete 0 + # 2>&1 redirects stdout, alowing iteration over the output + chkdsk.exe /scan /perf 2>&1 | ForEach-Object { + # Write stdout to the Verbose stream + Write-Verbose $_ + + # Get the index of the total percentage + $index = $_.IndexOf("Total:") + if ( + # If the percent is found + ($percent = try {( + $_.Substring( + $index + 6, + $_.IndexOf("%", $index) - $index - 6 + ) + ).Trim()} catch {0}) ` + <# And the current percentage is greater than the previous one #>` + -and $percent -gt $oldpercent + ) { + # Update the progress bar + $oldpercent = $percent + Write-Progress -Id 1 -ParentId 0 -Activity "Scanning for corruption" -Status "Running chkdsk... ($percent%)" -PercentComplete $percent + } + } + + Write-Progress -Id 1 -ParentId 0 -Activity "Scanning for corruption" -Status "Running SFC..." -PercentComplete 0 + $oldpercent = 0 + # SFC has a bug when redirected which causes it to output only when the stdout buffer is full, causing the progress bar to move in chunks + sfc /scannow 2>&1 | ForEach-Object { + # Write stdout to the Verbose stream + Write-Verbose $_ + + # Filter for lines that contain a percentage that is greater than the previous one + if ( + ( + # Use a different method to get the percentage that accounts for SFC's Unicode output + [int]$percent = try {( + ( + $_.Substring( + $_.IndexOf("n") + 2, + $_.IndexOf("%") - $_.IndexOf("n") - 2 + ).ToCharArray() | Where-Object {$_} + ) -join '' + ).TrimStart()} catch {0} + ) -and $percent -gt $oldpercent + ) { + # Update the progress bar + $oldpercent = $percent + Write-Progress -Id 1 -ParentId 0 -Activity "Scanning for corruption" -Status "Running SFC... ($percent%)" -PercentComplete $percent + } + } + + Write-Progress -Id 1 -ParentId 0 -Activity "Scanning for corruption" -Status "Running DISM..." -PercentComplete 0 + $oldpercent = 0 + DISM /Online /Cleanup-Image /RestoreHealth | ForEach-Object { + # Write stdout to the Verbose stream + Write-Verbose $_ + + # Filter for lines that contain a percentage that is greater than the previous one + if ( + ($percent = try { + [int]($_ -replace "\[" -replace "=" -replace " " -replace "%" -replace "\]") + } catch {0}) ` + -and $percent -gt $oldpercent + ) { + # Update the progress bar + $oldpercent = $percent + Write-Progress -Id 1 -ParentId 0 -Activity "Scanning for corruption" -Status "Running DISM... ($percent%)" -PercentComplete $percent + } + } + + Write-Progress -Id 1 -ParentId 0 -Activity "Scanning for corruption" -Status "Running SFC again..." -PercentComplete 0 + $oldpercent = 0 + sfc /scannow 2>&1 | ForEach-Object { + # Write stdout to the Verbose stream + Write-Verbose $_ + + # Filter for lines that contain a percentage that is greater than the previous one + if ( + ( + [int]$percent = try {( + ( + $_.Substring( + $_.IndexOf("n") + 2, + $_.IndexOf("%") - $_.IndexOf("n") - 2 + ).ToCharArray() | Where-Object {$_} + ) -join '' + ).TrimStart()} catch {0} + ) -and $percent -gt $oldpercent + ) { + # Update the progress bar + $oldpercent = $percent + Write-Progress -Id 1 -ParentId 0 -Activity "Scanning for corruption" -Status "Running SFC... ($percent%)" -PercentComplete $percent + } + } + Write-Progress -Id 1 -ParentId 0 -Activity "Scanning for corruption" -Status "Completed" -PercentComplete 100 + } + + + 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)" + 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)" + 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 $true + Start-Process -NoNewWindow -FilePath "REG" -ArgumentList "DELETE", "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate", "/v", "PingID", "/f" -RedirectStandardError $true + Start-Process -NoNewWindow -FilePath "REG" -ArgumentList "DELETE", "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate", "/v", "SusClientId", "/f" -RedirectStandardError $true + Write-Progress -Id 6 -ParentId 0 -Activity "Removing WSUS client 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" -RedirectStandardOutput $true + Start-Process -NoNewWindow -FilePath "netsh" -ArgumentList "winhttp", "reset", "proxy" -RedirectStandardOutput $true + Start-Process -NoNewWindow -FilePath "netsh" -ArgumentList "int", "ip", "reset" -RedirectStandardOutput $true + 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 + (New-Object -ComObject Microsoft.Update.AutoUpdate).DetectNow() + 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 + + $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 WSUS client 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 +} + +``` + + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/feature.json) + diff --git a/docs/dev/features/Fixes/Winget.md b/docs/dev/features/Fixes/Winget.md new file mode 100644 index 0000000000..730b243e53 --- /dev/null +++ b/docs/dev/features/Fixes/Winget.md @@ -0,0 +1,58 @@ +# WinGet Reinstall + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** + + + + + + +
+Preview Code + +```json +{ + "Content": "WinGet Reinstall", + "category": "Fixes", + "panel": "1", + "Order": "a044_", + "Type": "Button", + "ButtonWidth": "300", + "link": "https://christitustech.github.io/winutil/dev/features/Fixes/Winget" +} +``` + +
+ +## Function: Invoke-WPFFixesWinget + +```powershell +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 + Install-WinUtilChoco + Start-Process -FilePath "choco" -ArgumentList "install winget -y --force" -NoNewWindow -Wait + +} + +``` + + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/feature.json) + diff --git a/docs/dev/features/Legacy-Windows-Panels/control.md b/docs/dev/features/Legacy-Windows-Panels/control.md new file mode 100644 index 0000000000..ca0a38af06 --- /dev/null +++ b/docs/dev/features/Legacy-Windows-Panels/control.md @@ -0,0 +1,65 @@ +# Control Panel + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** + + + + + + +
+Preview Code + +```json +{ + "Content": "Control Panel", + "category": "Legacy Windows Panels", + "panel": "2", + "Type": "Button", + "ButtonWidth": "300", + "link": "https://christitustech.github.io/winutil/dev/features/Legacy-Windows-Panels/control" +} +``` + +
+ +## Function: Invoke-WPFControlPanel + +```powershell +function Invoke-WPFControlPanel { + <# + + .SYNOPSIS + Opens the requested legacy panel + + .PARAMETER Panel + The panel to open + + #> + param($Panel) + + switch ($Panel) { + "WPFPanelcontrol" {cmd /c control} + "WPFPanelnetwork" {cmd /c ncpa.cpl} + "WPFPanelpower" {cmd /c powercfg.cpl} + "WPFPanelregion" {cmd /c intl.cpl} + "WPFPanelsound" {cmd /c mmsys.cpl} + "WPFPanelsystem" {cmd /c sysdm.cpl} + "WPFPaneluser" {cmd /c "control userpasswords2"} + } +} + +``` + + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/feature.json) + diff --git a/docs/dev/features/Legacy-Windows-Panels/network.md b/docs/dev/features/Legacy-Windows-Panels/network.md new file mode 100644 index 0000000000..edc6809998 --- /dev/null +++ b/docs/dev/features/Legacy-Windows-Panels/network.md @@ -0,0 +1,65 @@ +# Network Connections + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** + + + + + + +
+Preview Code + +```json +{ + "Content": "Network Connections", + "category": "Legacy Windows Panels", + "panel": "2", + "Type": "Button", + "ButtonWidth": "300", + "link": "https://christitustech.github.io/winutil/dev/features/Legacy-Windows-Panels/network" +} +``` + +
+ +## Function: Invoke-WPFControlPanel + +```powershell +function Invoke-WPFControlPanel { + <# + + .SYNOPSIS + Opens the requested legacy panel + + .PARAMETER Panel + The panel to open + + #> + param($Panel) + + switch ($Panel) { + "WPFPanelcontrol" {cmd /c control} + "WPFPanelnetwork" {cmd /c ncpa.cpl} + "WPFPanelpower" {cmd /c powercfg.cpl} + "WPFPanelregion" {cmd /c intl.cpl} + "WPFPanelsound" {cmd /c mmsys.cpl} + "WPFPanelsystem" {cmd /c sysdm.cpl} + "WPFPaneluser" {cmd /c "control userpasswords2"} + } +} + +``` + + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/feature.json) + diff --git a/docs/dev/features/Legacy-Windows-Panels/power.md b/docs/dev/features/Legacy-Windows-Panels/power.md new file mode 100644 index 0000000000..6d0d042321 --- /dev/null +++ b/docs/dev/features/Legacy-Windows-Panels/power.md @@ -0,0 +1,65 @@ +# Power Panel + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** + + + + + + +
+Preview Code + +```json +{ + "Content": "Power Panel", + "category": "Legacy Windows Panels", + "panel": "2", + "Type": "Button", + "ButtonWidth": "300", + "link": "https://christitustech.github.io/winutil/dev/features/Legacy-Windows-Panels/power" +} +``` + +
+ +## Function: Invoke-WPFControlPanel + +```powershell +function Invoke-WPFControlPanel { + <# + + .SYNOPSIS + Opens the requested legacy panel + + .PARAMETER Panel + The panel to open + + #> + param($Panel) + + switch ($Panel) { + "WPFPanelcontrol" {cmd /c control} + "WPFPanelnetwork" {cmd /c ncpa.cpl} + "WPFPanelpower" {cmd /c powercfg.cpl} + "WPFPanelregion" {cmd /c intl.cpl} + "WPFPanelsound" {cmd /c mmsys.cpl} + "WPFPanelsystem" {cmd /c sysdm.cpl} + "WPFPaneluser" {cmd /c "control userpasswords2"} + } +} + +``` + + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/feature.json) + diff --git a/docs/dev/features/Legacy-Windows-Panels/region.md b/docs/dev/features/Legacy-Windows-Panels/region.md new file mode 100644 index 0000000000..49430caab2 --- /dev/null +++ b/docs/dev/features/Legacy-Windows-Panels/region.md @@ -0,0 +1,65 @@ +# Region + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** + + + + + + +
+Preview Code + +```json +{ + "Content": "Region", + "category": "Legacy Windows Panels", + "panel": "2", + "Type": "Button", + "ButtonWidth": "300", + "link": "https://christitustech.github.io/winutil/dev/features/Legacy-Windows-Panels/region" +} +``` + +
+ +## Function: Invoke-WPFControlPanel + +```powershell +function Invoke-WPFControlPanel { + <# + + .SYNOPSIS + Opens the requested legacy panel + + .PARAMETER Panel + The panel to open + + #> + param($Panel) + + switch ($Panel) { + "WPFPanelcontrol" {cmd /c control} + "WPFPanelnetwork" {cmd /c ncpa.cpl} + "WPFPanelpower" {cmd /c powercfg.cpl} + "WPFPanelregion" {cmd /c intl.cpl} + "WPFPanelsound" {cmd /c mmsys.cpl} + "WPFPanelsystem" {cmd /c sysdm.cpl} + "WPFPaneluser" {cmd /c "control userpasswords2"} + } +} + +``` + + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/feature.json) + diff --git a/docs/dev/features/Legacy-Windows-Panels/sound.md b/docs/dev/features/Legacy-Windows-Panels/sound.md new file mode 100644 index 0000000000..be2c61ac79 --- /dev/null +++ b/docs/dev/features/Legacy-Windows-Panels/sound.md @@ -0,0 +1,65 @@ +# Sound Settings + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** + + + + + + +
+Preview Code + +```json +{ + "Content": "Sound Settings", + "category": "Legacy Windows Panels", + "panel": "2", + "Type": "Button", + "ButtonWidth": "300", + "link": "https://christitustech.github.io/winutil/dev/features/Legacy-Windows-Panels/sound" +} +``` + +
+ +## Function: Invoke-WPFControlPanel + +```powershell +function Invoke-WPFControlPanel { + <# + + .SYNOPSIS + Opens the requested legacy panel + + .PARAMETER Panel + The panel to open + + #> + param($Panel) + + switch ($Panel) { + "WPFPanelcontrol" {cmd /c control} + "WPFPanelnetwork" {cmd /c ncpa.cpl} + "WPFPanelpower" {cmd /c powercfg.cpl} + "WPFPanelregion" {cmd /c intl.cpl} + "WPFPanelsound" {cmd /c mmsys.cpl} + "WPFPanelsystem" {cmd /c sysdm.cpl} + "WPFPaneluser" {cmd /c "control userpasswords2"} + } +} + +``` + + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/feature.json) + diff --git a/docs/dev/features/Legacy-Windows-Panels/system.md b/docs/dev/features/Legacy-Windows-Panels/system.md new file mode 100644 index 0000000000..b8ee8987ac --- /dev/null +++ b/docs/dev/features/Legacy-Windows-Panels/system.md @@ -0,0 +1,65 @@ +# System Properties + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** + + + + + + +
+Preview Code + +```json +{ + "Content": "System Properties", + "category": "Legacy Windows Panels", + "panel": "2", + "Type": "Button", + "ButtonWidth": "300", + "link": "https://christitustech.github.io/winutil/dev/features/Legacy-Windows-Panels/system" +} +``` + +
+ +## Function: Invoke-WPFControlPanel + +```powershell +function Invoke-WPFControlPanel { + <# + + .SYNOPSIS + Opens the requested legacy panel + + .PARAMETER Panel + The panel to open + + #> + param($Panel) + + switch ($Panel) { + "WPFPanelcontrol" {cmd /c control} + "WPFPanelnetwork" {cmd /c ncpa.cpl} + "WPFPanelpower" {cmd /c powercfg.cpl} + "WPFPanelregion" {cmd /c intl.cpl} + "WPFPanelsound" {cmd /c mmsys.cpl} + "WPFPanelsystem" {cmd /c sysdm.cpl} + "WPFPaneluser" {cmd /c "control userpasswords2"} + } +} + +``` + + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/feature.json) + diff --git a/docs/dev/features/Legacy-Windows-Panels/user.md b/docs/dev/features/Legacy-Windows-Panels/user.md new file mode 100644 index 0000000000..b2cfa975aa --- /dev/null +++ b/docs/dev/features/Legacy-Windows-Panels/user.md @@ -0,0 +1,65 @@ +# User Accounts + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** + + + + + + +
+Preview Code + +```json +{ + "Content": "User Accounts", + "category": "Legacy Windows Panels", + "panel": "2", + "Type": "Button", + "ButtonWidth": "300", + "link": "https://christitustech.github.io/winutil/dev/features/Legacy-Windows-Panels/user" +} +``` + +
+ +## Function: Invoke-WPFControlPanel + +```powershell +function Invoke-WPFControlPanel { + <# + + .SYNOPSIS + Opens the requested legacy panel + + .PARAMETER Panel + The panel to open + + #> + param($Panel) + + switch ($Panel) { + "WPFPanelcontrol" {cmd /c control} + "WPFPanelnetwork" {cmd /c ncpa.cpl} + "WPFPanelpower" {cmd /c powercfg.cpl} + "WPFPanelregion" {cmd /c intl.cpl} + "WPFPanelsound" {cmd /c mmsys.cpl} + "WPFPanelsystem" {cmd /c sysdm.cpl} + "WPFPaneluser" {cmd /c "control userpasswords2"} + } +} + +``` + + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/feature.json) + diff --git a/docs/dev/tweaks/Customize-Preferences/BingSearch.md b/docs/dev/tweaks/Customize-Preferences/BingSearch.md new file mode 100644 index 0000000000..570390f0cb --- /dev/null +++ b/docs/dev/tweaks/Customize-Preferences/BingSearch.md @@ -0,0 +1,76 @@ +# Bing Search in Start Menu + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** +## Description + +If enable then includes web search results from Bing in your Start Menu search. + + + + + +
+Preview Code + +```json +{ + "Content": "Bing Search in Start Menu", + "Description": "If enable then includes web search results from Bing in your Start Menu search.", + "category": "Customize Preferences", + "panel": "2", + "Order": "a101_", + "Type": "Toggle", + "link": "https://christitustech.github.io/winutil/dev/tweaks/Customize-Preferences/BingSearch" +} +``` + +
+ +## Function: Invoke-WinUtilBingSearch + +```powershell +function Invoke-WinUtilBingSearch { + <# + + .SYNOPSIS + Disables/Enables Bing Search + + .PARAMETER Enabled + Indicates whether to enable or disable Bing Search + + #> + Param($Enabled) + try { + if ($Enabled -eq $false) { + Write-Host "Enabling Bing Search" + $value = 1 + } else { + Write-Host "Disabling Bing Search" + $value = 0 + } + $Path = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Search" + Set-ItemProperty -Path $Path -Name BingSearchEnabled -Value $value + } 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 { + Write-Warning "Unable to set $Name due to unhandled exception" + Write-Warning $psitem.Exception.StackTrace + } +} + +``` + + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/tweaks.json) + diff --git a/docs/dev/tweaks/Customize-Preferences/DarkMode.md b/docs/dev/tweaks/Customize-Preferences/DarkMode.md new file mode 100644 index 0000000000..8a88f7691a --- /dev/null +++ b/docs/dev/tweaks/Customize-Preferences/DarkMode.md @@ -0,0 +1,78 @@ +# Dark Theme for Windows + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** +## Description + +Enable/Disable Dark Mode. + + + + + +
+Preview Code + +```json +{ + "Content": "Dark Theme for Windows", + "Description": "Enable/Disable Dark Mode.", + "category": "Customize Preferences", + "panel": "2", + "Order": "a100_", + "Type": "Toggle", + "link": "https://christitustech.github.io/winutil/dev/tweaks/Customize-Preferences/DarkMode" +} +``` + +
+ +## Function: Invoke-WinUtilDarkMode + +```powershell +Function Invoke-WinUtilDarkMode { + <# + + .SYNOPSIS + Enables/Disables Dark Mode + + .PARAMETER DarkMoveEnabled + Indicates the current dark mode state + + #> + Param($DarkMoveEnabled) + try { + if ($DarkMoveEnabled -eq $false) { + Write-Host "Enabling Dark Mode" + $DarkMoveValue = 0 + } else { + Write-Host "Disabling Dark Mode" + $DarkMoveValue = 1 + } + + $Path = "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize" + Set-ItemProperty -Path $Path -Name AppsUseLightTheme -Value $DarkMoveValue + Set-ItemProperty -Path $Path -Name SystemUsesLightTheme -Value $DarkMoveValue + } 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 { + Write-Warning "Unable to set $Name due to unhandled exception" + Write-Warning $psitem.Exception.StackTrace + } +} + +``` + + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/tweaks.json) + diff --git a/docs/dev/tweaks/Customize-Preferences/DetailedBSoD.md b/docs/dev/tweaks/Customize-Preferences/DetailedBSoD.md new file mode 100644 index 0000000000..fe75f06d94 --- /dev/null +++ b/docs/dev/tweaks/Customize-Preferences/DetailedBSoD.md @@ -0,0 +1,76 @@ +# Detailed BSoD + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** +## Description + +If Enabled then you will see a detailed Blue Screen of Death (BSOD) with more information. + + + + + +
+Preview Code + +```json +{ + "Content": "Detailed BSoD", + "Description": "If Enabled then you will see a detailed Blue Screen of Death (BSOD) with more information.", + "category": "Customize Preferences", + "panel": "2", + "Order": "a205_", + "Type": "Toggle", + "link": "https://christitustech.github.io/winutil/dev/tweaks/Customize-Preferences/DetailedBSoD" +} +``` + +
+ +## Function: Invoke-WinUtilDetailedBSoD + +```powershell +Function Invoke-WinUtilDetailedBSoD { + <# + + .SYNOPSIS + Enables/Disables Detailed BSoD + (Get-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\CrashControl' -Name 'DisplayParameters').DisplayParameters + + + #> + Param($Enabled) + try { + if ($Enabled -eq $false) { + Write-Host "Enabling Detailed BSoD" + $value = 1 + } else { + Write-Host "Disabling Detailed BSoD" + $value =0 + } + + $Path = "HKLM:\SYSTEM\CurrentControlSet\Control\CrashControl" + Set-ItemProperty -Path $Path -Name DisplayParameters -Value $value + } 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 { + Write-Warning "Unable to set $Name due to unhandled exception" + Write-Warning $psitem.Exception.StackTrace + } +} + +``` + + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/tweaks.json) + diff --git a/docs/dev/tweaks/Customize-Preferences/HiddenFiles.md b/docs/dev/tweaks/Customize-Preferences/HiddenFiles.md new file mode 100644 index 0000000000..4d90b31129 --- /dev/null +++ b/docs/dev/tweaks/Customize-Preferences/HiddenFiles.md @@ -0,0 +1,76 @@ +# Show Hidden Files + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** +## Description + +If Enabled then Hidden Files will be shown. + + + + + +
+Preview Code + +```json +{ + "Content": "Show Hidden Files", + "Description": "If Enabled then Hidden Files will be shown.", + "category": "Customize Preferences", + "panel": "2", + "Order": "a200_", + "Type": "Toggle", + "link": "https://christitustech.github.io/winutil/dev/tweaks/Customize-Preferences/HiddenFiles" +} +``` + +
+ +## Function: Invoke-WinUtilHiddenFiles + +```powershell +function Invoke-WinUtilHiddenFiles { + <# + + .SYNOPSIS + Enable/Disable Hidden Files + + .PARAMETER Enabled + Indicates whether to enable or disable Hidden Files + + #> + Param($Enabled) + try { + if ($Enabled -eq $false) { + Write-Host "Enabling Hidden Files" + $value = 1 + } else { + Write-Host "Disabling Hidden Files" + $value = 0 + } + $Path = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" + Set-ItemProperty -Path $Path -Name Hidden -Value $value + } 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 { + Write-Warning "Unable to set $Name due to unhandled exception" + Write-Warning $psitem.Exception.StackTrace + } +} + +``` + + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/tweaks.json) + diff --git a/docs/dev/tweaks/Customize-Preferences/MouseAcceleration.md b/docs/dev/tweaks/Customize-Preferences/MouseAcceleration.md new file mode 100644 index 0000000000..83d6aff72f --- /dev/null +++ b/docs/dev/tweaks/Customize-Preferences/MouseAcceleration.md @@ -0,0 +1,84 @@ +# Mouse Acceleration + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** +## Description + +If Enabled then Cursor movement is affected by the speed of your physical mouse movements. + + + + + +
+Preview Code + +```json +{ + "Content": "Mouse Acceleration", + "Description": "If Enabled then Cursor movement is affected by the speed of your physical mouse movements.", + "category": "Customize Preferences", + "panel": "2", + "Order": "a107_", + "Type": "Toggle", + "link": "https://christitustech.github.io/winutil/dev/tweaks/Customize-Preferences/MouseAcceleration" +} +``` + +
+ +## Function: Invoke-WinUtilMouseAcceleration + +```powershell +Function Invoke-WinUtilMouseAcceleration { + <# + + .SYNOPSIS + Enables/Disables Mouse Acceleration + + .PARAMETER DarkMoveEnabled + Indicates the current Mouse Acceleration State + + #> + Param($MouseAccelerationEnabled) + try { + if ($MouseAccelerationEnabled -eq $false) { + Write-Host "Enabling Mouse Acceleration" + $MouseSpeed = 1 + $MouseThreshold1 = 6 + $MouseThreshold2 = 10 + } else { + Write-Host "Disabling Mouse Acceleration" + $MouseSpeed = 0 + $MouseThreshold1 = 0 + $MouseThreshold2 = 0 + + } + + $Path = "HKCU:\Control Panel\Mouse" + Set-ItemProperty -Path $Path -Name MouseSpeed -Value $MouseSpeed + Set-ItemProperty -Path $Path -Name MouseThreshold1 -Value $MouseThreshold1 + Set-ItemProperty -Path $Path -Name MouseThreshold2 -Value $MouseThreshold2 + } 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 { + Write-Warning "Unable to set $Name due to unhandled exception" + Write-Warning $psitem.Exception.StackTrace + } +} + +``` + + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/tweaks.json) + diff --git a/docs/dev/tweaks/Customize-Preferences/NumLock.md b/docs/dev/tweaks/Customize-Preferences/NumLock.md new file mode 100644 index 0000000000..00fc099060 --- /dev/null +++ b/docs/dev/tweaks/Customize-Preferences/NumLock.md @@ -0,0 +1,77 @@ +# NumLock on Startup + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** +## Description + +Toggle the Num Lock key state when your computer starts. + + + + + +
+Preview Code + +```json +{ + "Content": "NumLock on Startup", + "Description": "Toggle the Num Lock key state when your computer starts.", + "category": "Customize Preferences", + "panel": "2", + "Order": "a102_", + "Type": "Toggle", + "link": "https://christitustech.github.io/winutil/dev/tweaks/Customize-Preferences/NumLock" +} +``` + +
+ +## Function: Invoke-WinUtilNumLock + +```powershell +function Invoke-WinUtilNumLock { + <# + .SYNOPSIS + Disables/Enables NumLock on startup + .PARAMETER Enabled + Indicates whether to enable or disable Numlock on startup + #> + Param($Enabled) + try { + if ($Enabled -eq $false) { + Write-Host "Enabling Numlock on startup" + $value = 2 + } else { + Write-Host "Disabling Numlock on startup" + $value = 0 + } + New-PSDrive -PSProvider Registry -Name HKU -Root HKEY_USERS + $HKUPath = "HKU:\.Default\Control Panel\Keyboard" + $HKCUPath = "HKCU:\Control Panel\Keyboard" + Set-ItemProperty -Path $HKUPath -Name InitialKeyboardIndicators -Value $value + Set-ItemProperty -Path $HKCUPath -Name InitialKeyboardIndicators -Value $value + } + 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 { + Write-Warning "Unable to set $Name due to unhandled exception" + Write-Warning $psitem.Exception.StackTrace + } +} + +``` + + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/tweaks.json) + diff --git a/docs/dev/tweaks/Customize-Preferences/ShowExt.md b/docs/dev/tweaks/Customize-Preferences/ShowExt.md new file mode 100644 index 0000000000..9913035f09 --- /dev/null +++ b/docs/dev/tweaks/Customize-Preferences/ShowExt.md @@ -0,0 +1,73 @@ +# Show File Extensions + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** +## Description + +If enabled then File extensions (e.g., .txt, .jpg) are visible. + + + + + +
+Preview Code + +```json +{ + "Content": "Show File Extensions", + "Description": "If enabled then File extensions (e.g., .txt, .jpg) are visible.", + "category": "Customize Preferences", + "panel": "2", + "Order": "a201_", + "Type": "Toggle", + "link": "https://christitustech.github.io/winutil/dev/tweaks/Customize-Preferences/ShowExt" +} +``` + +
+ +## Function: Invoke-WinUtilShowExt + +```powershell +function Invoke-WinUtilShowExt { + <# + .SYNOPSIS + Disables/Enables Show file Extentions + .PARAMETER Enabled + Indicates whether to enable or disable Show file extentions + #> + Param($Enabled) + try { + if ($Enabled -eq $false) { + Write-Host "Showing file extentions" + $value = 0 + } else { + Write-Host "hiding file extensions" + $value = 1 + } + $Path = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" + Set-ItemProperty -Path $Path -Name HideFileExt -Value $value + } 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 { + Write-Warning "Unable to set $Name due to unhandled exception" + Write-Warning $psitem.Exception.StackTrace + } +} + +``` + + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/tweaks.json) + diff --git a/docs/dev/tweaks/Customize-Preferences/SnapFlyout.md b/docs/dev/tweaks/Customize-Preferences/SnapFlyout.md new file mode 100644 index 0000000000..9d6373225e --- /dev/null +++ b/docs/dev/tweaks/Customize-Preferences/SnapFlyout.md @@ -0,0 +1,76 @@ +# Snap Assist Flyout + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** +## Description + +If enabled then Snap preview is disabled when maximize button is hovered. + + + + + +
+Preview Code + +```json +{ + "Content": "Snap Assist Flyout", + "Description": "If enabled then Snap preview is disabled when maximize button is hovered.", + "category": "Customize Preferences", + "panel": "2", + "Order": "a105_", + "Type": "Toggle", + "link": "https://christitustech.github.io/winutil/dev/tweaks/Customize-Preferences/SnapFlyout" +} +``` + +
+ +## Function: Invoke-WinUtilSnapFlyout + +```powershell +function Invoke-WinUtilSnapFlyout { + <# + .SYNOPSIS + Disables/Enables Snap Assist Flyout on startup + .PARAMETER Enabled + Indicates whether to enable or disable Snap Assist Flyout on startup + #> + Param($Enabled) + try { + if ($Enabled -eq $false) { + Write-Host "Enabling Snap Assist Flyout On startup" + $value = 1 + } else { + Write-Host "Disabling Snap Assist Flyout On startup" + $value = 0 + } + # taskkill.exe /F /IM "explorer.exe" + $Path = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" + taskkill.exe /F /IM "explorer.exe" + Set-ItemProperty -Path $Path -Name EnableSnapAssistFlyout -Value $value + Start-Process "explorer.exe" + } 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 { + Write-Warning "Unable to set $Name due to unhandled exception" + Write-Warning $psitem.Exception.StackTrace + } +} + +``` + + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/tweaks.json) + diff --git a/docs/dev/tweaks/Customize-Preferences/SnapSuggestion.md b/docs/dev/tweaks/Customize-Preferences/SnapSuggestion.md new file mode 100644 index 0000000000..3e725d5724 --- /dev/null +++ b/docs/dev/tweaks/Customize-Preferences/SnapSuggestion.md @@ -0,0 +1,76 @@ +# Snap Assist Suggestion + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** +## Description + +If enabled then you will get suggestions to snap other applications in the left over spaces. + + + + + +
+Preview Code + +```json +{ + "Content": "Snap Assist Suggestion", + "Description": "If enabled then you will get suggestions to snap other applications in the left over spaces.", + "category": "Customize Preferences", + "panel": "2", + "Order": "a106_", + "Type": "Toggle", + "link": "https://christitustech.github.io/winutil/dev/tweaks/Customize-Preferences/SnapSuggestion" +} +``` + +
+ +## Function: Invoke-WinUtilSnapSuggestion + +```powershell +function Invoke-WinUtilSnapSuggestion { + <# + .SYNOPSIS + Disables/Enables Snap Assist Suggestions on startup + .PARAMETER Enabled + Indicates whether to enable or disable Snap Assist Suggestions on startup + #> + Param($Enabled) + try { + if ($Enabled -eq $false) { + Write-Host "Enabling Snap Assist Suggestion On startup" + $value = 1 + } else { + Write-Host "Disabling Snap Assist Suggestion On startup" + $value = 0 + } + # taskkill.exe /F /IM "explorer.exe" + $Path = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" + taskkill.exe /F /IM "explorer.exe" + Set-ItemProperty -Path $Path -Name SnapAssist -Value $value + Start-Process "explorer.exe" + } 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 { + Write-Warning "Unable to set $Name due to unhandled exception" + Write-Warning $psitem.Exception.StackTrace + } +} + +``` + + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/tweaks.json) + diff --git a/docs/dev/tweaks/Customize-Preferences/SnapWindow.md b/docs/dev/tweaks/Customize-Preferences/SnapWindow.md new file mode 100644 index 0000000000..7192a8586b --- /dev/null +++ b/docs/dev/tweaks/Customize-Preferences/SnapWindow.md @@ -0,0 +1,73 @@ +# Snap Window + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** +## Description + +If enabled you can align windows by dragging them. | Relogin Required + + + + + +
+Preview Code + +```json +{ + "Content": "Snap Window", + "Description": "If enabled you can align windows by dragging them. | Relogin Required", + "category": "Customize Preferences", + "panel": "2", + "Order": "a104_", + "Type": "Toggle", + "link": "https://christitustech.github.io/winutil/dev/tweaks/Customize-Preferences/SnapWindow" +} +``` + +
+ +## Function: Invoke-WinUtilSnapWindow + +```powershell +function Invoke-WinUtilSnapWindow { + <# + .SYNOPSIS + Disables/Enables Snapping Windows on startup + .PARAMETER Enabled + Indicates whether to enable or disable Snapping Windows on startup + #> + Param($Enabled) + try { + if ($Enabled -eq $false) { + Write-Host "Enabling Snap Windows On startup | Relogin Required" + $value = 1 + } else { + Write-Host "Disabling Snap Windows On startup | Relogin Required" + $value = 0 + } + $Path = "HKCU:\Control Panel\Desktop" + Set-ItemProperty -Path $Path -Name WindowArrangementActive -Value $value + } 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 { + Write-Warning "Unable to set $Name due to unhandled exception" + Write-Warning $psitem.Exception.StackTrace + } +} + +``` + + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/tweaks.json) + diff --git a/docs/dev/tweaks/Customize-Preferences/StickyKeys.md b/docs/dev/tweaks/Customize-Preferences/StickyKeys.md new file mode 100644 index 0000000000..e2213ee84d --- /dev/null +++ b/docs/dev/tweaks/Customize-Preferences/StickyKeys.md @@ -0,0 +1,73 @@ +# Sticky Keys + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** +## Description + +If Enabled then 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. + + + + + +
+Preview Code + +```json +{ + "Content": "Sticky Keys", + "Description": "If Enabled then 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", + "Order": "a108_", + "Type": "Toggle", + "link": "https://christitustech.github.io/winutil/dev/tweaks/Customize-Preferences/StickyKeys" +} +``` + +
+ +## Function: Invoke-WinUtilStickyKeys + +```powershell +Function Invoke-WinUtilStickyKeys { + <# + .SYNOPSIS + Disables/Enables Sticky Keyss on startup + .PARAMETER Enabled + Indicates whether to enable or disable Sticky Keys on startup + #> + Param($Enabled) + try { + if ($Enabled -eq $false) { + Write-Host "Enabling Sticky Keys On startup" + $value = 510 + } else { + Write-Host "Disabling Sticky Keys On startup" + $value = 58 + } + $Path = "HKCU:\Control Panel\Accessibility\StickyKeys" + Set-ItemProperty -Path $Path -Name Flags -Value $value + } 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 { + Write-Warning "Unable to set $Name due to unhandled exception" + Write-Warning $psitem.Exception.StackTrace + } +} + +``` + + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/tweaks.json) + diff --git a/docs/dev/tweaks/Customize-Preferences/TaskView.md b/docs/dev/tweaks/Customize-Preferences/TaskView.md new file mode 100644 index 0000000000..4161a0f9b3 --- /dev/null +++ b/docs/dev/tweaks/Customize-Preferences/TaskView.md @@ -0,0 +1,76 @@ +# Task View Button in Taskbar + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** +## Description + +If Enabled then Task View Button in Taskbar will be shown. + + + + + +
+Preview Code + +```json +{ + "Content": "Task View Button in Taskbar", + "Description": "If Enabled then Task View Button in Taskbar will be shown.", + "category": "Customize Preferences", + "panel": "2", + "Order": "a203_", + "Type": "Toggle", + "link": "https://christitustech.github.io/winutil/dev/tweaks/Customize-Preferences/TaskView" +} +``` + +
+ +## Function: Invoke-WinUtilTaskView + +```powershell +function Invoke-WinUtilTaskView { + <# + + .SYNOPSIS + Enable/Disable Task View + + .PARAMETER Enabled + Indicates whether to enable or disable Task View + + #> + Param($Enabled) + try { + if ($Enabled -eq $false) { + Write-Host "Enabling Task View" + $value = 1 + } else { + Write-Host "Disabling Task View" + $value = 0 + } + $Path = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" + Set-ItemProperty -Path $Path -Name ShowTaskViewButton -Value $value + } 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 { + Write-Warning "Unable to set $Name due to unhandled exception" + Write-Warning $psitem.Exception.StackTrace + } +} + +``` + + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/tweaks.json) + diff --git a/docs/dev/tweaks/Customize-Preferences/TaskbarAlignment.md b/docs/dev/tweaks/Customize-Preferences/TaskbarAlignment.md new file mode 100644 index 0000000000..3a4d299503 --- /dev/null +++ b/docs/dev/tweaks/Customize-Preferences/TaskbarAlignment.md @@ -0,0 +1,76 @@ +# Center Taskbar Items + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** +## Description + +[Windows 11] If Enabled then the Taskbar Items will be shown on the Center, otherwise the Taskbar Items will be shown on the Left. + + + + + +
+Preview Code + +```json +{ + "Content": "Center Taskbar Items", + "Description": "[Windows 11] If Enabled then the Taskbar Items will be shown on the Center, otherwise the Taskbar Items will be shown on the Left.", + "category": "Customize Preferences", + "panel": "2", + "Order": "a204_", + "Type": "Toggle", + "link": "https://christitustech.github.io/winutil/dev/tweaks/Customize-Preferences/TaskbarAlignment" +} +``` + +
+ +## Function: Invoke-WinUtilTaskbarAlignment + +```powershell +function Invoke-WinUtilTaskbarAlignment { + <# + + .SYNOPSIS + Switches between Center & Left Taskbar Alignment + + .PARAMETER Enabled + Indicates whether to make Taskbar Alignment Center or Left + + #> + Param($Enabled) + try { + if ($Enabled -eq $false) { + Write-Host "Making Taskbar Alignment to the Center" + $value = 1 + } else { + Write-Host "Making Taskbar Alignment to the Left" + $value = 0 + } + $Path = "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" + Set-ItemProperty -Path $Path -Name "TaskbarAl" -Value $value + } 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 { + Write-Warning "Unable to set $Name due to unhandled exception" + Write-Warning $psitem.Exception.StackTrace + } +} + +``` + + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/tweaks.json) + diff --git a/docs/dev/tweaks/Customize-Preferences/TaskbarSearch.md b/docs/dev/tweaks/Customize-Preferences/TaskbarSearch.md new file mode 100644 index 0000000000..fc0d27e8ed --- /dev/null +++ b/docs/dev/tweaks/Customize-Preferences/TaskbarSearch.md @@ -0,0 +1,76 @@ +# Search Button in Taskbar + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** +## Description + +If Enabled Search Button will be on the taskbar. + + + + + +
+Preview Code + +```json +{ + "Content": "Search Button in Taskbar", + "Description": "If Enabled Search Button will be on the taskbar.", + "category": "Customize Preferences", + "panel": "2", + "Order": "a202_", + "Type": "Toggle", + "link": "https://christitustech.github.io/winutil/dev/tweaks/Customize-Preferences/TaskbarSearch" +} +``` + +
+ +## Function: Invoke-WinUtilTaskbarSearch + +```powershell +function Invoke-WinUtilTaskbarSearch { + <# + + .SYNOPSIS + Enable/Disable Taskbar Search Button. + + .PARAMETER Enabled + Indicates whether to enable or disable Taskbar Search Button. + + #> + Param($Enabled) + try { + if ($Enabled -eq $false) { + Write-Host "Enabling Search Button" + $value = 1 + } else { + Write-Host "Disabling Search Button" + $value = 0 + } + $Path = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Search\" + Set-ItemProperty -Path $Path -Name SearchboxTaskbarMode -Value $value + } 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 { + Write-Warning "Unable to set $Name due to unhandled exception" + Write-Warning $psitem.Exception.StackTrace + } +} + +``` + + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/tweaks.json) + diff --git a/docs/dev/tweaks/Customize-Preferences/TaskbarWidgets.md b/docs/dev/tweaks/Customize-Preferences/TaskbarWidgets.md new file mode 100644 index 0000000000..739afe7b66 --- /dev/null +++ b/docs/dev/tweaks/Customize-Preferences/TaskbarWidgets.md @@ -0,0 +1,76 @@ +# Widgets Button in Taskbar + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** +## Description + +If Enabled then Widgets Button in Taskbar will be shown. + + + + + +
+Preview Code + +```json +{ + "Content": "Widgets Button in Taskbar", + "Description": "If Enabled then Widgets Button in Taskbar will be shown.", + "category": "Customize Preferences", + "panel": "2", + "Order": "a204_", + "Type": "Toggle", + "link": "https://christitustech.github.io/winutil/dev/tweaks/Customize-Preferences/TaskbarWidgets" +} +``` + +
+ +## Function: Invoke-WinUtilTaskbarWidgets + +```powershell +function Invoke-WinUtilTaskbarWidgets { + <# + + .SYNOPSIS + Enable/Disable Taskbar Widgets + + .PARAMETER Enabled + Indicates whether to enable or disable Taskbar Widgets + + #> + Param($Enabled) + try { + if ($Enabled -eq $false) { + Write-Host "Enabling Taskbar Widgets" + $value = 1 + } else { + Write-Host "Disabling Taskbar Widgets" + $value = 0 + } + $Path = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" + Set-ItemProperty -Path $Path -Name TaskbarDa -Value $value + } 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 { + Write-Warning "Unable to set $Name due to unhandled exception" + Write-Warning $psitem.Exception.StackTrace + } +} + +``` + + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/tweaks.json) + diff --git a/docs/dev/tweaks/Customize-Preferences/VerboseLogon.md b/docs/dev/tweaks/Customize-Preferences/VerboseLogon.md new file mode 100644 index 0000000000..44bf183a27 --- /dev/null +++ b/docs/dev/tweaks/Customize-Preferences/VerboseLogon.md @@ -0,0 +1,73 @@ +# Verbose Messages During Logon + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** +## Description + +Show detailed messages during the login process for troubleshooting and diagnostics. + + + + + +
+Preview Code + +```json +{ + "Content": "Verbose Messages During Logon", + "Description": "Show detailed messages during the login process for troubleshooting and diagnostics.", + "category": "Customize Preferences", + "panel": "2", + "Order": "a103_", + "Type": "Toggle", + "link": "https://christitustech.github.io/winutil/dev/tweaks/Customize-Preferences/VerboseLogon" +} +``` + +
+ +## Function: Invoke-WinUtilVerboseLogon + +```powershell +function Invoke-WinUtilVerboseLogon { + <# + .SYNOPSIS + Disables/Enables VerboseLogon Messages + .PARAMETER Enabled + Indicates whether to enable or disable VerboseLogon messages + #> + Param($Enabled) + try { + if ($Enabled -eq $false) { + Write-Host "Enabling Verbose Logon Messages" + $value = 1 + } else { + Write-Host "Disabling Verbose Logon Messages" + $value = 0 + } + $Path = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" + Set-ItemProperty -Path $Path -Name VerboseStatus -Value $value + } 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 { + Write-Warning "Unable to set $Name due to unhandled exception" + Write-Warning $psitem.Exception.StackTrace + } +} + +``` + + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/tweaks.json) + diff --git a/docs/dev/tweaks/Essential-Tweaks/AH.md b/docs/dev/tweaks/Essential-Tweaks/AH.md new file mode 100644 index 0000000000..eae8dfdfc5 --- /dev/null +++ b/docs/dev/tweaks/Essential-Tweaks/AH.md @@ -0,0 +1,93 @@ +# Disable Activity History + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** +## Description + +This erases recent docs, clipboard, and run history. + + + + + +
+Preview Code + +```json +{ + "Content": "Disable Activity History", + "Description": "This erases recent docs, clipboard, and run history.", + "category": "Essential Tweaks", + "panel": "1", + "Order": "a005_", + "registry": [ + { + "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\System", + "Name": "EnableActivityFeed", + "Type": "DWord", + "Value": "0", + "OriginalValue": "1" + }, + { + "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\System", + "Name": "PublishUserActivities", + "Type": "DWord", + "Value": "0", + "OriginalValue": "1" + }, + { + "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\System", + "Name": "UploadUserActivities", + "Type": "DWord", + "Value": "0", + "OriginalValue": "1" + } + ], + "link": "https://christitustech.github.io/winutil/dev/tweaks/Essential-Tweaks/AH" +} +``` + +
+ +## 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). + +### Registry Key: EnableActivityFeed + +**Type:** DWord + +**Original Value:** 1 + +**New Value:** 0 + +### Registry Key: PublishUserActivities + +**Type:** DWord + +**Original Value:** 1 + +**New Value:** 0 + +### Registry Key: UploadUserActivities + +**Type:** DWord + +**Original Value:** 1 + +**New Value:** 0 + + + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/tweaks.json) + diff --git a/docs/dev/tweaks/Essential-Tweaks/ConsumerFeatures.md b/docs/dev/tweaks/Essential-Tweaks/ConsumerFeatures.md new file mode 100644 index 0000000000..19f5f7ee92 --- /dev/null +++ b/docs/dev/tweaks/Essential-Tweaks/ConsumerFeatures.md @@ -0,0 +1,63 @@ +# Disable ConsumerFeatures + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** +## Description + +Windows 10 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) + + + + + +
+Preview Code + +```json +{ + "Content": "Disable ConsumerFeatures", + "Description": "Windows 10 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", + "Order": "a003_", + "registry": [ + { + "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\CloudContent", + "OriginalValue": "0", + "Name": "DisableWindowsConsumerFeatures", + "Value": "1", + "Type": "DWord" + } + ], + "link": "https://christitustech.github.io/winutil/dev/tweaks/Essential-Tweaks/ConsumerFeatures" +} +``` + +
+ +## 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). + +### Registry Key: DisableWindowsConsumerFeatures + +**Type:** DWord + +**Original Value:** 0 + +**New Value:** 1 + + + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/tweaks.json) + diff --git a/docs/dev/tweaks/Essential-Tweaks/DVR.md b/docs/dev/tweaks/Essential-Tweaks/DVR.md new file mode 100644 index 0000000000..7d909f6122 --- /dev/null +++ b/docs/dev/tweaks/Essential-Tweaks/DVR.md @@ -0,0 +1,123 @@ +# Disable GameDVR + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** +## Description + +GameDVR is a Windows App that is a dependency for some Store Games. I've never met someone that likes it, but it's there for the XBOX crowd. + + + + + +
+Preview Code + +```json +{ + "Content": "Disable GameDVR", + "Description": "GameDVR is a Windows App that is a dependency for some Store Games. I've never met someone that likes it, but it's there for the XBOX crowd.", + "category": "Essential Tweaks", + "panel": "1", + "Order": "a005_", + "registry": [ + { + "Path": "HKCU:\\System\\GameConfigStore", + "Name": "GameDVR_FSEBehavior", + "Value": "2", + "OriginalValue": "1", + "Type": "DWord" + }, + { + "Path": "HKCU:\\System\\GameConfigStore", + "Name": "GameDVR_Enabled", + "Value": "0", + "OriginalValue": "1", + "Type": "DWord" + }, + { + "Path": "HKCU:\\System\\GameConfigStore", + "Name": "GameDVR_HonorUserFSEBehaviorMode", + "Value": "1", + "OriginalValue": "0", + "Type": "DWord" + }, + { + "Path": "HKCU:\\System\\GameConfigStore", + "Name": "GameDVR_EFSEFeatureFlags", + "Value": "0", + "OriginalValue": "1", + "Type": "DWord" + }, + { + "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\GameDVR", + "Name": "AllowGameDVR", + "Value": "0", + "OriginalValue": "1", + "Type": "DWord" + } + ], + "link": "https://christitustech.github.io/winutil/dev/tweaks/Essential-Tweaks/DVR" +} +``` + +
+ +## 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). + +### Registry Key: GameDVR_FSEBehavior + +**Type:** DWord + +**Original Value:** 1 + +**New Value:** 2 + +### Registry Key: GameDVR_Enabled + +**Type:** DWord + +**Original Value:** 1 + +**New Value:** 0 + +### Registry Key: GameDVR_HonorUserFSEBehaviorMode + +**Type:** DWord + +**Original Value:** 0 + +**New Value:** 1 + +### Registry Key: GameDVR_EFSEFeatureFlags + +**Type:** DWord + +**Original Value:** 1 + +**New Value:** 0 + +### Registry Key: AllowGameDVR + +**Type:** DWord + +**Original Value:** 1 + +**New Value:** 0 + + + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/tweaks.json) + diff --git a/docs/dev/tweaks/Essential-Tweaks/DeleteTempFiles.md b/docs/dev/tweaks/Essential-Tweaks/DeleteTempFiles.md new file mode 100644 index 0000000000..50e34e8f99 --- /dev/null +++ b/docs/dev/tweaks/Essential-Tweaks/DeleteTempFiles.md @@ -0,0 +1,50 @@ +# Delete Temporary Files + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** +## Description + +Erases TEMP Folders + + + + + +
+Preview Code + +```json +{ + "Content": "Delete Temporary Files", + "Description": "Erases TEMP Folders", + "category": "Essential Tweaks", + "panel": "1", + "Order": "a002_", + "InvokeScript": [ + "Get-ChildItem -Path \"C:\\Windows\\Temp\" *.* -Recurse | Remove-Item -Force -Recurse + Get-ChildItem -Path $env:TEMP *.* -Recurse | Remove-Item -Force -Recurse" + ], + "link": "https://christitustech.github.io/winutil/dev/tweaks/Essential-Tweaks/DeleteTempFiles" +} +``` + +
+ +## Invoke Script + +```powershell +Get-ChildItem -Path "C:\Windows\Temp" *.* -Recurse | Remove-Item -Force -Recurse + Get-ChildItem -Path $env:TEMP *.* -Recurse | Remove-Item -Force -Recurse + +``` + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/tweaks.json) + diff --git a/docs/dev/tweaks/Essential-Tweaks/DiskCleanup.md b/docs/dev/tweaks/Essential-Tweaks/DiskCleanup.md new file mode 100644 index 0000000000..769088826c --- /dev/null +++ b/docs/dev/tweaks/Essential-Tweaks/DiskCleanup.md @@ -0,0 +1,54 @@ +# Run Disk Cleanup + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** +## Description + +Runs Disk Cleanup on Drive C: and removes old Windows Updates. + + + + + +
+Preview Code + +```json +{ + "Content": "Run Disk Cleanup", + "Description": "Runs Disk Cleanup on Drive C: and removes old Windows Updates.", + "category": "Essential Tweaks", + "panel": "1", + "Order": "a009_", + "InvokeScript": [ + " + cleanmgr.exe /d C: /VERYLOWDISK + Dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase + " + ], + "link": "https://christitustech.github.io/winutil/dev/tweaks/Essential-Tweaks/DiskCleanup" +} +``` + +
+ +## Invoke Script + +```powershell + + cleanmgr.exe /d C: /VERYLOWDISK + Dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase + + +``` + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/tweaks.json) + diff --git a/docs/dev/tweaks/Essential-Tweaks/EdgeDebloat.md b/docs/dev/tweaks/Essential-Tweaks/EdgeDebloat.md new file mode 100644 index 0000000000..a9af5d7d4c --- /dev/null +++ b/docs/dev/tweaks/Essential-Tweaks/EdgeDebloat.md @@ -0,0 +1,363 @@ +# Debloat Edge + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** +## Description + +Disables various telemetry options, popups, and other annoyances in Edge. + + + + + +
+Preview Code + +```json +{ + "Content": "Debloat Edge", + "Description": "Disables various telemetry options, popups, and other annoyances in Edge.", + "category": "Essential Tweaks", + "panel": "1", + "Order": "a016_", + "registry": [ + { + "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\EdgeUpdate", + "Name": "CreateDesktopShortcutDefault", + "Type": "DWord", + "Value": "0", + "OriginalValue": "1" + }, + { + "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Edge", + "Name": "EdgeEnhanceImagesEnabled", + "Type": "DWord", + "Value": "0", + "OriginalValue": "1" + }, + { + "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Edge", + "Name": "PersonalizationReportingEnabled", + "Type": "DWord", + "Value": "0", + "OriginalValue": "1" + }, + { + "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Edge", + "Name": "ShowRecommendationsEnabled", + "Type": "DWord", + "Value": "0", + "OriginalValue": "1" + }, + { + "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Edge", + "Name": "HideFirstRunExperience", + "Type": "DWord", + "Value": "1", + "OriginalValue": "0" + }, + { + "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Edge", + "Name": "UserFeedbackAllowed", + "Type": "DWord", + "Value": "0", + "OriginalValue": "1" + }, + { + "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Edge", + "Name": "ConfigureDoNotTrack", + "Type": "DWord", + "Value": "1", + "OriginalValue": "0" + }, + { + "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Edge", + "Name": "AlternateErrorPagesEnabled", + "Type": "DWord", + "Value": "0", + "OriginalValue": "1" + }, + { + "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Edge", + "Name": "EdgeCollectionsEnabled", + "Type": "DWord", + "Value": "0", + "OriginalValue": "1" + }, + { + "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Edge", + "Name": "EdgeFollowEnabled", + "Type": "DWord", + "Value": "0", + "OriginalValue": "1" + }, + { + "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Edge", + "Name": "EdgeShoppingAssistantEnabled", + "Type": "DWord", + "Value": "0", + "OriginalValue": "1" + }, + { + "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Edge", + "Name": "MicrosoftEdgeInsiderPromotionEnabled", + "Type": "DWord", + "Value": "0", + "OriginalValue": "1" + }, + { + "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Edge", + "Name": "PersonalizationReportingEnabled", + "Type": "DWord", + "Value": "0", + "OriginalValue": "1" + }, + { + "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Edge", + "Name": "ShowMicrosoftRewards", + "Type": "DWord", + "Value": "0", + "OriginalValue": "1" + }, + { + "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Edge", + "Name": "WebWidgetAllowed", + "Type": "DWord", + "Value": "0", + "OriginalValue": "1" + }, + { + "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Edge", + "Name": "DiagnosticData", + "Type": "DWord", + "Value": "0", + "OriginalValue": "1" + }, + { + "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Edge", + "Name": "EdgeAssetDeliveryServiceEnabled", + "Type": "DWord", + "Value": "0", + "OriginalValue": "1" + }, + { + "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Edge", + "Name": "EdgeCollectionsEnabled", + "Type": "DWord", + "Value": "0", + "OriginalValue": "1" + }, + { + "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Edge", + "Name": "CryptoWalletEnabled", + "Type": "DWord", + "Value": "0", + "OriginalValue": "1" + }, + { + "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Edge", + "Name": "ConfigureDoNotTrack", + "Type": "DWord", + "Value": "1", + "OriginalValue": "0" + }, + { + "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Edge", + "Name": "WalletDonationEnabled", + "Type": "DWord", + "Value": "0", + "OriginalValue": "1" + } + ], + "link": "https://christitustech.github.io/winutil/dev/tweaks/Essential-Tweaks/EdgeDebloat" +} +``` + +
+ +## 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). + +### Registry Key: CreateDesktopShortcutDefault + +**Type:** DWord + +**Original Value:** 1 + +**New Value:** 0 + +### Registry Key: EdgeEnhanceImagesEnabled + +**Type:** DWord + +**Original Value:** 1 + +**New Value:** 0 + +### Registry Key: PersonalizationReportingEnabled + +**Type:** DWord + +**Original Value:** 1 + +**New Value:** 0 + +### Registry Key: ShowRecommendationsEnabled + +**Type:** DWord + +**Original Value:** 1 + +**New Value:** 0 + +### Registry Key: HideFirstRunExperience + +**Type:** DWord + +**Original Value:** 0 + +**New Value:** 1 + +### Registry Key: UserFeedbackAllowed + +**Type:** DWord + +**Original Value:** 1 + +**New Value:** 0 + +### Registry Key: ConfigureDoNotTrack + +**Type:** DWord + +**Original Value:** 0 + +**New Value:** 1 + +### Registry Key: AlternateErrorPagesEnabled + +**Type:** DWord + +**Original Value:** 1 + +**New Value:** 0 + +### Registry Key: EdgeCollectionsEnabled + +**Type:** DWord + +**Original Value:** 1 + +**New Value:** 0 + +### Registry Key: EdgeFollowEnabled + +**Type:** DWord + +**Original Value:** 1 + +**New Value:** 0 + +### Registry Key: EdgeShoppingAssistantEnabled + +**Type:** DWord + +**Original Value:** 1 + +**New Value:** 0 + +### Registry Key: MicrosoftEdgeInsiderPromotionEnabled + +**Type:** DWord + +**Original Value:** 1 + +**New Value:** 0 + +### Registry Key: PersonalizationReportingEnabled + +**Type:** DWord + +**Original Value:** 1 + +**New Value:** 0 + +### Registry Key: ShowMicrosoftRewards + +**Type:** DWord + +**Original Value:** 1 + +**New Value:** 0 + +### Registry Key: WebWidgetAllowed + +**Type:** DWord + +**Original Value:** 1 + +**New Value:** 0 + +### Registry Key: DiagnosticData + +**Type:** DWord + +**Original Value:** 1 + +**New Value:** 0 + +### Registry Key: EdgeAssetDeliveryServiceEnabled + +**Type:** DWord + +**Original Value:** 1 + +**New Value:** 0 + +### Registry Key: EdgeCollectionsEnabled + +**Type:** DWord + +**Original Value:** 1 + +**New Value:** 0 + +### Registry Key: CryptoWalletEnabled + +**Type:** DWord + +**Original Value:** 1 + +**New Value:** 0 + +### Registry Key: ConfigureDoNotTrack + +**Type:** DWord + +**Original Value:** 0 + +**New Value:** 1 + +### Registry Key: WalletDonationEnabled + +**Type:** DWord + +**Original Value:** 1 + +**New Value:** 0 + + + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/tweaks.json) + diff --git a/docs/dev/tweaks/Essential-Tweaks/EndTaskOnTaskbar.md b/docs/dev/tweaks/Essential-Tweaks/EndTaskOnTaskbar.md new file mode 100644 index 0000000000..de6192bc6d --- /dev/null +++ b/docs/dev/tweaks/Essential-Tweaks/EndTaskOnTaskbar.md @@ -0,0 +1,97 @@ +# Enable End Task With Right Click + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** +## Description + +Enables option to end task when right clicking a program in the taskbar + + + + + +
+Preview Code + +```json +{ + "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", + "Order": "a006_", + "InvokeScript": [ + "$path = \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced\\TaskbarDeveloperSettings\" + $name = \"TaskbarEndTask\" + $value = 1 + + # Ensure the registry key exists + if (-not (Test-Path $path)) { + New-Item -Path $path -Force | Out-Null + } + + # Set the property, creating it if it doesn't exist + New-ItemProperty -Path $path -Name $name -PropertyType DWord -Value $value -Force | Out-Null" + ], + "UndoScript": [ + "$path = \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced\\TaskbarDeveloperSettings\" + $name = \"TaskbarEndTask\" + $value = 0 + + # Ensure the registry key exists + if (-not (Test-Path $path)) { + New-Item -Path $path -Force | Out-Null + } + + # Set the property, creating it if it doesn't exist + New-ItemProperty -Path $path -Name $name -PropertyType DWord -Value $value -Force | Out-Null" + ], + "link": "https://christitustech.github.io/winutil/dev/tweaks/Essential-Tweaks/EndTaskOnTaskbar" +} +``` + +
+ +## Invoke Script + +```powershell +$path = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\TaskbarDeveloperSettings" + $name = "TaskbarEndTask" + $value = 1 + + # Ensure the registry key exists + if (-not (Test-Path $path)) { + New-Item -Path $path -Force | Out-Null + } + + # Set the property, creating it if it doesn't exist + New-ItemProperty -Path $path -Name $name -PropertyType DWord -Value $value -Force | Out-Null + +``` +## Undo Script + +```powershell +$path = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\TaskbarDeveloperSettings" + $name = "TaskbarEndTask" + $value = 0 + + # Ensure the registry key exists + if (-not (Test-Path $path)) { + New-Item -Path $path -Force | Out-Null + } + + # Set the property, creating it if it doesn't exist + New-ItemProperty -Path $path -Name $name -PropertyType DWord -Value $value -Force | Out-Null + +``` + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/tweaks.json) + diff --git a/docs/dev/tweaks/Essential-Tweaks/Hiber.md b/docs/dev/tweaks/Essential-Tweaks/Hiber.md new file mode 100644 index 0000000000..1fde36f358 --- /dev/null +++ b/docs/dev/tweaks/Essential-Tweaks/Hiber.md @@ -0,0 +1,96 @@ +# Disable Hibernation + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** +## 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, but some people are lazy and rely on it. Don't be like Bob. Bob likes hibernation. + + + + + +
+Preview Code + +```json +{ + "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, but some people are lazy and rely on it. Don't be like Bob. Bob likes hibernation.", + "category": "Essential Tweaks", + "panel": "1", + "Order": "a005_", + "registry": [ + { + "Path": "HKLM:\\System\\CurrentControlSet\\Control\\Session Manager\\Power", + "Name": "HibernateEnabled", + "Type": "DWord", + "Value": "0", + "OriginalValue": "1" + }, + { + "Path": "HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\FlyoutMenuSettings", + "Name": "ShowHibernateOption", + "Type": "DWord", + "Value": "0", + "OriginalValue": "1" + } + ], + "InvokeScript": [ + "powercfg.exe /hibernate off" + ], + "UndoScript": [ + "powercfg.exe /hibernate on" + ], + "link": "https://christitustech.github.io/winutil/dev/tweaks/Essential-Tweaks/Hiber" +} +``` + +
+ +## Invoke Script + +```powershell +powercfg.exe /hibernate off + +``` +## Undo Script + +```powershell +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). + +### Registry Key: HibernateEnabled + +**Type:** DWord + +**Original Value:** 1 + +**New Value:** 0 + +### Registry Key: ShowHibernateOption + +**Type:** DWord + +**Original Value:** 1 + +**New Value:** 0 + + + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/tweaks.json) + diff --git a/docs/dev/tweaks/Essential-Tweaks/Home.md b/docs/dev/tweaks/Essential-Tweaks/Home.md new file mode 100644 index 0000000000..b49fb13155 --- /dev/null +++ b/docs/dev/tweaks/Essential-Tweaks/Home.md @@ -0,0 +1,70 @@ +# Disable Homegroup + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** +## Description + +Disables HomeGroup - HomeGroup is a password-protected home networking service that lets you share your stuff with other PCs that are currently running and connected to your network. + + + + + +
+Preview Code + +```json +{ + "Content": "Disable Homegroup", + "Description": "Disables HomeGroup - HomeGroup is a password-protected home networking service that lets you share your stuff with other PCs that are currently running and connected to your network.", + "category": "Essential Tweaks", + "panel": "1", + "Order": "a005_", + "service": [ + { + "Name": "HomeGroupListener", + "StartupType": "Manual", + "OriginalType": "Automatic" + }, + { + "Name": "HomeGroupProvider", + "StartupType": "Manual", + "OriginalType": "Automatic" + } + ], + "link": "https://christitustech.github.io/winutil/dev/tweaks/Essential-Tweaks/Home" +} +``` + +
+ +## Service Changes + +Windows services are background processes for system functions or applications. Setting some to manual optimizes performance by starting them only when needed. + +You can find information about services on [Wikipedia](https://www.wikiwand.com/en/Windows_service) and [Microsoft's Website](https://learn.microsoft.com/en-us/dotnet/framework/windows-services/introduction-to-windows-service-applications). + +### Service Name: HomeGroupListener + +**Startup Type:** Manual + +**Original Type:** Automatic + +### Service Name: HomeGroupProvider + +**Startup Type:** Manual + +**Original Type:** Automatic + + + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/tweaks.json) + diff --git a/docs/dev/tweaks/Essential-Tweaks/LaptopHibernation.md b/docs/dev/tweaks/Essential-Tweaks/LaptopHibernation.md new file mode 100644 index 0000000000..cd1b6fa813 --- /dev/null +++ b/docs/dev/tweaks/Essential-Tweaks/LaptopHibernation.md @@ -0,0 +1,132 @@ +# Set Hibernation as default (good for laptops) + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** +## Description + +Most modern laptops have connected standby enabled which drains the battery, this sets hibernation as default which will not drain the battery. See issue https://github.com/ChrisTitusTech/winutil/issues/1399 + + + + + +
+Preview Code + +```json +{ + "Content": "Set Hibernation as default (good for laptops)", + "Description": "Most modern laptops have connected standby enabled which drains the battery, this sets hibernation as default which will not drain the battery. See issue https://github.com/ChrisTitusTech/winutil/issues/1399", + "category": "Essential Tweaks", + "panel": "1", + "Order": "a014_", + "registry": [ + { + "Path": "HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Power\\PowerSettings\\238C9FA8-0AAD-41ED-83F4-97BE242C8F20\\7bc4a2f9-d8fc-4469-b07b-33eb785aaca0", + "OriginalValue": "1", + "Name": "Attributes", + "Value": "2", + "Type": "DWord" + }, + { + "Path": "HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Power\\PowerSettings\\abfc2519-3608-4c2a-94ea-171b0ed546ab\\94ac6d29-73ce-41a6-809f-6363ba21b47e", + "OriginalValue": "0", + "Name": "Attributes ", + "Value": "2", + "Type": "DWord" + } + ], + "InvokeScript": [ + " + Write-Host \"Turn on Hibernation\" + Start-Process -FilePath powercfg -ArgumentList \"/hibernate on\" -NoNewWindow -Wait + + # Set hibernation as the default action + Start-Process -FilePath powercfg -ArgumentList \"/change standby-timeout-ac 60\" -NoNewWindow -Wait + Start-Process -FilePath powercfg -ArgumentList \"/change standby-timeout-dc 60\" -NoNewWindow -Wait + Start-Process -FilePath powercfg -ArgumentList \"/change monitor-timeout-ac 10\" -NoNewWindow -Wait + Start-Process -FilePath powercfg -ArgumentList \"/change monitor-timeout-dc 1\" -NoNewWindow -Wait + " + ], + "UndoScript": [ + " + Write-Host \"Turn off Hibernation\" + Start-Process -FilePath powercfg -ArgumentList \"/hibernate off\" -NoNewWindow -Wait + + # Set standby to detault values + Start-Process -FilePath powercfg -ArgumentList \"/change standby-timeout-ac 15\" -NoNewWindow -Wait + Start-Process -FilePath powercfg -ArgumentList \"/change standby-timeout-dc 15\" -NoNewWindow -Wait + Start-Process -FilePath powercfg -ArgumentList \"/change monitor-timeout-ac 15\" -NoNewWindow -Wait + Start-Process -FilePath powercfg -ArgumentList \"/change monitor-timeout-dc 15\" -NoNewWindow -Wait + " + ], + "link": "https://christitustech.github.io/winutil/dev/tweaks/Essential-Tweaks/LaptopHibernation" +} +``` + +
+ +## Invoke Script + +```powershell + + Write-Host "Turn on Hibernation" + Start-Process -FilePath powercfg -ArgumentList "/hibernate on" -NoNewWindow -Wait + + # Set hibernation as the default action + Start-Process -FilePath powercfg -ArgumentList "/change standby-timeout-ac 60" -NoNewWindow -Wait + Start-Process -FilePath powercfg -ArgumentList "/change standby-timeout-dc 60" -NoNewWindow -Wait + Start-Process -FilePath powercfg -ArgumentList "/change monitor-timeout-ac 10" -NoNewWindow -Wait + Start-Process -FilePath powercfg -ArgumentList "/change monitor-timeout-dc 1" -NoNewWindow -Wait + + +``` +## Undo Script + +```powershell + + Write-Host "Turn off Hibernation" + Start-Process -FilePath powercfg -ArgumentList "/hibernate off" -NoNewWindow -Wait + + # Set standby to detault values + Start-Process -FilePath powercfg -ArgumentList "/change standby-timeout-ac 15" -NoNewWindow -Wait + Start-Process -FilePath powercfg -ArgumentList "/change standby-timeout-dc 15" -NoNewWindow -Wait + Start-Process -FilePath powercfg -ArgumentList "/change monitor-timeout-ac 15" -NoNewWindow -Wait + Start-Process -FilePath powercfg -ArgumentList "/change monitor-timeout-dc 15" -NoNewWindow -Wait + + +``` +## 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). + +### Registry Key: Attributes + +**Type:** DWord + +**Original Value:** 1 + +**New Value:** 2 + +### Registry Key: Attributes + +**Type:** DWord + +**Original Value:** 0 + +**New Value:** 2 + + + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/tweaks.json) + diff --git a/docs/dev/tweaks/Essential-Tweaks/Loc.md b/docs/dev/tweaks/Essential-Tweaks/Loc.md new file mode 100644 index 0000000000..e4b9f426b8 --- /dev/null +++ b/docs/dev/tweaks/Essential-Tweaks/Loc.md @@ -0,0 +1,108 @@ +# Disable Location Tracking + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** +## Description + +Disables Location Tracking...DUH! + + + + + +
+Preview Code + +```json +{ + "Content": "Disable Location Tracking", + "Description": "Disables Location Tracking...DUH!", + "category": "Essential Tweaks", + "panel": "1", + "Order": "a005_", + "registry": [ + { + "Path": "HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\CapabilityAccessManager\\ConsentStore\\location", + "Name": "Value", + "Type": "String", + "Value": "Deny", + "OriginalValue": "Allow" + }, + { + "Path": "HKLM:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Sensor\\Overrides\\{BFA794E4-F964-4FDB-90F6-51056BFE4B44}", + "Name": "SensorPermissionState", + "Type": "DWord", + "Value": "0", + "OriginalValue": "1" + }, + { + "Path": "HKLM:\\SYSTEM\\CurrentControlSet\\Services\\lfsvc\\Service\\Configuration", + "Name": "Status", + "Type": "DWord", + "Value": "0", + "OriginalValue": "1" + }, + { + "Path": "HKLM:\\SYSTEM\\Maps", + "Name": "AutoUpdateEnabled", + "Type": "DWord", + "Value": "0", + "OriginalValue": "1" + } + ], + "link": "https://christitustech.github.io/winutil/dev/tweaks/Essential-Tweaks/Loc" +} +``` + +
+ +## 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). + +### Registry Key: Value + +**Type:** String + +**Original Value:** Allow + +**New Value:** Deny + +### Registry Key: SensorPermissionState + +**Type:** DWord + +**Original Value:** 1 + +**New Value:** 0 + +### Registry Key: Status + +**Type:** DWord + +**Original Value:** 1 + +**New Value:** 0 + +### Registry Key: AutoUpdateEnabled + +**Type:** DWord + +**Original Value:** 1 + +**New Value:** 0 + + + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/tweaks.json) + diff --git a/docs/dev/tweaks/Essential-Tweaks/Powershell7.md b/docs/dev/tweaks/Essential-Tweaks/Powershell7.md new file mode 100644 index 0000000000..0347448141 --- /dev/null +++ b/docs/dev/tweaks/Essential-Tweaks/Powershell7.md @@ -0,0 +1,416 @@ +# Change Windows Terminal default: PowerShell 5 -> PowerShell 7 + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** +## Description + +This will edit the config file of the Windows Terminal replacing PowerShell 5 with PowerShell 7 and installing PS7 if necessary + + + + + +
+Preview Code + +```json +{ + "Content": "Change Windows Terminal default: PowerShell 5 -> PowerShell 7", + "Description": "This will edit the config file of the Windows Terminal replacing PowerShell 5 with PowerShell 7 and installing PS7 if necessary", + "category": "Essential Tweaks", + "panel": "1", + "Order": "a009_", + "InvokeScript": [ + "Invoke-WPFTweakPS7 -action \"PS7\"" + ], + "UndoScript": [ + "Invoke-WPFTweakPS7 -action \"PS5\"" + ], + "link": "https://christitustech.github.io/winutil/dev/tweaks/Essential-Tweaks/Powershell7" +} +``` + +
+ +## Invoke Script + +```powershell +Invoke-WPFTweakPS7 -action "PS7" + +``` +## Undo Script + +```powershell +Invoke-WPFTweakPS7 -action "PS5" + +``` +## Function: Invoke-WPFTweakPS7 + +```powershell +function Invoke-WPFTweakPS7{ + <# + .SYNOPSIS + This will edit the config file of the Windows Terminal Replacing the Powershell 5 to Powershell 7 and install Powershell 7 if necessary + .PARAMETER action + PS7: Configures Powershell 7 to be the default Terminal + PS5: Configures Powershell 5 to be the default Terminal + #> + param ( + [ValidateSet("PS7", "PS5")] + [string]$action + ) + + switch ($action) { + "PS7"{ + if (Test-Path -Path "$env:ProgramFiles\PowerShell\7") { + Write-Host "Powershell 7 is already installed." + } else { + Write-Host "Installing Powershell 7..." + Invoke-WinUtilWingetProgram -Action Install -Programs @("Microsoft.PowerShell") + } + $targetTerminalName = "PowerShell" + } + "PS5"{ + $targetTerminalName = "Windows PowerShell" + } + } + # Check if the Windows Terminal is installed and return if not (Prerequisite for the following code) + if (-not (Get-Command "wt" -ErrorAction SilentlyContinue)) { + Write-Host "Windows Terminal not installed. Skipping Terminal preference" + return + } + # Check if the Windows Terminal settings.json file exists and return if not (Prereqisite for the following code) + $settingsPath = "$env:LOCALAPPDATA\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json" + if (-not (Test-Path -Path $settingsPath)) { + Write-Host "Windows Terminal Settings file not found at $settingsPath" + return + } + + Write-Host "Settings file found." + $settingsContent = Get-Content -Path $settingsPath | ConvertFrom-Json + $ps7Profile = $settingsContent.profiles.list | Where-Object { $_.name -eq $targetTerminalName } + if ($ps7Profile) { + $settingsContent.defaultProfile = $ps7Profile.guid + $updatedSettings = $settingsContent | ConvertTo-Json -Depth 100 + Set-Content -Path $settingsPath -Value $updatedSettings + Write-Host "Default profile updated to " -NoNewline + Write-Host "$targetTerminalName " -ForegroundColor White -NoNewline + Write-Host "using the name attribute." + } else { + Write-Host "No PowerShell 7 profile found in Windows Terminal settings using the name attribute." + } +} + +``` +## Function: Invoke-WinUtilWingetProgram + +```powershell +Function Invoke-WinUtilWingetProgram { + <# + .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 + + .PARAMETER scope + Determines the installation mode. Can be "user" or "machine" (For more info look at the winget documentation) + + .PARAMETER credential + The PSCredential Object of the user that should be used to run winget + + .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, + [string]$scope = "", + [PScredential]$credential = $null + ) + + $commonArguments = "--id $wingetId --silent" + $arguments = if ($Action -eq "Install") { + "install $commonArguments --accept-source-agreements --accept-package-agreements $(if ($scope) {" --scope $scope"})" + } else { + "uninstall $commonArguments" + } + + $processParams = @{ + FilePath = "winget" + ArgumentList = $arguments + Wait = $true + PassThru = $true + NoNewWindow = $true + } + + if ($credential) { + $processParams.credential = $credential + } + + 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 "Attempt installation of $($Program) with User scope" + $status = Invoke-Winget -wingetId $Program -scope "user" + if ($status -eq 0) { + Write-Host "$($Program) installed successfully with User scope." + return $true + } elseif ($status -eq -1978335189) { + Write-Host "$($Program) No applicable update found" + return $true + } + + $userChoice = [System.Windows.MessageBox]::Show("Do you want to attempt $($Program) installation with specific user credentials? Select 'Yes' to proceed or 'No' to skip.", "User credential Prompt", [System.Windows.MessageBoxButton]::YesNo) + if ($userChoice -eq 'Yes') { + $getcreds = Get-Credential + $status = Invoke-Winget -wingetId $Program -credential $getcreds + if ($status -eq 0) { + Write-Host "$($Program) installed successfully with User prompt." + return $true + } + } else { + Write-Host "Skipping installation with specific user credentials." + } + + 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 ( + [psobject]$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) + $sync.form.Dispatcher.Invoke([action]{ 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 +} + +``` +## Function: Set-WinUtilProgressbar + +```powershell +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 overlayed onto the Progress Bar + .PARAMETER PERCENT + The percentage of the Progress Bar that should be filled (0-100) + .PARAMETER Hide + If provided, the Progress Bar and the label will be hidden + #> + param( + [string]$Label, + [ValidateRange(0,100)] + [int]$Percent, + $Hide + ) + if ($hide) { + $sync.form.Dispatcher.Invoke([action]{$sync.ProgressBarLabel.Visibility = "Collapsed"}) + $sync.form.Dispatcher.Invoke([action]{$sync.ProgressBar.Visibility = "Collapsed"}) + } else { + $sync.form.Dispatcher.Invoke([action]{$sync.ProgressBarLabel.Visibility = "Visible"}) + $sync.form.Dispatcher.Invoke([action]{$sync.ProgressBar.Visibility = "Visible"}) + } + $sync.form.Dispatcher.Invoke([action]{$sync.ProgressBarLabel.Content.Text = $label}) + $sync.form.Dispatcher.Invoke([action]{$sync.ProgressBarLabel.Content.ToolTip = $label}) + $sync.form.Dispatcher.Invoke([action]{ $sync.ProgressBar.Value = $percent}) + +} + +``` +## Function: Set-WinUtilTaskbarItem + +```powershell +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 = "$env:LOCALAPPDATA\winutil\cttlogo.png" + } + 'checkmark' { + $sync["Form"].taskbarItemInfo.Overlay = "$env:LOCALAPPDATA\winutil\checkmark.png" + } + 'warning' { + $sync["Form"].taskbarItemInfo.Overlay = "$env:LOCALAPPDATA\winutil\warning.png" + } + 'None' { + $sync["Form"].taskbarItemInfo.Overlay = $null + } + default { + if (Test-Path $overlay) { + $sync["Form"].taskbarItemInfo.Overlay = $overlay + } + } + } + } + + if ($description) { + $sync["Form"].taskbarItemInfo.Description = $description + } +} + +``` + + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/tweaks.json) + diff --git a/docs/dev/tweaks/Essential-Tweaks/Powershell7Tele.md b/docs/dev/tweaks/Essential-Tweaks/Powershell7Tele.md new file mode 100644 index 0000000000..9da9af90b8 --- /dev/null +++ b/docs/dev/tweaks/Essential-Tweaks/Powershell7Tele.md @@ -0,0 +1,57 @@ +# Disable Powershell 7 Telemetry + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** +## Description + +This will create an Environment Variable called 'POWERSHELL_TELEMETRY_OPTOUT' with a value of '1' which will tell Powershell 7 to not send Telemetry Data. + + + + + +
+Preview Code + +```json +{ + "Content": "Disable Powershell 7 Telemetry", + "Description": "This will create 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", + "Order": "a009_", + "InvokeScript": [ + "[Environment]::SetEnvironmentVariable('POWERSHELL_TELEMETRY_OPTOUT', '1', 'Machine')" + ], + "UndoScript": [ + "[Environment]::SetEnvironmentVariable('POWERSHELL_TELEMETRY_OPTOUT', '', 'Machine')" + ], + "link": "https://christitustech.github.io/winutil/dev/tweaks/Essential-Tweaks/Powershell7Tele" +} +``` + +
+ +## Invoke Script + +```powershell +[Environment]::SetEnvironmentVariable('POWERSHELL_TELEMETRY_OPTOUT', '1', 'Machine') + +``` +## Undo Script + +```powershell +[Environment]::SetEnvironmentVariable('POWERSHELL_TELEMETRY_OPTOUT', '', 'Machine') + +``` + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/tweaks.json) + diff --git a/docs/dev/tweaks/Essential-Tweaks/RestorePoint.md b/docs/dev/tweaks/Essential-Tweaks/RestorePoint.md new file mode 100644 index 0000000000..0d1aaea857 --- /dev/null +++ b/docs/dev/tweaks/Essential-Tweaks/RestorePoint.md @@ -0,0 +1,139 @@ +# Create Restore Point + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** +## Description + +Creates a restore point at runtime in case a revert is needed from WinUtil modifications + + + + + +
+Preview Code + +```json +{ + "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", + "Order": "a001_", + "InvokeScript": [ + " + # Check if the user has administrative privileges + if (-Not ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) { + Write-Host \"Please run this script as an administrator.\" + return + } + + # Check if System Restore is enabled for the main drive + try { + # Try getting restore points to check if System Restore is enabled + Enable-ComputerRestore -Drive \"$env:SystemDrive\" + } catch { + Write-Host \"An error occurred while enabling System Restore: $_\" + } + + # Check if the SystemRestorePointCreationFrequency value exists + $exists = Get-ItemProperty -path \"HKLM:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\SystemRestore\" -Name \"SystemRestorePointCreationFrequency\" -ErrorAction SilentlyContinue + if($null -eq $exists) { + write-host 'Changing system to allow multiple restore points per day' + Set-ItemProperty -Path \"HKLM:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\SystemRestore\" -Name \"SystemRestorePointCreationFrequency\" -Value \"0\" -Type DWord -Force -ErrorAction Stop | Out-Null + } + + # Attempt to load the required module for Get-ComputerRestorePoint + try { + Import-Module Microsoft.PowerShell.Management -ErrorAction Stop + } catch { + Write-Host \"Failed to load the Microsoft.PowerShell.Management module: $_\" + return + } + + # Get all the restore points for the current day + try { + $existingRestorePoints = Get-ComputerRestorePoint | Where-Object { $_.CreationTime.Date -eq (Get-Date).Date } + } catch { + Write-Host \"Failed to retrieve restore points: $_\" + return + } + + # Check if there is already a restore point created today + if ($existingRestorePoints.Count -eq 0) { + $description = \"System Restore Point created by WinUtil\" + + Checkpoint-Computer -Description $description -RestorePointType \"MODIFY_SETTINGS\" + Write-Host -ForegroundColor Green \"System Restore Point Created Successfully\" + } + " + ], + "link": "https://christitustech.github.io/winutil/dev/tweaks/Essential-Tweaks/RestorePoint" +} +``` + +
+ +## Invoke Script + +```powershell + + # Check if the user has administrative privileges + if (-Not ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) { + Write-Host "Please run this script as an administrator." + return + } + + # Check if System Restore is enabled for the main drive + try { + # Try getting restore points to check if System Restore is enabled + Enable-ComputerRestore -Drive "$env:SystemDrive" + } catch { + Write-Host "An error occurred while enabling System Restore: $_" + } + + # Check if the SystemRestorePointCreationFrequency value exists + $exists = Get-ItemProperty -path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SystemRestore" -Name "SystemRestorePointCreationFrequency" -ErrorAction SilentlyContinue + if($null -eq $exists) { + write-host 'Changing system to allow multiple restore points per day' + Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SystemRestore" -Name "SystemRestorePointCreationFrequency" -Value "0" -Type DWord -Force -ErrorAction Stop | Out-Null + } + + # Attempt to load the required module for Get-ComputerRestorePoint + try { + Import-Module Microsoft.PowerShell.Management -ErrorAction Stop + } catch { + Write-Host "Failed to load the Microsoft.PowerShell.Management module: $_" + return + } + + # Get all the restore points for the current day + try { + $existingRestorePoints = Get-ComputerRestorePoint | Where-Object { $_.CreationTime.Date -eq (Get-Date).Date } + } catch { + Write-Host "Failed to retrieve restore points: $_" + return + } + + # Check if there is already a restore point created today + if ($existingRestorePoints.Count -eq 0) { + $description = "System Restore Point created by WinUtil" + + Checkpoint-Computer -Description $description -RestorePointType "MODIFY_SETTINGS" + Write-Host -ForegroundColor Green "System Restore Point Created Successfully" + } + + +``` + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/tweaks.json) + diff --git a/docs/dev/tweaks/Essential-Tweaks/Services.md b/docs/dev/tweaks/Essential-Tweaks/Services.md new file mode 100644 index 0000000000..d96f2ef24f --- /dev/null +++ b/docs/dev/tweaks/Essential-Tweaks/Services.md @@ -0,0 +1,3150 @@ +# Set Services to Manual + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** +## 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. + + + + + +
+Preview Code + +```json +{ + "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", + "Order": "a014_", + "service": [ + { + "Name": "AJRouter", + "StartupType": "Disabled", + "OriginalType": "Manual" + }, + { + "Name": "ALG", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "AppIDSvc", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "AppMgmt", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "AppReadiness", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "AppVClient", + "StartupType": "Disabled", + "OriginalType": "Disabled" + }, + { + "Name": "AppXSvc", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "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": "BFE", + "StartupType": "Automatic", + "OriginalType": "Automatic" + }, + { + "Name": "BITS", + "StartupType": "AutomaticDelayedStart", + "OriginalType": "Automatic" + }, + { + "Name": "BTAGService", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "BcastDVRUserService_*", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "BluetoothUserService_*", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "BrokerInfrastructure", + "StartupType": "Automatic", + "OriginalType": "Automatic" + }, + { + "Name": "Browser", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "BthAvctpSvc", + "StartupType": "Automatic", + "OriginalType": "Automatic" + }, + { + "Name": "BthHFSrv", + "StartupType": "Automatic", + "OriginalType": "Automatic" + }, + { + "Name": "CDPSvc", + "StartupType": "Manual", + "OriginalType": "Automatic" + }, + { + "Name": "CDPUserSvc_*", + "StartupType": "Automatic", + "OriginalType": "Automatic" + }, + { + "Name": "COMSysApp", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "CaptureService_*", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "CertPropSvc", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "ClipSVC", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "ConsentUxUserSvc_*", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "CoreMessagingRegistrar", + "StartupType": "Automatic", + "OriginalType": "Automatic" + }, + { + "Name": "CredentialEnrollmentManagerUserSvc_*", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "CryptSvc", + "StartupType": "Automatic", + "OriginalType": "Automatic" + }, + { + "Name": "CscService", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "DPS", + "StartupType": "Automatic", + "OriginalType": "Automatic" + }, + { + "Name": "DcomLaunch", + "StartupType": "Automatic", + "OriginalType": "Automatic" + }, + { + "Name": "DcpSvc", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "DevQueryBroker", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "DeviceAssociationBrokerSvc_*", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "DeviceAssociationService", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "DeviceInstall", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "DevicePickerUserSvc_*", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "DevicesFlowUserSvc_*", + "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": "DmEnrollmentSvc", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "Dnscache", + "StartupType": "Automatic", + "OriginalType": "Automatic" + }, + { + "Name": "DoSvc", + "StartupType": "AutomaticDelayedStart", + "OriginalType": "Automatic" + }, + { + "Name": "DsSvc", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "DsmSvc", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "DusmSvc", + "StartupType": "Automatic", + "OriginalType": "Automatic" + }, + { + "Name": "EFS", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "EapHost", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "EntAppSvc", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "EventLog", + "StartupType": "Automatic", + "OriginalType": "Automatic" + }, + { + "Name": "EventSystem", + "StartupType": "Automatic", + "OriginalType": "Automatic" + }, + { + "Name": "FDResPub", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "Fax", + "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": "HomeGroupListener", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "HomeGroupProvider", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "HvHost", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "IEEtwCollectorService", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "IKEEXT", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "InstallService", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "InventorySvc", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "IpxlatCfgSvc", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "KeyIso", + "StartupType": "Automatic", + "OriginalType": "Automatic" + }, + { + "Name": "KtmRm", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "LSM", + "StartupType": "Automatic", + "OriginalType": "Automatic" + }, + { + "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": "MessagingService_*", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "MicrosoftEdgeElevationService", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "MixedRealityOpenXRSvc", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "MpsSvc", + "StartupType": "Automatic", + "OriginalType": "Automatic" + }, + { + "Name": "MsKeyboardFilter", + "StartupType": "Manual", + "OriginalType": "Disabled" + }, + { + "Name": "NPSMSvc_*", + "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": "Netlogon", + "StartupType": "Automatic", + "OriginalType": "Automatic" + }, + { + "Name": "Netman", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "NgcCtnrSvc", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "NgcSvc", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "NlaSvc", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "OneSyncSvc_*", + "StartupType": "Automatic", + "OriginalType": "Automatic" + }, + { + "Name": "P9RdrService_*", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "PNRPAutoReg", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "PNRPsvc", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "PcaSvc", + "StartupType": "Manual", + "OriginalType": "Automatic" + }, + { + "Name": "PeerDistSvc", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "PenService_*", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "PerfHost", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "PhoneSvc", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "PimIndexMaintenanceSvc_*", + "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": "PrintWorkflowUserSvc_*", + "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": "RpcEptMapper", + "StartupType": "Automatic", + "OriginalType": "Automatic" + }, + { + "Name": "RpcLocator", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "RpcSs", + "StartupType": "Automatic", + "OriginalType": "Automatic" + }, + { + "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": "Schedule", + "StartupType": "Automatic", + "OriginalType": "Automatic" + }, + { + "Name": "SecurityHealthService", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "Sense", + "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": "SgrmBroker", + "StartupType": "Automatic", + "OriginalType": "Automatic" + }, + { + "Name": "SharedAccess", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "SharedRealitySvc", + "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": "StateRepository", + "StartupType": "Manual", + "OriginalType": "Automatic" + }, + { + "Name": "StiSvc", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "StorSvc", + "StartupType": "Manual", + "OriginalType": "Automatic" + }, + { + "Name": "SysMain", + "StartupType": "Automatic", + "OriginalType": "Automatic" + }, + { + "Name": "SystemEventsBroker", + "StartupType": "Automatic", + "OriginalType": "Automatic" + }, + { + "Name": "TabletInputService", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "TapiSrv", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "TermService", + "StartupType": "Automatic", + "OriginalType": "Automatic" + }, + { + "Name": "TextInputManagementService", + "StartupType": "Manual", + "OriginalType": "Automatic" + }, + { + "Name": "Themes", + "StartupType": "Automatic", + "OriginalType": "Automatic" + }, + { + "Name": "TieringEngineService", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "TimeBroker", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "TimeBrokerSvc", + "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": "UI0Detect", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "UdkUserSvc_*", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "UevAgentService", + "StartupType": "Disabled", + "OriginalType": "Disabled" + }, + { + "Name": "UmRdpService", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "UnistoreSvc_*", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "UserDataSvc_*", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "UserManager", + "StartupType": "Automatic", + "OriginalType": "Automatic" + }, + { + "Name": "UsoSvc", + "StartupType": "Manual", + "OriginalType": "Automatic" + }, + { + "Name": "VGAuthService", + "StartupType": "Automatic", + "OriginalType": "Automatic" + }, + { + "Name": "VMTools", + "StartupType": "Automatic", + "OriginalType": "Automatic" + }, + { + "Name": "VSS", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "VacSvc", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "VaultSvc", + "StartupType": "Automatic", + "OriginalType": "Automatic" + }, + { + "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": "WSService", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "WSearch", + "StartupType": "AutomaticDelayedStart", + "OriginalType": "Automatic" + }, + { + "Name": "WaaSMedicSvc", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "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": "WcsPlugInService", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "WdNisSvc", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "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": "WinDefend", + "StartupType": "Automatic", + "OriginalType": "Automatic" + }, + { + "Name": "WinHttpAutoProxySvc", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "WinRM", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "Winmgmt", + "StartupType": "Automatic", + "OriginalType": "Automatic" + }, + { + "Name": "WlanSvc", + "StartupType": "Automatic", + "OriginalType": "Automatic" + }, + { + "Name": "WpcMonSvc", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "WpnService", + "StartupType": "Manual", + "OriginalType": "Automatic" + }, + { + "Name": "WpnUserService_*", + "StartupType": "Automatic", + "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": "Manual" + }, + { + "Name": "cbdhsvc_*", + "StartupType": "Manual", + "OriginalType": "Automatic" + }, + { + "Name": "cloudidsvc", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "dcsvc", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "defragsvc", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "diagnosticshub.standardcollector.service", + "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": "embeddedmode", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "fdPHost", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "fhsvc", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "gpsvc", + "StartupType": "Automatic", + "OriginalType": "Automatic" + }, + { + "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": "mpssvc", + "StartupType": "Automatic", + "OriginalType": "Automatic" + }, + { + "Name": "msiserver", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "netprofm", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "nsi", + "StartupType": "Automatic", + "OriginalType": "Automatic" + }, + { + "Name": "p2pimsvc", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "p2psvc", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "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": "spectrum", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "sppsvc", + "StartupType": "AutomaticDelayedStart", + "OriginalType": "Automatic" + }, + { + "Name": "ssh-agent", + "StartupType": "Disabled", + "OriginalType": "Disabled" + }, + { + "Name": "svsvc", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "swprv", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "tiledatamodelsvc", + "StartupType": "Automatic", + "OriginalType": "Automatic" + }, + { + "Name": "tzautoupdate", + "StartupType": "Disabled", + "OriginalType": "Disabled" + }, + { + "Name": "uhssvc", + "StartupType": "Disabled", + "OriginalType": "Disabled" + }, + { + "Name": "upnphost", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "vds", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "vm3dservice", + "StartupType": "Manual", + "OriginalType": "Automatic" + }, + { + "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": "vmvss", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "wbengine", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "wcncsvc", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "webthreatdefsvc", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "webthreatdefusersvc_*", + "StartupType": "Automatic", + "OriginalType": "Automatic" + }, + { + "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": "wscsvc", + "StartupType": "AutomaticDelayedStart", + "OriginalType": "Automatic" + }, + { + "Name": "wuauserv", + "StartupType": "Manual", + "OriginalType": "Manual" + }, + { + "Name": "wudfsvc", + "StartupType": "Manual", + "OriginalType": "Manual" + } + ], + "link": "https://christitustech.github.io/winutil/dev/tweaks/Essential-Tweaks/Services" +} +``` + +
+ +## Service Changes + +Windows services are background processes for system functions or applications. Setting some to manual optimizes performance by starting them only when needed. + +You can find information about services on [Wikipedia](https://www.wikiwand.com/en/Windows_service) and [Microsoft's Website](https://learn.microsoft.com/en-us/dotnet/framework/windows-services/introduction-to-windows-service-applications). + +### Service Name: AJRouter + +**Startup Type:** Disabled + +**Original Type:** Manual + +### Service Name: ALG + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: AppIDSvc + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: AppMgmt + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: AppReadiness + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: AppVClient + +**Startup Type:** Disabled + +**Original Type:** Disabled + +### Service Name: AppXSvc + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: Appinfo + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: AssignedAccessManagerSvc + +**Startup Type:** Disabled + +**Original Type:** Manual + +### Service Name: AudioEndpointBuilder + +**Startup Type:** Automatic + +**Original Type:** Automatic + +### Service Name: AudioSrv + +**Startup Type:** Automatic + +**Original Type:** Automatic + +### Service Name: Audiosrv + +**Startup Type:** Automatic + +**Original Type:** Automatic + +### Service Name: AxInstSV + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: BDESVC + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: BFE + +**Startup Type:** Automatic + +**Original Type:** Automatic + +### Service Name: BITS + +**Startup Type:** AutomaticDelayedStart + +**Original Type:** Automatic + +### Service Name: BTAGService + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: BcastDVRUserService_* + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: BluetoothUserService_* + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: BrokerInfrastructure + +**Startup Type:** Automatic + +**Original Type:** Automatic + +### Service Name: Browser + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: BthAvctpSvc + +**Startup Type:** Automatic + +**Original Type:** Automatic + +### Service Name: BthHFSrv + +**Startup Type:** Automatic + +**Original Type:** Automatic + +### Service Name: CDPSvc + +**Startup Type:** Manual + +**Original Type:** Automatic + +### Service Name: CDPUserSvc_* + +**Startup Type:** Automatic + +**Original Type:** Automatic + +### Service Name: COMSysApp + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: CaptureService_* + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: CertPropSvc + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: ClipSVC + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: ConsentUxUserSvc_* + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: CoreMessagingRegistrar + +**Startup Type:** Automatic + +**Original Type:** Automatic + +### Service Name: CredentialEnrollmentManagerUserSvc_* + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: CryptSvc + +**Startup Type:** Automatic + +**Original Type:** Automatic + +### Service Name: CscService + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: DPS + +**Startup Type:** Automatic + +**Original Type:** Automatic + +### Service Name: DcomLaunch + +**Startup Type:** Automatic + +**Original Type:** Automatic + +### Service Name: DcpSvc + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: DevQueryBroker + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: DeviceAssociationBrokerSvc_* + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: DeviceAssociationService + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: DeviceInstall + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: DevicePickerUserSvc_* + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: DevicesFlowUserSvc_* + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: Dhcp + +**Startup Type:** Automatic + +**Original Type:** Automatic + +### Service Name: DiagTrack + +**Startup Type:** Disabled + +**Original Type:** Automatic + +### Service Name: DialogBlockingService + +**Startup Type:** Disabled + +**Original Type:** Disabled + +### Service Name: DispBrokerDesktopSvc + +**Startup Type:** Automatic + +**Original Type:** Automatic + +### Service Name: DisplayEnhancementService + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: DmEnrollmentSvc + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: Dnscache + +**Startup Type:** Automatic + +**Original Type:** Automatic + +### Service Name: DoSvc + +**Startup Type:** AutomaticDelayedStart + +**Original Type:** Automatic + +### Service Name: DsSvc + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: DsmSvc + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: DusmSvc + +**Startup Type:** Automatic + +**Original Type:** Automatic + +### Service Name: EFS + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: EapHost + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: EntAppSvc + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: EventLog + +**Startup Type:** Automatic + +**Original Type:** Automatic + +### Service Name: EventSystem + +**Startup Type:** Automatic + +**Original Type:** Automatic + +### Service Name: FDResPub + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: Fax + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: FontCache + +**Startup Type:** Automatic + +**Original Type:** Automatic + +### Service Name: FrameServer + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: FrameServerMonitor + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: GraphicsPerfSvc + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: HomeGroupListener + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: HomeGroupProvider + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: HvHost + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: IEEtwCollectorService + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: IKEEXT + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: InstallService + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: InventorySvc + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: IpxlatCfgSvc + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: KeyIso + +**Startup Type:** Automatic + +**Original Type:** Automatic + +### Service Name: KtmRm + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: LSM + +**Startup Type:** Automatic + +**Original Type:** Automatic + +### Service Name: LanmanServer + +**Startup Type:** Automatic + +**Original Type:** Automatic + +### Service Name: LanmanWorkstation + +**Startup Type:** Automatic + +**Original Type:** Automatic + +### Service Name: LicenseManager + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: LxpSvc + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: MSDTC + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: MSiSCSI + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: MapsBroker + +**Startup Type:** AutomaticDelayedStart + +**Original Type:** Automatic + +### Service Name: McpManagementService + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: MessagingService_* + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: MicrosoftEdgeElevationService + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: MixedRealityOpenXRSvc + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: MpsSvc + +**Startup Type:** Automatic + +**Original Type:** Automatic + +### Service Name: MsKeyboardFilter + +**Startup Type:** Manual + +**Original Type:** Disabled + +### Service Name: NPSMSvc_* + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: NaturalAuthentication + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: NcaSvc + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: NcbService + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: NcdAutoSetup + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: NetSetupSvc + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: NetTcpPortSharing + +**Startup Type:** Disabled + +**Original Type:** Disabled + +### Service Name: Netlogon + +**Startup Type:** Automatic + +**Original Type:** Automatic + +### Service Name: Netman + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: NgcCtnrSvc + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: NgcSvc + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: NlaSvc + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: OneSyncSvc_* + +**Startup Type:** Automatic + +**Original Type:** Automatic + +### Service Name: P9RdrService_* + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: PNRPAutoReg + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: PNRPsvc + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: PcaSvc + +**Startup Type:** Manual + +**Original Type:** Automatic + +### Service Name: PeerDistSvc + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: PenService_* + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: PerfHost + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: PhoneSvc + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: PimIndexMaintenanceSvc_* + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: PlugPlay + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: PolicyAgent + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: Power + +**Startup Type:** Automatic + +**Original Type:** Automatic + +### Service Name: PrintNotify + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: PrintWorkflowUserSvc_* + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: ProfSvc + +**Startup Type:** Automatic + +**Original Type:** Automatic + +### Service Name: PushToInstall + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: QWAVE + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: RasAuto + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: RasMan + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: RemoteAccess + +**Startup Type:** Disabled + +**Original Type:** Disabled + +### Service Name: RemoteRegistry + +**Startup Type:** Disabled + +**Original Type:** Disabled + +### Service Name: RetailDemo + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: RmSvc + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: RpcEptMapper + +**Startup Type:** Automatic + +**Original Type:** Automatic + +### Service Name: RpcLocator + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: RpcSs + +**Startup Type:** Automatic + +**Original Type:** Automatic + +### Service Name: SCPolicySvc + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: SCardSvr + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: SDRSVC + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: SEMgrSvc + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: SENS + +**Startup Type:** Automatic + +**Original Type:** Automatic + +### Service Name: SNMPTRAP + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: SNMPTrap + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: SSDPSRV + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: SamSs + +**Startup Type:** Automatic + +**Original Type:** Automatic + +### Service Name: ScDeviceEnum + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: Schedule + +**Startup Type:** Automatic + +**Original Type:** Automatic + +### Service Name: SecurityHealthService + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: Sense + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: SensorDataService + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: SensorService + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: SensrSvc + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: SessionEnv + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: SgrmBroker + +**Startup Type:** Automatic + +**Original Type:** Automatic + +### Service Name: SharedAccess + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: SharedRealitySvc + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: ShellHWDetection + +**Startup Type:** Automatic + +**Original Type:** Automatic + +### Service Name: SmsRouter + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: Spooler + +**Startup Type:** Automatic + +**Original Type:** Automatic + +### Service Name: SstpSvc + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: StateRepository + +**Startup Type:** Manual + +**Original Type:** Automatic + +### Service Name: StiSvc + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: StorSvc + +**Startup Type:** Manual + +**Original Type:** Automatic + +### Service Name: SysMain + +**Startup Type:** Automatic + +**Original Type:** Automatic + +### Service Name: SystemEventsBroker + +**Startup Type:** Automatic + +**Original Type:** Automatic + +### Service Name: TabletInputService + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: TapiSrv + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: TermService + +**Startup Type:** Automatic + +**Original Type:** Automatic + +### Service Name: TextInputManagementService + +**Startup Type:** Manual + +**Original Type:** Automatic + +### Service Name: Themes + +**Startup Type:** Automatic + +**Original Type:** Automatic + +### Service Name: TieringEngineService + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: TimeBroker + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: TimeBrokerSvc + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: TokenBroker + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: TrkWks + +**Startup Type:** Automatic + +**Original Type:** Automatic + +### Service Name: TroubleshootingSvc + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: TrustedInstaller + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: UI0Detect + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: UdkUserSvc_* + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: UevAgentService + +**Startup Type:** Disabled + +**Original Type:** Disabled + +### Service Name: UmRdpService + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: UnistoreSvc_* + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: UserDataSvc_* + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: UserManager + +**Startup Type:** Automatic + +**Original Type:** Automatic + +### Service Name: UsoSvc + +**Startup Type:** Manual + +**Original Type:** Automatic + +### Service Name: VGAuthService + +**Startup Type:** Automatic + +**Original Type:** Automatic + +### Service Name: VMTools + +**Startup Type:** Automatic + +**Original Type:** Automatic + +### Service Name: VSS + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: VacSvc + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: VaultSvc + +**Startup Type:** Automatic + +**Original Type:** Automatic + +### Service Name: W32Time + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: WEPHOSTSVC + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: WFDSConMgrSvc + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: WMPNetworkSvc + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: WManSvc + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: WPDBusEnum + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: WSService + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: WSearch + +**Startup Type:** AutomaticDelayedStart + +**Original Type:** Automatic + +### Service Name: WaaSMedicSvc + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: WalletService + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: WarpJITSvc + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: WbioSrvc + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: Wcmsvc + +**Startup Type:** Automatic + +**Original Type:** Automatic + +### Service Name: WcsPlugInService + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: WdNisSvc + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: WdiServiceHost + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: WdiSystemHost + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: WebClient + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: Wecsvc + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: WerSvc + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: WiaRpc + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: WinDefend + +**Startup Type:** Automatic + +**Original Type:** Automatic + +### Service Name: WinHttpAutoProxySvc + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: WinRM + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: Winmgmt + +**Startup Type:** Automatic + +**Original Type:** Automatic + +### Service Name: WlanSvc + +**Startup Type:** Automatic + +**Original Type:** Automatic + +### Service Name: WpcMonSvc + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: WpnService + +**Startup Type:** Manual + +**Original Type:** Automatic + +### Service Name: WpnUserService_* + +**Startup Type:** Automatic + +**Original Type:** Automatic + +### Service Name: XblAuthManager + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: XblGameSave + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: XboxGipSvc + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: XboxNetApiSvc + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: autotimesvc + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: bthserv + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: camsvc + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: cbdhsvc_* + +**Startup Type:** Manual + +**Original Type:** Automatic + +### Service Name: cloudidsvc + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: dcsvc + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: defragsvc + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: diagnosticshub.standardcollector.service + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: diagsvc + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: dmwappushservice + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: dot3svc + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: edgeupdate + +**Startup Type:** Manual + +**Original Type:** Automatic + +### Service Name: edgeupdatem + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: embeddedmode + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: fdPHost + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: fhsvc + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: gpsvc + +**Startup Type:** Automatic + +**Original Type:** Automatic + +### Service Name: hidserv + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: icssvc + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: iphlpsvc + +**Startup Type:** Automatic + +**Original Type:** Automatic + +### Service Name: lfsvc + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: lltdsvc + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: lmhosts + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: mpssvc + +**Startup Type:** Automatic + +**Original Type:** Automatic + +### Service Name: msiserver + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: netprofm + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: nsi + +**Startup Type:** Automatic + +**Original Type:** Automatic + +### Service Name: p2pimsvc + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: p2psvc + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: perceptionsimulation + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: pla + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: seclogon + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: shpamsvc + +**Startup Type:** Disabled + +**Original Type:** Disabled + +### Service Name: smphost + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: spectrum + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: sppsvc + +**Startup Type:** AutomaticDelayedStart + +**Original Type:** Automatic + +### Service Name: ssh-agent + +**Startup Type:** Disabled + +**Original Type:** Disabled + +### Service Name: svsvc + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: swprv + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: tiledatamodelsvc + +**Startup Type:** Automatic + +**Original Type:** Automatic + +### Service Name: tzautoupdate + +**Startup Type:** Disabled + +**Original Type:** Disabled + +### Service Name: uhssvc + +**Startup Type:** Disabled + +**Original Type:** Disabled + +### Service Name: upnphost + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: vds + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: vm3dservice + +**Startup Type:** Manual + +**Original Type:** Automatic + +### Service Name: vmicguestinterface + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: vmicheartbeat + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: vmickvpexchange + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: vmicrdv + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: vmicshutdown + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: vmictimesync + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: vmicvmsession + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: vmicvss + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: vmvss + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: wbengine + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: wcncsvc + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: webthreatdefsvc + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: webthreatdefusersvc_* + +**Startup Type:** Automatic + +**Original Type:** Automatic + +### Service Name: wercplsupport + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: wisvc + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: wlidsvc + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: wlpasvc + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: wmiApSrv + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: workfolderssvc + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: wscsvc + +**Startup Type:** AutomaticDelayedStart + +**Original Type:** Automatic + +### Service Name: wuauserv + +**Startup Type:** Manual + +**Original Type:** Manual + +### Service Name: wudfsvc + +**Startup Type:** Manual + +**Original Type:** Manual + + + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/tweaks.json) + diff --git a/docs/dev/tweaks/Essential-Tweaks/Storage.md b/docs/dev/tweaks/Essential-Tweaks/Storage.md new file mode 100644 index 0000000000..2a26929fee --- /dev/null +++ b/docs/dev/tweaks/Essential-Tweaks/Storage.md @@ -0,0 +1,57 @@ +# Disable Storage Sense + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** +## Description + +Storage Sense deletes temp files automatically. + + + + + +
+Preview Code + +```json +{ + "Content": "Disable Storage Sense", + "Description": "Storage Sense deletes temp files automatically.", + "category": "Essential Tweaks", + "panel": "1", + "Order": "a005_", + "InvokeScript": [ + "Set-ItemProperty -Path \"HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\StorageSense\\Parameters\\StoragePolicy\" -Name \"01\" -Value 0 -Type Dword -Force" + ], + "UndoScript": [ + "Set-ItemProperty -Path \"HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\StorageSense\\Parameters\\StoragePolicy\" -Name \"01\" -Value 1 -Type Dword -Force" + ], + "link": "https://christitustech.github.io/winutil/dev/tweaks/Essential-Tweaks/Storage" +} +``` + +
+ +## Invoke Script + +```powershell +Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\StorageSense\Parameters\StoragePolicy" -Name "01" -Value 0 -Type Dword -Force + +``` +## Undo Script + +```powershell +Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\StorageSense\Parameters\StoragePolicy" -Name "01" -Value 1 -Type Dword -Force + +``` + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/tweaks.json) + diff --git a/docs/dev/tweaks/Essential-Tweaks/Tele.md b/docs/dev/tweaks/Essential-Tweaks/Tele.md new file mode 100644 index 0000000000..544b8adf64 --- /dev/null +++ b/docs/dev/tweaks/Essential-Tweaks/Tele.md @@ -0,0 +1,830 @@ +# Disable Telemetry + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** +## Description + +Disables Microsoft Telemetry. Note: This will lock many Edge Browser settings. Microsoft spies heavily on you when using the Edge browser. + + + + + +
+Preview Code + +```json +{ + "Content": "Disable Telemetry", + "Description": "Disables Microsoft Telemetry. Note: This will lock many Edge Browser settings. Microsoft spies heavily on you when using the Edge browser.", + "category": "Essential Tweaks", + "panel": "1", + "Order": "a003_", + "ScheduledTask": [ + { + "Name": "Microsoft\\Windows\\Application Experience\\Microsoft Compatibility Appraiser", + "State": "Disabled", + "OriginalState": "Enabled" + }, + { + "Name": "Microsoft\\Windows\\Application Experience\\ProgramDataUpdater", + "State": "Disabled", + "OriginalState": "Enabled" + }, + { + "Name": "Microsoft\\Windows\\Autochk\\Proxy", + "State": "Disabled", + "OriginalState": "Enabled" + }, + { + "Name": "Microsoft\\Windows\\Customer Experience Improvement Program\\Consolidator", + "State": "Disabled", + "OriginalState": "Enabled" + }, + { + "Name": "Microsoft\\Windows\\Customer Experience Improvement Program\\UsbCeip", + "State": "Disabled", + "OriginalState": "Enabled" + }, + { + "Name": "Microsoft\\Windows\\DiskDiagnostic\\Microsoft-Windows-DiskDiagnosticDataCollector", + "State": "Disabled", + "OriginalState": "Enabled" + }, + { + "Name": "Microsoft\\Windows\\Feedback\\Siuf\\DmClient", + "State": "Disabled", + "OriginalState": "Enabled" + }, + { + "Name": "Microsoft\\Windows\\Feedback\\Siuf\\DmClientOnScenarioDownload", + "State": "Disabled", + "OriginalState": "Enabled" + }, + { + "Name": "Microsoft\\Windows\\Windows Error Reporting\\QueueReporting", + "State": "Disabled", + "OriginalState": "Enabled" + }, + { + "Name": "Microsoft\\Windows\\Application Experience\\MareBackup", + "State": "Disabled", + "OriginalState": "Enabled" + }, + { + "Name": "Microsoft\\Windows\\Application Experience\\StartupAppTask", + "State": "Disabled", + "OriginalState": "Enabled" + }, + { + "Name": "Microsoft\\Windows\\Application Experience\\PcaPatchDbTask", + "State": "Disabled", + "OriginalState": "Enabled" + }, + { + "Name": "Microsoft\\Windows\\Maps\\MapsUpdateTask", + "State": "Disabled", + "OriginalState": "Enabled" + } + ], + "registry": [ + { + "Path": "HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\DataCollection", + "Type": "DWord", + "Value": "0", + "Name": "AllowTelemetry", + "OriginalValue": "1" + }, + { + "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\DataCollection", + "OriginalValue": "1", + "Name": "AllowTelemetry", + "Value": "0", + "Type": "DWord" + }, + { + "Path": "HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\ContentDeliveryManager", + "OriginalValue": "1", + "Name": "ContentDeliveryAllowed", + "Value": "0", + "Type": "DWord" + }, + { + "Path": "HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\ContentDeliveryManager", + "OriginalValue": "1", + "Name": "OemPreInstalledAppsEnabled", + "Value": "0", + "Type": "DWord" + }, + { + "Path": "HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\ContentDeliveryManager", + "OriginalValue": "1", + "Name": "PreInstalledAppsEnabled", + "Value": "0", + "Type": "DWord" + }, + { + "Path": "HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\ContentDeliveryManager", + "OriginalValue": "1", + "Name": "PreInstalledAppsEverEnabled", + "Value": "0", + "Type": "DWord" + }, + { + "Path": "HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\ContentDeliveryManager", + "OriginalValue": "1", + "Name": "SilentInstalledAppsEnabled", + "Value": "0", + "Type": "DWord" + }, + { + "Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\ContentDeliveryManager", + "OriginalValue": "1", + "Name": "SubscribedContent-338387Enabled", + "Value": "0", + "Type": "DWord" + }, + { + "Path": "HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\ContentDeliveryManager", + "OriginalValue": "1", + "Name": "SubscribedContent-338388Enabled", + "Value": "0", + "Type": "DWord" + }, + { + "Path": "HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\ContentDeliveryManager", + "OriginalValue": "1", + "Name": "SubscribedContent-338389Enabled", + "Value": "0", + "Type": "DWord" + }, + { + "Path": "HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\ContentDeliveryManager", + "OriginalValue": "1", + "Name": "SubscribedContent-353698Enabled", + "Value": "0", + "Type": "DWord" + }, + { + "Path": "HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\ContentDeliveryManager", + "OriginalValue": "1", + "Name": "SystemPaneSuggestionsEnabled", + "Value": "0", + "Type": "DWord" + }, + { + "Path": "HKCU:\\SOFTWARE\\Microsoft\\Siuf\\Rules", + "OriginalValue": "0", + "Name": "NumberOfSIUFInPeriod", + "Value": "0", + "Type": "DWord" + }, + { + "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\DataCollection", + "OriginalValue": "0", + "Name": "DoNotShowFeedbackNotifications", + "Value": "1", + "Type": "DWord" + }, + { + "Path": "HKCU:\\SOFTWARE\\Policies\\Microsoft\\Windows\\CloudContent", + "OriginalValue": "0", + "Name": "DisableTailoredExperiencesWithDiagnosticData", + "Value": "1", + "Type": "DWord" + }, + { + "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\AdvertisingInfo", + "OriginalValue": "0", + "Name": "DisabledByGroupPolicy", + "Value": "1", + "Type": "DWord" + }, + { + "Path": "HKLM:\\SOFTWARE\\Microsoft\\Windows\\Windows Error Reporting", + "OriginalValue": "0", + "Name": "Disabled", + "Value": "1", + "Type": "DWord" + }, + { + "Path": "HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\DeliveryOptimization\\Config", + "OriginalValue": "1", + "Name": "DODownloadMode", + "Value": "1", + "Type": "DWord" + }, + { + "Path": "HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Remote Assistance", + "OriginalValue": "1", + "Name": "fAllowToGetHelp", + "Value": "0", + "Type": "DWord" + }, + { + "Path": "HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\OperationStatusManager", + "OriginalValue": "0", + "Name": "EnthusiastMode", + "Value": "1", + "Type": "DWord" + }, + { + "Path": "HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced", + "OriginalValue": "1", + "Name": "ShowTaskViewButton", + "Value": "0", + "Type": "DWord" + }, + { + "Path": "HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced\\People", + "OriginalValue": "1", + "Name": "PeopleBand", + "Value": "0", + "Type": "DWord" + }, + { + "Path": "HKCU:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced", + "OriginalValue": "1", + "Name": "LaunchTo", + "Value": "1", + "Type": "DWord" + }, + { + "Path": "HKLM:\\SYSTEM\\CurrentControlSet\\Control\\FileSystem", + "OriginalValue": "0", + "Name": "LongPathsEnabled", + "Value": "1", + "Type": "DWord" + }, + { + "_Comment": "Driver searching is a function that should be left in", + "Path": "HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\DriverSearching", + "OriginalValue": "1", + "Name": "SearchOrderConfig", + "Value": "1", + "Type": "DWord" + }, + { + "Path": "HKLM:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Multimedia\\SystemProfile", + "OriginalValue": "1", + "Name": "SystemResponsiveness", + "Value": "0", + "Type": "DWord" + }, + { + "Path": "HKLM:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Multimedia\\SystemProfile", + "OriginalValue": "1", + "Name": "NetworkThrottlingIndex", + "Value": "4294967295", + "Type": "DWord" + }, + { + "Path": "HKCU:\\Control Panel\\Desktop", + "OriginalValue": "1", + "Name": "MenuShowDelay", + "Value": "1", + "Type": "DWord" + }, + { + "Path": "HKCU:\\Control Panel\\Desktop", + "OriginalValue": "1", + "Name": "AutoEndTasks", + "Value": "1", + "Type": "DWord" + }, + { + "Path": "HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Memory Management", + "OriginalValue": "0", + "Name": "ClearPageFileAtShutdown", + "Value": "0", + "Type": "DWord" + }, + { + "Path": "HKLM:\\SYSTEM\\ControlSet001\\Services\\Ndu", + "OriginalValue": "1", + "Name": "Start", + "Value": "2", + "Type": "DWord" + }, + { + "Path": "HKCU:\\Control Panel\\Mouse", + "OriginalValue": "400", + "Name": "MouseHoverTime", + "Value": "400", + "Type": "String" + }, + { + "Path": "HKLM:\\SYSTEM\\CurrentControlSet\\Services\\LanmanServer\\Parameters", + "OriginalValue": "20", + "Name": "IRPStackSize", + "Value": "30", + "Type": "DWord" + }, + { + "Path": "HKCU:\\SOFTWARE\\Policies\\Microsoft\\Windows\\Windows Feeds", + "OriginalValue": "1", + "Name": "EnableFeeds", + "Value": "0", + "Type": "DWord" + }, + { + "Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Feeds", + "OriginalValue": "1", + "Name": "ShellFeedsTaskbarViewMode", + "Value": "2", + "Type": "DWord" + }, + { + "Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer", + "OriginalValue": "1", + "Name": "HideSCAMeetNow", + "Value": "1", + "Type": "DWord" + }, + { + "Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\UserProfileEngagement", + "OriginalValue": "1", + "Name": "ScoobeSystemSettingEnabled", + "Value": "0", + "Type": "DWord" + } + ], + "InvokeScript": [ + " + bcdedit /set `{current`} bootmenupolicy Legacy | Out-Null + If ((get-ItemProperty -Path \"HKLM:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\" -Name CurrentBuild).CurrentBuild -lt 22557) { + $taskmgr = Start-Process -WindowStyle Hidden -FilePath taskmgr.exe -PassThru + Do { + Start-Sleep -Milliseconds 100 + $preferences = Get-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\TaskManager\" -Name \"Preferences\" -ErrorAction SilentlyContinue + } Until ($preferences) + Stop-Process $taskmgr + $preferences.Preferences[28] = 0 + Set-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\TaskManager\" -Name \"Preferences\" -Type Binary -Value $preferences.Preferences + } + Remove-Item -Path \"HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\MyComputer\\NameSpace\\{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}\" -Recurse -ErrorAction SilentlyContinue + + # Fix Managed by your organization in Edge if regustry path exists then remove it + + If (Test-Path \"HKLM:\\SOFTWARE\\Policies\\Microsoft\\Edge\") { + Remove-Item -Path \"HKLM:\\SOFTWARE\\Policies\\Microsoft\\Edge\" -Recurse -ErrorAction SilentlyContinue + } + + # Group svchost.exe processes + $ram = (Get-CimInstance -ClassName Win32_PhysicalMemory | Measure-Object -Property Capacity -Sum).Sum / 1kb + Set-ItemProperty -Path \"HKLM:\\SYSTEM\\CurrentControlSet\\Control\" -Name \"SvcHostSplitThresholdInKB\" -Type DWord -Value $ram -Force + + $autoLoggerDir = \"$env:PROGRAMDATA\\Microsoft\\Diagnosis\\ETLLogs\\AutoLogger\" + If (Test-Path \"$autoLoggerDir\\AutoLogger-Diagtrack-Listener.etl\") { + Remove-Item \"$autoLoggerDir\\AutoLogger-Diagtrack-Listener.etl\" + } + icacls $autoLoggerDir /deny SYSTEM:`(OI`)`(CI`)F | Out-Null + + # Disable Defender Auto Sample Submission + Set-MpPreference -SubmitSamplesConsent 2 -ErrorAction SilentlyContinue | Out-Null + " + ], + "link": "https://christitustech.github.io/winutil/dev/tweaks/Essential-Tweaks/Tele" +} +``` + +
+ +## Invoke Script + +```powershell + + bcdedit /set `{current`} bootmenupolicy Legacy | Out-Null + If ((get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion" -Name CurrentBuild).CurrentBuild -lt 22557) { + $taskmgr = Start-Process -WindowStyle Hidden -FilePath taskmgr.exe -PassThru + Do { + Start-Sleep -Milliseconds 100 + $preferences = Get-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\TaskManager" -Name "Preferences" -ErrorAction SilentlyContinue + } Until ($preferences) + Stop-Process $taskmgr + $preferences.Preferences[28] = 0 + Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\TaskManager" -Name "Preferences" -Type Binary -Value $preferences.Preferences + } + Remove-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}" -Recurse -ErrorAction SilentlyContinue + + # Fix Managed by your organization in Edge if regustry path exists then remove it + + If (Test-Path "HKLM:\SOFTWARE\Policies\Microsoft\Edge") { + Remove-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Edge" -Recurse -ErrorAction SilentlyContinue + } + + # Group svchost.exe processes + $ram = (Get-CimInstance -ClassName Win32_PhysicalMemory | Measure-Object -Property Capacity -Sum).Sum / 1kb + Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control" -Name "SvcHostSplitThresholdInKB" -Type DWord -Value $ram -Force + + $autoLoggerDir = "$env:PROGRAMDATA\Microsoft\Diagnosis\ETLLogs\AutoLogger" + If (Test-Path "$autoLoggerDir\AutoLogger-Diagtrack-Listener.etl") { + Remove-Item "$autoLoggerDir\AutoLogger-Diagtrack-Listener.etl" + } + icacls $autoLoggerDir /deny SYSTEM:`(OI`)`(CI`)F | Out-Null + + # Disable Defender Auto Sample Submission + Set-MpPreference -SubmitSamplesConsent 2 -ErrorAction SilentlyContinue | Out-Null + + +``` +## 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). + +### Registry Key: AllowTelemetry + +**Type:** DWord + +**Original Value:** 1 + +**New Value:** 0 + +### Registry Key: AllowTelemetry + +**Type:** DWord + +**Original Value:** 1 + +**New Value:** 0 + +### Registry Key: ContentDeliveryAllowed + +**Type:** DWord + +**Original Value:** 1 + +**New Value:** 0 + +### Registry Key: OemPreInstalledAppsEnabled + +**Type:** DWord + +**Original Value:** 1 + +**New Value:** 0 + +### Registry Key: PreInstalledAppsEnabled + +**Type:** DWord + +**Original Value:** 1 + +**New Value:** 0 + +### Registry Key: PreInstalledAppsEverEnabled + +**Type:** DWord + +**Original Value:** 1 + +**New Value:** 0 + +### Registry Key: SilentInstalledAppsEnabled + +**Type:** DWord + +**Original Value:** 1 + +**New Value:** 0 + +### Registry Key: SubscribedContent-338387Enabled + +**Type:** DWord + +**Original Value:** 1 + +**New Value:** 0 + +### Registry Key: SubscribedContent-338388Enabled + +**Type:** DWord + +**Original Value:** 1 + +**New Value:** 0 + +### Registry Key: SubscribedContent-338389Enabled + +**Type:** DWord + +**Original Value:** 1 + +**New Value:** 0 + +### Registry Key: SubscribedContent-353698Enabled + +**Type:** DWord + +**Original Value:** 1 + +**New Value:** 0 + +### Registry Key: SystemPaneSuggestionsEnabled + +**Type:** DWord + +**Original Value:** 1 + +**New Value:** 0 + +### Registry Key: NumberOfSIUFInPeriod + +**Type:** DWord + +**Original Value:** 0 + +**New Value:** 0 + +### Registry Key: DoNotShowFeedbackNotifications + +**Type:** DWord + +**Original Value:** 0 + +**New Value:** 1 + +### Registry Key: DisableTailoredExperiencesWithDiagnosticData + +**Type:** DWord + +**Original Value:** 0 + +**New Value:** 1 + +### Registry Key: DisabledByGroupPolicy + +**Type:** DWord + +**Original Value:** 0 + +**New Value:** 1 + +### Registry Key: Disabled + +**Type:** DWord + +**Original Value:** 0 + +**New Value:** 1 + +### Registry Key: DODownloadMode + +**Type:** DWord + +**Original Value:** 1 + +**New Value:** 1 + +### Registry Key: fAllowToGetHelp + +**Type:** DWord + +**Original Value:** 1 + +**New Value:** 0 + +### Registry Key: EnthusiastMode + +**Type:** DWord + +**Original Value:** 0 + +**New Value:** 1 + +### Registry Key: ShowTaskViewButton + +**Type:** DWord + +**Original Value:** 1 + +**New Value:** 0 + +### Registry Key: PeopleBand + +**Type:** DWord + +**Original Value:** 1 + +**New Value:** 0 + +### Registry Key: LaunchTo + +**Type:** DWord + +**Original Value:** 1 + +**New Value:** 1 + +### Registry Key: LongPathsEnabled + +**Type:** DWord + +**Original Value:** 0 + +**New Value:** 1 + +### Registry Key: SearchOrderConfig + +**Type:** DWord + +**Original Value:** 1 + +**New Value:** 1 + +### Registry Key: SystemResponsiveness + +**Type:** DWord + +**Original Value:** 1 + +**New Value:** 0 + +### Registry Key: NetworkThrottlingIndex + +**Type:** DWord + +**Original Value:** 1 + +**New Value:** 4294967295 + +### Registry Key: MenuShowDelay + +**Type:** DWord + +**Original Value:** 1 + +**New Value:** 1 + +### Registry Key: AutoEndTasks + +**Type:** DWord + +**Original Value:** 1 + +**New Value:** 1 + +### Registry Key: ClearPageFileAtShutdown + +**Type:** DWord + +**Original Value:** 0 + +**New Value:** 0 + +### Registry Key: Start + +**Type:** DWord + +**Original Value:** 1 + +**New Value:** 2 + +### Registry Key: MouseHoverTime + +**Type:** String + +**Original Value:** 400 + +**New Value:** 400 + +### Registry Key: IRPStackSize + +**Type:** DWord + +**Original Value:** 20 + +**New Value:** 30 + +### Registry Key: EnableFeeds + +**Type:** DWord + +**Original Value:** 1 + +**New Value:** 0 + +### Registry Key: ShellFeedsTaskbarViewMode + +**Type:** DWord + +**Original Value:** 1 + +**New Value:** 2 + +### Registry Key: HideSCAMeetNow + +**Type:** DWord + +**Original Value:** 1 + +**New Value:** 1 + +### Registry Key: ScoobeSystemSettingEnabled + +**Type:** DWord + +**Original Value:** 1 + +**New Value:** 0 + + +## Scheduled Task Changes + +Windows scheduled tasks are used to run scripts or programs at specific times or events. Disabling unnecessary tasks can improve system performance and reduce unwanted background activity. + + +You can find information about scheduled tasks on [Wikipedia](https://www.wikiwand.com/en/Windows_Task_Scheduler) and [Microsoft's Website](https://learn.microsoft.com/en-us/windows/desktop/taskschd/about-the-task-scheduler). + +### Task Name: Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser + +**State:** Disabled + +**Original State:** Enabled + +### Task Name: Microsoft\Windows\Application Experience\ProgramDataUpdater + +**State:** Disabled + +**Original State:** Enabled + +### Task Name: Microsoft\Windows\Autochk\Proxy + +**State:** Disabled + +**Original State:** Enabled + +### Task Name: Microsoft\Windows\Customer Experience Improvement Program\Consolidator + +**State:** Disabled + +**Original State:** Enabled + +### Task Name: Microsoft\Windows\Customer Experience Improvement Program\UsbCeip + +**State:** Disabled + +**Original State:** Enabled + +### Task Name: Microsoft\Windows\DiskDiagnostic\Microsoft-Windows-DiskDiagnosticDataCollector + +**State:** Disabled + +**Original State:** Enabled + +### Task Name: Microsoft\Windows\Feedback\Siuf\DmClient + +**State:** Disabled + +**Original State:** Enabled + +### Task Name: Microsoft\Windows\Feedback\Siuf\DmClientOnScenarioDownload + +**State:** Disabled + +**Original State:** Enabled + +### Task Name: Microsoft\Windows\Windows Error Reporting\QueueReporting + +**State:** Disabled + +**Original State:** Enabled + +### Task Name: Microsoft\Windows\Application Experience\MareBackup + +**State:** Disabled + +**Original State:** Enabled + +### Task Name: Microsoft\Windows\Application Experience\StartupAppTask + +**State:** Disabled + +**Original State:** Enabled + +### Task Name: Microsoft\Windows\Application Experience\PcaPatchDbTask + +**State:** Disabled + +**Original State:** Enabled + +### Task Name: Microsoft\Windows\Maps\MapsUpdateTask + +**State:** Disabled + +**Original State:** Enabled + + + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/tweaks.json) + diff --git a/docs/dev/tweaks/Essential-Tweaks/Teredo.md b/docs/dev/tweaks/Essential-Tweaks/Teredo.md new file mode 100644 index 0000000000..4206d51479 --- /dev/null +++ b/docs/dev/tweaks/Essential-Tweaks/Teredo.md @@ -0,0 +1,81 @@ +# Disable Teredo + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** +## Description + +Teredo network tunneling is a ipv6 feature that can cause additional latency. + + + + + +
+Preview Code + +```json +{ + "Content": "Disable Teredo", + "Description": "Teredo network tunneling is a ipv6 feature that can cause additional latency.", + "category": "Essential Tweaks", + "panel": "1", + "Order": "a005_", + "registry": [ + { + "Path": "HKLM:\\SYSTEM\\CurrentControlSet\\Services\\Tcpip6\\Parameters", + "Name": "DisabledComponents", + "Value": "1", + "OriginalValue": "0", + "Type": "DWord" + } + ], + "InvokeScript": [ + "netsh interface teredo set state disabled" + ], + "UndoScript": [ + "netsh interface teredo set state default" + ], + "link": "https://christitustech.github.io/winutil/dev/tweaks/Essential-Tweaks/Teredo" +} +``` + +
+ +## Invoke Script + +```powershell +netsh interface teredo set state disabled + +``` +## Undo Script + +```powershell +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). + +### Registry Key: DisabledComponents + +**Type:** DWord + +**Original Value:** 0 + +**New Value:** 1 + + + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/tweaks.json) + diff --git a/docs/dev/tweaks/Essential-Tweaks/Wifi.md b/docs/dev/tweaks/Essential-Tweaks/Wifi.md new file mode 100644 index 0000000000..9610ae7758 --- /dev/null +++ b/docs/dev/tweaks/Essential-Tweaks/Wifi.md @@ -0,0 +1,78 @@ +# Disable Wifi-Sense + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** +## Description + +Wifi Sense is a spying service that phones home all nearby scanned wifi networks and your current geo location. + + + + + +
+Preview Code + +```json +{ + "Content": "Disable Wifi-Sense", + "Description": "Wifi Sense is a spying service that phones home all nearby scanned wifi networks and your current geo location.", + "category": "Essential Tweaks", + "panel": "1", + "Order": "a005_", + "registry": [ + { + "Path": "HKLM:\\Software\\Microsoft\\PolicyManager\\default\\WiFi\\AllowWiFiHotSpotReporting", + "Name": "Value", + "Type": "DWord", + "Value": "0", + "OriginalValue": "1" + }, + { + "Path": "HKLM:\\Software\\Microsoft\\PolicyManager\\default\\WiFi\\AllowAutoConnectToWiFiSenseHotspots", + "Name": "Value", + "Type": "DWord", + "Value": "0", + "OriginalValue": "1" + } + ], + "link": "https://christitustech.github.io/winutil/dev/tweaks/Essential-Tweaks/Wifi" +} +``` + +
+ +## 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). + +### Registry Key: Value + +**Type:** DWord + +**Original Value:** 1 + +**New Value:** 0 + +### Registry Key: Value + +**Type:** DWord + +**Original Value:** 1 + +**New Value:** 0 + + + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/tweaks.json) + diff --git a/docs/dev/tweaks/Performance-Plans/AddUltPerf.md b/docs/dev/tweaks/Performance-Plans/AddUltPerf.md new file mode 100644 index 0000000000..3565cfc6fb --- /dev/null +++ b/docs/dev/tweaks/Performance-Plans/AddUltPerf.md @@ -0,0 +1,97 @@ +# Add and Activate Ultimate Performance Profile + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** + + + + + + +
+Preview Code + +```json +{ + "Content": "Add and Activate Ultimate Performance Profile", + "category": "Performance Plans", + "panel": "2", + "Order": "a080_", + "Type": "Button", + "ButtonWidth": "300", + "link": "https://christitustech.github.io/winutil/dev/tweaks/Performance-Plans/AddUltPerf" +} +``` + +
+ +## Function: Invoke-WPFUltimatePerformance + +```powershell +Function Invoke-WPFUltimatePerformance { + <# + + .SYNOPSIS + Creates or removes the Ultimate Performance power scheme + + .PARAMETER State + Indicates whether to enable or disable the Ultimate Performance power scheme + + #> + param($State) + try { + # Check if Ultimate Performance plan is installed + $ultimatePlan = powercfg -list | Select-String -Pattern "Ultimate Performance" + if($state -eq "Enable") { + if ($ultimatePlan) { + Write-Host "Ultimate Performance plan is already installed." + } else { + Write-Host "Installing Ultimate Performance plan..." + powercfg -duplicatescheme e9a42b02-d5df-448d-aa00-03f14749eb61 + Write-Host "> Ultimate Performance plan installed." + } + + # Set the Ultimate Performance plan as active + $ultimatePlanGUID = (powercfg -list | Select-String -Pattern "Ultimate Performance").Line.Split()[3] + powercfg -setactive $ultimatePlanGUID + + Write-Host "Ultimate Performance plan is now active." + + + } + elseif($state -eq "Disable") { + if ($ultimatePlan) { + # Extract the GUID of the Ultimate Performance plan + $ultimatePlanGUID = $ultimatePlan.Line.Split()[3] + + # Set a different power plan as active before deleting the Ultimate Performance plan + $balancedPlanGUID = (powercfg -list | Select-String -Pattern "Balanced").Line.Split()[3] + powercfg -setactive $balancedPlanGUID + + # Delete the Ultimate Performance plan + 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." + } + } + } catch { + Write-Warning $psitem.Exception.Message + } +} + +``` + + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/tweaks.json) + diff --git a/docs/dev/tweaks/Performance-Plans/RemoveUltPerf.md b/docs/dev/tweaks/Performance-Plans/RemoveUltPerf.md new file mode 100644 index 0000000000..10ca678d4a --- /dev/null +++ b/docs/dev/tweaks/Performance-Plans/RemoveUltPerf.md @@ -0,0 +1,97 @@ +# Remove Ultimate Performance Profile + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** + + + + + + +
+Preview Code + +```json +{ + "Content": "Remove Ultimate Performance Profile", + "category": "Performance Plans", + "panel": "2", + "Order": "a081_", + "Type": "Button", + "ButtonWidth": "300", + "link": "https://christitustech.github.io/winutil/dev/tweaks/Performance-Plans/RemoveUltPerf" +} +``` + +
+ +## Function: Invoke-WPFUltimatePerformance + +```powershell +Function Invoke-WPFUltimatePerformance { + <# + + .SYNOPSIS + Creates or removes the Ultimate Performance power scheme + + .PARAMETER State + Indicates whether to enable or disable the Ultimate Performance power scheme + + #> + param($State) + try { + # Check if Ultimate Performance plan is installed + $ultimatePlan = powercfg -list | Select-String -Pattern "Ultimate Performance" + if($state -eq "Enable") { + if ($ultimatePlan) { + Write-Host "Ultimate Performance plan is already installed." + } else { + Write-Host "Installing Ultimate Performance plan..." + powercfg -duplicatescheme e9a42b02-d5df-448d-aa00-03f14749eb61 + Write-Host "> Ultimate Performance plan installed." + } + + # Set the Ultimate Performance plan as active + $ultimatePlanGUID = (powercfg -list | Select-String -Pattern "Ultimate Performance").Line.Split()[3] + powercfg -setactive $ultimatePlanGUID + + Write-Host "Ultimate Performance plan is now active." + + + } + elseif($state -eq "Disable") { + if ($ultimatePlan) { + # Extract the GUID of the Ultimate Performance plan + $ultimatePlanGUID = $ultimatePlan.Line.Split()[3] + + # Set a different power plan as active before deleting the Ultimate Performance plan + $balancedPlanGUID = (powercfg -list | Select-String -Pattern "Balanced").Line.Split()[3] + powercfg -setactive $balancedPlanGUID + + # Delete the Ultimate Performance plan + 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." + } + } + } catch { + Write-Warning $psitem.Exception.Message + } +} + +``` + + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/tweaks.json) + diff --git a/docs/dev/tweaks/Shortcuts/Shortcut.md b/docs/dev/tweaks/Shortcuts/Shortcut.md new file mode 100644 index 0000000000..c980269eab --- /dev/null +++ b/docs/dev/tweaks/Shortcuts/Shortcut.md @@ -0,0 +1,113 @@ +# Create WinUtil Shortcut + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** + + + + + + +
+Preview Code + +```json +{ + "Content": "Create WinUtil Shortcut", + "category": "Shortcuts", + "panel": "2", + "Order": "a082_", + "Type": "Button", + "ButtonWidth": "300", + "link": "https://christitustech.github.io/winutil/dev/tweaks/Shortcuts/Shortcut" +} +``` + +
+ +## Function: Invoke-WPFShortcut + +```powershell +function Invoke-WPFShortcut { + <# + + .SYNOPSIS + Creates a shortcut and prompts for a save location + + .PARAMETER ShortcutToAdd + The name of the shortcut to add + + .PARAMETER RunAsAdmin + A boolean value to make 'Run as administrator' property on (true) or off (false), defaults to off + + #> + param( + $ShortcutToAdd, + [bool]$RunAsAdmin = $false + ) + + # Preper the Shortcut Fields and add an a Custom Icon if it's available, else don't add a Custom Icon. + + Switch ($ShortcutToAdd) { + "WinUtil" { + # Use Powershell 7 if installed and fallback to PS5 if not + if (Get-Command "pwsh" -ErrorAction SilentlyContinue) { + $shell = "pwsh.exe" + } else { + $shell = "powershell.exe" + } + + $shellArgs = "-ExecutionPolicy Bypass -Command `"Start-Process $shell -verb runas -ArgumentList `'-Command `"irm https://github.com/ChrisTitusTech/winutil/releases/latest/download/winutil.ps1 | iex`"`'" + + $DestinationName = "WinUtil.lnk" + } + } + + # Show a File Dialog Browser, to let the User choose the Name and Location of where to save the Shortcut + $FileBrowser = New-Object System.Windows.Forms.SaveFileDialog + $FileBrowser.InitialDirectory = [Environment]::GetFolderPath('Desktop') + $FileBrowser.Filter = "Shortcut Files (*.lnk)|*.lnk" + $FileBrowser.FileName = $DestinationName + + # Do an Early Return if the Save Operation was canceled by User's Input. + $FileBrowserResult = $FileBrowser.ShowDialog() + $DialogResultEnum = New-Object System.Windows.Forms.DialogResult + if (-not ($FileBrowserResult -eq $DialogResultEnum::OK)) { + return + } + + # Prepare the Shortcut paramter + $WshShell = New-Object -comObject WScript.Shell + $Shortcut = $WshShell.CreateShortcut($FileBrowser.FileName) + $Shortcut.TargetPath = $shell + $Shortcut.Arguments = $shellArgs + if (Test-Path -Path $winutildir["logo.ico"]) { + $shortcut.IconLocation = $winutildir["logo.ico"] + } + + # Save the Shortcut to disk + $Shortcut.Save() + + if ($RunAsAdmin -eq $true) { + $bytes = [System.IO.File]::ReadAllBytes($FileBrowser.FileName) + # Set byte value at position 0x15 in hex, or 21 in decimal, from the value 0x00 to 0x20 in hex + $bytes[0x15] = $bytes[0x15] -bor 0x20 + [System.IO.File]::WriteAllBytes($FileBrowser.FileName, $bytes) + } + + Write-Host "Shortcut for $ShortcutToAdd has been saved to $($FileBrowser.FileName) with 'Run as administrator' set to $RunAsAdmin" +} + +``` + + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/tweaks.json) + diff --git a/docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/BlockAdobeNet.md b/docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/BlockAdobeNet.md new file mode 100644 index 0000000000..54ef2fe23c --- /dev/null +++ b/docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/BlockAdobeNet.md @@ -0,0 +1,245 @@ +# Adobe Network Block + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** +## Description + +Reduce user interruptions by selectively blocking connections to Adobe's activation and telemetry servers. Credit: Ruddernation-Designs + + + + + +
+Preview Code + +```json +{ + "Content": "Adobe Network Block", + "Description": "Reduce user interruptions by selectively blocking connections to Adobe's activation and telemetry servers. Credit: Ruddernation-Designs", + "category": "z__Advanced Tweaks - CAUTION", + "panel": "1", + "Order": "a021_", + "InvokeScript": [ + " + # Define the URL of the remote HOSTS file and the local paths + $remoteHostsUrl = \"https://raw.githubusercontent.com/Ruddernation-Designs/Adobe-URL-Block-List/master/hosts\" + $localHostsPath = \"C:\\Windows\\System32\\drivers\\etc\\hosts\" + $tempHostsPath = \"C:\\Windows\\System32\\drivers\\etc\\temp_hosts\" + + # Download the remote HOSTS file to a temporary location + try { + Invoke-WebRequest -Uri $remoteHostsUrl -OutFile $tempHostsPath + Write-Output \"Downloaded the remote HOSTS file to a temporary location.\" + } catch { + Write-Error \"Failed to download the HOSTS file. Error: $_\" + } + + # Check if the AdobeNetBlock has already been started + try { + $localHostsContent = Get-Content $localHostsPath -ErrorAction Stop + + # Check if AdobeNetBlock markers exist + $blockStartExists = $localHostsContent -like \"*#AdobeNetBlock-start*\" + if ($blockStartExists) { + Write-Output \"AdobeNetBlock-start already exists. Skipping addition of new block.\" + } else { + # Load the new block from the downloaded file + $newBlockContent = Get-Content $tempHostsPath -ErrorAction Stop + $newBlockContent = $newBlockContent | Where-Object { $_ -notmatch \"^\\s*#\" -and $_ -ne \"\" } # Exclude empty lines and comments + $newBlockHeader = \"#AdobeNetBlock-start\" + $newBlockFooter = \"#AdobeNetBlock-end\" + + # Combine the contents, ensuring new block is properly formatted + $combinedContent = $localHostsContent + $newBlockHeader, $newBlockContent, $newBlockFooter | Out-String + + # Write the combined content back to the original HOSTS file + $combinedContent | Set-Content $localHostsPath -Encoding ASCII + Write-Output \"Successfully added the AdobeNetBlock.\" + } + } catch { + Write-Error \"Error during processing: $_\" + } + + # Clean up temporary file + Remove-Item $tempHostsPath -ErrorAction Ignore + + # Flush the DNS resolver cache + try { + Invoke-Expression \"ipconfig /flushdns\" + Write-Output \"DNS cache flushed successfully.\" + } catch { + Write-Error \"Failed to flush DNS cache. Error: $_\" + } + " + ], + "UndoScript": [ + " + # Define the local path of the HOSTS file + $localHostsPath = \"C:\\Windows\\System32\\drivers\\etc\\hosts\" + + # Load the content of the HOSTS file + try { + $hostsContent = Get-Content $localHostsPath -ErrorAction Stop + } catch { + Write-Error \"Failed to load the HOSTS file. Error: $_\" + return + } + + # Initialize flags and buffer for new content + $recording = $true + $newContent = @() + + # Iterate over each line of the HOSTS file + foreach ($line in $hostsContent) { + if ($line -match \"#AdobeNetBlock-start\") { + $recording = $false + } + if ($recording) { + $newContent += $line + } + if ($line -match \"#AdobeNetBlock-end\") { + $recording = $true + } + } + + # Write the filtered content back to the HOSTS file + try { + $newContent | Set-Content $localHostsPath -Encoding ASCII + Write-Output \"Successfully removed the AdobeNetBlock section from the HOSTS file.\" + } catch { + Write-Error \"Failed to write back to the HOSTS file. Error: $_\" + } + + # Flush the DNS resolver cache + try { + Invoke-Expression \"ipconfig /flushdns\" + Write-Output \"DNS cache flushed successfully.\" + } catch { + Write-Error \"Failed to flush DNS cache. Error: $_\" + } + " + ], + "link": "https://christitustech.github.io/winutil/dev/tweaks/z--Advanced-Tweaks---CAUTION/BlockAdobeNet" +} +``` + +
+ +## Invoke Script + +```powershell + + # Define the URL of the remote HOSTS file and the local paths + $remoteHostsUrl = "https://raw.githubusercontent.com/Ruddernation-Designs/Adobe-URL-Block-List/master/hosts" + $localHostsPath = "C:\Windows\System32\drivers\etc\hosts" + $tempHostsPath = "C:\Windows\System32\drivers\etc\temp_hosts" + + # Download the remote HOSTS file to a temporary location + try { + Invoke-WebRequest -Uri $remoteHostsUrl -OutFile $tempHostsPath + Write-Output "Downloaded the remote HOSTS file to a temporary location." + } catch { + Write-Error "Failed to download the HOSTS file. Error: $_" + } + + # Check if the AdobeNetBlock has already been started + try { + $localHostsContent = Get-Content $localHostsPath -ErrorAction Stop + + # Check if AdobeNetBlock markers exist + $blockStartExists = $localHostsContent -like "*#AdobeNetBlock-start*" + if ($blockStartExists) { + Write-Output "AdobeNetBlock-start already exists. Skipping addition of new block." + } else { + # Load the new block from the downloaded file + $newBlockContent = Get-Content $tempHostsPath -ErrorAction Stop + $newBlockContent = $newBlockContent | Where-Object { $_ -notmatch "^\s*#" -and $_ -ne "" } # Exclude empty lines and comments + $newBlockHeader = "#AdobeNetBlock-start" + $newBlockFooter = "#AdobeNetBlock-end" + + # Combine the contents, ensuring new block is properly formatted + $combinedContent = $localHostsContent + $newBlockHeader, $newBlockContent, $newBlockFooter | Out-String + + # Write the combined content back to the original HOSTS file + $combinedContent | Set-Content $localHostsPath -Encoding ASCII + Write-Output "Successfully added the AdobeNetBlock." + } + } catch { + Write-Error "Error during processing: $_" + } + + # Clean up temporary file + Remove-Item $tempHostsPath -ErrorAction Ignore + + # Flush the DNS resolver cache + try { + Invoke-Expression "ipconfig /flushdns" + Write-Output "DNS cache flushed successfully." + } catch { + Write-Error "Failed to flush DNS cache. Error: $_" + } + + +``` +## Undo Script + +```powershell + + # Define the local path of the HOSTS file + $localHostsPath = "C:\Windows\System32\drivers\etc\hosts" + + # Load the content of the HOSTS file + try { + $hostsContent = Get-Content $localHostsPath -ErrorAction Stop + } catch { + Write-Error "Failed to load the HOSTS file. Error: $_" + return + } + + # Initialize flags and buffer for new content + $recording = $true + $newContent = @() + + # Iterate over each line of the HOSTS file + foreach ($line in $hostsContent) { + if ($line -match "#AdobeNetBlock-start") { + $recording = $false + } + if ($recording) { + $newContent += $line + } + if ($line -match "#AdobeNetBlock-end") { + $recording = $true + } + } + + # Write the filtered content back to the HOSTS file + try { + $newContent | Set-Content $localHostsPath -Encoding ASCII + Write-Output "Successfully removed the AdobeNetBlock section from the HOSTS file." + } catch { + Write-Error "Failed to write back to the HOSTS file. Error: $_" + } + + # Flush the DNS resolver cache + try { + Invoke-Expression "ipconfig /flushdns" + Write-Output "DNS cache flushed successfully." + } catch { + Write-Error "Failed to flush DNS cache. Error: $_" + } + + +``` + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/tweaks.json) + diff --git a/docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/DeBloat.md b/docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/DeBloat.md new file mode 100644 index 0000000000..a59d47150e --- /dev/null +++ b/docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/DeBloat.md @@ -0,0 +1,189 @@ +# Remove ALL MS Store Apps - NOT RECOMMENDED + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** +## Description + +USE WITH CAUTION!!!!! This will remove ALL Microsoft store apps other than the essentials to make winget work. Games installed by MS Store ARE INCLUDED! + + + + + +
+Preview Code + +```json +{ + "Content": "Remove ALL MS Store Apps - NOT RECOMMENDED", + "Description": "USE WITH CAUTION!!!!! This will remove ALL Microsoft store apps other than the essentials to make winget work. Games installed by MS Store ARE INCLUDED!", + "category": "z__Advanced Tweaks - CAUTION", + "panel": "1", + "Order": "a028_", + "appx": [ + "Microsoft.Microsoft3DViewer", + "Microsoft.AppConnector", + "Microsoft.BingFinance", + "Microsoft.BingNews", + "Microsoft.BingSports", + "Microsoft.BingTranslator", + "Microsoft.BingWeather", + "Microsoft.BingFoodAndDrink", + "Microsoft.BingHealthAndFitness", + "Microsoft.BingTravel", + "Microsoft.MinecraftUWP", + "Microsoft.GamingServices", + "Microsoft.GetHelp", + "Microsoft.Getstarted", + "Microsoft.Messaging", + "Microsoft.Microsoft3DViewer", + "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.YourPhone", + "Microsoft.WindowsSoundRecorder", + "Microsoft.XboxApp", + "Microsoft.ConnectivityStore", + "Microsoft.ScreenSketch", + "Microsoft.Xbox.TCUI", + "Microsoft.XboxGameOverlay", + "Microsoft.XboxGameCallableUI", + "Microsoft.XboxSpeechToTextOverlay", + "Microsoft.MixedReality.Portal", + "Microsoft.XboxIdentityProvider", + "Microsoft.ZuneMusic", + "Microsoft.ZuneVideo", + "Microsoft.Getstarted", + "Microsoft.MicrosoftOfficeHub", + "*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 = [System.IO.Path]::Combine($env:LOCALAPPDATA, 'Microsoft', 'Teams') + $TeamsUpdateExePath = [System.IO.Path]::Combine($TeamsPath, 'Update.exe') + + Write-Host \"Stopping Teams process...\" + Stop-Process -Name \"*teams*\" -Force -ErrorAction SilentlyContinue + + Write-Host \"Uninstalling Teams from AppData\\Microsoft\\Teams\" + if ([System.IO.File]::Exists($TeamsUpdateExePath)) { + # Uninstall app + $proc = Start-Process $TeamsUpdateExePath \"-uninstall -s\" -PassThru + $proc.WaitForExit() + } + + Write-Host \"Removing Teams AppxPackage...\" + Get-AppxPackage \"*Teams*\" | Remove-AppxPackage -ErrorAction SilentlyContinue + Get-AppxPackage \"*Teams*\" -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue + + Write-Host \"Deleting Teams directory\" + if ([System.IO.Directory]::Exists($TeamsPath)) { + Remove-Item $TeamsPath -Force -Recurse -ErrorAction SilentlyContinue + } + + Write-Host \"Deleting Teams uninstall registry key\" + # Uninstall from Uninstall registry key UninstallString + $us = (Get-ChildItem -Path HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall, HKLM:\\SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall | Get-ItemProperty | Where-Object { $_.DisplayName -like '*Teams*'}).UninstallString + if ($us.Length -gt 0) { + $us = ($us.Replace('/I', '/uninstall ') + ' /quiet').Replace(' ', ' ') + $FilePath = ($us.Substring(0, $us.IndexOf('.exe') + 4).Trim()) + $ProcessArgs = ($us.Substring($us.IndexOf('.exe') + 5).Trim().replace(' ', ' ')) + $proc = Start-Process -FilePath $FilePath -Args $ProcessArgs -PassThru + $proc.WaitForExit() + } + " + ], + "link": "https://christitustech.github.io/winutil/dev/tweaks/z--Advanced-Tweaks---CAUTION/DeBloat" +} +``` + +
+ +## Invoke Script + +```powershell + + $TeamsPath = [System.IO.Path]::Combine($env:LOCALAPPDATA, 'Microsoft', 'Teams') + $TeamsUpdateExePath = [System.IO.Path]::Combine($TeamsPath, 'Update.exe') + + Write-Host "Stopping Teams process..." + Stop-Process -Name "*teams*" -Force -ErrorAction SilentlyContinue + + Write-Host "Uninstalling Teams from AppData\Microsoft\Teams" + if ([System.IO.File]::Exists($TeamsUpdateExePath)) { + # Uninstall app + $proc = Start-Process $TeamsUpdateExePath "-uninstall -s" -PassThru + $proc.WaitForExit() + } + + Write-Host "Removing Teams AppxPackage..." + Get-AppxPackage "*Teams*" | Remove-AppxPackage -ErrorAction SilentlyContinue + Get-AppxPackage "*Teams*" -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue + + Write-Host "Deleting Teams directory" + if ([System.IO.Directory]::Exists($TeamsPath)) { + Remove-Item $TeamsPath -Force -Recurse -ErrorAction SilentlyContinue + } + + Write-Host "Deleting Teams uninstall registry key" + # Uninstall from Uninstall registry key UninstallString + $us = (Get-ChildItem -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall, HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall | Get-ItemProperty | Where-Object { $_.DisplayName -like '*Teams*'}).UninstallString + if ($us.Length -gt 0) { + $us = ($us.Replace('/I', '/uninstall ') + ' /quiet').Replace(' ', ' ') + $FilePath = ($us.Substring(0, $us.IndexOf('.exe') + 4).Trim()) + $ProcessArgs = ($us.Substring($us.IndexOf('.exe') + 5).Trim().replace(' ', ' ')) + $proc = Start-Process -FilePath $FilePath -Args $ProcessArgs -PassThru + $proc.WaitForExit() + } + + +``` + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/tweaks.json) + diff --git a/docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/DebloatAdobe.md b/docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/DebloatAdobe.md new file mode 100644 index 0000000000..ae598dfd1c --- /dev/null +++ b/docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/DebloatAdobe.md @@ -0,0 +1,342 @@ +# Adobe Debloat + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** +## Description + +Manages Adobe Services, Adobe Desktop Service, and Acrobat Updates + + + + + +
+Preview Code + +```json +{ + "Content": "Adobe Debloat", + "Description": "Manages Adobe Services, Adobe Desktop Service, and Acrobat Updates", + "category": "z__Advanced Tweaks - CAUTION", + "panel": "1", + "Order": "a021_", + "InvokeScript": [ + " + function CCStopper { + $path = \"C:\\Program Files (x86)\\Common Files\\Adobe\\Adobe Desktop Common\\ADS\\Adobe Desktop Service.exe\" + + # Test if the path exists before proceeding + if (Test-Path $path) { + Takeown /f $path + $acl = Get-Acl $path + $acl.SetOwner([System.Security.Principal.NTAccount]\"Administrators\") + $acl | Set-Acl $path + + Rename-Item -Path $path -NewName \"Adobe Desktop Service.exe.old\" -Force + } else { + Write-Host \"Adobe Desktop Service is not in the default location.\" + } + } + + + function AcrobatUpdates { + # Editing Acrobat Updates. The last folder before the key is dynamic, therefore using a script. + # Possible Values for the edited key: + # 0 = Do not download or install updates automatically + # 2 = Automatically download updates but let the user choose when to install them + # 3 = Automatically download and install updates (default value) + # 4 = Notify the user when an update is available but don't download or install it automatically + # = It notifies the user using Windows Notifications. It runs on startup without having to have a Service/Acrobat/Reader running, therefore 0 is the next best thing. + + $rootPath = \"HKLM:\\SOFTWARE\\WOW6432Node\\Adobe\\Adobe ARM\\Legacy\\Acrobat\" + + # Get all subkeys under the specified root path + $subKeys = Get-ChildItem -Path $rootPath | Where-Object { $_.PSChildName -like \"{*}\" } + + # Loop through each subkey + foreach ($subKey in $subKeys) { + # Get the full registry path + $fullPath = Join-Path -Path $rootPath -ChildPath $subKey.PSChildName + try { + Set-ItemProperty -Path $fullPath -Name Mode -Value 0 + Write-Host \"Acrobat Updates have been disabled.\" + } catch { + Write-Host \"Registry Key for changing Acrobat Updates does not exist in $fullPath\" + } + } + } + + CCStopper + AcrobatUpdates + " + ], + "UndoScript": [ + " + function RestoreCCService { + $originalPath = \"C:\\Program Files (x86)\\Common Files\\Adobe\\Adobe Desktop Common\\ADS\\Adobe Desktop Service.exe.old\" + $newPath = \"C:\\Program Files (x86)\\Common Files\\Adobe\\Adobe Desktop Common\\ADS\\Adobe Desktop Service.exe\" + + if (Test-Path -Path $originalPath) { + Rename-Item -Path $originalPath -NewName \"Adobe Desktop Service.exe\" -Force + Write-Host \"Adobe Desktop Service has been restored.\" + } else { + Write-Host \"Backup file does not exist. No changes were made.\" + } + } + + function AcrobatUpdates { + # Default Value: + # 3 = Automatically download and install updates + + $rootPath = \"HKLM:\\SOFTWARE\\WOW6432Node\\Adobe\\Adobe ARM\\Legacy\\Acrobat\" + + # Get all subkeys under the specified root path + $subKeys = Get-ChildItem -Path $rootPath | Where-Object { $_.PSChildName -like \"{*}\" } + + # Loop through each subkey + foreach ($subKey in $subKeys) { + # Get the full registry path + $fullPath = Join-Path -Path $rootPath -ChildPath $subKey.PSChildName + try { + Set-ItemProperty -Path $fullPath -Name Mode -Value 3 + } catch { + Write-Host \"Registry Key for changing Acrobat Updates does not exist in $fullPath\" + } + } + } + + RestoreCCService + AcrobatUpdates + " + ], + "service": [ + { + "Name": "AGSService", + "StartupType": "Disabled", + "OriginalType": "Automatic" + }, + { + "Name": "AGMService", + "StartupType": "Disabled", + "OriginalType": "Automatic" + }, + { + "Name": "AdobeUpdateService", + "StartupType": "Manual", + "OriginalType": "Automatic" + }, + { + "Name": "Adobe Acrobat Update", + "StartupType": "Manual", + "OriginalType": "Automatic" + }, + { + "Name": "Adobe Genuine Monitor Service", + "StartupType": "Disabled", + "OriginalType": "Automatic" + }, + { + "Name": "AdobeARMservice", + "StartupType": "Manual", + "OriginalType": "Automatic" + }, + { + "Name": "Adobe Licensing Console", + "StartupType": "Manual", + "OriginalType": "Automatic" + }, + { + "Name": "CCXProcess", + "StartupType": "Manual", + "OriginalType": "Automatic" + }, + { + "Name": "AdobeIPCBroker", + "StartupType": "Manual", + "OriginalType": "Automatic" + }, + { + "Name": "CoreSync", + "StartupType": "Manual", + "OriginalType": "Automatic" + } + ], + "link": "https://christitustech.github.io/winutil/dev/tweaks/z--Advanced-Tweaks---CAUTION/DebloatAdobe" +} +``` + +
+ +## Invoke Script + +```powershell + + function CCStopper { + $path = "C:\Program Files (x86)\Common Files\Adobe\Adobe Desktop Common\ADS\Adobe Desktop Service.exe" + + # Test if the path exists before proceeding + if (Test-Path $path) { + Takeown /f $path + $acl = Get-Acl $path + $acl.SetOwner([System.Security.Principal.NTAccount]"Administrators") + $acl | Set-Acl $path + + Rename-Item -Path $path -NewName "Adobe Desktop Service.exe.old" -Force + } else { + Write-Host "Adobe Desktop Service is not in the default location." + } + } + + + function AcrobatUpdates { + # Editing Acrobat Updates. The last folder before the key is dynamic, therefore using a script. + # Possible Values for the edited key: + # 0 = Do not download or install updates automatically + # 2 = Automatically download updates but let the user choose when to install them + # 3 = Automatically download and install updates (default value) + # 4 = Notify the user when an update is available but don't download or install it automatically + # = It notifies the user using Windows Notifications. It runs on startup without having to have a Service/Acrobat/Reader running, therefore 0 is the next best thing. + + $rootPath = "HKLM:\SOFTWARE\WOW6432Node\Adobe\Adobe ARM\Legacy\Acrobat" + + # Get all subkeys under the specified root path + $subKeys = Get-ChildItem -Path $rootPath | Where-Object { $_.PSChildName -like "{*}" } + + # Loop through each subkey + foreach ($subKey in $subKeys) { + # Get the full registry path + $fullPath = Join-Path -Path $rootPath -ChildPath $subKey.PSChildName + try { + Set-ItemProperty -Path $fullPath -Name Mode -Value 0 + Write-Host "Acrobat Updates have been disabled." + } catch { + Write-Host "Registry Key for changing Acrobat Updates does not exist in $fullPath" + } + } + } + + CCStopper + AcrobatUpdates + + +``` +## Undo Script + +```powershell + + function RestoreCCService { + $originalPath = "C:\Program Files (x86)\Common Files\Adobe\Adobe Desktop Common\ADS\Adobe Desktop Service.exe.old" + $newPath = "C:\Program Files (x86)\Common Files\Adobe\Adobe Desktop Common\ADS\Adobe Desktop Service.exe" + + if (Test-Path -Path $originalPath) { + Rename-Item -Path $originalPath -NewName "Adobe Desktop Service.exe" -Force + Write-Host "Adobe Desktop Service has been restored." + } else { + Write-Host "Backup file does not exist. No changes were made." + } + } + + function AcrobatUpdates { + # Default Value: + # 3 = Automatically download and install updates + + $rootPath = "HKLM:\SOFTWARE\WOW6432Node\Adobe\Adobe ARM\Legacy\Acrobat" + + # Get all subkeys under the specified root path + $subKeys = Get-ChildItem -Path $rootPath | Where-Object { $_.PSChildName -like "{*}" } + + # Loop through each subkey + foreach ($subKey in $subKeys) { + # Get the full registry path + $fullPath = Join-Path -Path $rootPath -ChildPath $subKey.PSChildName + try { + Set-ItemProperty -Path $fullPath -Name Mode -Value 3 + } catch { + Write-Host "Registry Key for changing Acrobat Updates does not exist in $fullPath" + } + } + } + + RestoreCCService + AcrobatUpdates + + +``` +## Service Changes + +Windows services are background processes for system functions or applications. Setting some to manual optimizes performance by starting them only when needed. + +You can find information about services on [Wikipedia](https://www.wikiwand.com/en/Windows_service) and [Microsoft's Website](https://learn.microsoft.com/en-us/dotnet/framework/windows-services/introduction-to-windows-service-applications). + +### Service Name: AGSService + +**Startup Type:** Disabled + +**Original Type:** Automatic + +### Service Name: AGMService + +**Startup Type:** Disabled + +**Original Type:** Automatic + +### Service Name: AdobeUpdateService + +**Startup Type:** Manual + +**Original Type:** Automatic + +### Service Name: Adobe Acrobat Update + +**Startup Type:** Manual + +**Original Type:** Automatic + +### Service Name: Adobe Genuine Monitor Service + +**Startup Type:** Disabled + +**Original Type:** Automatic + +### Service Name: AdobeARMservice + +**Startup Type:** Manual + +**Original Type:** Automatic + +### Service Name: Adobe Licensing Console + +**Startup Type:** Manual + +**Original Type:** Automatic + +### Service Name: CCXProcess + +**Startup Type:** Manual + +**Original Type:** Automatic + +### Service Name: AdobeIPCBroker + +**Startup Type:** Manual + +**Original Type:** Automatic + +### Service Name: CoreSync + +**Startup Type:** Manual + +**Original Type:** Automatic + + + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/tweaks.json) + diff --git a/docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/DisableBGapps.md b/docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/DisableBGapps.md new file mode 100644 index 0000000000..10722d1647 --- /dev/null +++ b/docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/DisableBGapps.md @@ -0,0 +1,63 @@ +# Disable Background Apps + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** +## Description + +Disables all Microsoft Store apps from running in the background, which has to be done individually since Win11 + + + + + +
+Preview Code + +```json +{ + "Content": "Disable Background Apps", + "Description": "Disables all Microsoft Store apps from running in the background, which has to be done individually since Win11", + "category": "z__Advanced Tweaks - CAUTION", + "panel": "1", + "Order": "a024_", + "registry": [ + { + "Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\BackgroundAccessApplications", + "Name": "GlobalUserDisabled", + "Value": "1", + "OriginalValue": "0", + "Type": "DWord" + } + ], + "link": "https://christitustech.github.io/winutil/dev/tweaks/z--Advanced-Tweaks---CAUTION/DisableBGapps" +} +``` + +
+ +## 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). + +### Registry Key: GlobalUserDisabled + +**Type:** DWord + +**Original Value:** 0 + +**New Value:** 1 + + + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/tweaks.json) + diff --git a/docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/DisableFSO.md b/docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/DisableFSO.md new file mode 100644 index 0000000000..367b1a3a80 --- /dev/null +++ b/docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/DisableFSO.md @@ -0,0 +1,63 @@ +# Disable Fullscreen Optimizations + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** +## Description + +Disables FSO in all applications. NOTE: This will disable Color Management in Exclusive Fullscreen + + + + + +
+Preview Code + +```json +{ + "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", + "Order": "a024_", + "registry": [ + { + "Path": "HKCU:\\System\\GameConfigStore", + "Name": "GameDVR_DXGIHonorFSEWindowsCompatible", + "Value": "1", + "OriginalValue": "0", + "Type": "DWord" + } + ], + "link": "https://christitustech.github.io/winutil/dev/tweaks/z--Advanced-Tweaks---CAUTION/DisableFSO" +} +``` + +
+ +## 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). + +### Registry Key: GameDVR_DXGIHonorFSEWindowsCompatible + +**Type:** DWord + +**Original Value:** 0 + +**New Value:** 1 + + + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/tweaks.json) + diff --git a/docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/DisableLMS1.md b/docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/DisableLMS1.md new file mode 100644 index 0000000000..5f0b339dcd --- /dev/null +++ b/docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/DisableLMS1.md @@ -0,0 +1,145 @@ +# Disable Intel MM (vPro LMS) + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** +## Description + +Intel LMS service is always listening on all ports and could be a huge security risk. There is no need to run LMS on home machines and even in the Enterprise there are better solutions. + + + + + +
+Preview Code + +```json +{ + "Content": "Disable Intel MM (vPro LMS)", + "Description": "Intel LMS service is always listening on all ports and could be a huge security risk. There is no need to run LMS on home machines and even in the Enterprise there are better solutions.", + "category": "z__Advanced Tweaks - CAUTION", + "panel": "1", + "Order": "a026_", + "InvokeScript": [ + " + Write-Host \"Kill LMS\" + $serviceName = \"LMS\" + Write-Host \"Stopping and disabling service: $serviceName\" + Stop-Service -Name $serviceName -Force -ErrorAction SilentlyContinue; + Set-Service -Name $serviceName -StartupType Disabled -ErrorAction SilentlyContinue; + + Write-Host \"Removing service: $serviceName\"; + sc.exe delete $serviceName; + + Write-Host \"Removing LMS driver packages\"; + $lmsDriverPackages = Get-ChildItem -Path \"C:\\Windows\\System32\\DriverStore\\FileRepository\" -Recurse -Filter \"lms.inf*\"; + foreach ($package in $lmsDriverPackages) { + Write-Host \"Removing driver package: $($package.Name)\"; + pnputil /delete-driver $($package.Name) /uninstall /force; + } + if ($lmsDriverPackages.Count -eq 0) { + Write-Host \"No LMS driver packages found in the driver store.\"; + } else { + Write-Host \"All found LMS driver packages have been removed.\"; + } + + Write-Host \"Searching and deleting LMS executable files\"; + $programFilesDirs = @(\"C:\\Program Files\", \"C:\\Program Files (x86)\"); + $lmsFiles = @(); + foreach ($dir in $programFilesDirs) { + $lmsFiles += Get-ChildItem -Path $dir -Recurse -Filter \"LMS.exe\" -ErrorAction SilentlyContinue; + } + foreach ($file in $lmsFiles) { + Write-Host \"Taking ownership of file: $($file.FullName)\"; + & icacls $($file.FullName) /grant Administrators:F /T /C /Q; + & takeown /F $($file.FullName) /A /R /D Y; + Write-Host \"Deleting file: $($file.FullName)\"; + Remove-Item $($file.FullName) -Force -ErrorAction SilentlyContinue; + } + if ($lmsFiles.Count -eq 0) { + Write-Host \"No LMS.exe files found in Program Files directories.\"; + } else { + Write-Host \"All found LMS.exe files have been deleted.\"; + } + Write-Host 'Intel LMS vPro service has been disabled, removed, and blocked.'; + " + ], + "UndoScript": [ + " + Write-Host \"LMS vPro needs to be redownloaded from intel.com\" + + " + ], + "link": "https://christitustech.github.io/winutil/dev/tweaks/z--Advanced-Tweaks---CAUTION/DisableLMS1" +} +``` + +
+ +## Invoke Script + +```powershell + + Write-Host "Kill LMS" + $serviceName = "LMS" + Write-Host "Stopping and disabling service: $serviceName" + Stop-Service -Name $serviceName -Force -ErrorAction SilentlyContinue; + Set-Service -Name $serviceName -StartupType Disabled -ErrorAction SilentlyContinue; + + Write-Host "Removing service: $serviceName"; + sc.exe delete $serviceName; + + Write-Host "Removing LMS driver packages"; + $lmsDriverPackages = Get-ChildItem -Path "C:\Windows\System32\DriverStore\FileRepository" -Recurse -Filter "lms.inf*"; + foreach ($package in $lmsDriverPackages) { + Write-Host "Removing driver package: $($package.Name)"; + pnputil /delete-driver $($package.Name) /uninstall /force; + } + if ($lmsDriverPackages.Count -eq 0) { + Write-Host "No LMS driver packages found in the driver store."; + } else { + Write-Host "All found LMS driver packages have been removed."; + } + + Write-Host "Searching and deleting LMS executable files"; + $programFilesDirs = @("C:\Program Files", "C:\Program Files (x86)"); + $lmsFiles = @(); + foreach ($dir in $programFilesDirs) { + $lmsFiles += Get-ChildItem -Path $dir -Recurse -Filter "LMS.exe" -ErrorAction SilentlyContinue; + } + foreach ($file in $lmsFiles) { + Write-Host "Taking ownership of file: $($file.FullName)"; + & icacls $($file.FullName) /grant Administrators:F /T /C /Q; + & takeown /F $($file.FullName) /A /R /D Y; + Write-Host "Deleting file: $($file.FullName)"; + Remove-Item $($file.FullName) -Force -ErrorAction SilentlyContinue; + } + if ($lmsFiles.Count -eq 0) { + Write-Host "No LMS.exe files found in Program Files directories."; + } else { + Write-Host "All found LMS.exe files have been deleted."; + } + Write-Host 'Intel LMS vPro service has been disabled, removed, and blocked.'; + + +``` +## Undo Script + +```powershell + + Write-Host "LMS vPro needs to be redownloaded from intel.com" + + + +``` + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/tweaks.json) + diff --git a/docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/DisableNotifications.md b/docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/DisableNotifications.md new file mode 100644 index 0000000000..c633ac6133 --- /dev/null +++ b/docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/DisableNotifications.md @@ -0,0 +1,78 @@ +# Disable Notification Tray/Calendar + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** +## Description + +Disables all Notifications INCLUDING Calendar + + + + + +
+Preview Code + +```json +{ + "Content": "Disable Notification Tray/Calendar", + "Description": "Disables all Notifications INCLUDING Calendar", + "category": "z__Advanced Tweaks - CAUTION", + "panel": "1", + "Order": "a026_", + "registry": [ + { + "Path": "HKCU:\\Software\\Policies\\Microsoft\\Windows\\Explorer", + "Name": "DisableNotificationCenter", + "Type": "DWord", + "Value": "1", + "OriginalValue": "0" + }, + { + "Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\PushNotifications", + "Name": "ToastEnabled", + "Type": "DWord", + "Value": "0", + "OriginalValue": "1" + } + ], + "link": "https://christitustech.github.io/winutil/dev/tweaks/z--Advanced-Tweaks---CAUTION/DisableNotifications" +} +``` + +
+ +## 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). + +### Registry Key: DisableNotificationCenter + +**Type:** DWord + +**Original Value:** 0 + +**New Value:** 1 + +### Registry Key: ToastEnabled + +**Type:** DWord + +**Original Value:** 1 + +**New Value:** 0 + + + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/tweaks.json) + diff --git a/docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/Disableipsix.md b/docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/Disableipsix.md new file mode 100644 index 0000000000..f71affcf96 --- /dev/null +++ b/docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/Disableipsix.md @@ -0,0 +1,81 @@ +# Disable IPv6 + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** +## Description + +Disables IPv6. + + + + + +
+Preview Code + +```json +{ + "Content": "Disable IPv6", + "Description": "Disables IPv6.", + "category": "z__Advanced Tweaks - CAUTION", + "panel": "1", + "Order": "a023_", + "registry": [ + { + "Path": "HKLM:\\SYSTEM\\CurrentControlSet\\Services\\Tcpip6\\Parameters", + "Name": "DisabledComponents", + "Value": "255", + "OriginalValue": "0", + "Type": "DWord" + } + ], + "InvokeScript": [ + "Disable-NetAdapterBinding -Name \"*\" -ComponentID ms_tcpip6" + ], + "UndoScript": [ + "Enable-NetAdapterBinding -Name \"*\" -ComponentID ms_tcpip6" + ], + "link": "https://christitustech.github.io/winutil/dev/tweaks/z--Advanced-Tweaks---CAUTION/Disableipsix" +} +``` + +
+ +## Invoke Script + +```powershell +Disable-NetAdapterBinding -Name "*" -ComponentID ms_tcpip6 + +``` +## Undo Script + +```powershell +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). + +### Registry Key: DisabledComponents + +**Type:** DWord + +**Original Value:** 0 + +**New Value:** 255 + + + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/tweaks.json) + diff --git a/docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/Display.md b/docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/Display.md new file mode 100644 index 0000000000..e81d6891e0 --- /dev/null +++ b/docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/Display.md @@ -0,0 +1,261 @@ +# Set Display for Performance + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** +## Description + +Sets the system preferences to performance. You can do this manually with sysdm.cpl as well. + + + + + +
+Preview Code + +```json +{ + "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", + "Order": "a027_", + "registry": [ + { + "Path": "HKCU:\\Control Panel\\Desktop", + "OriginalValue": "1", + "Name": "DragFullWindows", + "Value": "0", + "Type": "String" + }, + { + "Path": "HKCU:\\Control Panel\\Desktop", + "OriginalValue": "1", + "Name": "MenuShowDelay", + "Value": "200", + "Type": "String" + }, + { + "Path": "HKCU:\\Control Panel\\Desktop\\WindowMetrics", + "OriginalValue": "1", + "Name": "MinAnimate", + "Value": "0", + "Type": "String" + }, + { + "Path": "HKCU:\\Control Panel\\Keyboard", + "OriginalValue": "1", + "Name": "KeyboardDelay", + "Value": "0", + "Type": "DWord" + }, + { + "Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced", + "OriginalValue": "1", + "Name": "ListviewAlphaSelect", + "Value": "0", + "Type": "DWord" + }, + { + "Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced", + "OriginalValue": "1", + "Name": "ListviewShadow", + "Value": "0", + "Type": "DWord" + }, + { + "Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced", + "OriginalValue": "1", + "Name": "TaskbarAnimations", + "Value": "0", + "Type": "DWord" + }, + { + "Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\VisualEffects", + "OriginalValue": "1", + "Name": "VisualFXSetting", + "Value": "3", + "Type": "DWord" + }, + { + "Path": "HKCU:\\Software\\Microsoft\\Windows\\DWM", + "OriginalValue": "1", + "Name": "EnableAeroPeek", + "Value": "0", + "Type": "DWord" + }, + { + "Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced", + "OriginalValue": "1", + "Name": "TaskbarMn", + "Value": "0", + "Type": "DWord" + }, + { + "Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced", + "OriginalValue": "1", + "Name": "TaskbarDa", + "Value": "0", + "Type": "DWord" + }, + { + "Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced", + "OriginalValue": "1", + "Name": "ShowTaskViewButton", + "Value": "0", + "Type": "DWord" + }, + { + "Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Search", + "OriginalValue": "1", + "Name": "SearchboxTaskbarMode", + "Value": "0", + "Type": "DWord" + } + ], + "InvokeScript": [ + "Set-ItemProperty -Path \"HKCU:\\Control Panel\\Desktop\" -Name \"UserPreferencesMask\" -Type Binary -Value ([byte[]](144,18,3,128,16,0,0,0))" + ], + "UndoScript": [ + "Remove-ItemProperty -Path \"HKCU:\\Control Panel\\Desktop\" -Name \"UserPreferencesMask\"" + ], + "link": "https://christitustech.github.io/winutil/dev/tweaks/z--Advanced-Tweaks---CAUTION/Display" +} +``` + +
+ +## Invoke Script + +```powershell +Set-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name "UserPreferencesMask" -Type Binary -Value ([byte[]](144,18,3,128,16,0,0,0)) + +``` +## Undo Script + +```powershell +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). + +### Registry Key: DragFullWindows + +**Type:** String + +**Original Value:** 1 + +**New Value:** 0 + +### Registry Key: MenuShowDelay + +**Type:** String + +**Original Value:** 1 + +**New Value:** 200 + +### Registry Key: MinAnimate + +**Type:** String + +**Original Value:** 1 + +**New Value:** 0 + +### Registry Key: KeyboardDelay + +**Type:** DWord + +**Original Value:** 1 + +**New Value:** 0 + +### Registry Key: ListviewAlphaSelect + +**Type:** DWord + +**Original Value:** 1 + +**New Value:** 0 + +### Registry Key: ListviewShadow + +**Type:** DWord + +**Original Value:** 1 + +**New Value:** 0 + +### Registry Key: TaskbarAnimations + +**Type:** DWord + +**Original Value:** 1 + +**New Value:** 0 + +### Registry Key: VisualFXSetting + +**Type:** DWord + +**Original Value:** 1 + +**New Value:** 3 + +### Registry Key: EnableAeroPeek + +**Type:** DWord + +**Original Value:** 1 + +**New Value:** 0 + +### Registry Key: TaskbarMn + +**Type:** DWord + +**Original Value:** 1 + +**New Value:** 0 + +### Registry Key: TaskbarDa + +**Type:** DWord + +**Original Value:** 1 + +**New Value:** 0 + +### Registry Key: ShowTaskViewButton + +**Type:** DWord + +**Original Value:** 1 + +**New Value:** 0 + +### Registry Key: SearchboxTaskbarMode + +**Type:** DWord + +**Original Value:** 1 + +**New Value:** 0 + + + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/tweaks.json) + diff --git a/docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/OOSUbutton.md b/docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/OOSUbutton.md new file mode 100644 index 0000000000..b0caa5f476 --- /dev/null +++ b/docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/OOSUbutton.md @@ -0,0 +1,62 @@ +# Run OO Shutup 10 + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** + + + + + + +
+Preview Code + +```json +{ + "Content": "Run OO Shutup 10", + "category": "z__Advanced Tweaks - CAUTION", + "panel": "1", + "Order": "a039_", + "Type": "Button", + "link": "https://christitustech.github.io/winutil/dev/tweaks/z--Advanced-Tweaks---CAUTION/OOSUbutton" +} +``` + +
+ +## Function: Invoke-WPFOOSU + +```powershell +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 + } +} + +``` + + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/tweaks.json) + diff --git a/docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/RemoveCopilot.md b/docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/RemoveCopilot.md new file mode 100644 index 0000000000..1594735d38 --- /dev/null +++ b/docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/RemoveCopilot.md @@ -0,0 +1,123 @@ +# Disable Microsoft Copilot + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** +## Description + +Disables MS Copilot AI built into Windows since 23H2. + + + + + +
+Preview Code + +```json +{ + "Content": "Disable Microsoft Copilot", + "Description": "Disables MS Copilot AI built into Windows since 23H2.", + "category": "z__Advanced Tweaks - CAUTION", + "panel": "1", + "Order": "a025_", + "registry": [ + { + "Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\WindowsCopilot", + "Name": "TurnOffWindowsCopilot", + "Type": "DWord", + "Value": "1", + "OriginalValue": "0" + }, + { + "Path": "HKCU:\\Software\\Policies\\Microsoft\\Windows\\WindowsCopilot", + "Name": "TurnOffWindowsCopilot", + "Type": "DWord", + "Value": "1", + "OriginalValue": "0" + }, + { + "Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced", + "Name": "ShowCopilotButton", + "Type": "DWord", + "Value": "0", + "OriginalValue": "1" + } + ], + "InvokeScript": [ + " + Write-Host \"Remove Copilot\" + dism /online /remove-package /package-name:Microsoft.Windows.Copilot + " + ], + "UndoScript": [ + " + Write-Host \"Install Copilot\" + dism /online /add-package /package-name:Microsoft.Windows.Copilot + " + ], + "link": "https://christitustech.github.io/winutil/dev/tweaks/z--Advanced-Tweaks---CAUTION/RemoveCopilot" +} +``` + +
+ +## Invoke Script + +```powershell + + Write-Host "Remove Copilot" + dism /online /remove-package /package-name:Microsoft.Windows.Copilot + + +``` +## Undo Script + +```powershell + + Write-Host "Install Copilot" + dism /online /add-package /package-name:Microsoft.Windows.Copilot + + +``` +## 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). + +### Registry Key: TurnOffWindowsCopilot + +**Type:** DWord + +**Original Value:** 0 + +**New Value:** 1 + +### Registry Key: TurnOffWindowsCopilot + +**Type:** DWord + +**Original Value:** 0 + +**New Value:** 1 + +### Registry Key: ShowCopilotButton + +**Type:** DWord + +**Original Value:** 1 + +**New Value:** 0 + + + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/tweaks.json) + diff --git a/docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/RemoveEdge.md b/docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/RemoveEdge.md new file mode 100644 index 0000000000..cfd3c1cc6b --- /dev/null +++ b/docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/RemoveEdge.md @@ -0,0 +1,225 @@ +# Remove Microsoft Edge + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** +## Description + +Removes MS Edge when it gets reinstalled by updates. Credit: Techie Jack + + + + + +
+Preview Code + +```json +{ + "Content": "Remove Microsoft Edge", + "Description": "Removes MS Edge when it gets reinstalled by updates. Credit: Techie Jack", + "category": "z__Advanced Tweaks - CAUTION", + "panel": "1", + "Order": "a029_", + "InvokeScript": [ + " + Uninstall-WinUtilEdgeBrowser + " + ], + "UndoScript": [ + " + Write-Host \"Install Microsoft Edge\" + Start-Process -FilePath winget -ArgumentList \"install --force -e --accept-source-agreements --accept-package-agreements --silent Microsoft.Edge \" -NoNewWindow -Wait + " + ], + "link": "https://christitustech.github.io/winutil/dev/tweaks/z--Advanced-Tweaks---CAUTION/RemoveEdge" +} +``` + +
+ +## Invoke Script + +```powershell + + Uninstall-WinUtilEdgeBrowser + + +``` +## Undo Script + +```powershell + + Write-Host "Install Microsoft Edge" + Start-Process -FilePath winget -ArgumentList "install --force -e --accept-source-agreements --accept-package-agreements --silent Microsoft.Edge " -NoNewWindow -Wait + + +``` +## Function: Uninstall-WinUtilEdgeBrowser + +```powershell +Function Uninstall-WinUtilEdgeBrowser { + + <# + + .SYNOPSIS + This will uninstall edge by changing the region to Ireland and uninstalling edge the changing it back + + #> + +$msedgeProcess = Get-Process -Name "msedge" -ErrorAction SilentlyContinue +$widgetsProcess = Get-Process -Name "widgets" -ErrorAction SilentlyContinue +# Checking if Microsoft Edge is running +if ($msedgeProcess) { + Stop-Process -Name "msedge" -Force +} else { + Write-Output "msedge process is not running." +} +# Checking if Widgets is running +if ($widgetsProcess) { + Stop-Process -Name "widgets" -Force +} else { + Write-Output "widgets process is not running." +} + +function Uninstall-Process { + param ( + [Parameter(Mandatory = $true)] + [string]$Key + ) + + $originalNation = [microsoft.win32.registry]::GetValue('HKEY_USERS\.DEFAULT\Control Panel\International\Geo', 'Nation', [Microsoft.Win32.RegistryValueKind]::String) + + # Set Nation to 84 (France) temporarily + [microsoft.win32.registry]::SetValue('HKEY_USERS\.DEFAULT\Control Panel\International\Geo', 'Nation', 68, [Microsoft.Win32.RegistryValueKind]::String) | Out-Null + + # credits to he3als for the Acl commands + $fileName = "IntegratedServicesRegionPolicySet.json" + $pathISRPS = [Environment]::SystemDirectory + "\" + $fileName + $aclISRPS = Get-Acl -Path $pathISRPS + $aclISRPSBackup = [System.Security.AccessControl.FileSecurity]::new() + $aclISRPSBackup.SetSecurityDescriptorSddlForm($acl.Sddl) + if (Test-Path -Path $pathISRPS) { + try { + $admin = [System.Security.Principal.NTAccount]$(New-Object System.Security.Principal.SecurityIdentifier('S-1-5-32-544')).Translate([System.Security.Principal.NTAccount]).Value + + $aclISRPS.SetOwner($admin) + $rule = New-Object System.Security.AccessControl.FileSystemAccessRule($admin, 'FullControl', 'Allow') + $aclISRPS.AddAccessRule($rule) + Set-Acl -Path $pathISRPS -AclObject $aclISRPS + + Rename-Item -Path $pathISRPS -NewName ($fileName + '.bak') -Force + } + catch { + Write-Error "[$Mode] Failed to set owner for $pathISRPS" + } + } + + $baseKey = 'HKLM:\SOFTWARE\WOW6432Node\Microsoft\EdgeUpdate' + $registryPath = $baseKey + '\ClientState\' + $Key + + if (!(Test-Path -Path $registryPath)) { + Write-Host "[$Mode] Registry key not found: $registryPath" + return + } + + Remove-ItemProperty -Path $registryPath -Name "experiment_control_labels" -ErrorAction SilentlyContinue | Out-Null + + $uninstallString = (Get-ItemProperty -Path $registryPath).UninstallString + $uninstallArguments = (Get-ItemProperty -Path $registryPath).UninstallArguments + + if ([string]::IsNullOrEmpty($uninstallString) -or [string]::IsNullOrEmpty($uninstallArguments)) { + Write-Host "[$Mode] Cannot find uninstall methods for $Mode" + return + } + + $uninstallArguments += " --force-uninstall --delete-profile" + + # $uninstallCommand = "`"$uninstallString`"" + $uninstallArguments + if (!(Test-Path -Path $uninstallString)) { + Write-Host "[$Mode] setup.exe not found at: $uninstallString" + return + } + Start-Process -FilePath $uninstallString -ArgumentList $uninstallArguments -Wait -NoNewWindow -Verbose + + # Restore Acl + if (Test-Path -Path ($pathISRPS + '.bak')) { + Rename-Item -Path ($pathISRPS + '.bak') -NewName $fileName -Force + Set-Acl -Path $pathISRPS -AclObject $aclISRPSBackup + } + + # Restore Nation + [microsoft.win32.registry]::SetValue('HKEY_USERS\.DEFAULT\Control Panel\International\Geo', 'Nation', $originalNation, [Microsoft.Win32.RegistryValueKind]::String) | Out-Null + + if ((Get-ItemProperty -Path $baseKey).IsEdgeStableUninstalled -eq 1) { + Write-Host "[$Mode] Edge Stable has been successfully uninstalled" + } +} + +function Uninstall-Edge { + Remove-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge" -Name "NoRemove" -ErrorAction SilentlyContinue | Out-Null + + [microsoft.win32.registry]::SetValue("HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\EdgeUpdateDev", "AllowUninstall", 1, [Microsoft.Win32.RegistryValueKind]::DWord) | Out-Null + + Uninstall-Process -Key '{56EB18F8-B008-4CBD-B6D2-8C97FE7E9062}' + + @( "$env:ProgramData\Microsoft\Windows\Start Menu\Programs", + "$env:PUBLIC\Desktop", + "$env:USERPROFILE\Desktop" ) | ForEach-Object { + $shortcutPath = Join-Path -Path $_ -ChildPath "Microsoft Edge.lnk" + if (Test-Path -Path $shortcutPath) { + Remove-Item -Path $shortcutPath -Force + } + } + +} + +function Uninstall-WebView { + Remove-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft EdgeWebView" -Name "NoRemove" -ErrorAction SilentlyContinue | Out-Null + + # Force to use system-wide WebView2 + # [microsoft.win32.registry]::SetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge\WebView2\BrowserExecutableFolder", "*", "%%SystemRoot%%\System32\Microsoft-Edge-WebView") + + Uninstall-Process -Key '{F3017226-FE2A-4295-8BDF-00C3A9A7E4C5}' +} + +function Uninstall-EdgeUpdate { + Remove-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge Update" -Name "NoRemove" -ErrorAction SilentlyContinue | Out-Null + + $registryPath = 'HKLM:\SOFTWARE\WOW6432Node\Microsoft\EdgeUpdate' + if (!(Test-Path -Path $registryPath)) { + Write-Host "Registry key not found: $registryPath" + return + } + $uninstallCmdLine = (Get-ItemProperty -Path $registryPath).UninstallCmdLine + + if ([string]::IsNullOrEmpty($uninstallCmdLine)) { + Write-Host "Cannot find uninstall methods for $Mode" + return + } + + Write-Output "Uninstalling: $uninstallCmdLine" + Start-Process cmd.exe "/c $uninstallCmdLine" -WindowStyle Hidden -Wait +} + +Uninstall-Edge + # "WebView" { Uninstall-WebView } + # "EdgeUpdate" { Uninstall-EdgeUpdate } + + + + +} + +``` + + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/tweaks.json) + diff --git a/docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/RemoveHomeGallery.md b/docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/RemoveHomeGallery.md new file mode 100644 index 0000000000..8c927b3b19 --- /dev/null +++ b/docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/RemoveHomeGallery.md @@ -0,0 +1,73 @@ +# Remove Home and Gallery from explorer + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** +## Description + +Removes the Home and Gallery from explorer and sets This PC as default + + + + + +
+Preview Code + +```json +{ + "Content": "Remove Home and Gallery from explorer", + "Description": "Removes the Home and Gallery from explorer and sets This PC as default", + "category": "z__Advanced Tweaks - CAUTION", + "panel": "1", + "Order": "a029_", + "InvokeScript": [ + " + REG DELETE \"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Desktop\\NameSpace\\{e88865ea-0e1c-4e20-9aa6-edcd0212c87c}\" /f + REG DELETE \"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Desktop\\NameSpace\\{f874310e-b6b7-47dc-bc84-b9e6b38f5903}\" /f + REG ADD \"HKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced\" /f /v \"LaunchTo\" /t REG_DWORD /d \"1\" + " + ], + "UndoScript": [ + " + REG ADD \"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Desktop\\NameSpace\\{e88865ea-0e1c-4e20-9aa6-edcd0212c87c}\" /f /ve /t REG_SZ /d \"{e88865ea-0e1c-4e20-9aa6-edcd0212c87c}\" + REG ADD \"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Desktop\\NameSpace\\{f874310e-b6b7-47dc-bc84-b9e6b38f5903}\" /f /ve /t REG_SZ /d \"CLSID_MSGraphHomeFolder\" + REG DELETE \"HKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced\" /f /v \"LaunchTo\" + " + ], + "link": "https://christitustech.github.io/winutil/dev/tweaks/z--Advanced-Tweaks---CAUTION/RemoveHomeGallery" +} +``` + +
+ +## Invoke Script + +```powershell + + REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{e88865ea-0e1c-4e20-9aa6-edcd0212c87c}" /f + REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{f874310e-b6b7-47dc-bc84-b9e6b38f5903}" /f + REG ADD "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /f /v "LaunchTo" /t REG_DWORD /d "1" + + +``` +## Undo Script + +```powershell + + REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{e88865ea-0e1c-4e20-9aa6-edcd0212c87c}" /f /ve /t REG_SZ /d "{e88865ea-0e1c-4e20-9aa6-edcd0212c87c}" + REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{f874310e-b6b7-47dc-bc84-b9e6b38f5903}" /f /ve /t REG_SZ /d "CLSID_MSGraphHomeFolder" + REG DELETE "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /f /v "LaunchTo" + + +``` + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/tweaks.json) + diff --git a/docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/RemoveOnedrive.md b/docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/RemoveOnedrive.md new file mode 100644 index 0000000000..294de59bfe --- /dev/null +++ b/docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/RemoveOnedrive.md @@ -0,0 +1,219 @@ +# Remove OneDrive + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** +## Description + +Moves OneDrive files to Default Home Folders and Uninstalls it. + + + + + +
+Preview Code + +```json +{ + "Content": "Remove OneDrive", + "Description": "Moves OneDrive files to Default Home Folders and Uninstalls it.", + "category": "z__Advanced Tweaks - CAUTION", + "panel": "1", + "Order": "a030_", + "InvokeScript": [ + " + $OneDrivePath = $($env:OneDrive) + Write-Host \"Removing OneDrive\" + $regPath = \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\OneDriveSetup.exe\" + if (Test-Path $regPath) { + $OneDriveUninstallString = Get-ItemPropertyValue \"$regPath\" -Name \"UninstallString\" + $OneDriveExe, $OneDriveArgs = $OneDriveUninstallString.Split(\" \") + Start-Process -FilePath $OneDriveExe -ArgumentList \"$OneDriveArgs /silent\" -NoNewWindow -Wait + } else { + Write-Host \"Onedrive dosn't seem to be installed anymore\" -ForegroundColor Red + return + } + # Check if OneDrive got Uninstalled + if (-not (Test-Path $regPath)) { + Write-Host \"Copy downloaded Files from the OneDrive Folder to Root UserProfile\" + Start-Process -FilePath powershell -ArgumentList \"robocopy '$($OneDrivePath)' '$($env:USERPROFILE.TrimEnd())\\' /mov /e /xj\" -NoNewWindow -Wait + + Write-Host \"Removing OneDrive leftovers\" + Remove-Item -Recurse -Force -ErrorAction SilentlyContinue \"$env:localappdata\\Microsoft\\OneDrive\" + Remove-Item -Recurse -Force -ErrorAction SilentlyContinue \"$env:localappdata\\OneDrive\" + Remove-Item -Recurse -Force -ErrorAction SilentlyContinue \"$env:programdata\\Microsoft OneDrive\" + Remove-Item -Recurse -Force -ErrorAction SilentlyContinue \"$env:systemdrive\\OneDriveTemp\" + reg delete \"HKEY_CURRENT_USER\\Software\\Microsoft\\OneDrive\" -f + # check if directory is empty before removing: + If ((Get-ChildItem \"$OneDrivePath\" -Recurse | Measure-Object).Count -eq 0) { + Remove-Item -Recurse -Force -ErrorAction SilentlyContinue \"$OneDrivePath\" + } + + Write-Host \"Remove Onedrive from explorer sidebar\" + Set-ItemProperty -Path \"HKCR:\\CLSID\\{018D5C66-4533-4307-9B53-224DE2ED1FE6}\" -Name \"System.IsPinnedToNameSpaceTree\" -Value 0 + Set-ItemProperty -Path \"HKCR:\\Wow6432Node\\CLSID\\{018D5C66-4533-4307-9B53-224DE2ED1FE6}\" -Name \"System.IsPinnedToNameSpaceTree\" -Value 0 + + Write-Host \"Removing run hook for new users\" + reg load \"hku\\Default\" \"C:\\Users\\Default\\NTUSER.DAT\" + reg delete \"HKEY_USERS\\Default\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run\" /v \"OneDriveSetup\" /f + reg unload \"hku\\Default\" + + Write-Host \"Removing startmenu entry\" + Remove-Item -Force -ErrorAction SilentlyContinue \"$env:userprofile\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\OneDrive.lnk\" + + Write-Host \"Removing scheduled task\" + Get-ScheduledTask -TaskPath '\\' -TaskName 'OneDrive*' -ea SilentlyContinue | Unregister-ScheduledTask -Confirm:$false + + # Add Shell folders restoring default locations + Write-Host \"Shell Fixing\" + Set-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders\" -Name \"AppData\" -Value \"$env:userprofile\\AppData\\Roaming\" -Type ExpandString + Set-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders\" -Name \"Cache\" -Value \"$env:userprofile\\AppData\\Local\\Microsoft\\Windows\\INetCache\" -Type ExpandString + Set-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders\" -Name \"Cookies\" -Value \"$env:userprofile\\AppData\\Local\\Microsoft\\Windows\\INetCookies\" -Type ExpandString + Set-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders\" -Name \"Favorites\" -Value \"$env:userprofile\\Favorites\" -Type ExpandString + Set-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders\" -Name \"History\" -Value \"$env:userprofile\\AppData\\Local\\Microsoft\\Windows\\History\" -Type ExpandString + Set-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders\" -Name \"Local AppData\" -Value \"$env:userprofile\\AppData\\Local\" -Type ExpandString + Set-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders\" -Name \"My Music\" -Value \"$env:userprofile\\Music\" -Type ExpandString + Set-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders\" -Name \"My Video\" -Value \"$env:userprofile\\Videos\" -Type ExpandString + Set-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders\" -Name \"NetHood\" -Value \"$env:userprofile\\AppData\\Roaming\\Microsoft\\Windows\\Network Shortcuts\" -Type ExpandString + Set-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders\" -Name \"PrintHood\" -Value \"$env:userprofile\\AppData\\Roaming\\Microsoft\\Windows\\Printer Shortcuts\" -Type ExpandString + Set-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders\" -Name \"Programs\" -Value \"$env:userprofile\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\" -Type ExpandString + Set-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders\" -Name \"Recent\" -Value \"$env:userprofile\\AppData\\Roaming\\Microsoft\\Windows\\Recent\" -Type ExpandString + Set-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders\" -Name \"SendTo\" -Value \"$env:userprofile\\AppData\\Roaming\\Microsoft\\Windows\\SendTo\" -Type ExpandString + Set-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders\" -Name \"Start Menu\" -Value \"$env:userprofile\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\" -Type ExpandString + Set-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders\" -Name \"Startup\" -Value \"$env:userprofile\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\" -Type ExpandString + Set-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders\" -Name \"Templates\" -Value \"$env:userprofile\\AppData\\Roaming\\Microsoft\\Windows\\Templates\" -Type ExpandString + Set-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders\" -Name \"{374DE290-123F-4565-9164-39C4925E467B}\" -Value \"$env:userprofile\\Downloads\" -Type ExpandString + Set-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders\" -Name \"Desktop\" -Value \"$env:userprofile\\Desktop\" -Type ExpandString + Set-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders\" -Name \"My Pictures\" -Value \"$env:userprofile\\Pictures\" -Type ExpandString + Set-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders\" -Name \"Personal\" -Value \"$env:userprofile\\Documents\" -Type ExpandString + Set-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders\" -Name \"{F42EE2D3-909F-4907-8871-4C22FC0BF756}\" -Value \"$env:userprofile\\Documents\" -Type ExpandString + Set-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders\" -Name \"{0DDD015D-B06C-45D5-8C4C-F59713854639}\" -Value \"$env:userprofile\\Pictures\" -Type ExpandString + Write-Host \"Restarting explorer\" + taskkill.exe /F /IM \"explorer.exe\" + Start-Process \"explorer.exe\" + + Write-Host \"Waiting for explorer to complete loading\" + Write-Host \"Please Note - The OneDrive folder at $OneDrivePath may still have items in it. You must manually delete it, but all the files should already be copied to the base user folder.\" + Write-Host \"If there are Files missing afterwards, please Login to Onedrive.com and Download them manually\" -ForegroundColor Yellow + Start-Sleep 5 + } else { + Write-Host \"Something went Wrong during the Unistallation of OneDrive\" -ForegroundColor Red + } + " + ], + "UndoScript": [ + " + Write-Host \"Install OneDrive\" + Start-Process -FilePath winget -ArgumentList \"install -e --accept-source-agreements --accept-package-agreements --silent Microsoft.OneDrive \" -NoNewWindow -Wait + " + ], + "link": "https://christitustech.github.io/winutil/dev/tweaks/z--Advanced-Tweaks---CAUTION/RemoveOnedrive" +} +``` + +
+ +## Invoke Script + +```powershell + + $OneDrivePath = $($env:OneDrive) + Write-Host "Removing OneDrive" + $regPath = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Uninstall\OneDriveSetup.exe" + if (Test-Path $regPath) { + $OneDriveUninstallString = Get-ItemPropertyValue "$regPath" -Name "UninstallString" + $OneDriveExe, $OneDriveArgs = $OneDriveUninstallString.Split(" ") + Start-Process -FilePath $OneDriveExe -ArgumentList "$OneDriveArgs /silent" -NoNewWindow -Wait + } else { + Write-Host "Onedrive dosn't seem to be installed anymore" -ForegroundColor Red + return + } + # Check if OneDrive got Uninstalled + if (-not (Test-Path $regPath)) { + Write-Host "Copy downloaded Files from the OneDrive Folder to Root UserProfile" + Start-Process -FilePath powershell -ArgumentList "robocopy '$($OneDrivePath)' '$($env:USERPROFILE.TrimEnd())\' /mov /e /xj" -NoNewWindow -Wait + + Write-Host "Removing OneDrive leftovers" + Remove-Item -Recurse -Force -ErrorAction SilentlyContinue "$env:localappdata\Microsoft\OneDrive" + Remove-Item -Recurse -Force -ErrorAction SilentlyContinue "$env:localappdata\OneDrive" + Remove-Item -Recurse -Force -ErrorAction SilentlyContinue "$env:programdata\Microsoft OneDrive" + Remove-Item -Recurse -Force -ErrorAction SilentlyContinue "$env:systemdrive\OneDriveTemp" + reg delete "HKEY_CURRENT_USER\Software\Microsoft\OneDrive" -f + # check if directory is empty before removing: + If ((Get-ChildItem "$OneDrivePath" -Recurse | Measure-Object).Count -eq 0) { + Remove-Item -Recurse -Force -ErrorAction SilentlyContinue "$OneDrivePath" + } + + Write-Host "Remove Onedrive from explorer sidebar" + Set-ItemProperty -Path "HKCR:\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" -Name "System.IsPinnedToNameSpaceTree" -Value 0 + Set-ItemProperty -Path "HKCR:\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" -Name "System.IsPinnedToNameSpaceTree" -Value 0 + + Write-Host "Removing run hook for new users" + reg load "hku\Default" "C:\Users\Default\NTUSER.DAT" + reg delete "HKEY_USERS\Default\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v "OneDriveSetup" /f + reg unload "hku\Default" + + Write-Host "Removing startmenu entry" + Remove-Item -Force -ErrorAction SilentlyContinue "$env:userprofile\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\OneDrive.lnk" + + Write-Host "Removing scheduled task" + Get-ScheduledTask -TaskPath '\' -TaskName 'OneDrive*' -ea SilentlyContinue | Unregister-ScheduledTask -Confirm:$false + + # Add Shell folders restoring default locations + Write-Host "Shell Fixing" + Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "AppData" -Value "$env:userprofile\AppData\Roaming" -Type ExpandString + Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "Cache" -Value "$env:userprofile\AppData\Local\Microsoft\Windows\INetCache" -Type ExpandString + Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "Cookies" -Value "$env:userprofile\AppData\Local\Microsoft\Windows\INetCookies" -Type ExpandString + Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "Favorites" -Value "$env:userprofile\Favorites" -Type ExpandString + Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "History" -Value "$env:userprofile\AppData\Local\Microsoft\Windows\History" -Type ExpandString + Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "Local AppData" -Value "$env:userprofile\AppData\Local" -Type ExpandString + Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "My Music" -Value "$env:userprofile\Music" -Type ExpandString + Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "My Video" -Value "$env:userprofile\Videos" -Type ExpandString + Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "NetHood" -Value "$env:userprofile\AppData\Roaming\Microsoft\Windows\Network Shortcuts" -Type ExpandString + Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "PrintHood" -Value "$env:userprofile\AppData\Roaming\Microsoft\Windows\Printer Shortcuts" -Type ExpandString + Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "Programs" -Value "$env:userprofile\AppData\Roaming\Microsoft\Windows\Start Menu\Programs" -Type ExpandString + Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "Recent" -Value "$env:userprofile\AppData\Roaming\Microsoft\Windows\Recent" -Type ExpandString + Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "SendTo" -Value "$env:userprofile\AppData\Roaming\Microsoft\Windows\SendTo" -Type ExpandString + Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "Start Menu" -Value "$env:userprofile\AppData\Roaming\Microsoft\Windows\Start Menu" -Type ExpandString + Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "Startup" -Value "$env:userprofile\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup" -Type ExpandString + Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "Templates" -Value "$env:userprofile\AppData\Roaming\Microsoft\Windows\Templates" -Type ExpandString + Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "{374DE290-123F-4565-9164-39C4925E467B}" -Value "$env:userprofile\Downloads" -Type ExpandString + Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "Desktop" -Value "$env:userprofile\Desktop" -Type ExpandString + Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "My Pictures" -Value "$env:userprofile\Pictures" -Type ExpandString + Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "Personal" -Value "$env:userprofile\Documents" -Type ExpandString + Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "{F42EE2D3-909F-4907-8871-4C22FC0BF756}" -Value "$env:userprofile\Documents" -Type ExpandString + Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" -Name "{0DDD015D-B06C-45D5-8C4C-F59713854639}" -Value "$env:userprofile\Pictures" -Type ExpandString + Write-Host "Restarting explorer" + taskkill.exe /F /IM "explorer.exe" + Start-Process "explorer.exe" + + Write-Host "Waiting for explorer to complete loading" + Write-Host "Please Note - The OneDrive folder at $OneDrivePath may still have items in it. You must manually delete it, but all the files should already be copied to the base user folder." + Write-Host "If there are Files missing afterwards, please Login to Onedrive.com and Download them manually" -ForegroundColor Yellow + Start-Sleep 5 + } else { + Write-Host "Something went Wrong during the Unistallation of OneDrive" -ForegroundColor Red + } + + +``` +## Undo Script + +```powershell + + Write-Host "Install OneDrive" + Start-Process -FilePath winget -ArgumentList "install -e --accept-source-agreements --accept-package-agreements --silent Microsoft.OneDrive " -NoNewWindow -Wait + + +``` + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/tweaks.json) + diff --git a/docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/RightClickMenu.md b/docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/RightClickMenu.md new file mode 100644 index 0000000000..400b11a2e9 --- /dev/null +++ b/docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/RightClickMenu.md @@ -0,0 +1,79 @@ +# Set Classic Right-Click Menu + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** +## Description + +Great Windows 11 tweak to bring back good context menus when right clicking things in explorer. + + + + + +
+Preview Code + +```json +{ + "Content": "Set Classic Right-Click Menu ", + "Description": "Great Windows 11 tweak to bring back good context menus when right clicking things in explorer.", + "category": "z__Advanced Tweaks - CAUTION", + "panel": "1", + "Order": "a027_", + "InvokeScript": [ + " + New-Item -Path \"HKCU:\\Software\\Classes\\CLSID\\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\" -Name \"InprocServer32\" -force -value \"\" + Write-Host Restarting explorer.exe ... + $process = Get-Process -Name \"explorer\" + Stop-Process -InputObject $process + " + ], + "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 ... + $process = Get-Process -Name \"explorer\" + Stop-Process -InputObject $process + " + ], + "link": "https://christitustech.github.io/winutil/dev/tweaks/z--Advanced-Tweaks---CAUTION/RightClickMenu" +} +``` + +
+ +## Invoke Script + +```powershell + + New-Item -Path "HKCU:\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}" -Name "InprocServer32" -force -value "" + Write-Host Restarting explorer.exe ... + $process = Get-Process -Name "explorer" + Stop-Process -InputObject $process + + +``` +## Undo Script + +```powershell + + 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 ... + $process = Get-Process -Name "explorer" + Stop-Process -InputObject $process + + +``` + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/tweaks.json) + diff --git a/docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/UTC.md b/docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/UTC.md new file mode 100644 index 0000000000..3cdf8da30c --- /dev/null +++ b/docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/UTC.md @@ -0,0 +1,63 @@ +# Set Time to UTC (Dual Boot) + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** +## Description + +Essential for computers that are dual booting. Fixes the time sync with Linux Systems. + + + + + +
+Preview Code + +```json +{ + "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", + "Order": "a027_", + "registry": [ + { + "Path": "HKLM:\\SYSTEM\\CurrentControlSet\\Control\\TimeZoneInformation", + "Name": "RealTimeIsUniversal", + "Type": "DWord", + "Value": "1", + "OriginalValue": "0" + } + ], + "link": "https://christitustech.github.io/winutil/dev/tweaks/z--Advanced-Tweaks---CAUTION/UTC" +} +``` + +
+ +## 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). + +### Registry Key: RealTimeIsUniversal + +**Type:** DWord + +**Original Value:** 0 + +**New Value:** 1 + + + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/tweaks.json) + diff --git a/docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/Undoall.md b/docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/Undoall.md new file mode 100644 index 0000000000..fb0274845f --- /dev/null +++ b/docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/Undoall.md @@ -0,0 +1,91 @@ +# Undo Selected Tweaks + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** + + + + + + +
+Preview Code + +```json +{ + "Content": "Undo Selected Tweaks", + "category": "z__Advanced Tweaks - CAUTION", + "panel": "1", + "Order": "a042_", + "Type": "Button", + "link": "https://christitustech.github.io/winutil/dev/tweaks/z--Advanced-Tweaks---CAUTION/Undoall" +} +``` + +
+ +## Function: Invoke-WPFundoall + +```powershell +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 = (Get-WinUtilCheckBoxes)["WPFtweaks"] + + 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 -DebugPreference $DebugPreference -ScriptBlock { + param($tweaks, $DebugPreference) + + $sync.ProcessRunning = $true + if ($tweaks.count -eq 1) { + $sync.form.Dispatcher.Invoke([action]{ Set-WinUtilTaskbaritem -state "Indeterminate" -value 0.01 -overlay "logo" }) + } else { + $sync.form.Dispatcher.Invoke([action]{ 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 + $sync.form.Dispatcher.Invoke([action]{ Set-WinUtilTaskbaritem -value ($i/$tweaks.Count) }) + } + + Set-WinUtilProgressBar -Label "Undo Tweaks Finished" -Percent 100 + $sync.ProcessRunning = $false + $sync.form.Dispatcher.Invoke([action]{ Set-WinUtilTaskbaritem -state "None" -overlay "checkmark" }) + Write-Host "==================================" + Write-Host "--- Undo Tweaks are Finished ---" + Write-Host "==================================" + + } +} + +``` + + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/tweaks.json) + diff --git a/docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/button.md b/docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/button.md new file mode 100644 index 0000000000..4a9d310545 --- /dev/null +++ b/docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/button.md @@ -0,0 +1,100 @@ +# Run Tweaks + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** + + + + + + +
+Preview Code + +```json +{ + "Content": "Run Tweaks", + "category": "z__Advanced Tweaks - CAUTION", + "panel": "1", + "Order": "a041_", + "Type": "Button", + "link": "https://christitustech.github.io/winutil/dev/tweaks/z--Advanced-Tweaks---CAUTION/button" +} +``` + +
+ +## Function: Invoke-WPFtweaksbutton + +```powershell +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 = (Get-WinUtilCheckBoxes)["WPFTweaks"] + + Set-WinUtilDNS -DNSProvider $sync["WPFchangedns"].text + + if ($tweaks.count -eq 0 -and $sync["WPFchangedns"].text -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)" + + Invoke-WPFRunspace -ArgumentList $Tweaks -DebugPreference $DebugPreference -ScriptBlock { + param($Tweaks, $DebugPreference) + Write-Debug "Inside Number of tweaks to process: $($Tweaks.Count)" + + $sync.ProcessRunning = $true + + if ($Tweaks.count -eq 1) { + $sync.form.Dispatcher.Invoke([action]{ Set-WinUtilTaskbaritem -state "Indeterminate" -value 0.01 -overlay "logo" }) + } else { + $sync.form.Dispatcher.Invoke([action]{ Set-WinUtilTaskbaritem -state "Normal" -value 0.01 -overlay "logo" }) + } + # Execute other selected tweaks + + for ($i = 0; $i -lt $Tweaks.Count; $i++) { + Set-WinUtilProgressBar -Label "Applying $($tweaks[$i])" -Percent ($i / $Tweaks.Count * 100) + Invoke-WinUtilTweaks $tweaks[$i]$sync.form.Dispatcher.Invoke([action]{ Set-WinUtilTaskbaritem -value ($i/$Tweaks.Count) }) + } + Set-WinUtilProgressBar -Label "Tweaks finished" -Percent 100 + $sync.ProcessRunning = $false + $sync.form.Dispatcher.Invoke([action]{ Set-WinUtilTaskbaritem -state "None" -overlay "checkmark" }) + Write-Host "=================================" + Write-Host "-- Tweaks are Finished ---" + Write-Host "=================================" + + # $ButtonType = [System.Windows.MessageBoxButton]::OK + # $MessageboxTitle = "Tweaks are Finished " + # $Messageboxbody = ("Done") + # $MessageIcon = [System.Windows.MessageBoxImage]::Information + # [System.Windows.MessageBox]::Show($Messageboxbody, $MessageboxTitle, $ButtonType, $MessageIcon) + } +} + +``` + + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/tweaks.json) + diff --git a/docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/changedns.md b/docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/changedns.md new file mode 100644 index 0000000000..cddb13abb1 --- /dev/null +++ b/docs/dev/tweaks/z--Advanced-Tweaks---CAUTION/changedns.md @@ -0,0 +1,38 @@ +# DNS + +Last Updated: 2024-08-07 + + +!!! info + The Development Documentation is auto generated for every compilation of WinUtil, meaning a part of it will always stay up-to-date. **Developers do have the ability to add custom content, which won't be updated automatically.** + + + + + + +
+Preview Code + +```json +{ + "Content": "DNS", + "category": "z__Advanced Tweaks - CAUTION", + "panel": "1", + "Order": "a040_", + "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://christitustech.github.io/winutil/dev/tweaks/z--Advanced-Tweaks---CAUTION/changedns" +} +``` + +
+ + + + + + + +[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/tweaks.json) + diff --git a/docs/devdocs.md b/docs/devdocs.md new file mode 100644 index 0000000000..9a73d99676 --- /dev/null +++ b/docs/devdocs.md @@ -0,0 +1,108 @@ +# Table of Contents + + +## Tweaks + +### z--Advanced-Tweaks---CAUTION + +- [Adobe Debloat](dev/tweaks/z--Advanced-Tweaks---CAUTION/DebloatAdobe.md) +- [Adobe Network Block](dev/tweaks/z--Advanced-Tweaks---CAUTION/BlockAdobeNet.md) +- [Disable Background Apps](dev/tweaks/z--Advanced-Tweaks---CAUTION/DisableBGapps.md) +- [Disable Fullscreen Optimizations](dev/tweaks/z--Advanced-Tweaks---CAUTION/DisableFSO.md) +- [Disable Intel MM (vPro LMS)](dev/tweaks/z--Advanced-Tweaks---CAUTION/DisableLMS1.md) +- [Disable IPv6](dev/tweaks/z--Advanced-Tweaks---CAUTION/Disableipsix.md) +- [Disable Microsoft Copilot](dev/tweaks/z--Advanced-Tweaks---CAUTION/RemoveCopilot.md) +- [Disable Notification Tray/Calendar](dev/tweaks/z--Advanced-Tweaks---CAUTION/DisableNotifications.md) +- [DNS](dev/tweaks/z--Advanced-Tweaks---CAUTION/changedns.md) +- [Remove ALL MS Store Apps - NOT RECOMMENDED](dev/tweaks/z--Advanced-Tweaks---CAUTION/DeBloat.md) +- [Remove Home and Gallery from explorer](dev/tweaks/z--Advanced-Tweaks---CAUTION/RemoveHomeGallery.md) +- [Remove Microsoft Edge](dev/tweaks/z--Advanced-Tweaks---CAUTION/RemoveEdge.md) +- [Remove OneDrive](dev/tweaks/z--Advanced-Tweaks---CAUTION/RemoveOnedrive.md) +- [Run OO Shutup 10](dev/tweaks/z--Advanced-Tweaks---CAUTION/OOSUbutton.md) +- [Run Tweaks](dev/tweaks/z--Advanced-Tweaks---CAUTION/button.md) +- [Set Classic Right-Click Menu ](dev/tweaks/z--Advanced-Tweaks---CAUTION/RightClickMenu.md) +- [Set Display for Performance](dev/tweaks/z--Advanced-Tweaks---CAUTION/Display.md) +- [Set Time to UTC (Dual Boot)](dev/tweaks/z--Advanced-Tweaks---CAUTION/UTC.md) +- [Undo Selected Tweaks](dev/tweaks/z--Advanced-Tweaks---CAUTION/Undoall.md) +### Essential-Tweaks + +- [Change Windows Terminal default: PowerShell 5 -> PowerShell 7](dev/tweaks/Essential-Tweaks/Powershell7.md) +- [Create Restore Point](dev/tweaks/Essential-Tweaks/RestorePoint.md) +- [Debloat Edge](dev/tweaks/Essential-Tweaks/EdgeDebloat.md) +- [Delete Temporary Files](dev/tweaks/Essential-Tweaks/DeleteTempFiles.md) +- [Disable Activity History](dev/tweaks/Essential-Tweaks/AH.md) +- [Disable ConsumerFeatures](dev/tweaks/Essential-Tweaks/ConsumerFeatures.md) +- [Disable GameDVR](dev/tweaks/Essential-Tweaks/DVR.md) +- [Disable Hibernation](dev/tweaks/Essential-Tweaks/Hiber.md) +- [Disable Homegroup](dev/tweaks/Essential-Tweaks/Home.md) +- [Disable Location Tracking](dev/tweaks/Essential-Tweaks/Loc.md) +- [Disable Powershell 7 Telemetry](dev/tweaks/Essential-Tweaks/Powershell7Tele.md) +- [Disable Storage Sense](dev/tweaks/Essential-Tweaks/Storage.md) +- [Disable Telemetry](dev/tweaks/Essential-Tweaks/Tele.md) +- [Disable Teredo](dev/tweaks/Essential-Tweaks/Teredo.md) +- [Disable Wifi-Sense](dev/tweaks/Essential-Tweaks/Wifi.md) +- [Enable End Task With Right Click](dev/tweaks/Essential-Tweaks/EndTaskOnTaskbar.md) +- [Run Disk Cleanup](dev/tweaks/Essential-Tweaks/DiskCleanup.md) +- [Set Hibernation as default (good for laptops)](dev/tweaks/Essential-Tweaks/LaptopHibernation.md) +- [Set Services to Manual](dev/tweaks/Essential-Tweaks/Services.md) +### Shortcuts + +- [Create WinUtil Shortcut](dev/tweaks/Shortcuts/Shortcut.md) +### Customize-Preferences + +- [Bing Search in Start Menu](dev/tweaks/Customize-Preferences/BingSearch.md) +- [Center Taskbar Items](dev/tweaks/Customize-Preferences/TaskbarAlignment.md) +- [Dark Theme for Windows](dev/tweaks/Customize-Preferences/DarkMode.md) +- [Detailed BSoD](dev/tweaks/Customize-Preferences/DetailedBSoD.md) +- [Mouse Acceleration](dev/tweaks/Customize-Preferences/MouseAcceleration.md) +- [NumLock on Startup](dev/tweaks/Customize-Preferences/NumLock.md) +- [Search Button in Taskbar](dev/tweaks/Customize-Preferences/TaskbarSearch.md) +- [Show File Extensions](dev/tweaks/Customize-Preferences/ShowExt.md) +- [Show Hidden Files](dev/tweaks/Customize-Preferences/HiddenFiles.md) +- [Snap Assist Flyout](dev/tweaks/Customize-Preferences/SnapFlyout.md) +- [Snap Assist Suggestion](dev/tweaks/Customize-Preferences/SnapSuggestion.md) +- [Snap Window](dev/tweaks/Customize-Preferences/SnapWindow.md) +- [Sticky Keys](dev/tweaks/Customize-Preferences/StickyKeys.md) +- [Task View Button in Taskbar](dev/tweaks/Customize-Preferences/TaskView.md) +- [Verbose Messages During Logon](dev/tweaks/Customize-Preferences/VerboseLogon.md) +- [Widgets Button in Taskbar](dev/tweaks/Customize-Preferences/TaskbarWidgets.md) +### Performance-Plans + +- [Add and Activate Ultimate Performance Profile](dev/tweaks/Performance-Plans/AddUltPerf.md) +- [Remove Ultimate Performance Profile](dev/tweaks/Performance-Plans/RemoveUltPerf.md) + +## Features + +### Legacy-Windows-Panels + +- [Control Panel](dev/features/Legacy-Windows-Panels/control.md) +- [Network Connections](dev/features/Legacy-Windows-Panels/network.md) +- [Power Panel](dev/features/Legacy-Windows-Panels/power.md) +- [Region](dev/features/Legacy-Windows-Panels/region.md) +- [Sound Settings](dev/features/Legacy-Windows-Panels/sound.md) +- [System Properties](dev/features/Legacy-Windows-Panels/system.md) +- [User Accounts](dev/features/Legacy-Windows-Panels/user.md) +### Fixes + +- [Remove Adobe Creative Cloud](dev/features/Fixes/RunAdobeCCCleanerTool.md) +- [Reset Network](dev/features/Fixes/Network.md) +- [Reset Windows Update](dev/features/Fixes/Update.md) +- [Set Up Autologin](dev/features/Fixes/Autologin.md) +- [System Corruption Scan](dev/features/Fixes/DISM.md) +- [WinGet Reinstall](dev/features/Fixes/Winget.md) +### Features + +- [All .Net Framework (2,3,4)](dev/features/Features/dotnet.md) +- [Disable Legacy F8 Boot Recovery](dev/features/Features/DisableLegacyRecovery.md) +- [Disable Search Box Web Suggestions in Registry(explorer restart)](dev/features/Features/DisableSearchSuggestions.md) +- [Enable Daily Registry Backup Task 12.30am](dev/features/Features/RegBackup.md) +- [Enable Legacy F8 Boot Recovery](dev/features/Features/EnableLegacyRecovery.md) +- [Enable Search Box Web Suggestions in Registry(explorer restart)](dev/features/Features/EnableSearchSuggestions.md) +- [HyperV Virtualization](dev/features/Features/hyperv.md) +- [Install Features](dev/features/Features/Install.md) +- [Legacy Media (WMP, DirectPlay)](dev/features/Features/legacymedia.md) +- [NFS - Network File System](dev/features/Features/nfs.md) +- [Windows Sandbox](dev/features/Features/Sandbox.md) +- [Windows Subsystem for Linux](dev/features/Features/wsl.md) + + diff --git a/mkdocs.yml b/mkdocs.yml index 9442e0d460..5569666e6d 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -1,12 +1,13 @@ -site_name: Chris Titus WinUtil Official Documentation +site_name: WinUtil Documentation repo_url: https://github.com/ChrisTitusTech/winutil nav: - Introduction: 'index.md' - User Guide: 'userguide.md' - - Contribute: 'contribute.md' - - Changelog: 'changelog.md' - - Known Issues: 'KnownIssues.md' + - Contributing Guide: 'contribute.md' + - Documentation: + - Dev Docs: 'devdocs.md' + - Known Issues: 'KnownIssues.md' - FAQ: 'faq.md' theme: @@ -35,8 +36,7 @@ theme: # Palette toggle for light mode - media: "(prefers-color-scheme: light)" scheme: default - - + accent: blue toggle: icon: material/brightness-7 name: Switch to dark mode @@ -44,11 +44,11 @@ theme: # Palette toggle for dark mode - media: "(prefers-color-scheme: dark)" scheme: slate + primary: black + accent: blue toggle: - icon: material/toggle-switch + icon: material/weather-night name: Switch to light mode - primary: teal - accent: lime markdown_extensions: - admonition - pymdownx.details @@ -73,3 +73,15 @@ markdown_extensions: - def_list - pymdownx.tasklist: custom_checkbox: true + - toc: + permalink: true + +plugins: + - search + - awesome-pages + - git-revision-date-localized + - minify: + minify_html: true + htmlmin_opts: + remove_comments: true + cache_safe: true