Compare commits
639 Commits
25.03.05
...
e83033a122
| Author | SHA1 | Date | |
|---|---|---|---|
| e83033a122 | |||
| 5832f0df81 | |||
| 26f3284919 | |||
| 1f8455e90d | |||
| 62c43e6e82 | |||
| a1949ed917 | |||
| 74a3ddad1c | |||
| d7b0389a93 | |||
| 23f197b644 | |||
| b2eeda9eb2 | |||
| ceec8aeb53 | |||
| 6b125346cd | |||
| 5f8e493536 | |||
| 4db0248911 | |||
| 2bee0d6f2c | |||
| 58df36841f | |||
| 5ba840f87f | |||
| fe2dd829b8 | |||
| 5cdb6c6e22 | |||
| 4bda00ec2d | |||
| 462cc40a6a | |||
| 0e061692ba | |||
| ffec7a8a8f | |||
| 6e4b1d26c6 | |||
| 32cec06ed6 | |||
| a24193ce18 | |||
| 8f919be14b | |||
| ad5d103df9 | |||
| b5160d9e24 | |||
| 614eb949db | |||
| d1edd5b2ba | |||
| 333937d2fa | |||
| 3ca87648b4 | |||
| 4894a545f0 | |||
| 9f55bced01 | |||
| 56e0541113 | |||
| 7607b92e21 | |||
| 153900a77b | |||
| 691224f465 | |||
| 893dca4055 | |||
| 2ebc9bd6c4 | |||
| 076ef02b2c | |||
| c99114e9e1 | |||
| 9b72c1e2de | |||
| b379574574 | |||
| 565597a906 | |||
| 62ccf80856 | |||
| 70cdacb9f9 | |||
| 459d0fd1b2 | |||
| 48e94f71bc | |||
| 2582f094ff | |||
| 5aa099f6e2 | |||
| 9d85eea4e5 | |||
| c765ffb317 | |||
| 82f51b4bf1 | |||
| d44c013464 | |||
| 753d47b9bc | |||
| 8034e85521 | |||
| a09736f9a8 | |||
| 24aaf9a3cf | |||
| f57b5f4ffa | |||
| 32d24c8024 | |||
| 743f9e3783 | |||
| 522c4471c0 | |||
| ea698f3791 | |||
| 8ffd15c9f3 | |||
| 6c1cb0caab | |||
| bcafbe6234 | |||
| fb54380b8b | |||
| 39f26133f4 | |||
| 09695f10aa | |||
| d1becc5310 | |||
| 543b8958ef | |||
| c39c54c7c1 | |||
| d8193fd8ac | |||
| 25adabd622 | |||
| 2d605f1875 | |||
| d46d324df8 | |||
| 3e16817640 | |||
| d0b91d190a | |||
| bdbfdb6681 | |||
| 0154b749a4 | |||
| e6e44e3e04 | |||
| e6d8fdff75 | |||
| 6ba184bdeb | |||
| 6d6defc206 | |||
| fa073f8475 | |||
| 63aecc0bee | |||
| a0887783f8 | |||
| f3880b66bb | |||
| aa636926fa | |||
| ec3166bdc6 | |||
| a3f57532b6 | |||
| 3a7851b0f4 | |||
| 6fa73db245 | |||
| 184fe22a35 | |||
| 9d4613d838 | |||
| 10d83c5b20 | |||
| 4065759ca0 | |||
| 97d5f7b850 | |||
| bf542af426 | |||
| ea9c7de722 | |||
| d2e5886b02 | |||
| d43c26e314 | |||
| 4297d69f2c | |||
| 36e4b27872 | |||
| ec5c7a4639 | |||
| f2ca10e8c9 | |||
| 51cf62cdba | |||
| 415d1864d7 | |||
| b463d9d460 | |||
| 8fa354dec2 | |||
| 683f9ee811 | |||
| 31d3c29447 | |||
| 68aa6e31bd | |||
| cdf8727911 | |||
| 21273bd3a8 | |||
| 67910df019 | |||
| dee694b166 | |||
| 87a5779f0b | |||
| 9d777842f7 | |||
| 99b7d94b08 | |||
| f31e5eb2ac | |||
| a8efcc9c96 | |||
| 747b6f8ca1 | |||
| 26959b0e63 | |||
| c5fc9490a8 | |||
| 5902b0bd64 | |||
| 5dc8547dad | |||
| d736bc4305 | |||
| a4d0f36ed5 | |||
| e1e077c69b | |||
| 8e2dc21823 | |||
| 8378fd5377 | |||
| eb08eae357 | |||
| 4783e71750 | |||
| 805a004a3a | |||
| 780ea84e9e | |||
| f47dcb01d2 | |||
| 4ab1681eb8 | |||
| ed6ee897d5 | |||
| 5516be2464 | |||
| 9f972fdac1 | |||
| c453f260cf | |||
| 98eba09986 | |||
| 61bce6afda | |||
| 419b150220 | |||
| 372fa0159a | |||
| 406d6fdfc4 | |||
| e30c0a4c27 | |||
| 3d300f6634 | |||
| a72c0770dd | |||
| 811cc126e6 | |||
| 3ceea1b9c1 | |||
| 0cd971d992 | |||
| e077fc7e21 | |||
| 0abac833ce | |||
| a0fdf2cb80 | |||
| b8f1671ff7 | |||
| 0536047200 | |||
| 2a4bff017d | |||
| 68d6ca7edc | |||
| 00fbd0e86d | |||
| c24ea5e53b | |||
| 786c7c677d | |||
| c9e9214fd6 | |||
| b7f6a8cebe | |||
| 355bd17b88 | |||
| 6198bb2cdd | |||
| 6a495411e8 | |||
| 8f830a59df | |||
| e4dd305084 | |||
| 01c808ab42 | |||
| d2c9bc8751 | |||
| 7f105a58bb | |||
| 838b0c1a1b | |||
| e0118aabe5 | |||
| 9535302e6d | |||
| 1eba305fab | |||
| 74f990028f | |||
| e94742a77d | |||
| fb6ef49a83 | |||
| ab00ff2710 | |||
| 50d8a8656b | |||
| 1cd918cbe1 | |||
| bc2f6ce8f7 | |||
| c1fe9c6b88 | |||
| d0899b4f29 | |||
| 3c8459f31f | |||
| 0c38d420ee | |||
| e63d75e398 | |||
| 01d24bdf31 | |||
| 12abc7f281 | |||
| 10906e037e | |||
| b43a712e9b | |||
| ed74dc51b5 | |||
| 6b83f1da51 | |||
| 24c6706ab2 | |||
| f4703284ef | |||
| 0028e439b5 | |||
| 37529a5659 | |||
| 2dbf3d71c0 | |||
| ef226ac272 | |||
| 1f7f653568 | |||
| 9bd5a2541d | |||
| c2dbcda2d5 | |||
| 0bd333dd47 | |||
| 6188447348 | |||
| edfed488e8 | |||
| 8d1f7d509a | |||
| 0a642be3b4 | |||
| d3f9584892 | |||
| a05034381d | |||
| b1d4eb022c | |||
| 3dbd993cb4 | |||
| ec17c085df | |||
| 7da4e78d4b | |||
| 1943b30ec9 | |||
| 6df8ae900c | |||
| a16f4b7d07 | |||
| adaab0ab36 | |||
| c270d25460 | |||
| 2bb007b6ff | |||
| 34f29dd04c | |||
| ccb43bfe91 | |||
| 1d401b2e02 | |||
| d8f6a8c50b | |||
| 3da0221fb4 | |||
| a30664002b | |||
| 5e78391518 | |||
| 2d2497408f | |||
| d2dbf03572 | |||
| 88c68fd411 | |||
| e82aaf03f0 | |||
| 9a77fed09b | |||
| 336ac6fb8f | |||
| 72ad35bbd8 | |||
| df17ca4695 | |||
| 7f46e8d60d | |||
| 9769cafa7d | |||
| 42dfc8c82b | |||
| d13295bdd8 | |||
| 5fc566b46f | |||
| b493737982 | |||
| 7ceb303f00 | |||
| 30c9812d37 | |||
| ddc10b0935 | |||
| a2e2395ce9 | |||
| ce5e407a76 | |||
| 3fb5c04693 | |||
| 58dacd5b0b | |||
| 14ad9f7fea | |||
| 52afab2252 | |||
| 2ba3a5d324 | |||
| f854d14117 | |||
| 19204534a2 | |||
| a9d9b148db | |||
| d5d0bf25f0 | |||
| da3fd87f9a | |||
| 9e8cefc973 | |||
| a532e9ec9d | |||
| 844979fee7 | |||
| 78302934ef | |||
| 349889b194 | |||
| c619f3a830 | |||
| d005a225a2 | |||
| e79e946e76 | |||
| 3b957e1a77 | |||
| d078d67b1d | |||
| 191fe95572 | |||
| d10c9413ac | |||
| e93753e5c9 | |||
| 5eec99df1c | |||
| 7e2ba41b8b | |||
| d3dc3e7976 | |||
| 5a4d822710 | |||
| 2625478ef3 | |||
| 956a544c2e | |||
| 50dbf5bd05 | |||
| 338c3e7e57 | |||
| 1a0e084d7e | |||
| 89147414a0 | |||
| ae4b3f3ac7 | |||
| 043ec9abe0 | |||
| 5c92fcbde5 | |||
| b1094c9177 | |||
| 9ab1c6bbd3 | |||
| 97d3ada895 | |||
| 8212b3ed5e | |||
| d410667c6d | |||
| e51e345438 | |||
| 3404f185f1 | |||
| f15c212df5 | |||
| 152c157b51 | |||
| 80e54a0ea5 | |||
| 7fb1643378 | |||
| f6c0c9682c | |||
| b7ef73cb10 | |||
| 0b76ab3aa4 | |||
| 436e3c353e | |||
| 50ca97575b | |||
| 618561e5cf | |||
| 725244c28e | |||
| d4c768315b | |||
| e909d1a847 | |||
| dcfa68476a | |||
| 60d31a1fe0 | |||
| 5476cd928f | |||
| 84f2046912 | |||
| 586fd56603 | |||
| 70a94abe02 | |||
| 0e41122d89 | |||
| 4e7416a2dc | |||
| 61a6265cf9 | |||
| 5582c3cb44 | |||
| 08b24c7187 | |||
| 5fcc288037 | |||
| 8e8b0bb296 | |||
| be8d20d478 | |||
| 9b03b94435 | |||
| 9d841687e3 | |||
| 20046d4b73 | |||
| b2ccb3669b | |||
| aaed116798 | |||
| 354b09ec0d | |||
| cfde1b5a92 | |||
| 4ebe1a3535 | |||
| 6708756574 | |||
| 301059fd3f | |||
| df8d92cf11 | |||
| 6cda509604 | |||
| 8a8fed517c | |||
| 681f0ec3b9 | |||
| 4a31af4faf | |||
| 4ddb2795ff | |||
| d5b5784492 | |||
| 15d0b42165 | |||
| 8fc7d30112 | |||
| a12ea71adb | |||
| b00c7b1ea2 | |||
| ef29ab9ffc | |||
| 7219329d2c | |||
| 27b0a59abb | |||
| 457f1820c4 | |||
| 414cd139e2 | |||
| e68e190ff3 | |||
| 86097572b0 | |||
| 94d45a30fa | |||
| fcc5481477 | |||
| ac116d7083 | |||
| 68ab69a19c | |||
| 29efb989bd | |||
| 99eb70d81b | |||
| 9013753d88 | |||
| 8ad96a9b6e | |||
| 8ed3a31424 | |||
| 424d4030c1 | |||
| f88c9be70d | |||
| bc4cd84127 | |||
| 54b4bcdda1 | |||
| c5c23d8d18 | |||
| 28e84af33d | |||
| 832af914e9 | |||
| 6d9ed9026d | |||
| 9e877afe0e | |||
| 0c0ced381a | |||
| 8ebd127857 | |||
| 25a392877f | |||
| ef2c91b616 | |||
| b52ead87f4 | |||
| 2dcfc2b109 | |||
| 59a9c59064 | |||
| fcc57fde50 | |||
| 06e5477d0e | |||
| a5271597e9 | |||
| d841792f8d | |||
| 132260ab96 | |||
| 919b2e0b8f | |||
| 22e083182d | |||
| 2ec37f952a | |||
| aa719b49bf | |||
| e9a6cd32d8 | |||
| b02c7f3eab | |||
| eb29dfced8 | |||
| f9b01fdc81 | |||
| 61a80e270d | |||
| a31c9cb235 | |||
| 2587a98848 | |||
| a5cf3a2ba7 | |||
| f59598cf07 | |||
| 66eaaaf9bf | |||
| 1b19311c2e | |||
| e193eca64d | |||
| df0b511a24 | |||
| a017854a55 | |||
| 85f652ad6f | |||
| 38cec9bf3f | |||
| a20719b65b | |||
| 148360305c | |||
| 644fa3975a | |||
| 2e4124b903 | |||
| fac0d359f1 | |||
| fe28e4064f | |||
| 1734241568 | |||
| e008f63674 | |||
| 3af367ca28 | |||
| ea8e178964 | |||
| 79ee9db8fe | |||
| 3c87c3bc53 | |||
| eec16bdce5 | |||
| 1b99f13e5c | |||
| a9968e2247 | |||
| 2f11d9b1c2 | |||
| 140280ddaa | |||
| fde215f42d | |||
| 690c54888e | |||
| c3216c6800 | |||
| da989051db | |||
| 52a97dae09 | |||
| cd3fc2b698 | |||
| 927fe24415 | |||
| 188f37a447 | |||
| 1082a93813 | |||
| 9a91da12d4 | |||
| 075572d415 | |||
| da07c2040b | |||
| 172d107e56 | |||
| fae64c0406 | |||
| cfe20ccb0a | |||
| 158fabd31e | |||
| 69d8649986 | |||
| 63eeab0b19 | |||
| 1b78cd1316 | |||
| a1907f5dee | |||
| be415051ca | |||
| 80c15557d4 | |||
| a587bc60c4 | |||
| c71fad54dc | |||
| 4eb76a9099 | |||
| 95d8660b3a | |||
| 4bd25e62e1 | |||
| da6b105573 | |||
| 64022cc08d | |||
| 401f7f384a | |||
| e2efb3a483 | |||
| 4dc0fd6a6e | |||
| f671ad4518 | |||
| c2cb00fc68 | |||
| 7503444e2b | |||
| 80ab6ba005 | |||
| 2e0073af75 | |||
| 3cb0a4b664 | |||
| e9b40ae710 | |||
| 408327daec | |||
| 7f7424406f | |||
| ccc44414a2 | |||
| 06ea48dd01 | |||
| 5a6b1ef086 | |||
| aba3d786bc | |||
| 7765c1032b | |||
| 015f1b0709 | |||
| 19b6f8abfa | |||
| 80e872aa60 | |||
| cfaf139a6a | |||
| becfba603d | |||
| 2b68976e7b | |||
| 5369d9d99b | |||
| 8b3e1280df | |||
| ce77be324b | |||
| 6168e93d4c | |||
| d98118e322 | |||
| f69f107d9d | |||
| f3c3613d26 | |||
| b265675560 | |||
| e0237642c8 | |||
| aedaa2f789 | |||
| 8c2f9075a0 | |||
| c9e6861ad4 | |||
| 43ec73684e | |||
| bfbb643543 | |||
| 067ec31086 | |||
| 63221a7cb9 | |||
| 7e40d379d8 | |||
| c766c974cf | |||
| 7d2804c706 | |||
| 2ee9047dd6 | |||
| 21c49d6a75 | |||
| 351a77043e | |||
| c8bb38f3a9 | |||
| 5fb5e43cc7 | |||
| eeb410e985 | |||
| 8eaf6ddd9c | |||
| 3c54e0ea3f | |||
| d17e8bcd98 | |||
| ef1fc2ae59 | |||
| 7d1fb52277 | |||
| 95988fca80 | |||
| 451040b5b1 | |||
| 47cb6b9273 | |||
| 69233b1d8a | |||
| b621d9104e | |||
| 1f81eec8f1 | |||
| 72cbdca556 | |||
| d5127b14a3 | |||
| e2c84d9834 | |||
| c454c93563 | |||
| 70b1274425 | |||
| 3b26620627 | |||
| eeee941eb3 | |||
| 242fa6f210 | |||
| 634ef3266c | |||
| a87c301636 | |||
| 674d1368bb | |||
| c7495059fd | |||
| dff974144f | |||
| 7db0b8a857 | |||
| af7030d536 | |||
| 40b2894ed1 | |||
| 92728e65fd | |||
| a6daeccb8c | |||
| 4eee519e76 | |||
| 54e367a13b | |||
| e2e9089d6f | |||
| aa1b1d2c18 | |||
| 0cf4a1fae8 | |||
| c8dfc529d6 | |||
| 88ec1eddf8 | |||
| a6e9e096ef | |||
| 0ee064c191 | |||
| ff0ca400ed | |||
| 94d7bb719e | |||
| 8622892827 | |||
| af09bcbf0b | |||
| e2732da2db | |||
| 3bd6003171 | |||
| a921d0c6fa | |||
| 01c8739a8b | |||
| 9ce598fbeb | |||
| 965d9e0394 | |||
| 2b9e277b10 | |||
| 5144551b52 | |||
| 91ab12dd7f | |||
| fdee2ea898 | |||
| 5ebd27da7e | |||
| f6030eec0b | |||
| 9403b95067 | |||
| cdd43f5e36 | |||
| cae497b2fe | |||
| c740186232 | |||
| e6263afb59 | |||
| 122a07d71b | |||
| a669c455eb | |||
| c983ec2253 | |||
| aec16d84ab | |||
| ba951244d9 | |||
| 9d3c7736b8 | |||
| cea4e088cf | |||
| 32a4311901 | |||
| ff95b35f24 | |||
| aea9c2cb47 | |||
| 7fa0594267 | |||
| 5e65505007 | |||
| 686e65adcb | |||
| 1935375f88 | |||
| 069a1bda2f | |||
| 661dfa6318 | |||
| d6b78d1d06 | |||
| 51f15a03c2 | |||
| ce91307daf | |||
| 8fe09d0054 | |||
| e74258acf4 | |||
| 28958938fc | |||
| 91de389c8f | |||
| 6b22c63d28 | |||
| faa4701c43 | |||
| cda2babc66 | |||
| 0e83879c64 | |||
| 00c295e8d5 | |||
| 4be99d5f8a | |||
| febae28095 | |||
| 0a77838689 | |||
| cccd4298ad | |||
| bc7afe8b2a | |||
| 18de3d59ee | |||
| 59d968e7c4 | |||
| afe85ad7f0 | |||
| efb9e5bde6 | |||
| 56eba47a6c | |||
| e57cde423c | |||
| de9b643129 | |||
| e430e0aad0 | |||
| 61fd4d2f91 | |||
| b72cd83189 | |||
| 290292ec94 | |||
| d22865d79b | |||
| 5c5b999a09 | |||
| 0c0e6bd243 | |||
| dd06489d63 | |||
| 41df9d3d88 | |||
| 63d56bcac9 | |||
| 962b18e8fa | |||
| 14e761f438 | |||
| 3e416f5c14 | |||
| 95d28ee25d | |||
| 50071067b7 | |||
| 3b7d707262 | |||
| ea95dac426 | |||
| b4d3368680 | |||
| 0b5c44cbcf | |||
| b8b16be24b | |||
| 14943e3c55 | |||
| 91365d50b5 | |||
| 82b6c268b0 | |||
| d8c007d2db | |||
| 48f1c71584 | |||
| f770642a6a | |||
| 963c0a17aa | |||
| 20769f66a1 | |||
| 86459b7e24 | |||
| 89919494e5 | |||
| 5f6bdb2e48 | |||
| f614eea435 | |||
| 82447a1e7b | |||
| 51424abfad | |||
| 3caa3be9a3 | |||
| 7769a328bb | |||
| 425f11d787 | |||
| 6df94df594 | |||
| 29e2c4d197 | |||
| b63a17b7dd | |||
| abe059917c | |||
| 698f1644c3 | |||
| fd03f33c50 | |||
| 8f9e7d1b7c | |||
| b3dd1a1a50 | |||
| 4acad32a38 | |||
| 0f4fca31b9 | |||
| 36c984b66c | |||
| d215d0fc2c |
@@ -1,59 +1,2 @@
|
|||||||
# This is a comment.
|
# Chris rules EVERYTHING (including paths listed below)
|
||||||
# Each line is a file pattern followed by one or more owners.
|
* @ChrisTitusTech
|
||||||
|
|
||||||
# These owners will be the default owners for everything in
|
|
||||||
# the repo. Unless a later match takes precedence,
|
|
||||||
# @global-owner1 and @global-owner2 will be requested for
|
|
||||||
# review when someone opens a pull request.
|
|
||||||
* @ChrisTitusTech
|
|
||||||
|
|
||||||
# Order is important; the last matching pattern takes the most
|
|
||||||
# precedence. When someone opens a pull request that only
|
|
||||||
# modifies JS files, only @js-owner and not the global
|
|
||||||
# owner(s) will be requested for a review.
|
|
||||||
# *.js @js-owner #This is an inline comment.
|
|
||||||
|
|
||||||
# You can also use email addresses if you prefer. They'll be
|
|
||||||
# used to look up users just like we do for commit author
|
|
||||||
# emails.
|
|
||||||
# *.go docs@example.com
|
|
||||||
|
|
||||||
# Teams can be specified as code owners as well. Teams should
|
|
||||||
# be identified in the format @org/team-name. Teams must have
|
|
||||||
# explicit write access to the repository. In this example,
|
|
||||||
# the octocats team in the octo-org organization owns all .txt files.
|
|
||||||
# *.txt @octo-org/octocats
|
|
||||||
|
|
||||||
# In this example, @doctocat owns any files in the build/logs
|
|
||||||
# directory at the root of the repository and any of its
|
|
||||||
# subdirectories.
|
|
||||||
# /build/logs/ @doctocat
|
|
||||||
|
|
||||||
# The `docs/*` pattern will match files like
|
|
||||||
# `docs/getting-started.md` but not further nested files like
|
|
||||||
# `docs/build-app/troubleshooting.md`.
|
|
||||||
# docs/* docs@example.com
|
|
||||||
|
|
||||||
# In this example, @octocat owns any file in an apps directory
|
|
||||||
# anywhere in your repository.
|
|
||||||
# apps/ @octocat
|
|
||||||
|
|
||||||
# In this example, @doctocat owns any file in the `/docs`
|
|
||||||
# directory in the root of your repository and any of its
|
|
||||||
# subdirectories.
|
|
||||||
# /docs/ @doctocat
|
|
||||||
|
|
||||||
# In this example, any change inside the `/scripts` directory
|
|
||||||
# will require approval from @doctocat or @octocat.
|
|
||||||
# /scripts/ @doctocat @octocat
|
|
||||||
|
|
||||||
# In this example, @octocat owns any file in a `/logs` directory such as
|
|
||||||
# `/build/logs`, `/scripts/logs`, and `/deeply/nested/logs`. Any changes
|
|
||||||
# in a `/logs` directory will require approval from @octocat.
|
|
||||||
# **/logs @octocat
|
|
||||||
|
|
||||||
# In this example, @octocat owns any file in the `/apps`
|
|
||||||
# directory in the root of your repository except for the `/apps/github`
|
|
||||||
# subdirectory, as its owners are left empty.
|
|
||||||
# /apps/ @octocat
|
|
||||||
# /apps/github
|
|
||||||
@@ -0,0 +1,149 @@
|
|||||||
|
## Contributing Code
|
||||||
|
|
||||||
|
### Before You Start
|
||||||
|
|
||||||
|
- Keep each pull request focused on a single feature or fix.
|
||||||
|
- Avoid unnecessary formatting changes or large unrelated edits.
|
||||||
|
- Document what changed and why in your PR description.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Basic Git Workflow
|
||||||
|
|
||||||
|
### 1. Fork the Repository
|
||||||
|
|
||||||
|
Go to the ChrisTitusTech/winutil repository on GitHub and click the Fork button in the top right corner.
|
||||||
|
|
||||||
|
<img width="171" height="50" alt="{650A4723-F38A-44A4-9820-D232BC87C8A0}" src="https://github.com/user-attachments/assets/a214f27c-2fee-444a-920f-d87b14f5896f" />
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### 2. Clone Your Fork
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
git clone https://github.com/YOUR_USERNAME/winutil.git
|
||||||
|
cd winutil
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### 3. Create a Branch
|
||||||
|
|
||||||
|
Never work directly on `main`.
|
||||||
|
|
||||||
|
Create a branch related to your change:
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
git checkout -b feature-name
|
||||||
|
```
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
git checkout -b add-firefox-tweak
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### 4. Edit the Code
|
||||||
|
|
||||||
|
Open the project in your preferred text editor and make your changes.
|
||||||
|
|
||||||
|
Keep changes small and focused.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### 5. Test Your Changes
|
||||||
|
|
||||||
|
Open Pwsh (Not Powershell) as Administrator.
|
||||||
|
|
||||||
|
Go to the project folder:
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
cd path\to\winutil
|
||||||
|
```
|
||||||
|
|
||||||
|
Run:
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
.\Compile.ps1 -Run
|
||||||
|
```
|
||||||
|
|
||||||
|
Verify:
|
||||||
|
|
||||||
|
- WinUtil launches correctly
|
||||||
|
- Your feature works
|
||||||
|
- Nothing else breaks
|
||||||
|
|
||||||
|
If something fails, fix it before committing.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### 6. Review Your Changes
|
||||||
|
|
||||||
|
Check what changed:
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
git status
|
||||||
|
```
|
||||||
|
|
||||||
|
Review the diff:
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
git diff
|
||||||
|
```
|
||||||
|
|
||||||
|
Make sure you did not accidentally modify unrelated files.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### 7. Commit Your Changes
|
||||||
|
|
||||||
|
Stage files:
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
git add .
|
||||||
|
```
|
||||||
|
|
||||||
|
Commit them:
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
git commit -m "Add feature description"
|
||||||
|
```
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
git commit -m "Add Firefox package tweak"
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### 8. Push Your Branch
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
git push origin branch-name
|
||||||
|
```
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
git push origin add-firefox-tweak
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### 9. Open a Pull Request
|
||||||
|
|
||||||
|
Go to your fork on GitHub.
|
||||||
|
|
||||||
|
GitHub will show a button to create a pull request.
|
||||||
|
<img width="1009" height="71" alt="{C8C6A3CC-79D4-44FD-A54C-4C5717F12730}" src="https://github.com/user-attachments/assets/0419d193-d4e7-47c0-87cf-b986742201a0" />
|
||||||
|
|
||||||
|
Before submitting:
|
||||||
|
|
||||||
|
- Explain what changed
|
||||||
|
- Explain why you changed it
|
||||||
|
- Make sure unrelated files are not included
|
||||||
|
|
||||||
|
Once submitted, maintainers will review your PR.
|
||||||
@@ -6,57 +6,47 @@ body:
|
|||||||
- type: markdown
|
- type: markdown
|
||||||
attributes:
|
attributes:
|
||||||
value: |
|
value: |
|
||||||
# 🐞 **Issue Report**
|
- Remember, we only support Windows 11. If you encounter problems on Windows 10, please consider upgrading to Windows 11.
|
||||||
Thank you for taking the time to report an issue! Please provide as much detail as possible to help us address the problem efficiently.
|
- For general questions, join our Community-driven [Discord Server](https://discord.gg/RUbZUZyByQ).
|
||||||
|
|
||||||
## ⚠️ **IMPORTANT**
|
|
||||||
- 🛠️ **Supported environments only:** We only support Windows 11. Custom ISOs that are not made using Microwin are not supported.
|
|
||||||
- 💡 For general questions, use the [Discussions section](https://github.com/Christitustech/winutil/discussions) or join our Community-driven [Discord Server](https://discord.gg/RUbZUZyByQ).
|
|
||||||
|
|
||||||
- type: checkboxes
|
- type: checkboxes
|
||||||
|
id: read_issues
|
||||||
attributes:
|
attributes:
|
||||||
label: ⚙️ Issue Checklist
|
label: "I have read the known issues"
|
||||||
|
description: "You [better do](https://winutil.christitus.com/knownissues/), cause your issue can be already there"
|
||||||
options:
|
options:
|
||||||
- label: I have read the guidelines.
|
- label: Yes, I did
|
||||||
- label: I checked for duplicate issues.
|
required: true
|
||||||
- label: I searched for existing discussions.
|
|
||||||
- label: I checked for an existing pull request that addresses this issue.
|
|
||||||
validations:
|
|
||||||
required: true
|
|
||||||
|
|
||||||
- type: input
|
- type: dropdown
|
||||||
id: affected_part
|
id: affected_part
|
||||||
attributes:
|
attributes:
|
||||||
label: 📜 What part of Winutil are you having issues with?
|
label: What part of Winutil are you having issues with?
|
||||||
placeholder: "e.g., Microwin, Tweaks, etc."
|
options:
|
||||||
|
- Program Install Tab
|
||||||
|
- Tweaks Tab
|
||||||
|
- Config Tab
|
||||||
|
- Updates Tab
|
||||||
|
- Win11 Creator Tab
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: false
|
||||||
|
|
||||||
- type: textarea
|
- type: textarea
|
||||||
id: issue_description
|
id: issue_description
|
||||||
attributes:
|
attributes:
|
||||||
label: 📝 Provide a clear and concise description of the issue.
|
label: Provide a clear and concise description of the issue.
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
- type: textarea
|
- type: textarea
|
||||||
id: steps_to_reproduce
|
id: tweaks_applied
|
||||||
attributes:
|
attributes:
|
||||||
label: 🔄 Steps to reproduce the issue.
|
label: List the tweaks you applied before the issue occurred.
|
||||||
placeholder: "e.g., Step 1: ..., Step 2: ..."
|
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: false
|
||||||
|
|
||||||
- type: textarea
|
- type: textarea
|
||||||
id: error_output
|
id: error_output
|
||||||
attributes:
|
attributes:
|
||||||
label: ❌ Paste the full error output (if available).
|
label: Paste the full error output (if available) or Screenshot or Video.
|
||||||
placeholder: "Include any relevant logs or error messages."
|
placeholder: "Include any relevant logs or error messages."
|
||||||
|
|
||||||
- type: textarea
|
|
||||||
id: additional_context
|
|
||||||
attributes:
|
|
||||||
label: 🖼️ Additional context.
|
|
||||||
placeholder: "Include screenshots, code blocks (use triple backticks ```), or any other relevant information."
|
|
||||||
validations:
|
|
||||||
required: false
|
|
||||||
|
|||||||
@@ -13,45 +13,10 @@ body:
|
|||||||
- 🛠️ **Supported environments only:** We only support Windows 11.
|
- 🛠️ **Supported environments only:** We only support Windows 11.
|
||||||
- 💡 For general questions, use the [Discussions section](https://github.com/Christitustech/winutil/discussions) or join our Community-driven [Discord Server](https://discord.gg/RUbZUZyByQ).
|
- 💡 For general questions, use the [Discussions section](https://github.com/Christitustech/winutil/discussions) or join our Community-driven [Discord Server](https://discord.gg/RUbZUZyByQ).
|
||||||
|
|
||||||
- type: checkboxes
|
|
||||||
attributes:
|
|
||||||
label: ⚙️ Issue Checklist
|
|
||||||
options:
|
|
||||||
- label: I have read the guidelines.
|
|
||||||
- label: I checked for duplicate issues.
|
|
||||||
- label: I searched for existing discussions.
|
|
||||||
- label: I checked for an existing pull request that addresses this request.
|
|
||||||
validations:
|
|
||||||
required: true
|
|
||||||
|
|
||||||
- type: textarea
|
|
||||||
id: problem_statement
|
|
||||||
attributes:
|
|
||||||
label: ❓ Is your feature request related to a problem?
|
|
||||||
placeholder: "Provide a clear and concise description of the issue you're facing. Example: 'I'm always frustrated when [...]'"
|
|
||||||
validations:
|
|
||||||
required: false
|
|
||||||
|
|
||||||
- type: textarea
|
- type: textarea
|
||||||
id: proposed_solution
|
id: proposed_solution
|
||||||
attributes:
|
attributes:
|
||||||
label: 💡 Describe the solution you'd like
|
label: 💡 Describe the solution you'd like
|
||||||
placeholder: "Provide a clear and concise description of what you want to happen."
|
placeholder: "Provide a clear and concise description."
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
- type: textarea
|
|
||||||
id: alternatives
|
|
||||||
attributes:
|
|
||||||
label: 🔄 Describe alternatives you've considered
|
|
||||||
placeholder: "Provide details on any alternative solutions or features you've thought about."
|
|
||||||
validations:
|
|
||||||
required: false
|
|
||||||
|
|
||||||
- type: textarea
|
|
||||||
id: additional_context
|
|
||||||
attributes:
|
|
||||||
label: 🖼️ Additional context
|
|
||||||
placeholder: "Include screenshots, code blocks (use triple backticks ```), or any other relevant information."
|
|
||||||
validations:
|
|
||||||
required: false
|
|
||||||
|
|||||||
@@ -1,33 +1,17 @@
|
|||||||
<!--Before you make this PR have you followed the docs here? - https://christitustech.github.io/winutil/contribute/ -->
|
<!--Before you make this PR have you followed the docs here? - https://winutil.christitus.com/contributing/ -->
|
||||||
|
<!--Documentation is auto-generated from configs - no manual documentation updates needed -->
|
||||||
|
|
||||||
## Type of Change
|
## Type of Change
|
||||||
- [ ] New feature
|
- [ ] New feature
|
||||||
- [ ] Bug fix
|
- [ ] Bug fix
|
||||||
- [ ] Documentation update
|
- [ ] Documentation update
|
||||||
- [ ] Refactoring
|
|
||||||
- [ ] Hotfix
|
|
||||||
- [ ] Security patch
|
|
||||||
- [ ] UI/UX improvement
|
- [ ] UI/UX improvement
|
||||||
|
|
||||||
|
<!-- This automatically adds labels to your PR based on the selections above. -->
|
||||||
|
|
||||||
## Description
|
## Description
|
||||||
<!--[Provide a detailed explanation of the changes you have made. Include the reasons behind these changes and any relevant context. Link any related issues.]-->
|
<!--[What does this PR do? Provide Screenshots when possible.]-->
|
||||||
|
|
||||||
## Testing
|
|
||||||
<!--[Detail the testing you have performed to ensure that these changes function as intended. Include information about any added tests.]-->
|
|
||||||
|
|
||||||
## Impact
|
|
||||||
<!--[Discuss the impact of your changes on the project. This might include effects on performance, new dependencies, or changes in behaviour.]-->
|
|
||||||
|
|
||||||
## Issue related to PR
|
## Issue related to PR
|
||||||
<!--[What issue/discussion is related to this PR (if any)]-->
|
<!--[List any ISSUES this is related to as it AUTO-CLOSES Them!]-->
|
||||||
- Resolves #
|
- Resolves #
|
||||||
|
|
||||||
## Additional Information
|
|
||||||
<!--[Any additional information that reviewers should be aware of.]-->
|
|
||||||
|
|
||||||
## Checklist
|
|
||||||
- [ ] My code adheres to the coding and style guidelines of the project.
|
|
||||||
- [ ] I have performed a self-review of my own code.
|
|
||||||
- [ ] I have commented my code, particularly in hard-to-understand areas.
|
|
||||||
- [ ] I have made corresponding changes to the documentation.
|
|
||||||
- [ ] My changes generate no errors/warnings/merge conflicts.
|
|
||||||
|
|||||||
@@ -0,0 +1,105 @@
|
|||||||
|
# Chris Titus Tech's Windows Utility
|
||||||
|
|
||||||
|
[](https://github.com/ChrisTitusTech/winutil/releases/latest)
|
||||||
|

|
||||||
|
[](https://discord.gg/RUbZUZyByQ)
|
||||||
|
[](https://winutil.christitus.com/)
|
||||||
|
|
||||||
|
Questa utility è una raccolta di attività Windows che eseguo personalmente su ogni sistema che utilizzo. È progettata per snellire le *installazioni*, rimuovere i componenti superflui tramite *ottimizzazioni*, risolvere problemi tramite la *configurazione*, e riparare *aggiornamenti* di Windows. Sono estremamente selettivo riguardo ai contributi per mantenere questo progetto pulito ed efficiente.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## 💡 Come usarlo
|
||||||
|
|
||||||
|
Winutil deve essere eseguito con privilegi di amministratore, poiché apporta modifiche all'intero sistema. Per farlo, avvia PowerShell come amministratore. Ecco alcuni modi per procedere:
|
||||||
|
|
||||||
|
1. **Metodo del menu di Start:**
|
||||||
|
- Fai clic con il tasto destro sul menu Start.
|
||||||
|
- Scegli "Windows PowerShell (esegui come Amministratore)" (per Windows 10) o "Terminale (esegui come Amministratore)" (per Windows 11).
|
||||||
|
|
||||||
|
2. **Metodo tramite ricerca:**
|
||||||
|
- Premi il tasto Windows.
|
||||||
|
- Digita "PowerShell" o "Terminal" (per Windows 11).
|
||||||
|
- Premi `Ctrl + Shift + Invio` oppure fai clic con il tasto destro e seleziona "Esegui come amministratore" per avviarlo con privilegi elevati.
|
||||||
|
|
||||||
|
### Comando di avvio
|
||||||
|
|
||||||
|
#### Branch stabile (Consigliato)
|
||||||
|
|
||||||
|
```ps1
|
||||||
|
irm "https://christitus.com/win" | iex
|
||||||
|
```
|
||||||
|
#### Branch Sviluppatore
|
||||||
|
|
||||||
|
```ps1
|
||||||
|
irm "https://christitus.com/windev" | iex
|
||||||
|
```
|
||||||
|
|
||||||
|
### Automazione
|
||||||
|
|
||||||
|
Winutil supporta anche preset predefiniti che applicano automaticamente configurazioni comuni:
|
||||||
|
|
||||||
|
- `Standard`
|
||||||
|
- `Minimal`
|
||||||
|
- `Advanced`
|
||||||
|
|
||||||
|
Esempio:
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
& ([ScriptBlock]::Create((irm "https://christitus.com/win"))) -Preset Standard
|
||||||
|
```
|
||||||
|
|
||||||
|
Per vedere esattamente cosa fa ogni preset, consulta:
|
||||||
|
https://github.com/ChrisTitusTech/winutil/blob/main/config/preset.json
|
||||||
|
|
||||||
|
In caso di problemi, consulta i [Problemi noti](https://winutil.christitus.com/knownissues/) o [Apri una segnalazione](https://github.com/ChrisTitusTech/winutil/issues)
|
||||||
|
|
||||||
|
## 🎓 Documentazione
|
||||||
|
|
||||||
|
### [Documentazione ufficiale di WinUtil](https://winutil.christitus.com/)
|
||||||
|
|
||||||
|
### [Tutorial su YouTube](https://www.youtube.com/watch?v=6UQZ5oQg8XA)
|
||||||
|
|
||||||
|
### [Articolo su ChrisTitus.com](https://christitus.com/windows-tool/)
|
||||||
|
|
||||||
|
## 🛠️ Build & Sviluppo
|
||||||
|
|
||||||
|
> [!NOTE]
|
||||||
|
> Winutil è uno script piuttosto esteso, per questo è suddiviso in più file che vengono combinati in un unico file `.ps1` tramite un compilatore personalizzato. Questo rende la manutenzione del progetto molto più semplice.
|
||||||
|
|
||||||
|
Ottieni una copia del codice sorgente. Puoi farlo tramite l'interfaccia di GitHub (**Code** > **Download ZIP**), oppure clonando (scaricando) la repo tramite git.
|
||||||
|
|
||||||
|
Se git è installato, esegui i seguenti comandi in una finestra PowerShell per clonare e accedere alla directory del progetto:
|
||||||
|
```ps1
|
||||||
|
git clone --depth 1 "https://github.com/ChrisTitusTech/winutil.git"
|
||||||
|
cd winutil
|
||||||
|
```
|
||||||
|
|
||||||
|
Per compilare il progetto, esegui lo script di compilazione in una finestra PowerShell (i permessi di amministratore NON sono richiesti):
|
||||||
|
```ps1
|
||||||
|
.\Compile.ps1
|
||||||
|
```
|
||||||
|
|
||||||
|
Troverai un nuovo file chiamato `winutil.ps1`, creato dallo script `Compile.ps1`. Ora puoi eseguirlo come amministratore e apparirà una nuova finestra. Goditi la tua versione compilata di WinUtil :)
|
||||||
|
|
||||||
|
> [!TIP]
|
||||||
|
> Per ulteriori informazioni sull'utilizzo di WinUtil e su come contribuire allo sviluppo, ti invitiamo a leggere le [Linee guida per i contributi](https://winutil.christitus.com/contributing/). Se non sai da dove iniziare o hai domande, puoi chiedere sul nostro [Server Discord della community](https://discord.gg/RUbZUZyByQ); i membri attivi del progetto risponderanno appena possibile.
|
||||||
|
|
||||||
|
## 💖 Supporto
|
||||||
|
- Per sostenere il progetto moralmente e mentalmente, non dimenticare di lasciare una ⭐️!
|
||||||
|
- Wrapper EXE a 10$ su https://www.cttstore.com/windows-toolbox
|
||||||
|
|
||||||
|
## 💖 Sponsor
|
||||||
|
|
||||||
|
Questi sono gli sponsor che aiutano a mantenere vivo il progetto con contributi mensili.
|
||||||
|
|
||||||
|
<!-- sponsors --><a href="https://github.com/dwelfusius"><img src="https://github.com/dwelfusius.png" width="60px" alt="Avatar utente: " /></a><a href="https://github.com/mews-se"><img src="https://github.com/mews-se.png" width="60px" alt="Avatar utente: Martin Stockzell" /></a><a href="https://github.com/jdiegmueller"><img src="https://github.com/jdiegmueller.png" width="60px" alt="Avatar utente: Jason A. Diegmueller" /></a><a href="https://github.com/robertsandrock"><img src="https://github.com/robertsandrock.png" width="60px" alt="Avatar utente: RMS" /></a><a href="https://github.com/paulsheets"><img src="https://github.com/paulsheets.png" width="60px" alt="Avatar utente: Paul" /></a><a href="https://github.com/djones369"><img src="https://github.com/djones369.png" width="60px" alt="Avatar utente: Dave J (WhamGeek)" /></a><a href="https://github.com/anthonymendez"><img src="https://github.com/anthonymendez.png" width="60px" alt="Avatar utente: Anthony Mendez" /></a><a href="https://github.com/FatBastard0"><img src="https://github.com/FatBastard0.png" width="60px" alt="Avatar utente: " /></a><a href="https://github.com/DursleyGuy"><img src="https://github.com/DursleyGuy.png" width="60px" alt="Avatar utente: DursleyGuy" /></a><a href="https://github.com/DwayneTheRockLobster1"><img src="https://github.com/DwayneTheRockLobster1.png" width="60px" alt="Avatar utente: " /></a><a href="https://github.com/KieraKujisawa"><img src="https://github.com/KieraKujisawa.png" width="60px" alt="Avatar utente: Kiera Meredith" /></a><a href="https://github.com/andrewpayne68"><img src="https://github.com/andrewpayne68.png" width="60px" alt="Avatar utente: Andrew P" /></a><!-- sponsors -->
|
||||||
|
|
||||||
|
## 🏅 Grazie a tutti i collaboratori
|
||||||
|
Un ringraziamento speciale per aver dedicato il vostro tempo ad aiutare Winutil a crescere. Grazie mille! Continuate così 🍻.
|
||||||
|
|
||||||
|
[](https://github.com/ChrisTitusTech/winutil/graphs/contributors)
|
||||||
|
|
||||||
|
## 📊 Statistiche GitHub
|
||||||
|
|
||||||
|

|
||||||
@@ -1,91 +0,0 @@
|
|||||||
site_name: WinUtil Documentation
|
|
||||||
docs_dir: '../docs'
|
|
||||||
repo_url: https://github.com/ChrisTitusTech/winutil
|
|
||||||
|
|
||||||
nav:
|
|
||||||
- Introduction: 'index.md'
|
|
||||||
- User Guide: 'userguide.md'
|
|
||||||
- Contributing Guide: 'CONTRIBUTING.md'
|
|
||||||
- Documentation:
|
|
||||||
- Dev Docs: 'devdocs.md'
|
|
||||||
- Known Issues: 'KnownIssues.md'
|
|
||||||
- FAQ: 'faq.md'
|
|
||||||
|
|
||||||
not_in_nav: |
|
|
||||||
dev/
|
|
||||||
|
|
||||||
theme:
|
|
||||||
name: material
|
|
||||||
custom_dir: '../overrides'
|
|
||||||
features:
|
|
||||||
- navigation.tabs
|
|
||||||
- navigation.sections
|
|
||||||
- toc.integrate
|
|
||||||
- navigation.top
|
|
||||||
- search.suggest
|
|
||||||
- search.highlight
|
|
||||||
- content.tabs.link
|
|
||||||
- content.code.annotation
|
|
||||||
- content.code.copy
|
|
||||||
language: en
|
|
||||||
logo: assets/favicon.png
|
|
||||||
favicon: assets/favicon.png
|
|
||||||
palette:
|
|
||||||
# Palette toggle for automatic mode
|
|
||||||
- media: "(prefers-color-scheme)"
|
|
||||||
toggle:
|
|
||||||
icon: material/brightness-auto
|
|
||||||
name: Switch to light mode
|
|
||||||
|
|
||||||
# Palette toggle for light mode
|
|
||||||
- media: "(prefers-color-scheme: light)"
|
|
||||||
scheme: default
|
|
||||||
accent: blue
|
|
||||||
toggle:
|
|
||||||
icon: material/brightness-7
|
|
||||||
name: Switch to dark mode
|
|
||||||
|
|
||||||
# Palette toggle for dark mode
|
|
||||||
- media: "(prefers-color-scheme: dark)"
|
|
||||||
scheme: slate
|
|
||||||
primary: black
|
|
||||||
accent: blue
|
|
||||||
toggle:
|
|
||||||
icon: material/weather-night
|
|
||||||
name: Switch to light mode
|
|
||||||
markdown_extensions:
|
|
||||||
- admonition
|
|
||||||
- pymdownx.details
|
|
||||||
- pymdownx.superfences
|
|
||||||
- pymdownx.superfences:
|
|
||||||
custom_fences:
|
|
||||||
- name: mermaid
|
|
||||||
class: mermaid
|
|
||||||
format: !!python/name:pymdownx.superfences.fence_code_format
|
|
||||||
- abbr
|
|
||||||
- attr_list
|
|
||||||
- pymdownx.snippets
|
|
||||||
- md_in_html
|
|
||||||
- pymdownx.superfences
|
|
||||||
- pymdownx.tabbed:
|
|
||||||
alternate_style: true
|
|
||||||
- pymdownx.highlight:
|
|
||||||
anchor_linenums: true
|
|
||||||
line_spans: __span
|
|
||||||
pygments_lang_class: true
|
|
||||||
- pymdownx.inlinehilite
|
|
||||||
- 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
|
|
||||||
@@ -4,15 +4,16 @@ categories:
|
|||||||
labels:
|
labels:
|
||||||
- 'feature'
|
- 'feature'
|
||||||
- 'enhancement'
|
- 'enhancement'
|
||||||
|
- 'new feature'
|
||||||
- title: '🐛 Bug Fixes'
|
- title: '🐛 Bug Fixes'
|
||||||
labels:
|
labels:
|
||||||
- 'fix'
|
- 'hotfix'
|
||||||
- 'bugfix'
|
- 'bugfix'
|
||||||
- 'bug'
|
- 'bug'
|
||||||
- title: '📚 Documentation'
|
- title: '📚 Documentation'
|
||||||
label: 'documentation'
|
label: 'documentation'
|
||||||
- title: '🔒 Security'
|
- title: '🎨 UI/UX Improvements'
|
||||||
label: 'security'
|
label: 'ui update'
|
||||||
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
|
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
|
||||||
template: |
|
template: |
|
||||||
## Changes
|
## Changes
|
||||||
@@ -31,7 +32,7 @@ autolabeler:
|
|||||||
- '/fix\/.+/'
|
- '/fix\/.+/'
|
||||||
title:
|
title:
|
||||||
- '/fix/i'
|
- '/fix/i'
|
||||||
- label: 'enhancement'
|
- label: 'new feature'
|
||||||
branch:
|
branch:
|
||||||
- '/feature\/.+/'
|
- '/feature\/.+/'
|
||||||
body:
|
body:
|
||||||
@@ -40,9 +41,6 @@ autolabeler:
|
|||||||
files:
|
files:
|
||||||
- '**/*.md'
|
- '**/*.md'
|
||||||
- 'docs/**/*'
|
- 'docs/**/*'
|
||||||
- label: 'security'
|
|
||||||
branch:
|
|
||||||
- '/security\/.+/'
|
|
||||||
replacers:
|
replacers:
|
||||||
- search: /"/g
|
- search: /"/g
|
||||||
replace: ''
|
replace: ''
|
||||||
|
|||||||
@@ -1,51 +0,0 @@
|
|||||||
Babel==2.15.0
|
|
||||||
bracex==2.5
|
|
||||||
cairocffi==1.7.1
|
|
||||||
CairoSVG==2.7.1
|
|
||||||
certifi==2024.7.4
|
|
||||||
cffi==1.17.0
|
|
||||||
charset-normalizer==3.3.2
|
|
||||||
click==8.1.7
|
|
||||||
colorama==0.4.6
|
|
||||||
csscompressor==0.9.5
|
|
||||||
cssselect2==0.7.0
|
|
||||||
defusedxml==0.7.1
|
|
||||||
ghp-import==2.1.0
|
|
||||||
gitdb==4.0.11
|
|
||||||
GitPython==3.1.43
|
|
||||||
htmlmin2==0.1.13
|
|
||||||
idna==3.7
|
|
||||||
Jinja2==3.1.5
|
|
||||||
jsmin==3.0.1
|
|
||||||
Markdown==3.6
|
|
||||||
MarkupSafe==2.1.5
|
|
||||||
mergedeep==1.3.4
|
|
||||||
mkdocs==1.6.0
|
|
||||||
mkdocs-awesome-pages-plugin==2.9.3
|
|
||||||
mkdocs-get-deps==0.2.0
|
|
||||||
mkdocs-git-revision-date-localized-plugin==1.2.6
|
|
||||||
mkdocs-material==9.5.31
|
|
||||||
mkdocs-material-extensions==1.3.1
|
|
||||||
mkdocs-minify-plugin==0.8.0
|
|
||||||
natsort==8.4.0
|
|
||||||
packaging==24.1
|
|
||||||
paginate==0.5.6
|
|
||||||
pathspec==0.12.1
|
|
||||||
pillow==10.4.0
|
|
||||||
platformdirs==4.2.2
|
|
||||||
pycparser==2.22
|
|
||||||
Pygments==2.18.0
|
|
||||||
pymdown-extensions==10.9
|
|
||||||
python-dateutil==2.9.0.post0
|
|
||||||
pytz==2024.1
|
|
||||||
PyYAML==6.0.2
|
|
||||||
pyyaml_env_tag==0.1
|
|
||||||
regex==2024.7.24
|
|
||||||
requests==2.32.3
|
|
||||||
six==1.16.0
|
|
||||||
smmap==5.0.1
|
|
||||||
tinycss2==1.3.0
|
|
||||||
urllib3==2.2.2
|
|
||||||
watchdog==4.0.1
|
|
||||||
wcmatch==9.0
|
|
||||||
webencodings==0.5.1
|
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
name: Auto-merge Docs PRs
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
types: [opened, synchronize, reopened]
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
auto-merge:
|
||||||
|
if: github.event.pull_request.head.ref == 'docs-update' && (github.event.pull_request.user.login == 'ChrisTitusTech' || github.event.pull_request.user.login == 'github-actions[bot]')
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
pull-requests: write
|
||||||
|
contents: write
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
|
- name: Auto-approve PR
|
||||||
|
if: github.event.pull_request.user.login == 'github-actions[bot]'
|
||||||
|
run: gh pr review "$PR_NUMBER" --approve
|
||||||
|
env:
|
||||||
|
PR_NUMBER: ${{ github.event.pull_request.number }}
|
||||||
|
GH_TOKEN: ${{ secrets.AUTO_MERGE }}
|
||||||
|
|
||||||
|
- name: Enable auto-merge
|
||||||
|
run: gh pr merge "$PR_NUMBER" --squash --delete-branch --admin
|
||||||
|
env:
|
||||||
|
PR_NUMBER: ${{ github.event.pull_request.number }}
|
||||||
|
GH_TOKEN: ${{ secrets.AUTO_MERGE }}
|
||||||
@@ -9,7 +9,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Check if PR was merged
|
- name: Check if PR was merged
|
||||||
if: github.event.pull_request.merged == true
|
if: github.event.pull_request.merged == true
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ jobs:
|
|||||||
contents: none
|
contents: none
|
||||||
steps:
|
steps:
|
||||||
- name: Close inactive issues
|
- name: Close inactive issues
|
||||||
uses: actions/stale@v8
|
uses: actions/stale@v10
|
||||||
with:
|
with:
|
||||||
# A list of labels to reference when looking through issues,
|
# A list of labels to reference when looking through issues,
|
||||||
# and only when one (or even more) of these labels are found..
|
# and only when one (or even more) of these labels are found..
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ jobs:
|
|||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Sources
|
- name: Checkout Sources
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Compile and Syntaxcheck winutil.ps1
|
- name: Compile and Syntaxcheck winutil.ps1
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
|
|||||||
@@ -0,0 +1,120 @@
|
|||||||
|
name: Deploy Hugo site to Pages
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
paths:
|
||||||
|
- "docs/**"
|
||||||
|
- "config/tweaks.json"
|
||||||
|
- "config/feature.json"
|
||||||
|
- "functions/**"
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
pages: write
|
||||||
|
id-token: write
|
||||||
|
pull-requests: write
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: "pages"
|
||||||
|
cancel-in-progress: false
|
||||||
|
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
if: github.repository == 'ChrisTitusTech/winutil'
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
HUGO_VERSION: 0.156.0
|
||||||
|
HUGO_ENVIRONMENT: production
|
||||||
|
TZ: America/Chicago
|
||||||
|
steps:
|
||||||
|
- name: Install Hugo CLI
|
||||||
|
run: |
|
||||||
|
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
|
||||||
|
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v6
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
fetch-depth: 0
|
||||||
|
persist-credentials: false
|
||||||
|
- name: Setup Pages
|
||||||
|
id: pages
|
||||||
|
uses: actions/configure-pages@v6
|
||||||
|
|
||||||
|
- name: Generate Dev Docs from JSON
|
||||||
|
shell: pwsh
|
||||||
|
run: |
|
||||||
|
Set-Location tools
|
||||||
|
./devdocs-generator.ps1
|
||||||
|
|
||||||
|
- name: Create Pull Request
|
||||||
|
id: cpr
|
||||||
|
uses: peter-evans/create-pull-request@v8
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.AUTO_MERGE }}
|
||||||
|
commit-message: 'chore: Update generated dev docs'
|
||||||
|
title: 'chore: Update Generated Dev Docs'
|
||||||
|
body: 'Automated update of generated documentation from JSON sources'
|
||||||
|
branch: docs-update
|
||||||
|
delete-branch: true
|
||||||
|
add-paths: |
|
||||||
|
docs/content/dev/
|
||||||
|
config/tweaks.json
|
||||||
|
config/feature.json
|
||||||
|
labels: |
|
||||||
|
automated
|
||||||
|
documentation
|
||||||
|
|
||||||
|
- name: Check outputs
|
||||||
|
run: |
|
||||||
|
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
|
||||||
|
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"
|
||||||
|
|
||||||
|
- name: Install Node.js dependencies
|
||||||
|
run: "cd docs && [[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
|
||||||
|
- name: Cache Restore
|
||||||
|
id: cache-restore
|
||||||
|
uses: actions/cache/restore@v5
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
${{ runner.temp }}/hugo_cache
|
||||||
|
key: hugo-${{ github.run_id }}
|
||||||
|
restore-keys: hugo-
|
||||||
|
- name: Build with Hugo
|
||||||
|
run: |
|
||||||
|
hugo \
|
||||||
|
--gc \
|
||||||
|
--minify \
|
||||||
|
--cleanDestinationDir \
|
||||||
|
--source docs \
|
||||||
|
--cacheDir "${{ runner.temp }}/hugo_cache"
|
||||||
|
- name: Cache Save
|
||||||
|
id: cache-save
|
||||||
|
uses: actions/cache/save@v5
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
${{ runner.temp }}/hugo_cache
|
||||||
|
key: ${{ steps.cache-restore.outputs.cache-primary-key }}
|
||||||
|
- name: Upload artifact
|
||||||
|
uses: actions/upload-pages-artifact@v5
|
||||||
|
with:
|
||||||
|
path: ./docs/public
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
if: github.repository == 'ChrisTitusTech/winutil'
|
||||||
|
environment:
|
||||||
|
name: github-pages
|
||||||
|
url: ${{ steps.deployment.outputs.page_url }}
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: build
|
||||||
|
steps:
|
||||||
|
- name: Deploy to GitHub Pages
|
||||||
|
id: deployment
|
||||||
|
uses: actions/deploy-pages@v5
|
||||||
@@ -1,33 +0,0 @@
|
|||||||
name: GitHub Pages Deploy
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
paths:
|
|
||||||
- '.github/mkdocs.yml'
|
|
||||||
- '.github/requirements.txt'
|
|
||||||
- 'docs/**'
|
|
||||||
- 'overrides/**'
|
|
||||||
- '.github/CONTRIBUTING.md'
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build-and-deploy:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout Repository
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
fetch-depth: '0' # Fetch all commit history for all branches as well as tags.
|
|
||||||
|
|
||||||
- name: Setup Python
|
|
||||||
uses: actions/setup-python@v5
|
|
||||||
with:
|
|
||||||
python-version: 3.x # Install latest Stable release of Python 3
|
|
||||||
cache: 'pip' # Caching pip dependencies
|
|
||||||
|
|
||||||
- name: Install Necessary Dependencies
|
|
||||||
run: pip install -r .github/requirements.txt
|
|
||||||
|
|
||||||
- name: Build & Deploy using mkdocs
|
|
||||||
run: mkdocs gh-deploy --force -f .github/mkdocs.yml
|
|
||||||
@@ -15,101 +15,63 @@ jobs:
|
|||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- run: echo "command=false" >> $GITHUB_ENV
|
- name: Process slash command
|
||||||
|
uses: actions/github-script@v9
|
||||||
|
with:
|
||||||
|
script: |
|
||||||
|
const allowedUsers = ["ChrisTitusTech", "og-mrk", "Marterich", "MyDrift-user", "Real-MullaC", "CodingWonders", "GabiNun2", "FluffyPunk"];
|
||||||
|
const commenter = context.payload.comment.user.login;
|
||||||
|
|
||||||
- name: Check for /label command
|
// Authorization check first — before any parsing of comment content
|
||||||
id: check_label_command
|
if (!allowedUsers.includes(commenter)) {
|
||||||
run: |
|
console.log(`User ${commenter} is not in the allowlist. Skipping.`);
|
||||||
if [[ "${{ contains(github.event.comment.body, '/label') }}" == "true" ]]; then
|
return;
|
||||||
echo "command=true" >> $GITHUB_ENV
|
}
|
||||||
LABEL_NAME=$(echo "${{ github.event.comment.body }}" | awk -F"/label" '/\/label/ { match($2, /'\''([^'\'']*)'\''/, arr); if (arr[1] != "") print arr[1] }')
|
|
||||||
echo "label_command=true" >> $GITHUB_ENV
|
|
||||||
echo "label_name=${LABEL_NAME}" >> $GITHUB_ENV
|
|
||||||
else
|
|
||||||
echo "label_command=false" >> $GITHUB_ENV
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Check for /unlabel command
|
// Read comment body as data, never interpolated into shell
|
||||||
id: check_unlabel_command
|
const body = context.payload.comment.body;
|
||||||
run: |
|
const issueNumber = context.issue.number;
|
||||||
if [[ "${{ contains(github.event.comment.body, '/unlabel') }}" == "true" ]]; then
|
const owner = context.repo.owner;
|
||||||
echo "command=true" >> $GITHUB_ENV
|
const repo = context.repo.repo;
|
||||||
UNLABEL_NAME=$(echo "${{ github.event.comment.body }}" | awk -F"/unlabel" '/\/unlabel/ { match($2, /'\''([^'\'']*)'\''/, arr); if (arr[1] != "") print arr[1] }')
|
|
||||||
echo "unlabel_command=true" >> $GITHUB_ENV
|
|
||||||
echo "unlabel_name=${UNLABEL_NAME}" >> $GITHUB_ENV
|
|
||||||
else
|
|
||||||
echo "unlabel_command=false" >> $GITHUB_ENV
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Check for /close command
|
// /label 'name' or /label name
|
||||||
id: check_close_command
|
const labelMatch = body.match(/\/label\s+'([^']+)'|\/label\s+(\S+?)(?:\s|$)/);
|
||||||
run: |
|
if (labelMatch) {
|
||||||
if [[ "${{ contains(github.event.comment.body, '/close') }}" == "true" ]]; then
|
const labelName = (labelMatch[1] || labelMatch[2]).trim();
|
||||||
echo "command=true" >> $GITHUB_ENV
|
console.log(`Adding label: ${labelName}`);
|
||||||
echo "close_command=true" >> $GITHUB_ENV
|
await github.rest.issues.addLabels({
|
||||||
echo "reopen_command=false" >> $GITHUB_ENV
|
owner, repo, issue_number: issueNumber,
|
||||||
else
|
labels: [labelName],
|
||||||
echo "close_command=false" >> $GITHUB_ENV
|
});
|
||||||
fi
|
}
|
||||||
|
|
||||||
- name: Check for /open or /reopen command
|
// /unlabel 'name' or /unlabel name
|
||||||
id: check_reopen_command
|
const unlabelMatch = body.match(/\/unlabel\s+'([^']+)'|\/unlabel\s+(\S+?)(?:\s|$)/);
|
||||||
run: |
|
if (unlabelMatch) {
|
||||||
if [[ "${{ contains(github.event.comment.body, '/open') }}" == "true" ]] || [[ "${{ contains(github.event.comment.body, '/reopen') }}" == "true" ]]; then
|
const labelName = (unlabelMatch[1] || unlabelMatch[2]).trim();
|
||||||
echo "command=true" >> $GITHUB_ENV
|
console.log(`Removing label: ${labelName}`);
|
||||||
echo "reopen_command=true" >> $GITHUB_ENV
|
await github.rest.issues.removeLabel({
|
||||||
echo "close_command=false" >> $GITHUB_ENV
|
owner, repo, issue_number: issueNumber,
|
||||||
else
|
name: labelName,
|
||||||
echo "reopen_command=false" >> $GITHUB_ENV
|
});
|
||||||
fi
|
}
|
||||||
|
|
||||||
- name: Check if the user is allowed
|
// /close (optionally with 'not planned')
|
||||||
id: check_user
|
if (body.includes('/close')) {
|
||||||
if: env.command == 'true'
|
const stateReason = body.includes('not planned') ? 'not_planned' : 'completed';
|
||||||
run: |
|
console.log(`Closing issue (reason: ${stateReason})`);
|
||||||
ALLOWED_USERS=("ChrisTitusTech" "og-mrk" "Marterich" "MyDrift-user" "Real-MullaC" "CodingWonders")
|
await github.rest.issues.update({
|
||||||
if [[ " ${ALLOWED_USERS[@]} " =~ " ${{ github.event.comment.user.login }} " ]]; then
|
owner, repo, issue_number: issueNumber,
|
||||||
echo "user=true" >> $GITHUB_ENV
|
state: 'closed',
|
||||||
else
|
state_reason: stateReason,
|
||||||
exit 0
|
});
|
||||||
fi
|
}
|
||||||
|
|
||||||
- name: Close issue
|
// /open or /reopen
|
||||||
if: env.close_command == 'true'
|
if (body.includes('/open') || body.includes('/reopen')) {
|
||||||
env:
|
console.log('Reopening issue');
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
await github.rest.issues.update({
|
||||||
ISSUE_NUMBER: ${{ github.event.issue.number }}
|
owner, repo, issue_number: issueNumber,
|
||||||
run: |
|
state: 'open',
|
||||||
echo Closing the issue...
|
});
|
||||||
if [[ "${{ contains(github.event.comment.body, 'not planned') }}" == "true" ]]; then
|
}
|
||||||
gh issue close $ISSUE_NUMBER --repo ${{ github.repository }} --reason 'not planned'
|
|
||||||
else
|
|
||||||
gh issue close $ISSUE_NUMBER --repo ${{ github.repository }}
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Reopen issue
|
|
||||||
if: env.reopen_command == 'true'
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
ISSUE_NUMBER: ${{ github.event.issue.number }}
|
|
||||||
run: |
|
|
||||||
echo Reopening the issue...
|
|
||||||
gh issue reopen $ISSUE_NUMBER --repo ${{ github.repository }}
|
|
||||||
|
|
||||||
- name: Label issue
|
|
||||||
if: env.label_command == 'true'
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
ISSUE_NUMBER: ${{ github.event.issue.number }}
|
|
||||||
run: |
|
|
||||||
echo Labeling the issue...
|
|
||||||
gh issue edit $ISSUE_NUMBER --repo ${{ github.repository }} --add-label "${{ env.label_name }}"
|
|
||||||
|
|
||||||
- name: Remove labels
|
|
||||||
if: env.unlabel_command == 'true'
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
ISSUE_NUMBER: ${{ github.event.issue.number }}
|
|
||||||
run: |
|
|
||||||
echo Unlabeling the issue...
|
|
||||||
gh issue edit $ISSUE_NUMBER --repo ${{ github.repository }} --remove-label "${{ env.unlabel_name }}"
|
|
||||||
|
|||||||
@@ -0,0 +1,45 @@
|
|||||||
|
name: Label PRs by Type of Change
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request_target:
|
||||||
|
types: [opened, edited, synchronize]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
label-pr:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
pull-requests: write
|
||||||
|
issues: write
|
||||||
|
contents: read # Often needed for github-script
|
||||||
|
steps:
|
||||||
|
- name: Check PR body for Type of Change
|
||||||
|
uses: actions/github-script@v9
|
||||||
|
with:
|
||||||
|
script: |
|
||||||
|
const prBody = context.payload.pull_request.body || '';
|
||||||
|
const labelsToAdd = [];
|
||||||
|
|
||||||
|
if (/\[x\]\s*New feature/i.test(prBody)) {
|
||||||
|
labelsToAdd.push('new feature');
|
||||||
|
}
|
||||||
|
if (/\[x\]\s*Bug fix/i.test(prBody)) {
|
||||||
|
labelsToAdd.push('bug');
|
||||||
|
}
|
||||||
|
if (/\[x\]\s*Documentation update/i.test(prBody)) {
|
||||||
|
labelsToAdd.push('documentation');
|
||||||
|
}
|
||||||
|
if (/\[x\]\s*Hotfix/i.test(prBody)) {
|
||||||
|
labelsToAdd.push('hotfix');
|
||||||
|
}
|
||||||
|
if (/\[x\]\s*UI\/UX improvement/i.test(prBody)) {
|
||||||
|
labelsToAdd.push('ui update');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (labelsToAdd.length > 0) {
|
||||||
|
await github.rest.issues.addLabels({
|
||||||
|
owner: context.repo.owner,
|
||||||
|
repo: context.repo.repo,
|
||||||
|
issue_number: context.payload.pull_request.number,
|
||||||
|
labels: labelsToAdd
|
||||||
|
});
|
||||||
|
}
|
||||||
@@ -3,6 +3,7 @@ name: Pre-Release WinUtil
|
|||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
actions: read
|
actions: read
|
||||||
|
pull-requests: write
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch: # Manual trigger added
|
workflow_dispatch: # Manual trigger added
|
||||||
@@ -10,11 +11,19 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
build-runspace:
|
build-runspace:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
outputs:
|
||||||
|
version: ${{ steps.extract_version.outputs.version }}
|
||||||
env:
|
env:
|
||||||
CERTIFICATE_BASE64: ${{ secrets.CERTIFICATE_BASE64 }}
|
CERTIFICATE_BASE64: ${{ secrets.CERTIFICATE_BASE64 }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Repository
|
- name: Checkout Repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
|
- name: Generate Dev Docs and Update JSON Links
|
||||||
|
shell: pwsh
|
||||||
|
run: |
|
||||||
|
Set-Location tools
|
||||||
|
./devdocs-generator.ps1
|
||||||
|
|
||||||
- name: Compile project
|
- name: Compile project
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
@@ -22,11 +31,35 @@ jobs:
|
|||||||
Set-ExecutionPolicy Bypass -Scope Process -Force; ./Compile.ps1
|
Set-ExecutionPolicy Bypass -Scope Process -Force; ./Compile.ps1
|
||||||
continue-on-error: false # Directly fail the job on error, removing the need for a separate check
|
continue-on-error: false # Directly fail the job on error, removing the need for a separate check
|
||||||
|
|
||||||
|
- name: Create Pull Request for Updated JSON Links
|
||||||
|
id: cpr
|
||||||
|
uses: peter-evans/create-pull-request@v8
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.AUTO_MERGE }}
|
||||||
|
commit-message: 'chore: Update documentation links in JSON configs'
|
||||||
|
title: 'chore: Update Generated Dev Docs'
|
||||||
|
body: 'Automated update of documentation links in JSON configs from pre-release build'
|
||||||
|
branch: docs-update
|
||||||
|
delete-branch: true
|
||||||
|
add-paths: |
|
||||||
|
config/tweaks.json
|
||||||
|
config/feature.json
|
||||||
|
labels: |
|
||||||
|
automated
|
||||||
|
skip-changelog
|
||||||
|
|
||||||
|
- name: Check outputs
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
|
||||||
|
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"
|
||||||
|
|
||||||
- name: Set Version to Todays Date
|
- name: Set Version to Todays Date
|
||||||
id: extract_version
|
id: extract_version
|
||||||
run: |
|
run: |
|
||||||
$version = (Get-Date -Format "yy.MM.dd")
|
$version = (Get-Date -Format "yy.MM.dd")
|
||||||
echo "VERSION=$version" >> $env:GITHUB_ENV
|
echo "VERSION=$version" >> $env:GITHUB_ENV
|
||||||
|
echo "version=$version" >> $env:GITHUB_OUTPUT
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
|
|
||||||
- name: Create Tag
|
- name: Create Tag
|
||||||
@@ -49,43 +82,36 @@ jobs:
|
|||||||
}
|
}
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
|
|
||||||
- name: Create and import code signing certificate
|
- name: Upload compiled script
|
||||||
shell: pwsh
|
uses: actions/upload-artifact@v7
|
||||||
run: |
|
|
||||||
[System.IO.File]::WriteAllBytes("$env:USERPROFILE\code-signing-cert.pfx", [System.Convert]::FromBase64String("$env:CERTIFICATE_BASE64"))
|
|
||||||
Import-PfxCertificate -FilePath "$env:USERPROFILE\code-signing-cert.pfx" -CertStoreLocation Cert:\CurrentUser\My
|
|
||||||
|
|
||||||
- name: Code sign winutil.ps1
|
|
||||||
shell: pwsh
|
|
||||||
run: |
|
|
||||||
$cert = Get-ChildItem -Path Cert:\CurrentUser\My -CodeSigningCert | Select-Object -First 1
|
|
||||||
if ($null -eq $cert) { throw "Code signing certificate not found" }
|
|
||||||
Set-AuthenticodeSignature -FilePath ./winutil.ps1 -Certificate $cert -TimeStampServer "http://timestamp.digicert.com"
|
|
||||||
|
|
||||||
- name: Verify code signature
|
|
||||||
shell: pwsh
|
|
||||||
run: |
|
|
||||||
$signature = Get-AuthenticodeSignature -FilePath ./winutil.ps1
|
|
||||||
if ($signature.Status -ne 'Valid') { throw "Code signing failed" }
|
|
||||||
|
|
||||||
- name: Upload winutil.ps1 as artifact
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
with:
|
||||||
name: winutil
|
name: winutil-ps1
|
||||||
path: ./winutil.ps1
|
path: ./winutil.ps1
|
||||||
|
|
||||||
|
release:
|
||||||
|
needs: build-runspace
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Download compiled script
|
||||||
|
uses: actions/download-artifact@v8
|
||||||
|
with:
|
||||||
|
name: winutil-ps1
|
||||||
|
|
||||||
|
- name: Set version from build job
|
||||||
|
run: echo "VERSION=${{ needs.build-runspace.outputs.version }}" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Generate Release Notes
|
- name: Generate Release Notes
|
||||||
id: generate_notes
|
id: generate_notes
|
||||||
uses: release-drafter/release-drafter@v6
|
uses: release-drafter/release-drafter@v7
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
config-name: release-drafter.yml
|
config-name: release-drafter.yml
|
||||||
version: ${{ env.VERSION }} # Pass the version variable
|
version: ${{ env.VERSION }}
|
||||||
|
|
||||||
- name: Create and Upload Release
|
- name: Create and Upload Release
|
||||||
id: create_release
|
id: create_release
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v3
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ env.VERSION }}
|
tag_name: ${{ env.VERSION }}
|
||||||
name: Pre-Release ${{ env.VERSION }}
|
name: Pre-Release ${{ env.VERSION }}
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Check if winutil.ps1 exists
|
- name: Check if winutil.ps1 exists
|
||||||
id: check_existence
|
id: check_existence
|
||||||
|
|||||||
@@ -5,13 +5,16 @@ on:
|
|||||||
- cron: 30 15 * * 0-6
|
- cron: 30 15 * * 0-6
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
pull-requests: write
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: (github.event_name == 'schedule' && github.repository == 'ChrisTitusTech/winutil') || (github.event_name != 'schedule')
|
if: (github.event_name == 'schedule' && github.repository == 'ChrisTitusTech/winutil') || (github.event_name != 'schedule')
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout 🛎️
|
- name: Checkout 🛎️
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
|
with:
|
||||||
|
persist-credentials: false
|
||||||
|
|
||||||
- name: Generate Sponsors 💖
|
- name: Generate Sponsors 💖
|
||||||
uses: JamesIves/github-sponsors-readme-action@v1
|
uses: JamesIves/github-sponsors-readme-action@v1
|
||||||
@@ -19,8 +22,19 @@ jobs:
|
|||||||
token: ${{ secrets.PAT }}
|
token: ${{ secrets.PAT }}
|
||||||
file: 'README.md'
|
file: 'README.md'
|
||||||
|
|
||||||
- name: Deploy to GitHub Pages 🚀
|
- name: Create Pull Request 🚀
|
||||||
uses: JamesIves/github-pages-deploy-action@v4
|
id: cpr
|
||||||
|
uses: peter-evans/create-pull-request@v8
|
||||||
with:
|
with:
|
||||||
branch: main
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
folder: '.'
|
commit-message: 'Update sponsors in README'
|
||||||
|
title: 'chore: Update Sponsors README'
|
||||||
|
body: 'Automated update of sponsors section'
|
||||||
|
branch: sponsors-update
|
||||||
|
delete-branch: true
|
||||||
|
labels: automated
|
||||||
|
|
||||||
|
- name: Check outputs
|
||||||
|
run: |
|
||||||
|
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
|
||||||
|
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ jobs:
|
|||||||
name: PS Script Analyzer
|
name: PS Script Analyzer
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v6
|
||||||
- name: lint
|
- name: lint
|
||||||
uses: devblackops/github-action-psscriptanalyzer@master
|
uses: devblackops/github-action-psscriptanalyzer@master
|
||||||
with:
|
with:
|
||||||
@@ -22,7 +22,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Install Pester
|
- name: Install Pester
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -1,50 +1,19 @@
|
|||||||
### VSCode ###
|
# winutil
|
||||||
|
|
||||||
# Configuration folder
|
|
||||||
.vscode/
|
|
||||||
.idea/
|
|
||||||
|
|
||||||
### Visual Studio ###
|
|
||||||
|
|
||||||
# Visual Studio user-specific files
|
|
||||||
.vs/
|
|
||||||
|
|
||||||
winutil.pdb
|
|
||||||
|
|
||||||
### Windows ###
|
|
||||||
|
|
||||||
# Folder config file
|
|
||||||
[Dd]esktop.ini
|
|
||||||
|
|
||||||
# Ignore Generated XAML Files
|
|
||||||
xaml/inputApp.xaml
|
|
||||||
xaml/inputFeatures.xaml
|
|
||||||
xaml/inputTweaks.xaml
|
|
||||||
|
|
||||||
# Executables and Configs
|
|
||||||
winget.msixbundle
|
|
||||||
pester.ps1
|
|
||||||
*.psd*
|
|
||||||
ooshutup10.cfg
|
|
||||||
winutil.exe.config
|
|
||||||
Microsoft.UI.Xaml*
|
|
||||||
license1.xml
|
|
||||||
winutil.ps1
|
|
||||||
|
|
||||||
# Libraries
|
|
||||||
System.Management.Automation.dll
|
System.Management.Automation.dll
|
||||||
Microsoft.PowerShell.ConsoleHost.dll
|
Microsoft.PowerShell.ConsoleHost.dll
|
||||||
|
|
||||||
# Compressed files
|
winutil.exe.config
|
||||||
*.zip
|
|
||||||
|
|
||||||
### MacOS ###
|
|
||||||
|
|
||||||
# General
|
|
||||||
.DS_Store
|
|
||||||
microwin.log
|
|
||||||
True
|
|
||||||
test.ps1
|
|
||||||
winutil.ps1
|
winutil.ps1
|
||||||
|
binary/
|
||||||
|
|
||||||
binary/
|
# general software/os specific
|
||||||
|
desktop.ini
|
||||||
|
.DS_Store
|
||||||
|
|
||||||
|
.vscode/
|
||||||
|
.idea/
|
||||||
|
|
||||||
|
# hugo files
|
||||||
|
docs/public/
|
||||||
|
docs/.hugo_build.lock
|
||||||
|
docs/resources/
|
||||||
|
|||||||
@@ -1,147 +1,44 @@
|
|||||||
param (
|
param (
|
||||||
[switch]$Debug,
|
[switch]$Run
|
||||||
[switch]$Run,
|
|
||||||
[switch]$SkipPreprocessing,
|
|
||||||
[string]$Arguments
|
|
||||||
)
|
)
|
||||||
|
|
||||||
if ((Get-Item ".\winutil.ps1" -ErrorAction SilentlyContinue).IsReadOnly) {
|
|
||||||
Remove-Item ".\winutil.ps1" -Force
|
|
||||||
}
|
|
||||||
|
|
||||||
$OFS = "`r`n"
|
$OFS = "`r`n"
|
||||||
$scriptname = "winutil.ps1"
|
|
||||||
$workingdir = $PSScriptRoot
|
|
||||||
|
|
||||||
Push-Location
|
|
||||||
Set-Location $workingdir
|
|
||||||
|
|
||||||
# Variable to sync between runspaces
|
# Variable to sync between runspaces
|
||||||
$sync = [Hashtable]::Synchronized(@{})
|
$sync = [Hashtable]::Synchronized(@{})
|
||||||
$sync.PSScriptRoot = $workingdir
|
|
||||||
$sync.configs = @{}
|
$sync.configs = @{}
|
||||||
|
|
||||||
function Update-Progress {
|
$script = (Get-Content -Path scripts\start.ps1) -replace '#{replaceme}', (Get-Date -Format 'yy.MM.dd')
|
||||||
param (
|
|
||||||
[Parameter(Mandatory, position=0)]
|
|
||||||
[string]$StatusMessage,
|
|
||||||
|
|
||||||
[Parameter(Mandatory, position=1)]
|
$script += Get-ChildItem -Path functions -Recurse -File | Get-Content -Raw
|
||||||
[ValidateRange(0,100)]
|
|
||||||
[int]$Percent,
|
|
||||||
|
|
||||||
[Parameter(position=2)]
|
Get-ChildItem config | ForEach-Object {
|
||||||
[string]$Activity = "Compiling"
|
$obj = Get-Content -Path $_.FullName -Raw | ConvertFrom-Json
|
||||||
)
|
|
||||||
|
|
||||||
Write-Progress -Activity $Activity -Status $StatusMessage -PercentComplete $Percent
|
if ($_.Name -eq "applications.json") {
|
||||||
}
|
$fixed = [ordered]@{}
|
||||||
|
foreach ($p in $obj.PSObject.Properties) {
|
||||||
$header = @"
|
$fixed["WPFInstall$($p.Name)"] = $p.Value
|
||||||
################################################################################################################
|
|
||||||
### ###
|
|
||||||
### WARNING: This file is automatically generated DO NOT modify this file directly as it will be overwritten ###
|
|
||||||
### ###
|
|
||||||
################################################################################################################
|
|
||||||
"@
|
|
||||||
|
|
||||||
if (-NOT $SkipPreprocessing) {
|
|
||||||
Update-Progress "Pre-req: Running Preprocessor..." 0
|
|
||||||
|
|
||||||
# Dot source the 'Invoke-Preprocessing' Function from 'tools/Invoke-Preprocessing.ps1' Script
|
|
||||||
$preprocessingFilePath = ".\tools\Invoke-Preprocessing.ps1"
|
|
||||||
. $preprocessingFilePath
|
|
||||||
|
|
||||||
$excludedFiles = @('.\.git\', '.\.gitignore', '.\.gitattributes', '.\.github\CODEOWNERS', '.\LICENSE', "$preprocessingFilePath", '*.png', '*.exe')
|
|
||||||
$msg = "Pre-req: Code Formatting"
|
|
||||||
Invoke-Preprocessing -WorkingDir "$workingdir" -ExcludedFiles $excludedFiles -ProgressStatusMessage $msg -ThrowExceptionOnEmptyFilesList
|
|
||||||
}
|
|
||||||
|
|
||||||
# Create the script in memory.
|
|
||||||
Update-Progress "Pre-req: Allocating Memory" 0
|
|
||||||
$script_content = [System.Collections.Generic.List[string]]::new()
|
|
||||||
|
|
||||||
Update-Progress "Adding: Header" 5
|
|
||||||
$script_content.Add($header)
|
|
||||||
|
|
||||||
Update-Progress "Adding: Version" 10
|
|
||||||
$script_content.Add($(Get-Content "scripts\start.ps1").replace('#{replaceme}',"$(Get-Date -Format yy.MM.dd)"))
|
|
||||||
|
|
||||||
Update-Progress "Adding: Functions" 20
|
|
||||||
Get-ChildItem "functions" -Recurse -File | ForEach-Object {
|
|
||||||
$script_content.Add($(Get-Content $psitem.FullName))
|
|
||||||
}
|
|
||||||
Update-Progress "Adding: Config *.json" 40
|
|
||||||
Get-ChildItem "config" | Where-Object {$psitem.extension -eq ".json"} | ForEach-Object {
|
|
||||||
$json = (Get-Content $psitem.FullName -Raw)
|
|
||||||
$jsonAsObject = $json | ConvertFrom-Json
|
|
||||||
|
|
||||||
# Add 'WPFInstall' as a prefix to every entry-name in 'applications.json' file
|
|
||||||
if ($psitem.Name -eq "applications.json") {
|
|
||||||
foreach ($appEntryName in $jsonAsObject.PSObject.Properties.Name) {
|
|
||||||
$appEntryContent = $jsonAsObject.$appEntryName
|
|
||||||
$jsonAsObject.PSObject.Properties.Remove($appEntryName)
|
|
||||||
$jsonAsObject | Add-Member -MemberType NoteProperty -Name "WPFInstall$appEntryName" -Value $appEntryContent
|
|
||||||
}
|
}
|
||||||
|
$obj = [pscustomobject]$fixed
|
||||||
}
|
}
|
||||||
|
|
||||||
# Line 90 requires no whitespace inside the here-strings, to keep formatting of the JSON in the final script.
|
$json = $obj | ConvertTo-Json -Depth 10
|
||||||
$json = @"
|
|
||||||
$($jsonAsObject | ConvertTo-Json -Depth 3)
|
|
||||||
"@
|
|
||||||
|
|
||||||
$sync.configs.$($psitem.BaseName) = $json | ConvertFrom-Json
|
$sync.configs[$_.BaseName] = $obj
|
||||||
$script_content.Add($(Write-Output "`$sync.configs.$($psitem.BaseName) = @'`r`n$json`r`n'@ `| ConvertFrom-Json" ))
|
$script += "`$sync.configs.$($_.BaseName) = @'`r`n$json`r`n'@ | ConvertFrom-Json"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Read the entire XAML file as a single string, preserving line breaks
|
$xaml = Get-Content -Path xaml\inputXML.xaml -Raw
|
||||||
$xaml = Get-Content "$workingdir\xaml\inputXML.xaml" -Raw
|
$script += "`$inputXML = @'`r`n$xaml`r`n'@"
|
||||||
|
|
||||||
Update-Progress "Adding: Xaml " 90
|
$autounattendXml = Get-Content -Path tools\autounattend.xml -Raw
|
||||||
|
$script += "`$WinUtilAutounattendXml = @'`r`n$autounattendXml`r`n'@"
|
||||||
|
|
||||||
# Add the XAML content to $script_content using a here-string
|
$script += Get-Content -Path scripts\main.ps1 -Raw
|
||||||
$script_content.Add(@"
|
|
||||||
`$inputXML = @'
|
|
||||||
$xaml
|
|
||||||
'@
|
|
||||||
"@)
|
|
||||||
|
|
||||||
$script_content.Add($(Get-Content "scripts\main.ps1"))
|
Set-Content -Path winutil.ps1 -Value $script
|
||||||
|
|
||||||
if ($Debug) {
|
if ($Run) {
|
||||||
Update-Progress "Writing debug files" 95
|
.\Winutil.ps1
|
||||||
$appXamlContent | Out-File -FilePath "xaml\inputApp.xaml" -Encoding ascii
|
|
||||||
$tweaksXamlContent | Out-File -FilePath "xaml\inputTweaks.xaml" -Encoding ascii
|
|
||||||
$featuresXamlContent | Out-File -FilePath "xaml\inputFeatures.xaml" -Encoding ascii
|
|
||||||
} else {
|
|
||||||
Update-Progress "Removing temporary files" 99
|
|
||||||
Remove-Item "xaml\inputApp.xaml" -ErrorAction SilentlyContinue
|
|
||||||
Remove-Item "xaml\inputTweaks.xaml" -ErrorAction SilentlyContinue
|
|
||||||
Remove-Item "xaml\inputFeatures.xaml" -ErrorAction SilentlyContinue
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Set-Content -Path "$scriptname" -Value ($script_content -join "`r`n") -Encoding ascii
|
|
||||||
Write-Progress -Activity "Compiling" -Completed
|
|
||||||
|
|
||||||
Update-Progress -Activity "Validating" -StatusMessage "Checking winutil.ps1 Syntax" -Percent 0
|
|
||||||
try {
|
|
||||||
Get-Command -Syntax .\winutil.ps1 | Out-Null
|
|
||||||
} catch {
|
|
||||||
Write-Warning "Syntax Validation for 'winutil.ps1' has failed"
|
|
||||||
Write-Host "$($Error[0])" -ForegroundColor Red
|
|
||||||
Pop-Location # Restore previous location before exiting...
|
|
||||||
exit 1
|
|
||||||
}
|
|
||||||
Write-Progress -Activity "Validating" -Completed
|
|
||||||
|
|
||||||
if ($run) {
|
|
||||||
$script = "& '$workingdir\$scriptname' $Arguments"
|
|
||||||
|
|
||||||
$powershellcmd = if (Get-Command pwsh -ErrorAction SilentlyContinue) { "pwsh" } else { "powershell" }
|
|
||||||
$processCmd = if (Get-Command wt.exe -ErrorAction SilentlyContinue) { "wt.exe" } else { $powershellcmd }
|
|
||||||
|
|
||||||
Start-Process $processCmd -ArgumentList "$powershellcmd -NoProfile -Command $script"
|
|
||||||
|
|
||||||
break
|
|
||||||
}
|
|
||||||
Pop-Location
|
|
||||||
|
|||||||
@@ -1,64 +1,88 @@
|
|||||||
# Chris Titus Tech's Windows Utility
|
# Chris Titus Tech's Windows Utility
|
||||||
|
|
||||||
[](https://github.com/ChrisTitusTech/winutil/releases/latest)
|
[](https://github.com/ChrisTitusTech/winutil/releases/latest)
|
||||||

|

|
||||||
[](https://discord.gg/RUbZUZyByQ)
|
[](https://discord.gg/RUbZUZyByQ)
|
||||||
|
|
||||||
This utility is a compilation of Windows tasks I perform on each Windows system I use. It is meant to streamline *installs*, debloat with *tweaks*, troubleshoot with *config*, and fix Windows *updates*. I am extremely picky about any contributions to keep this project clean and efficient.
|
A curated compilation of Windows system tasks streamline **installs**, debloat with **tweaks**, troubleshoot with **config**, and configure **Windows updates**. Run it fresh on every new Windows install.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## 💡 Usage
|
---
|
||||||
|
|
||||||
Winutil must be run in Admin mode because it performs system-wide tweaks. To achieve this, run PowerShell as an administrator. Here are a few ways to do it:
|
## Quick Start
|
||||||
|
|
||||||
1. **Start menu Method:**
|
> **WinUtil must be run as Administrator** Because it performs system-wide changes.
|
||||||
- Right-click on the start menu.
|
|
||||||
- Choose "Windows PowerShell (Admin)" (for Windows 10) or "Terminal (Admin)" (for Windows 11).
|
|
||||||
|
|
||||||
2. **Search and Launch Method:**
|
Open PowerShell or Terminal as admin, then run:
|
||||||
- Press the Windows key.
|
|
||||||
- Type "PowerShell" or "Terminal" (for Windows 11).
|
|
||||||
- Press `Ctrl + Shift + Enter` or Right-click and choose "Run as administrator" to launch it with administrator privileges.
|
|
||||||
|
|
||||||
### Launch Command
|
|
||||||
|
|
||||||
#### Stable Branch (Recommended)
|
|
||||||
|
|
||||||
|
**Stable Branch (recommended)**
|
||||||
```ps1
|
```ps1
|
||||||
irm "https://christitus.com/win" | iex
|
irm https://christitus.com/win | iex
|
||||||
```
|
|
||||||
#### Dev Branch
|
|
||||||
|
|
||||||
```ps1
|
|
||||||
irm "https://christitus.com/windev" | iex
|
|
||||||
```
|
```
|
||||||
|
|
||||||
If you have Issues, refer to [Known Issues](https://christitustech.github.io/winutil/KnownIssues/)
|
**Development Branch**
|
||||||
|
```ps1
|
||||||
|
irm https://christitus.com/windev | iex
|
||||||
|
```
|
||||||
|
|
||||||
## 🎓 Documentation
|
### How to open an admin terminal
|
||||||
|
|
||||||
### [WinUtil Official Documentation](https://christitustech.github.io/winutil/)
|
- **Start menu:** Right-click Start → *Windows PowerShell (Admin)* or *Terminal (Admin)*
|
||||||
|
- **Search:** Press the `Windows key`, and type `PowerShell` or `Terminal`, then `Ctrl + Shift + Enter`
|
||||||
|
|
||||||
### [YouTube Tutorial](https://www.youtube.com/watch?v=6UQZ5oQg8XA)
|
---
|
||||||
|
|
||||||
### [ChrisTitus.com Article](https://christitus.com/windows-tool/)
|
## Automation / Presets
|
||||||
|
|
||||||
## 💖 Support
|
Apply a predefined configuration without manual selection:
|
||||||
- To morally and mentally support the project, make sure to leave a ⭐️!
|
|
||||||
|
```powershell
|
||||||
|
& ([ScriptBlock]::Create((irm https://christitus.com/win))) -Preset Standard
|
||||||
|
```
|
||||||
|
|
||||||
|
| Preset | Description |
|
||||||
|
|--------|-------------|
|
||||||
|
| `Standard` | Balanced defaults for most users |
|
||||||
|
| `Minimal` | Minimal changes to suit every user |
|
||||||
|
| `Advanced` | Deep tweaks for power users |
|
||||||
|
|
||||||
|
To view exactly what each preset does, see:
|
||||||
|
https://github.com/ChrisTitusTech/winutil/blob/main/config/preset.json
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Build & Develop
|
||||||
|
|
||||||
|
See https://github.com/ChrisTitusTech/winutil/blob/main/.github/CONTRIBUTING.md
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Resources
|
||||||
|
|
||||||
|
- [Official Documentation](https://winutil.christitus.com/)
|
||||||
|
- [YouTube Tutorial](https://www.youtube.com/watch?v=6UQZ5oQg8XA)
|
||||||
|
- [ChrisTitus.com Article](https://christitus.com/windows-tool/)
|
||||||
|
- [Known Issues](https://winutil.christitus.com/knownissues/)
|
||||||
|
- [Report an Issue](https://github.com/ChrisTitusTech/winutil/issues)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Support
|
||||||
|
|
||||||
|
- Leave a ⭐ to show support!
|
||||||
- EXE Wrapper for $10 @ https://www.cttstore.com/windows-toolbox
|
- EXE Wrapper for $10 @ https://www.cttstore.com/windows-toolbox
|
||||||
|
|
||||||
## 💖 Sponsors
|
## Sponsors
|
||||||
|
|
||||||
These are the sponsors that help keep this project alive with monthly contributions.
|
These are the sponsors that help keep this project alive with monthly contributions.
|
||||||
|
|
||||||
<!-- sponsors --><a href="https://github.com/TriHydera"><img src="https://github.com/TriHydera.png" width="60px" alt="User avatar: TriHydera" /></a><a href="https://github.com/jozozovko"><img src="https://github.com/jozozovko.png" width="60px" alt="User avatar: " /></a><a href="https://github.com/DelDongo"><img src="https://github.com/DelDongo.png" width="60px" alt="User avatar: " /></a><a href="https://github.com/markamos"><img src="https://github.com/markamos.png" width="60px" alt="User avatar: Mark Amos" /></a><a href="https://github.com/dwelfusius"><img src="https://github.com/dwelfusius.png" width="60px" alt="User avatar: " /></a><a href="https://github.com/mews-se"><img src="https://github.com/mews-se.png" width="60px" alt="User avatar: Martin Stockzell" /></a><a href="https://github.com/jdiegmueller"><img src="https://github.com/jdiegmueller.png" width="60px" alt="User avatar: Jason A. Diegmueller" /></a><a href="https://github.com/altugtekiner"><img src="https://github.com/altugtekiner.png" width="60px" alt="User avatar: " /></a><a href="https://github.com/robertsandrock"><img src="https://github.com/robertsandrock.png" width="60px" alt="User avatar: RMS" /></a><a href="https://github.com/KenichiQaz"><img src="https://github.com/KenichiQaz.png" width="60px" alt="User avatar: Stefan" /></a><a href="https://github.com/paulsheets"><img src="https://github.com/paulsheets.png" width="60px" alt="User avatar: Paul" /></a><a href="https://github.com/djones369"><img src="https://github.com/djones369.png" width="60px" alt="User avatar: Dave Jones" /></a><a href="https://github.com/anthonymendez"><img src="https://github.com/anthonymendez.png" width="60px" alt="User avatar: Anthony Mendez" /></a><a href="https://github.com/claudemods"><img src="https://github.com/claudemods.png" width="60px" alt="User avatar: Claudemods" /></a><a href="https://github.com/FatBastard0"><img src="https://github.com/FatBastard0.png" width="60px" alt="User avatar: " /></a><a href="https://github.com/Ascent7910"><img src="https://github.com/Ascent7910.png" width="60px" alt="User avatar: Max" /></a><a href="https://github.com/DursleyGuy"><img src="https://github.com/DursleyGuy.png" width="60px" alt="User avatar: DursleyGuy" /></a><a href="https://github.com/realmuddy"><img src="https://github.com/realmuddy.png" width="60px" alt="User avatar: Phillip Waters" /></a><a href="https://github.com/quaszi"><img src="https://github.com/quaszi.png" width="60px" alt="User avatar: " /></a><a href="https://github.com/DwayneTheRockLobster1"><img src="https://github.com/DwayneTheRockLobster1.png" width="60px" alt="User avatar: " /></a><a href="https://github.com/KieraKujisawa"><img src="https://github.com/KieraKujisawa.png" width="60px" alt="User avatar: Kiera Meredith" /></a><!-- sponsors -->
|
<!-- sponsors --><a href="https://github.com/dwelfusius"><img src="https://github.com/dwelfusius.png" width="60px" alt="User avatar: " /></a><a href="https://github.com/mews-se"><img src="https://github.com/mews-se.png" width="60px" alt="User avatar: Martin Stockzell" /></a><a href="https://github.com/jdiegmueller"><img src="https://github.com/jdiegmueller.png" width="60px" alt="User avatar: Jason A. Diegmueller" /></a><a href="https://github.com/robertsandrock"><img src="https://github.com/robertsandrock.png" width="60px" alt="User avatar: RMS" /></a><a href="https://github.com/paulsheets"><img src="https://github.com/paulsheets.png" width="60px" alt="User avatar: Paul" /></a><a href="https://github.com/djones369"><img src="https://github.com/djones369.png" width="60px" alt="User avatar: Dave J (WhamGeek)" /></a><a href="https://github.com/anthonymendez"><img src="https://github.com/anthonymendez.png" width="60px" alt="User avatar: Anthony Mendez" /></a><a href="https://github.com/FatBastard0"><img src="https://github.com/FatBastard0.png" width="60px" alt="User avatar: " /></a><a href="https://github.com/DursleyGuy"><img src="https://github.com/DursleyGuy.png" width="60px" alt="User avatar: DursleyGuy" /></a><a href="https://github.com/DwayneTheRockLobster1"><img src="https://github.com/DwayneTheRockLobster1.png" width="60px" alt="User avatar: " /></a><a href="https://github.com/KieraKujisawa"><img src="https://github.com/KieraKujisawa.png" width="60px" alt="User avatar: Kiera Meredith" /></a><a href="https://github.com/andrewpayne68"><img src="https://github.com/andrewpayne68.png" width="60px" alt="User avatar: Andrew P" /></a><!-- sponsors -->
|
||||||
|
|
||||||
## 🏅 Thanks to all Contributors
|
---
|
||||||
Thanks a lot for spending your time helping Winutil grow. Thanks a lot! Keep rocking 🍻.
|
|
||||||
|
## Contributors
|
||||||
|
|
||||||
[](https://github.com/ChrisTitusTech/winutil/graphs/contributors)
|
[](https://github.com/ChrisTitusTech/winutil/graphs/contributors)
|
||||||
|
|
||||||
## 📊 GitHub Stats
|
Thanks to everyone who has contributed time and effort to this project. Keep rocking 🍻
|
||||||
|
|
||||||

|
|
||||||
|
|||||||
@@ -1,16 +0,0 @@
|
|||||||
# Import the function (adjust the path according to your setup)
|
|
||||||
. "./functions/private/Install-WinUtilWinget.ps1"
|
|
||||||
. "./functions/private/Test-WinUtilPackageManager.ps1"
|
|
||||||
|
|
||||||
# Set up Information stream to be visible
|
|
||||||
$InformationPreference = "Continue"
|
|
||||||
|
|
||||||
Write-Host "Starting Winget installation test..." -ForegroundColor Cyan
|
|
||||||
|
|
||||||
try {
|
|
||||||
Install-WinUtilWinget
|
|
||||||
} catch {
|
|
||||||
Write-Host "Error occurred during testing: $($_.Exception.Message)" -ForegroundColor Red
|
|
||||||
Write-Host "Stack Trace:" -ForegroundColor Red
|
|
||||||
$_.ScriptStackTrace
|
|
||||||
}
|
|
||||||
@@ -1,40 +1,33 @@
|
|||||||
{
|
{
|
||||||
"WPFToggleView": {
|
"WPFInstall": {
|
||||||
"Content": ["Expanded View", "Compact View"],
|
"Content": "Install/Upgrade Applications",
|
||||||
"Category": "____Actions",
|
"Category": "____Actions",
|
||||||
"Type": "ToggleButton",
|
"Type": "Button",
|
||||||
"Order": "1",
|
"Order": "1",
|
||||||
"Description": "Toggle between a list and a compact grid like view"
|
"Description": "Install or upgrade the selected applications"
|
||||||
},
|
},
|
||||||
"WPFSelectedFilter": {
|
"WPFUninstall": {
|
||||||
"Content": [ "Show All", "Show Selected"],
|
"Content": "Uninstall Applications",
|
||||||
"Category": "____Actions",
|
"Category": "____Actions",
|
||||||
"Type": "ToggleButton",
|
"Type": "Button",
|
||||||
"Order": "2",
|
"Order": "2",
|
||||||
"Description": "Toggle between showing all or only the selected applications"
|
"Description": "Uninstall the selected applications"
|
||||||
},
|
},
|
||||||
"WPFClearInstallSelection": {
|
"WPFInstallUpgrade": {
|
||||||
"Content": "Clear Selection",
|
"Content": "Upgrade all Applications",
|
||||||
"Category": "____Actions",
|
"Category": "____Actions",
|
||||||
"Type": "Button",
|
"Type": "Button",
|
||||||
"Order": "3",
|
"Order": "3",
|
||||||
"Description": "Clear the selection of applications"
|
"Description": "Upgrade all applications to the latest version"
|
||||||
},
|
|
||||||
"WPFGetInstalled": {
|
|
||||||
"Content": "Get Installed",
|
|
||||||
"Category": "____Actions",
|
|
||||||
"Type": "Button",
|
|
||||||
"Order": "4",
|
|
||||||
"Description": "Show installed applications"
|
|
||||||
},
|
},
|
||||||
"WingetRadioButton": {
|
"WingetRadioButton": {
|
||||||
"Content": "Winget",
|
"Content": "WinGet",
|
||||||
"Category": "__Package Manager",
|
"Category": "__Package Manager",
|
||||||
"Type": "RadioButton",
|
"Type": "RadioButton",
|
||||||
"GroupName": "PackageManagerGroup",
|
"GroupName": "PackageManagerGroup",
|
||||||
"Checked": true,
|
"Checked": true,
|
||||||
"Order": "1",
|
"Order": "1",
|
||||||
"Description": "Use Winget for package management"
|
"Description": "Use WinGet for package management"
|
||||||
},
|
},
|
||||||
"ChocoRadioButton": {
|
"ChocoRadioButton": {
|
||||||
"Content": "Chocolatey",
|
"Content": "Chocolatey",
|
||||||
@@ -44,5 +37,48 @@
|
|||||||
"Checked": false,
|
"Checked": false,
|
||||||
"Order": "2",
|
"Order": "2",
|
||||||
"Description": "Use Chocolatey for package management"
|
"Description": "Use Chocolatey for package management"
|
||||||
|
},
|
||||||
|
"WPFCollapseAllCategories": {
|
||||||
|
"Content": "Collapse All Categories",
|
||||||
|
"Category": "__Selection",
|
||||||
|
"Type": "Button",
|
||||||
|
"Order": "1",
|
||||||
|
"Description": "Collapse all application categories"
|
||||||
|
},
|
||||||
|
"WPFExpandAllCategories": {
|
||||||
|
"Content": "Expand All Categories",
|
||||||
|
"Category": "__Selection",
|
||||||
|
"Type": "Button",
|
||||||
|
"Order": "2",
|
||||||
|
"Description": "Expand all application categories"
|
||||||
|
},
|
||||||
|
"WPFClearInstallSelection": {
|
||||||
|
"Content": "Clear Selection",
|
||||||
|
"Category": "__Selection",
|
||||||
|
"Type": "Button",
|
||||||
|
"Order": "3",
|
||||||
|
"Description": "Clear the selection of applications"
|
||||||
|
},
|
||||||
|
"WPFGetInstalled": {
|
||||||
|
"Content": "Show Installed Apps",
|
||||||
|
"Category": "__Selection",
|
||||||
|
"Type": "Button",
|
||||||
|
"Order": "4",
|
||||||
|
"Description": "Show installed applications"
|
||||||
|
},
|
||||||
|
"WPFselectedAppsButton": {
|
||||||
|
"Content": "Selected Apps: 0",
|
||||||
|
"Category": "__Selection",
|
||||||
|
"Type": "Button",
|
||||||
|
"Order": "5",
|
||||||
|
"Description": "Show the selected applications"
|
||||||
|
},
|
||||||
|
"WPFToggleFOSSHighlight": {
|
||||||
|
"Content": "Highlight FOSS",
|
||||||
|
"Category": "__Selection",
|
||||||
|
"Type": "Toggle",
|
||||||
|
"Checked": true,
|
||||||
|
"Order": "6",
|
||||||
|
"Description": "Toggle the green highlight for FOSS applications"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,442 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<unattend xmlns="urn:schemas-microsoft-com:unattend" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State">
|
|
||||||
<!--https://schneegans.de/windows/unattend-generator/?LanguageMode=Unattended&UILanguage=en-US&Locale=en-US&Keyboard=00000409&GeoLocation=244&ProcessorArchitecture=amd64&BypassRequirementsCheck=true&BypassNetworkCheck=true&ComputerNameMode=Random&TimeZoneMode=Implicit&PartitionMode=Interactive&WindowsEditionMode=Unattended&WindowsEdition=pro&UserAccountMode=Unattended&AccountName0=User&AccountPassword0=&AccountGroup0=Administrators&AccountName1=&AccountName2=&AccountName3=&AccountName4=&AutoLogonMode=Own&PasswordExpirationMode=Unlimited&LockoutMode=Default&HideFiles=Hidden&DisableWidgets=true&ClassicContextMenu=true&DisableFastStartup=true&EnableLongPaths=true&DisableAppSuggestions=true&PreventDeviceEncryption=true&WifiMode=Skip&ExpressSettings=DisableAll&Remove3DViewer=true&RemoveBingSearch=true&RemoveCamera=true&RemoveClipchamp=true&RemoveClock=true&RemoveCopilot=true&RemoveCortana=true&RemoveDevHome=true&RemoveFamily=true&RemoveFeedbackHub=true&RemoveGetHelp=true&RemoveInternetExplorer=true&RemoveMailCalendar=true&RemoveMaps=true&RemoveMathInputPanel=true&RemoveZuneVideo=true&RemoveNews=true&RemoveNotepad=true&RemoveOffice365=true&RemoveOneDrive=true&RemoveOneNote=true&RemoveOpenSSHClient=true&RemoveOutlook=true&RemovePaint3D=true&RemovePeople=true&RemovePowerAutomate=true&RemoveQuickAssist=true&RemoveSkype=true&RemoveSolitaire=true&RemoveStepsRecorder=true&RemoveStickyNotes=true&RemoveTeams=true&RemoveGetStarted=true&RemoveToDo=true&RemoveVoiceRecorder=true&RemoveWeather=true&RemoveWindowsMediaPlayer=true&RemoveZuneMusic=true&RemoveWordPad=true&WdacMode=Skip-->
|
|
||||||
<settings pass="offlineServicing"></settings>
|
|
||||||
<settings pass="windowsPE">
|
|
||||||
<component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
|
|
||||||
<SetupUILanguage>
|
|
||||||
<UILanguage>en-US</UILanguage>
|
|
||||||
</SetupUILanguage>
|
|
||||||
<InputLocale>0409:00000409</InputLocale>
|
|
||||||
<SystemLocale>en-US</SystemLocale>
|
|
||||||
<UILanguage>en-US</UILanguage>
|
|
||||||
<UserLocale>en-US</UserLocale>
|
|
||||||
</component>
|
|
||||||
<component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
|
|
||||||
<UserData>
|
|
||||||
<ProductKey>
|
|
||||||
<Key>VK7JG-NPHTM-C97JM-9MPGT-3V66T</Key>
|
|
||||||
</ProductKey>
|
|
||||||
<AcceptEula>true</AcceptEula>
|
|
||||||
</UserData>
|
|
||||||
<RunSynchronous>
|
|
||||||
<RunSynchronousCommand wcm:action="add">
|
|
||||||
<Order>1</Order>
|
|
||||||
<Path>reg.exe add "HKLM\SYSTEM\Setup\LabConfig" /v BypassTPMCheck /t REG_DWORD /d 1 /f</Path>
|
|
||||||
</RunSynchronousCommand>
|
|
||||||
<RunSynchronousCommand wcm:action="add">
|
|
||||||
<Order>2</Order>
|
|
||||||
<Path>reg.exe add "HKLM\SYSTEM\Setup\LabConfig" /v BypassSecureBootCheck /t REG_DWORD /d 1 /f</Path>
|
|
||||||
</RunSynchronousCommand>
|
|
||||||
<RunSynchronousCommand wcm:action="add">
|
|
||||||
<Order>3</Order>
|
|
||||||
<Path>reg.exe add "HKLM\SYSTEM\Setup\LabConfig" /v BypassRAMCheck /t REG_DWORD /d 1 /f</Path>
|
|
||||||
</RunSynchronousCommand>
|
|
||||||
</RunSynchronous>
|
|
||||||
</component>
|
|
||||||
</settings>
|
|
||||||
<settings pass="generalize"></settings>
|
|
||||||
<settings pass="specialize">
|
|
||||||
<component name="Microsoft-Windows-Deployment" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
|
|
||||||
<RunSynchronous>
|
|
||||||
<RunSynchronousCommand wcm:action="add">
|
|
||||||
<Order>1</Order>
|
|
||||||
<Path>reg.exe add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\OOBE" /v BypassNRO /t REG_DWORD /d 1 /f</Path>
|
|
||||||
</RunSynchronousCommand>
|
|
||||||
<RunSynchronousCommand wcm:action="add">
|
|
||||||
<Order>2</Order>
|
|
||||||
<Path>reg.exe load "HKU\DefaultUser" "C:\Users\Default\NTUSER.DAT"</Path>
|
|
||||||
</RunSynchronousCommand>
|
|
||||||
<RunSynchronousCommand wcm:action="add">
|
|
||||||
<Order>3</Order>
|
|
||||||
<Path>reg.exe add "HKU\DefaultUser\Software\Microsoft\Windows\CurrentVersion\Runonce" /v "UninstallCopilot" /t REG_SZ /d "powershell.exe -NoProfile -Command \"Get-AppxPackage -Name 'Microsoft.Windows.Ai.Copilot.Provider' | Remove-AppxPackage;\"" /f</Path>
|
|
||||||
</RunSynchronousCommand>
|
|
||||||
<RunSynchronousCommand wcm:action="add">
|
|
||||||
<Order>4</Order>
|
|
||||||
<Path>reg.exe add "HKU\DefaultUser\Software\Policies\Microsoft\Windows\WindowsCopilot" /v TurnOffWindowsCopilot /t REG_DWORD /d 1 /f</Path>
|
|
||||||
</RunSynchronousCommand>
|
|
||||||
<RunSynchronousCommand wcm:action="add">
|
|
||||||
<Order>5</Order>
|
|
||||||
<Path>reg.exe unload "HKU\DefaultUser"</Path>
|
|
||||||
</RunSynchronousCommand>
|
|
||||||
<RunSynchronousCommand wcm:action="add">
|
|
||||||
<Order>6</Order>
|
|
||||||
<Path>reg.exe delete "HKLM\SOFTWARE\Microsoft\WindowsUpdate\Orchestrator\UScheduler_Oobe\DevHomeUpdate" /f</Path>
|
|
||||||
</RunSynchronousCommand>
|
|
||||||
<RunSynchronousCommand wcm:action="add">
|
|
||||||
<Order>7</Order>
|
|
||||||
<Path>reg.exe load "HKU\DefaultUser" "C:\Users\Default\NTUSER.DAT"</Path>
|
|
||||||
</RunSynchronousCommand>
|
|
||||||
<RunSynchronousCommand wcm:action="add">
|
|
||||||
<Order>8</Order>
|
|
||||||
<Path>reg.exe add "HKU\DefaultUser\Software\Microsoft\Notepad" /v ShowStoreBanner /t REG_DWORD /d 0 /f</Path>
|
|
||||||
</RunSynchronousCommand>
|
|
||||||
<RunSynchronousCommand wcm:action="add">
|
|
||||||
<Order>9</Order>
|
|
||||||
<Path>reg.exe unload "HKU\DefaultUser"</Path>
|
|
||||||
</RunSynchronousCommand>
|
|
||||||
<RunSynchronousCommand wcm:action="add">
|
|
||||||
<Order>10</Order>
|
|
||||||
<Path>cmd.exe /c "del "C:\Users\Default\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\OneDrive.lnk""</Path>
|
|
||||||
</RunSynchronousCommand>
|
|
||||||
<RunSynchronousCommand wcm:action="add">
|
|
||||||
<Order>11</Order>
|
|
||||||
<Path>cmd.exe /c "del "C:\Windows\System32\OneDriveSetup.exe""</Path>
|
|
||||||
</RunSynchronousCommand>
|
|
||||||
<RunSynchronousCommand wcm:action="add">
|
|
||||||
<Order>12</Order>
|
|
||||||
<Path>cmd.exe /c "del "C:\Windows\SysWOW64\OneDriveSetup.exe""</Path>
|
|
||||||
</RunSynchronousCommand>
|
|
||||||
<RunSynchronousCommand wcm:action="add">
|
|
||||||
<Order>13</Order>
|
|
||||||
<Path>reg.exe load "HKU\DefaultUser" "C:\Users\Default\NTUSER.DAT"</Path>
|
|
||||||
</RunSynchronousCommand>
|
|
||||||
<RunSynchronousCommand wcm:action="add">
|
|
||||||
<Order>14</Order>
|
|
||||||
<Path>reg.exe delete "HKU\DefaultUser\Software\Microsoft\Windows\CurrentVersion\Run" /v OneDriveSetup /f</Path>
|
|
||||||
</RunSynchronousCommand>
|
|
||||||
<RunSynchronousCommand wcm:action="add">
|
|
||||||
<Order>15</Order>
|
|
||||||
<Path>reg.exe unload "HKU\DefaultUser"</Path>
|
|
||||||
</RunSynchronousCommand>
|
|
||||||
<RunSynchronousCommand wcm:action="add">
|
|
||||||
<Order>16</Order>
|
|
||||||
<Path>reg.exe delete "HKLM\SOFTWARE\Microsoft\WindowsUpdate\Orchestrator\UScheduler_Oobe\OutlookUpdate" /f</Path>
|
|
||||||
</RunSynchronousCommand>
|
|
||||||
<RunSynchronousCommand wcm:action="add">
|
|
||||||
<Order>17</Order>
|
|
||||||
<Path>reg.exe add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Communications" /v ConfigureChatAutoInstall /t REG_DWORD /d 0 /f</Path>
|
|
||||||
</RunSynchronousCommand>
|
|
||||||
<RunSynchronousCommand wcm:action="add">
|
|
||||||
<Order>18</Order>
|
|
||||||
<Path>powershell.exe -NoProfile -Command "$xml = [xml]::new(); $xml.Load('C:\Windows\Panther\unattend.xml'); $sb = [scriptblock]::Create( $xml.unattend.Extensions.ExtractScript ); Invoke-Command -ScriptBlock $sb -ArgumentList $xml;"</Path>
|
|
||||||
</RunSynchronousCommand>
|
|
||||||
<RunSynchronousCommand wcm:action="add">
|
|
||||||
<Order>19</Order>
|
|
||||||
<Path>powershell.exe -NoProfile -Command "Get-Content -LiteralPath 'C:\Windows\Temp\Microwin-RemovePackages.ps1' -Raw | Invoke-Expression;"</Path>
|
|
||||||
</RunSynchronousCommand>
|
|
||||||
<RunSynchronousCommand wcm:action="add">
|
|
||||||
<Order>20</Order>
|
|
||||||
<Path>powershell.exe -NoProfile -Command "Get-Content -LiteralPath 'C:\Windows\Temp\remove-caps.ps1' -Raw | Invoke-Expression;"</Path>
|
|
||||||
</RunSynchronousCommand>
|
|
||||||
<RunSynchronousCommand wcm:action="add">
|
|
||||||
<Order>21</Order>
|
|
||||||
<Path>reg.exe add "HKLM\SOFTWARE\Microsoft\PolicyManager\current\device\Start" /v ConfigureStartPins /t REG_SZ /d "{ \"pinnedList\": [] }" /f</Path>
|
|
||||||
</RunSynchronousCommand>
|
|
||||||
<RunSynchronousCommand wcm:action="add">
|
|
||||||
<Order>22</Order>
|
|
||||||
<Path>reg.exe add "HKLM\SOFTWARE\Microsoft\PolicyManager\current\device\Start" /v ConfigureStartPins_ProviderSet /t REG_DWORD /d 1 /f</Path>
|
|
||||||
</RunSynchronousCommand>
|
|
||||||
<RunSynchronousCommand wcm:action="add">
|
|
||||||
<Order>23</Order>
|
|
||||||
<Path>reg.exe add "HKLM\SOFTWARE\Microsoft\PolicyManager\current\device\Start" /v ConfigureStartPins_WinningProvider /t REG_SZ /d B5292708-1619-419B-9923-E5D9F3925E71 /f</Path>
|
|
||||||
</RunSynchronousCommand>
|
|
||||||
<RunSynchronousCommand wcm:action="add">
|
|
||||||
<Order>24</Order>
|
|
||||||
<Path>reg.exe add "HKLM\SOFTWARE\Microsoft\PolicyManager\providers\B5292708-1619-419B-9923-E5D9F3925E71\default\Device\Start" /v ConfigureStartPins /t REG_SZ /d "{ \"pinnedList\": [] }" /f</Path>
|
|
||||||
</RunSynchronousCommand>
|
|
||||||
<RunSynchronousCommand wcm:action="add">
|
|
||||||
<Order>25</Order>
|
|
||||||
<Path>reg.exe add "HKLM\SOFTWARE\Microsoft\PolicyManager\providers\B5292708-1619-419B-9923-E5D9F3925E71\default\Device\Start" /v ConfigureStartPins_LastWrite /t REG_DWORD /d 1 /f</Path>
|
|
||||||
</RunSynchronousCommand>
|
|
||||||
<RunSynchronousCommand wcm:action="add">
|
|
||||||
<Order>26</Order>
|
|
||||||
<Path>net.exe accounts /maxpwage:UNLIMITED</Path>
|
|
||||||
</RunSynchronousCommand>
|
|
||||||
<RunSynchronousCommand wcm:action="add">
|
|
||||||
<Order>27</Order>
|
|
||||||
<Path>reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\FileSystem" /v LongPathsEnabled /t REG_DWORD /d 1 /f</Path>
|
|
||||||
</RunSynchronousCommand>
|
|
||||||
<RunSynchronousCommand wcm:action="add">
|
|
||||||
<Order>28</Order>
|
|
||||||
<Path>reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Power" /v HiberbootEnabled /t REG_DWORD /d 0 /f</Path>
|
|
||||||
</RunSynchronousCommand>
|
|
||||||
<RunSynchronousCommand wcm:action="add">
|
|
||||||
<Order>29</Order>
|
|
||||||
<Path>reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Dsh" /v AllowNewsAndInterests /t REG_DWORD /d 0 /f</Path>
|
|
||||||
</RunSynchronousCommand>
|
|
||||||
<RunSynchronousCommand wcm:action="add">
|
|
||||||
<Order>30</Order>
|
|
||||||
<Path>reg.exe load "HKU\DefaultUser" "C:\Users\Default\NTUSER.DAT"</Path>
|
|
||||||
</RunSynchronousCommand>
|
|
||||||
<RunSynchronousCommand wcm:action="add">
|
|
||||||
<Order>31</Order>
|
|
||||||
<Path>reg.exe add "HKU\DefaultUser\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "ContentDeliveryAllowed" /t REG_DWORD /d 0 /f</Path>
|
|
||||||
</RunSynchronousCommand>
|
|
||||||
<RunSynchronousCommand wcm:action="add">
|
|
||||||
<Order>32</Order>
|
|
||||||
<Path>reg.exe add "HKU\DefaultUser\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "FeatureManagementEnabled" /t REG_DWORD /d 0 /f</Path>
|
|
||||||
</RunSynchronousCommand>
|
|
||||||
<RunSynchronousCommand wcm:action="add">
|
|
||||||
<Order>33</Order>
|
|
||||||
<Path>reg.exe add "HKU\DefaultUser\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "OEMPreInstalledAppsEnabled" /t REG_DWORD /d 0 /f</Path>
|
|
||||||
</RunSynchronousCommand>
|
|
||||||
<RunSynchronousCommand wcm:action="add">
|
|
||||||
<Order>34</Order>
|
|
||||||
<Path>reg.exe add "HKU\DefaultUser\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "PreInstalledAppsEnabled" /t REG_DWORD /d 0 /f</Path>
|
|
||||||
</RunSynchronousCommand>
|
|
||||||
<RunSynchronousCommand wcm:action="add">
|
|
||||||
<Order>35</Order>
|
|
||||||
<Path>reg.exe add "HKU\DefaultUser\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "PreInstalledAppsEverEnabled" /t REG_DWORD /d 0 /f</Path>
|
|
||||||
</RunSynchronousCommand>
|
|
||||||
<RunSynchronousCommand wcm:action="add">
|
|
||||||
<Order>36</Order>
|
|
||||||
<Path>reg.exe add "HKU\DefaultUser\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SilentInstalledAppsEnabled" /t REG_DWORD /d 0 /f</Path>
|
|
||||||
</RunSynchronousCommand>
|
|
||||||
<RunSynchronousCommand wcm:action="add">
|
|
||||||
<Order>37</Order>
|
|
||||||
<Path>reg.exe add "HKU\DefaultUser\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SoftLandingEnabled" /t REG_DWORD /d 0 /f</Path>
|
|
||||||
</RunSynchronousCommand>
|
|
||||||
<RunSynchronousCommand wcm:action="add">
|
|
||||||
<Order>38</Order>
|
|
||||||
<Path>reg.exe add "HKU\DefaultUser\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContentEnabled" /t REG_DWORD /d 0 /f</Path>
|
|
||||||
</RunSynchronousCommand>
|
|
||||||
<RunSynchronousCommand wcm:action="add">
|
|
||||||
<Order>39</Order>
|
|
||||||
<Path>reg.exe add "HKU\DefaultUser\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-310093Enabled" /t REG_DWORD /d 0 /f</Path>
|
|
||||||
</RunSynchronousCommand>
|
|
||||||
<RunSynchronousCommand wcm:action="add">
|
|
||||||
<Order>40</Order>
|
|
||||||
<Path>reg.exe add "HKU\DefaultUser\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-338387Enabled" /t REG_DWORD /d 0 /f</Path>
|
|
||||||
</RunSynchronousCommand>
|
|
||||||
<RunSynchronousCommand wcm:action="add">
|
|
||||||
<Order>41</Order>
|
|
||||||
<Path>reg.exe add "HKU\DefaultUser\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-338388Enabled" /t REG_DWORD /d 0 /f</Path>
|
|
||||||
</RunSynchronousCommand>
|
|
||||||
<RunSynchronousCommand wcm:action="add">
|
|
||||||
<Order>42</Order>
|
|
||||||
<Path>reg.exe add "HKU\DefaultUser\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-338389Enabled" /t REG_DWORD /d 0 /f</Path>
|
|
||||||
</RunSynchronousCommand>
|
|
||||||
<RunSynchronousCommand wcm:action="add">
|
|
||||||
<Order>43</Order>
|
|
||||||
<Path>reg.exe add "HKU\DefaultUser\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-338393Enabled" /t REG_DWORD /d 0 /f</Path>
|
|
||||||
</RunSynchronousCommand>
|
|
||||||
<RunSynchronousCommand wcm:action="add">
|
|
||||||
<Order>44</Order>
|
|
||||||
<Path>reg.exe add "HKU\DefaultUser\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SubscribedContent-353698Enabled" /t REG_DWORD /d 0 /f</Path>
|
|
||||||
</RunSynchronousCommand>
|
|
||||||
<RunSynchronousCommand wcm:action="add">
|
|
||||||
<Order>45</Order>
|
|
||||||
<Path>reg.exe add "HKU\DefaultUser\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SystemPaneSuggestionsEnabled" /t REG_DWORD /d 0 /f</Path>
|
|
||||||
</RunSynchronousCommand>
|
|
||||||
<RunSynchronousCommand wcm:action="add">
|
|
||||||
<Order>46</Order>
|
|
||||||
<Path>reg.exe unload "HKU\DefaultUser"</Path>
|
|
||||||
</RunSynchronousCommand>
|
|
||||||
<RunSynchronousCommand wcm:action="add">
|
|
||||||
<Order>47</Order>
|
|
||||||
<Path>reg.exe add "HKLM\Software\Policies\Microsoft\Windows\CloudContent" /v "DisableWindowsConsumerFeatures" /t REG_DWORD /d 0 /f</Path>
|
|
||||||
</RunSynchronousCommand>
|
|
||||||
<RunSynchronousCommand wcm:action="add">
|
|
||||||
<Order>48</Order>
|
|
||||||
<Path>reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\BitLocker" /v "PreventDeviceEncryption" /t REG_DWORD /d 1 /f</Path>
|
|
||||||
</RunSynchronousCommand>
|
|
||||||
<RunSynchronousCommand wcm:action="add">
|
|
||||||
<Order>49</Order>
|
|
||||||
<Path>reg.exe load "HKU\DefaultUser" "C:\Users\Default\NTUSER.DAT"</Path>
|
|
||||||
</RunSynchronousCommand>
|
|
||||||
<RunSynchronousCommand wcm:action="add">
|
|
||||||
<Order>50</Order>
|
|
||||||
<Path>reg.exe add "HKU\DefaultUser\Software\Microsoft\Windows\CurrentVersion\Runonce" /v "ClassicContextMenu" /t REG_SZ /d "reg.exe add \"HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32\" /ve /f" /f</Path>
|
|
||||||
</RunSynchronousCommand>
|
|
||||||
<RunSynchronousCommand wcm:action="add">
|
|
||||||
<Order>51</Order>
|
|
||||||
<Path>reg.exe unload "HKU\DefaultUser"</Path>
|
|
||||||
</RunSynchronousCommand>
|
|
||||||
</RunSynchronous>
|
|
||||||
</component>
|
|
||||||
</settings>
|
|
||||||
<settings pass="auditSystem"></settings>
|
|
||||||
<settings pass="auditUser"></settings>
|
|
||||||
<settings pass="oobeSystem">
|
|
||||||
<component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
|
|
||||||
<InputLocale>0409:00000409</InputLocale>
|
|
||||||
<SystemLocale>en-US</SystemLocale>
|
|
||||||
<UILanguage>en-US</UILanguage>
|
|
||||||
<UserLocale>en-US</UserLocale>
|
|
||||||
</component>
|
|
||||||
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
|
|
||||||
<UserAccounts>
|
|
||||||
<LocalAccounts>
|
|
||||||
<LocalAccount wcm:action="add">
|
|
||||||
<Name>User</Name>
|
|
||||||
<Group>Administrators</Group>
|
|
||||||
<Password>
|
|
||||||
<Value></Value>
|
|
||||||
<PlainText>true</PlainText>
|
|
||||||
</Password>
|
|
||||||
</LocalAccount>
|
|
||||||
</LocalAccounts>
|
|
||||||
</UserAccounts>
|
|
||||||
<AutoLogon>
|
|
||||||
<Username>User</Username>
|
|
||||||
<Enabled>true</Enabled>
|
|
||||||
<LogonCount>1</LogonCount>
|
|
||||||
<Password>
|
|
||||||
<Value></Value>
|
|
||||||
<PlainText>true</PlainText>
|
|
||||||
</Password>
|
|
||||||
</AutoLogon>
|
|
||||||
<OOBE>
|
|
||||||
<ProtectYourPC>3</ProtectYourPC>
|
|
||||||
<HideEULAPage>true</HideEULAPage>
|
|
||||||
<HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
|
|
||||||
</OOBE>
|
|
||||||
<FirstLogonCommands>
|
|
||||||
<SynchronousCommand wcm:action="add">
|
|
||||||
<Order>1</Order>
|
|
||||||
<CommandLine>reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v AutoLogonCount /t REG_DWORD /d 0 /f</CommandLine>
|
|
||||||
</SynchronousCommand>
|
|
||||||
</FirstLogonCommands>
|
|
||||||
</component>
|
|
||||||
</settings>
|
|
||||||
<Extensions xmlns="https://schneegans.de/windows/unattend-generator/">
|
|
||||||
<ExtractScript>
|
|
||||||
param(
|
|
||||||
[xml]$Document
|
|
||||||
);
|
|
||||||
|
|
||||||
$scriptsDir = 'C:\Windows\Setup\Scripts\';
|
|
||||||
foreach( $file in $Document.unattend.Extensions.File ) {
|
|
||||||
$path = [System.Environment]::ExpandEnvironmentVariables(
|
|
||||||
$file.GetAttribute( 'path' )
|
|
||||||
);
|
|
||||||
if( $path.StartsWith( $scriptsDir ) ) {
|
|
||||||
mkdir -Path $scriptsDir -ErrorAction 'SilentlyContinue';
|
|
||||||
}
|
|
||||||
$encoding = switch( [System.IO.Path]::GetExtension( $path ) ) {
|
|
||||||
{ $_ -in '.ps1', '.xml' } { [System.Text.Encoding]::UTF8; }
|
|
||||||
{ $_ -in '.reg', '.vbs', '.js' } { [System.Text.UnicodeEncoding]::new( $false, $true ); }
|
|
||||||
default { [System.Text.Encoding]::Default; }
|
|
||||||
};
|
|
||||||
[System.IO.File]::WriteAllBytes( $path, ( $encoding.GetPreamble() + $encoding.GetBytes( $file.InnerText.Trim() ) ) );
|
|
||||||
}
|
|
||||||
</ExtractScript>
|
|
||||||
<File path="C:\Windows\Temp\Microwin-RemovePackages.ps1">
|
|
||||||
$selectors = @(
|
|
||||||
'Microsoft.Microsoft3DViewer';
|
|
||||||
'Microsoft.BingSearch';
|
|
||||||
'Microsoft.WindowsCamera';
|
|
||||||
'Clipchamp.Clipchamp';
|
|
||||||
'Microsoft.WindowsAlarms';
|
|
||||||
'Microsoft.549981C3F5F10';
|
|
||||||
'Microsoft.Windows.DevHome';
|
|
||||||
'MicrosoftCorporationII.MicrosoftFamily';
|
|
||||||
'Microsoft.WindowsFeedbackHub';
|
|
||||||
'Microsoft.GetHelp';
|
|
||||||
'Microsoft.Getstarted';
|
|
||||||
'microsoft.windowscommunicationsapps';
|
|
||||||
'Microsoft.WindowsMaps';
|
|
||||||
'Microsoft.BingNews';
|
|
||||||
'Microsoft.WindowsNotepad';
|
|
||||||
'Microsoft.MicrosoftOfficeHub';
|
|
||||||
'Microsoft.Office.OneNote';
|
|
||||||
'Microsoft.OutlookForWindows';
|
|
||||||
'Microsoft.MSPaint';
|
|
||||||
'Microsoft.People';
|
|
||||||
'Microsoft.PowerAutomateDesktop';
|
|
||||||
'MicrosoftCorporationII.QuickAssist';
|
|
||||||
'Microsoft.SkypeApp';
|
|
||||||
'Microsoft.MicrosoftSolitaireCollection';
|
|
||||||
'Microsoft.MicrosoftStickyNotes';
|
|
||||||
'MSTeams';
|
|
||||||
'Microsoft.Todos';
|
|
||||||
'Microsoft.WindowsSoundRecorder';
|
|
||||||
'Microsoft.BingWeather';
|
|
||||||
'Microsoft.ZuneMusic';
|
|
||||||
'Microsoft.ZuneVideo';
|
|
||||||
);
|
|
||||||
$getCommand = { Get-AppxProvisionedPackage -Online; };
|
|
||||||
$filterCommand = { $_.DisplayName -eq $selector; };
|
|
||||||
$removeCommand = {
|
|
||||||
[CmdletBinding()]
|
|
||||||
param(
|
|
||||||
[Parameter( Mandatory, ValueFromPipeline )]
|
|
||||||
$InputObject
|
|
||||||
);
|
|
||||||
process {
|
|
||||||
$InputObject | Remove-AppxProvisionedPackage -AllUsers -Online -ErrorAction 'Continue';
|
|
||||||
}
|
|
||||||
};
|
|
||||||
$type = 'Package';
|
|
||||||
$logfile = 'C:\Windows\Temp\Microwin-RemovePackages.log';
|
|
||||||
& {
|
|
||||||
$installed = & $getCommand;
|
|
||||||
foreach( $selector in $selectors ) {
|
|
||||||
$result = [ordered] @{
|
|
||||||
Selector = $selector;
|
|
||||||
};
|
|
||||||
$found = $installed | Where-Object -FilterScript $filterCommand;
|
|
||||||
if( $found ) {
|
|
||||||
$result.Output = $found | & $removeCommand;
|
|
||||||
if( $? ) {
|
|
||||||
$result.Message = "$type removed.";
|
|
||||||
} else {
|
|
||||||
$result.Message = "$type not removed.";
|
|
||||||
$result.Error = $Error[0];
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
$result.Message = "$type not installed.";
|
|
||||||
}
|
|
||||||
$result | ConvertTo-Json -Depth 3 -Compress;
|
|
||||||
}
|
|
||||||
} *>&1 >> $logfile;
|
|
||||||
</File>
|
|
||||||
<File path="C:\Windows\Temp\remove-caps.ps1">
|
|
||||||
$selectors = @(
|
|
||||||
'Browser.InternetExplorer';
|
|
||||||
'MathRecognizer';
|
|
||||||
'OpenSSH.Client';
|
|
||||||
'App.Support.QuickAssist';
|
|
||||||
'App.StepsRecorder';
|
|
||||||
'Media.WindowsMediaPlayer';
|
|
||||||
'Microsoft.Windows.WordPad';
|
|
||||||
);
|
|
||||||
$getCommand = { Get-WindowsCapability -Online; };
|
|
||||||
$filterCommand = { ($_.Name -split '~')[0] -eq $selector; };
|
|
||||||
$removeCommand = {
|
|
||||||
[CmdletBinding()]
|
|
||||||
param(
|
|
||||||
[Parameter( Mandatory, ValueFromPipeline )]
|
|
||||||
$InputObject
|
|
||||||
);
|
|
||||||
process {
|
|
||||||
$InputObject | Remove-WindowsCapability -Online -ErrorAction 'Continue';
|
|
||||||
}
|
|
||||||
};
|
|
||||||
$type = 'Capability';
|
|
||||||
$logfile = 'C:\Windows\Temp\remove-caps.log';
|
|
||||||
& {
|
|
||||||
$installed = & $getCommand;
|
|
||||||
foreach( $selector in $selectors ) {
|
|
||||||
$result = [ordered] @{
|
|
||||||
Selector = $selector;
|
|
||||||
};
|
|
||||||
$found = $installed | Where-Object -FilterScript $filterCommand;
|
|
||||||
if( $found ) {
|
|
||||||
$result.Output = $found | & $removeCommand;
|
|
||||||
if( $? ) {
|
|
||||||
$result.Message = "$type removed.";
|
|
||||||
} else {
|
|
||||||
$result.Message = "$type not removed.";
|
|
||||||
$result.Error = $Error[0];
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
$result.Message = "$type not installed.";
|
|
||||||
}
|
|
||||||
$result | ConvertTo-Json -Depth 3 -Compress;
|
|
||||||
}
|
|
||||||
} *>&1 >> $logfile;
|
|
||||||
</File>
|
|
||||||
<File path="C:\Users\Default\AppData\Local\Microsoft\Windows\Shell\LayoutModification.xml"><![CDATA[
|
|
||||||
<LayoutModificationTemplate Version="1" xmlns="http://schemas.microsoft.com/Start/2014/LayoutModification">
|
|
||||||
<LayoutOptions StartTileGroupCellWidth="6" />
|
|
||||||
<DefaultLayoutOverride>
|
|
||||||
<StartLayoutCollection>
|
|
||||||
<StartLayout GroupCellWidth="6" xmlns="http://schemas.microsoft.com/Start/2014/FullDefaultLayout" />
|
|
||||||
</StartLayoutCollection>
|
|
||||||
</DefaultLayoutOverride>
|
|
||||||
</LayoutModificationTemplate>
|
|
||||||
]]></File>
|
|
||||||
</Extensions>
|
|
||||||
</unattend>
|
|
||||||
@@ -46,23 +46,5 @@
|
|||||||
"Secondary": "94.140.15.16",
|
"Secondary": "94.140.15.16",
|
||||||
"Primary6": "2a10:50c0::bad1:ff",
|
"Primary6": "2a10:50c0::bad1:ff",
|
||||||
"Secondary6": "2a10:50c0::bad2:ff"
|
"Secondary6": "2a10:50c0::bad2:ff"
|
||||||
},
|
|
||||||
"dns0.eu_Open":{
|
|
||||||
"Primary": "193.110.81.254",
|
|
||||||
"Secondary": "185.253.5.254",
|
|
||||||
"Primary6": "2a0f:fc80::ffff",
|
|
||||||
"Secondary6": "2a0f:fc81::ffff"
|
|
||||||
},
|
|
||||||
"dns0.eu_ZERO":{
|
|
||||||
"Primary": "193.110.81.9",
|
|
||||||
"Secondary": "185.253.5.9",
|
|
||||||
"Primary6": "2a0f:fc80::9",
|
|
||||||
"Secondary6": "2a0f:fc81::9"
|
|
||||||
},
|
|
||||||
"dns0.eu_KIDS":{
|
|
||||||
"Primary": "193.110.81.1",
|
|
||||||
"Secondary": "185.253.5.1",
|
|
||||||
"Primary6": "2a0f:fc80::1",
|
|
||||||
"Secondary6": "2a0f:fc81::1"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,44 +1,41 @@
|
|||||||
{
|
{
|
||||||
"WPFFeaturesdotnet": {
|
"WPFFeaturesdotnet": {
|
||||||
"Content": "All .Net Framework (2,3,4)",
|
"Content": ".NET Framework (Versions 2, 3, 4) - Enable",
|
||||||
"Description": ".NET and .NET Framework is a developer platform made up of tools, programming languages, and libraries for building many different types of applications.",
|
"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",
|
"category": "Features",
|
||||||
"panel": "1",
|
"panel": "1",
|
||||||
"Order": "a010_",
|
|
||||||
"feature": [
|
"feature": [
|
||||||
"NetFx4-AdvSrvs",
|
"NetFx4-AdvSrvs",
|
||||||
"NetFx3"
|
"NetFx3"
|
||||||
],
|
],
|
||||||
"InvokeScript": [],
|
"InvokeScript": [],
|
||||||
"link": "https://christitustech.github.io/winutil/dev/features/Features/dotnet"
|
"link": "https://winutil.christitus.com/dev/features/features/dotnet"
|
||||||
|
},
|
||||||
|
"WPFFixesNTPPool": {
|
||||||
|
"Content": "NTP Server - Enable",
|
||||||
|
"Description": "Replaces the default Windows NTP server (time.windows.com) with pool.ntp.org for improved time synchronization accuracy and reliability.",
|
||||||
|
"category": "Fixes",
|
||||||
|
"panel": "1",
|
||||||
|
"Type": "Button",
|
||||||
|
"ButtonWidth": "300",
|
||||||
|
"function": "Invoke-WPFFixesNTPPool",
|
||||||
|
"link": "https://winutil.christitus.com/dev/features/fixes/ntppool"
|
||||||
},
|
},
|
||||||
"WPFFeatureshyperv": {
|
"WPFFeatureshyperv": {
|
||||||
"Content": "HyperV Virtualization",
|
"Content": "Hyper-V - Enable",
|
||||||
"Description": "Hyper-V is a hardware virtualization product developed by Microsoft that allows users to create and manage virtual machines.",
|
"Description": "Hyper-V is a hardware virtualization product developed by Microsoft that allows users to create and manage virtual machines.",
|
||||||
"category": "Features",
|
"category": "Features",
|
||||||
"panel": "1",
|
"panel": "1",
|
||||||
"Order": "a011_",
|
|
||||||
"feature": [
|
"feature": [
|
||||||
"HypervisorPlatform",
|
"Microsoft-Hyper-V-All"
|
||||||
"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": [
|
"link": "https://winutil.christitus.com/dev/features/features/hyperv"
|
||||||
"Start-Process -FilePath cmd.exe -ArgumentList '/c bcdedit /set hypervisorschedulertype classic' -Wait"
|
|
||||||
],
|
|
||||||
"link": "https://christitustech.github.io/winutil/dev/features/Features/hyperv"
|
|
||||||
},
|
},
|
||||||
"WPFFeatureslegacymedia": {
|
"WPFFeatureslegacymedia": {
|
||||||
"Content": "Legacy Media (WMP, DirectPlay)",
|
"Content": "Legacy Media Components (WMP, DirectPlay) - Enable",
|
||||||
"Description": "Enables legacy programs from previous versions of windows",
|
"Description": "Enables legacy programs from previous versions of Windows.",
|
||||||
"category": "Features",
|
"category": "Features",
|
||||||
"panel": "1",
|
"panel": "1",
|
||||||
"Order": "a012_",
|
|
||||||
"feature": [
|
"feature": [
|
||||||
"WindowsMediaPlayer",
|
"WindowsMediaPlayer",
|
||||||
"MediaPlayback",
|
"MediaPlayback",
|
||||||
@@ -46,27 +43,25 @@
|
|||||||
"LegacyComponents"
|
"LegacyComponents"
|
||||||
],
|
],
|
||||||
"InvokeScript": [],
|
"InvokeScript": [],
|
||||||
"link": "https://christitustech.github.io/winutil/dev/features/Features/legacymedia"
|
"link": "https://winutil.christitus.com/dev/features/features/legacymedia"
|
||||||
},
|
},
|
||||||
"WPFFeaturewsl": {
|
"WPFFeaturewsl": {
|
||||||
"Content": "Windows Subsystem for Linux",
|
"Content": "Windows Subsystem for Linux (WSL) - Enable",
|
||||||
"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.",
|
"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",
|
"category": "Features",
|
||||||
"panel": "1",
|
"panel": "1",
|
||||||
"Order": "a020_",
|
|
||||||
"feature": [
|
"feature": [
|
||||||
"VirtualMachinePlatform",
|
"VirtualMachinePlatform",
|
||||||
"Microsoft-Windows-Subsystem-Linux"
|
"Microsoft-Windows-Subsystem-Linux"
|
||||||
],
|
],
|
||||||
"InvokeScript": [],
|
"InvokeScript": [],
|
||||||
"link": "https://christitustech.github.io/winutil/dev/features/Features/wsl"
|
"link": "https://winutil.christitus.com/dev/features/features/wsl"
|
||||||
},
|
},
|
||||||
"WPFFeaturenfs": {
|
"WPFFeaturenfs": {
|
||||||
"Content": "NFS - Network File System",
|
"Content": "Network File System (NFS) - Enable",
|
||||||
"Description": "Network File System (NFS) is a mechanism for storing files on a network.",
|
"Description": "Network File System (NFS) is a mechanism for storing files on a network.",
|
||||||
"category": "Features",
|
"category": "Features",
|
||||||
"panel": "1",
|
"panel": "1",
|
||||||
"Order": "a014_",
|
|
||||||
"feature": [
|
"feature": [
|
||||||
"ServicesForNFS-ClientOnly",
|
"ServicesForNFS-ClientOnly",
|
||||||
"ClientForNFS-Infrastructure",
|
"ClientForNFS-Infrastructure",
|
||||||
@@ -79,50 +74,13 @@
|
|||||||
"nfsadmin client start",
|
"nfsadmin client start",
|
||||||
"nfsadmin client localhost config fileaccess=755 SecFlavors=+sys -krb5 -krb5i"
|
"nfsadmin client localhost config fileaccess=755 SecFlavors=+sys -krb5 -krb5i"
|
||||||
],
|
],
|
||||||
"link": "https://christitustech.github.io/winutil/dev/features/Features/nfs"
|
"link": "https://winutil.christitus.com/dev/features/features/nfs"
|
||||||
},
|
|
||||||
"WPFFeatureEnableSearchSuggestions": {
|
|
||||||
"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"
|
|
||||||
},
|
|
||||||
"WPFFeatureDisableSearchSuggestions": {
|
|
||||||
"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"
|
|
||||||
},
|
},
|
||||||
"WPFFeatureRegBackup": {
|
"WPFFeatureRegBackup": {
|
||||||
"Content": "Enable Daily Registry Backup Task 12.30am",
|
"Content": "Registry Backup (Daily Task 12:30am) - Enable",
|
||||||
"Description": "Enables daily registry backup, previously disabled by Microsoft in Windows 10 1803.",
|
"Description": "Enables daily registry backup, previously disabled by Microsoft in Windows 10 1803.",
|
||||||
"category": "Features",
|
"category": "Features",
|
||||||
"panel": "1",
|
"panel": "1",
|
||||||
"Order": "a017_",
|
|
||||||
"feature": [],
|
"feature": [],
|
||||||
"InvokeScript": [
|
"InvokeScript": [
|
||||||
"
|
"
|
||||||
@@ -133,201 +91,229 @@
|
|||||||
Register-ScheduledTask -Action $action -Trigger $trigger -TaskName 'AutoRegBackup' -Description 'Create System Registry Backups' -User 'System'
|
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"
|
"link": "https://winutil.christitus.com/dev/features/features/regbackup"
|
||||||
},
|
},
|
||||||
"WPFFeatureEnableLegacyRecovery": {
|
"WPFFeatureEnableLegacyRecovery": {
|
||||||
"Content": "Enable Legacy F8 Boot Recovery",
|
"Content": "Legacy F8 Boot Recovery - Enable",
|
||||||
"Description": "Enables Advanced Boot Options screen that lets you start Windows in advanced troubleshooting modes.",
|
"Description": "Enables Advanced Boot Options screen that lets you start Windows in advanced troubleshooting modes.",
|
||||||
"category": "Features",
|
"category": "Features",
|
||||||
"panel": "1",
|
"panel": "1",
|
||||||
"Order": "a018_",
|
|
||||||
"feature": [],
|
"feature": [],
|
||||||
"InvokeScript": [
|
"InvokeScript": [
|
||||||
"
|
"bcdedit /set bootmenupolicy legacy"
|
||||||
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"
|
"link": "https://winutil.christitus.com/dev/features/features/enablelegacyrecovery"
|
||||||
},
|
},
|
||||||
"WPFFeatureDisableLegacyRecovery": {
|
"WPFFeatureDisableLegacyRecovery": {
|
||||||
"Content": "Disable Legacy F8 Boot Recovery",
|
"Content": "Legacy F8 Boot Recovery - Disable",
|
||||||
"Description": "Disables Advanced Boot Options screen that lets you start Windows in advanced troubleshooting modes.",
|
"Description": "Disables Advanced Boot Options screen that lets you start Windows in advanced troubleshooting modes.",
|
||||||
"category": "Features",
|
"category": "Features",
|
||||||
"panel": "1",
|
"panel": "1",
|
||||||
"Order": "a019_",
|
|
||||||
"feature": [],
|
"feature": [],
|
||||||
"InvokeScript": [
|
"InvokeScript": [
|
||||||
"
|
"bcdedit /set bootmenupolicy standard"
|
||||||
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"
|
"link": "https://winutil.christitus.com/dev/features/features/disablelegacyrecovery"
|
||||||
},
|
},
|
||||||
"WPFFeaturesSandbox": {
|
"WPFFeaturesSandbox": {
|
||||||
"Content": "Windows Sandbox",
|
"Content": "Windows Sandbox - Enable",
|
||||||
|
"Description": "Windows Sandbox is a lightweight virtual machine that provides a temporary desktop environment to safely run applications and programs in isolation.",
|
||||||
"category": "Features",
|
"category": "Features",
|
||||||
"panel": "1",
|
"panel": "1",
|
||||||
"Order": "a021_",
|
"feature": [
|
||||||
"Description": "Windows Sandbox is a lightweight virtual machine that provides a temporary desktop environment to safely run applications and programs in isolation.",
|
"Containers-DisposableClientVM"
|
||||||
"link": "https://christitustech.github.io/winutil/dev/features/Features/Sandbox"
|
],
|
||||||
|
"link": "https://winutil.christitus.com/dev/features/features/sandbox"
|
||||||
},
|
},
|
||||||
"WPFFeatureInstall": {
|
"WPFFeatureInstall": {
|
||||||
"Content": "Install Features",
|
"Content": "Install Features",
|
||||||
"category": "Features",
|
"category": "Features",
|
||||||
"panel": "1",
|
"panel": "1",
|
||||||
"Order": "a060_",
|
|
||||||
"Type": "Button",
|
"Type": "Button",
|
||||||
"ButtonWidth": "300",
|
"ButtonWidth": "300",
|
||||||
"link": "https://christitustech.github.io/winutil/dev/features/Features/Install"
|
"function": "Invoke-WPFFeatureInstall",
|
||||||
|
"link": "https://winutil.christitus.com/dev/features/features/install"
|
||||||
},
|
},
|
||||||
"WPFPanelAutologin": {
|
"WPFPanelAutologin": {
|
||||||
"Content": "Set Up Autologin",
|
"Content": "AutoLogon - Run",
|
||||||
"category": "Fixes",
|
"category": "Fixes",
|
||||||
"Order": "a040_",
|
|
||||||
"panel": "1",
|
"panel": "1",
|
||||||
"Type": "Button",
|
"Type": "Button",
|
||||||
"ButtonWidth": "300",
|
"ButtonWidth": "300",
|
||||||
"link": "https://christitustech.github.io/winutil/dev/features/Fixes/Autologin"
|
"function": "Invoke-WPFPanelAutologin",
|
||||||
|
"link": "https://winutil.christitus.com/dev/features/fixes/autologin"
|
||||||
},
|
},
|
||||||
"WPFFixesUpdate": {
|
"WPFFixesUpdate": {
|
||||||
"Content": "Reset Windows Update",
|
"Content": "Windows Update - Reset",
|
||||||
"category": "Fixes",
|
"category": "Fixes",
|
||||||
"panel": "1",
|
"panel": "1",
|
||||||
"Order": "a041_",
|
|
||||||
"Type": "Button",
|
"Type": "Button",
|
||||||
"ButtonWidth": "300",
|
"ButtonWidth": "300",
|
||||||
"link": "https://christitustech.github.io/winutil/dev/features/Fixes/Update"
|
"function": "Invoke-WPFFixesUpdate",
|
||||||
|
"link": "https://winutil.christitus.com/dev/features/fixes/update"
|
||||||
},
|
},
|
||||||
"WPFFixesNetwork": {
|
"WPFFixesNetwork": {
|
||||||
"Content": "Reset Network",
|
"Content": "Network - Reset",
|
||||||
"category": "Fixes",
|
"category": "Fixes",
|
||||||
"Order": "a042_",
|
|
||||||
"panel": "1",
|
"panel": "1",
|
||||||
"Type": "Button",
|
"Type": "Button",
|
||||||
"ButtonWidth": "300",
|
"ButtonWidth": "300",
|
||||||
"link": "https://christitustech.github.io/winutil/dev/features/Fixes/Network"
|
"function": "Invoke-WPFFixesNetwork",
|
||||||
|
"link": "https://winutil.christitus.com/dev/features/fixes/network"
|
||||||
},
|
},
|
||||||
"WPFPanelDISM": {
|
"WPFPanelDISM": {
|
||||||
"Content": "System Corruption Scan",
|
"Content": "System Corruption Scan - Run",
|
||||||
"category": "Fixes",
|
"category": "Fixes",
|
||||||
"panel": "1",
|
"panel": "1",
|
||||||
"Order": "a043_",
|
|
||||||
"Type": "Button",
|
"Type": "Button",
|
||||||
"ButtonWidth": "300",
|
"ButtonWidth": "300",
|
||||||
"link": "https://christitustech.github.io/winutil/dev/features/Fixes/DISM"
|
"function": "Invoke-WPFSystemRepair",
|
||||||
|
"link": "https://winutil.christitus.com/dev/features/fixes/dism"
|
||||||
},
|
},
|
||||||
"WPFFixesWinget": {
|
"WPFFixesWinget": {
|
||||||
"Content": "WinGet Reinstall",
|
"Content": "WinGet - Reinstall",
|
||||||
"category": "Fixes",
|
"category": "Fixes",
|
||||||
"panel": "1",
|
"panel": "1",
|
||||||
"Order": "a044_",
|
|
||||||
"Type": "Button",
|
"Type": "Button",
|
||||||
"ButtonWidth": "300",
|
"ButtonWidth": "300",
|
||||||
"link": "https://christitustech.github.io/winutil/dev/features/Fixes/Winget"
|
"function": "Invoke-WPFFixesWinget",
|
||||||
|
"link": "https://winutil.christitus.com/dev/features/fixes/winget"
|
||||||
},
|
},
|
||||||
"WPFRunAdobeCCCleanerTool": {
|
"WPFPanelControl": {
|
||||||
"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"
|
|
||||||
},
|
|
||||||
"WPFPanelnetwork": {
|
|
||||||
"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"
|
|
||||||
},
|
|
||||||
"WPFPanelcontrol": {
|
|
||||||
"Content": "Control Panel",
|
"Content": "Control Panel",
|
||||||
"category": "Legacy Windows Panels",
|
"category": "Legacy Windows Panels",
|
||||||
"panel": "2",
|
"panel": "2",
|
||||||
"Type": "Button",
|
"Type": "Button",
|
||||||
"ButtonWidth": "300",
|
"ButtonWidth": "300",
|
||||||
"link": "https://christitustech.github.io/winutil/dev/features/Legacy-Windows-Panels/control"
|
"InvokeScript": [
|
||||||
|
"control"
|
||||||
|
],
|
||||||
|
"link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/control"
|
||||||
},
|
},
|
||||||
"WPFPanelpower": {
|
"WPFPanelComputer": {
|
||||||
|
"Content": "Computer Management",
|
||||||
|
"category": "Legacy Windows Panels",
|
||||||
|
"panel": "2",
|
||||||
|
"Type": "Button",
|
||||||
|
"ButtonWidth": "300",
|
||||||
|
"InvokeScript": [
|
||||||
|
"compmgmt.msc"
|
||||||
|
],
|
||||||
|
"link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/computer"
|
||||||
|
},
|
||||||
|
"WPFPanelNetwork": {
|
||||||
|
"Content": "Network Connections",
|
||||||
|
"category": "Legacy Windows Panels",
|
||||||
|
"panel": "2",
|
||||||
|
"Type": "Button",
|
||||||
|
"ButtonWidth": "300",
|
||||||
|
"InvokeScript": [
|
||||||
|
"ncpa.cpl"
|
||||||
|
],
|
||||||
|
"link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/network"
|
||||||
|
},
|
||||||
|
"WPFPanelPower": {
|
||||||
"Content": "Power Panel",
|
"Content": "Power Panel",
|
||||||
"category": "Legacy Windows Panels",
|
"category": "Legacy Windows Panels",
|
||||||
"panel": "2",
|
"panel": "2",
|
||||||
"Type": "Button",
|
"Type": "Button",
|
||||||
"ButtonWidth": "300",
|
"ButtonWidth": "300",
|
||||||
"link": "https://christitustech.github.io/winutil/dev/features/Legacy-Windows-Panels/power"
|
"InvokeScript": [
|
||||||
|
"powercfg.cpl"
|
||||||
|
],
|
||||||
|
"link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/power"
|
||||||
},
|
},
|
||||||
"WPFPanelregion": {
|
"WPFPanelPrinter": {
|
||||||
"Content": "Region",
|
|
||||||
"category": "Legacy Windows Panels",
|
|
||||||
"panel": "2",
|
|
||||||
"Type": "Button",
|
|
||||||
"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",
|
|
||||||
"link": "https://christitustech.github.io/winutil/dev/features/Legacy-Windows-Panels/sound"
|
|
||||||
},
|
|
||||||
"WPFPanelprinter": {
|
|
||||||
"Content": "Printer Panel",
|
"Content": "Printer Panel",
|
||||||
"category": "Legacy Windows Panels",
|
"category": "Legacy Windows Panels",
|
||||||
"panel": "2",
|
"panel": "2",
|
||||||
"Type": "Button",
|
"Type": "Button",
|
||||||
"ButtonWidth": "300",
|
"ButtonWidth": "300",
|
||||||
"link": "https://christitustech.github.io/winutil/dev/features/Legacy-Windows-Panels/printer"
|
"InvokeScript": [
|
||||||
|
"Start-Process 'shell:::{A8A91A66-3A7D-4424-8D24-04E180695C7A}'"
|
||||||
|
],
|
||||||
|
"link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/printer"
|
||||||
},
|
},
|
||||||
"WPFPanelsystem": {
|
"WPFPanelRegion": {
|
||||||
|
"Content": "Region",
|
||||||
|
"category": "Legacy Windows Panels",
|
||||||
|
"panel": "2",
|
||||||
|
"Type": "Button",
|
||||||
|
"ButtonWidth": "300",
|
||||||
|
"InvokeScript": [
|
||||||
|
"intl.cpl"
|
||||||
|
],
|
||||||
|
"link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/region"
|
||||||
|
},
|
||||||
|
"WPFPanelRestore": {
|
||||||
|
"Content": "Windows Restore",
|
||||||
|
"category": "Legacy Windows Panels",
|
||||||
|
"panel": "2",
|
||||||
|
"Type": "Button",
|
||||||
|
"ButtonWidth": "300",
|
||||||
|
"InvokeScript": [
|
||||||
|
"rstrui.exe"
|
||||||
|
],
|
||||||
|
"link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/restore"
|
||||||
|
},
|
||||||
|
"WPFPanelSound": {
|
||||||
|
"Content": "Sound Settings",
|
||||||
|
"category": "Legacy Windows Panels",
|
||||||
|
"panel": "2",
|
||||||
|
"Type": "Button",
|
||||||
|
"ButtonWidth": "300",
|
||||||
|
"InvokeScript": [
|
||||||
|
"mmsys.cpl"
|
||||||
|
],
|
||||||
|
"link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/sound"
|
||||||
|
},
|
||||||
|
"WPFPanelSystem": {
|
||||||
"Content": "System Properties",
|
"Content": "System Properties",
|
||||||
"category": "Legacy Windows Panels",
|
"category": "Legacy Windows Panels",
|
||||||
"panel": "2",
|
"panel": "2",
|
||||||
"Type": "Button",
|
"Type": "Button",
|
||||||
"ButtonWidth": "300",
|
"ButtonWidth": "300",
|
||||||
"link": "https://christitustech.github.io/winutil/dev/features/Legacy-Windows-Panels/system"
|
"InvokeScript": [
|
||||||
|
"sysdm.cpl"
|
||||||
|
],
|
||||||
|
"link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/system"
|
||||||
},
|
},
|
||||||
"WPFPaneluser": {
|
"WPFPanelTimedate": {
|
||||||
"Content": "User Accounts",
|
"Content": "Time and Date",
|
||||||
"category": "Legacy Windows Panels",
|
"category": "Legacy Windows Panels",
|
||||||
"panel": "2",
|
"panel": "2",
|
||||||
"Type": "Button",
|
"Type": "Button",
|
||||||
"ButtonWidth": "300",
|
"ButtonWidth": "300",
|
||||||
"link": "https://christitustech.github.io/winutil/dev/features/Legacy-Windows-Panels/user"
|
"InvokeScript": [
|
||||||
|
"timedate.cpl"
|
||||||
|
],
|
||||||
|
"link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/timedate"
|
||||||
},
|
},
|
||||||
"WPFWinUtilInstallPSProfile": {
|
"WPFWinUtilInstallPSProfile": {
|
||||||
"Content": "Install CTT PowerShell Profile",
|
"Content": "CTT PowerShell Profile - Install",
|
||||||
"category": "Powershell Profile",
|
"category": "Powershell Profile Powershell 7+ Only",
|
||||||
"panel": "2",
|
"panel": "2",
|
||||||
"Order": "a083_",
|
|
||||||
"Type": "Button",
|
"Type": "Button",
|
||||||
"ButtonWidth": "300"
|
"ButtonWidth": "300",
|
||||||
|
"function": "Invoke-WinUtilInstallPSProfile",
|
||||||
|
"link": "https://winutil.christitus.com/dev/features/powershell-profile-powershell-7--only/installpsprofile"
|
||||||
},
|
},
|
||||||
"WPFWinUtilUninstallPSProfile": {
|
"WPFWinUtilUninstallPSProfile": {
|
||||||
"Content": "Uninstall CTT PowerShell Profile",
|
"Content": "CTT PowerShell Profile - Remove",
|
||||||
"category": "Powershell Profile",
|
"category": "Powershell Profile Powershell 7+ Only",
|
||||||
"panel": "2",
|
"panel": "2",
|
||||||
"Order": "a084_",
|
|
||||||
"Type": "Button",
|
"Type": "Button",
|
||||||
"ButtonWidth": "300"
|
"ButtonWidth": "300",
|
||||||
|
"function": "Invoke-WinUtilUninstallPSProfile",
|
||||||
|
"link": "https://winutil.christitus.com/dev/features/powershell-profile-powershell-7--only/uninstallpsprofile"
|
||||||
},
|
},
|
||||||
"WPFWinUtilSSHServer": {
|
"WPFWinUtilSSHServer": {
|
||||||
"Content": "Enable OpenSSH Server",
|
"Content": "OpenSSH Server - Enable",
|
||||||
"category": "Remote Access",
|
"category": "Remote Access",
|
||||||
"panel": "2",
|
"panel": "2",
|
||||||
"Order": "a084_",
|
|
||||||
"Type": "Button",
|
"Type": "Button",
|
||||||
"ButtonWidth": "300"
|
"ButtonWidth": "300",
|
||||||
|
"function": "Invoke-WPFSSHServer",
|
||||||
|
"link": "https://winutil.christitus.com/dev/features/remote-access/sshserver"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,25 +1,43 @@
|
|||||||
{
|
{
|
||||||
"Standard": [
|
"Standard": [
|
||||||
"WPFTweaksAH",
|
"WPFTweaksActivity",
|
||||||
"WPFTweaksConsumerFeatures",
|
"WPFTweaksConsumerFeatures",
|
||||||
"WPFTweaksDVR",
|
"WPFTweaksDisableExplorerAutoDiscovery",
|
||||||
"WPFTweaksHiber",
|
"WPFTweaksWPBT",
|
||||||
"WPFTweaksHome",
|
"WPFTweaksDeBloat",
|
||||||
"WPFTweaksLoc",
|
"WPFTweaksLocation",
|
||||||
"WPFTweaksServices",
|
"WPFTweaksServices",
|
||||||
"WPFTweaksStorage",
|
"WPFTweaksTelemetry",
|
||||||
"WPFTweaksTele",
|
"WPFTweaksDeliveryOptimization",
|
||||||
"WPFTweaksWifi",
|
|
||||||
"WPFTweaksDiskCleanup",
|
"WPFTweaksDiskCleanup",
|
||||||
"WPFTweaksDeleteTempFiles",
|
"WPFTweaksDeleteTempFiles",
|
||||||
"WPFTweaksEndTaskOnTaskbar",
|
"WPFTweaksEndTaskOnTaskbar",
|
||||||
"WPFTweaksRestorePoint",
|
"WPFTweaksRestorePoint"
|
||||||
"WPFTweaksPowershell7Tele"
|
|
||||||
],
|
],
|
||||||
"Minimal": [
|
"Minimal": [
|
||||||
"WPFTweaksConsumerFeatures",
|
"WPFTweaksConsumerFeatures",
|
||||||
"WPFTweaksHome",
|
"WPFTweaksDeBloat",
|
||||||
|
"WPFTweaksWPBT",
|
||||||
"WPFTweaksServices",
|
"WPFTweaksServices",
|
||||||
"WPFTweaksTele"
|
"WPFTweaksTelemetry"
|
||||||
|
],
|
||||||
|
"Advanced": [
|
||||||
|
"WPFTweaksActivity",
|
||||||
|
"WPFTweaksConsumerFeatures",
|
||||||
|
"WPFTweaksDisableExplorerAutoDiscovery",
|
||||||
|
"WPFTweaksWPBT",
|
||||||
|
"WPFTweaksDeBloat",
|
||||||
|
"WPFTweaksLocation",
|
||||||
|
"WPFTweaksServices",
|
||||||
|
"WPFTweaksTelemetry",
|
||||||
|
"WPFTweaksDeliveryOptimization",
|
||||||
|
"WPFTweaksDeleteTempFiles",
|
||||||
|
"WPFTweaksEndTaskOnTaskbar",
|
||||||
|
"WPFTweaksDisableStoreSearch",
|
||||||
|
"WPFTweaksRevertStartMenu",
|
||||||
|
"WPFTweaksWidget",
|
||||||
|
"WPFTweaksRemoveOneDrive",
|
||||||
|
"WPFTweaksWindowsAI",
|
||||||
|
"WPFTweaksRightClickMenu"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,115 +1,124 @@
|
|||||||
{
|
{
|
||||||
"shared":{
|
"shared": {
|
||||||
"CustomDialogFontSize": "12",
|
"AppEntryWidth": "200",
|
||||||
"CustomDialogFontSizeHeader": "14",
|
"AppEntryFontSize": "11",
|
||||||
"CustomDialogLogoSize": "25",
|
"AppEntryMargin": "1,0,1,0",
|
||||||
"CustomDialogWidth": "400",
|
"AppEntryBorderThickness": "0",
|
||||||
"CustomDialogHeight": "200",
|
"CustomDialogFontSize": "12",
|
||||||
"FontSize": "12",
|
"CustomDialogFontSizeHeader": "14",
|
||||||
"FontFamily": "Arial",
|
"CustomDialogLogoSize": "25",
|
||||||
"HeadingFontSize": "16",
|
"CustomDialogWidth": "400",
|
||||||
"HeaderFontFamily": "Consolas, Monaco",
|
"CustomDialogHeight": "200",
|
||||||
"CheckBoxBulletDecoratorSize": "14",
|
"FontSize": "12",
|
||||||
"CheckBoxMargin": "15,0,0,2",
|
"FontFamily": "Arial",
|
||||||
"TabContentMargin": "5",
|
"HeaderFontSize": "16",
|
||||||
"TabButtonFontSize": "14",
|
"HeaderFontFamily": "Consolas, Monaco",
|
||||||
"TabButtonWidth": "110",
|
"CheckBoxBulletDecoratorSize": "14",
|
||||||
"TabButtonHeight": "26",
|
"CheckBoxMargin": "15,0,0,2",
|
||||||
"TabRowHeightInPixels": "50",
|
"TabContentMargin": "5",
|
||||||
"IconFontSize": "14",
|
"TabButtonFontSize": "14",
|
||||||
"IconButtonSize": "35",
|
"TabButtonWidth": "110",
|
||||||
"SettingsIconFontSize": "18",
|
"TabButtonHeight": "26",
|
||||||
"CloseIconFontSize": "18",
|
"TabRowHeightInPixels": "50",
|
||||||
"MicroWinLogoSize": "10",
|
"ToolTipWidth": "300",
|
||||||
"MicrowinCheckBoxMargin": "-10,5,0,0",
|
"IconFontSize": "14",
|
||||||
"GroupBorderBackgroundColor": "#232629",
|
"IconButtonSize": "35",
|
||||||
"ButtonFontSize": "12",
|
"SettingsIconFontSize": "18",
|
||||||
"ButtonFontFamily": "Arial",
|
"CloseIconFontSize": "18",
|
||||||
"ButtonWidth": "200",
|
"GroupBorderBackgroundColor": "#232629",
|
||||||
"ButtonHeight": "25",
|
"ButtonFontSize": "12",
|
||||||
"ConfigUpdateButtonFontSize": "14",
|
"ButtonFontFamily": "Arial",
|
||||||
"SearchBarWidth": "200",
|
"ButtonWidth": "200",
|
||||||
"SearchBarHeight": "26",
|
"ButtonHeight": "25",
|
||||||
"SearchBarTextBoxFontSize": "12",
|
"ConfigTabButtonFontSize": "14",
|
||||||
"SearchBarClearButtonFontSize": "14",
|
"ConfigUpdateButtonFontSize": "14",
|
||||||
"CheckboxMouseOverColor": "#999999",
|
"SearchBarWidth": "200",
|
||||||
"ButtonBorderThickness": "1",
|
"SearchBarHeight": "26",
|
||||||
"ButtonMargin": "1",
|
"SearchBarTextBoxFontSize": "12",
|
||||||
"ButtonCornerRadius": "2"
|
"SearchBarClearButtonFontSize": "14",
|
||||||
},
|
"CheckboxMouseOverColor": "#999999",
|
||||||
"Light": {
|
"ButtonBorderThickness": "1",
|
||||||
"AppInstallUnselectedColor": "#F0F0F0",
|
"ButtonMargin": "1",
|
||||||
"AppInstallHighlightedColor": "#CFCFCF",
|
"ButtonCornerRadius": "2"
|
||||||
"AppInstallSelectedColor": "#C2C2C2",
|
},
|
||||||
"ComboBoxForegroundColor": "#232629",
|
"Light": {
|
||||||
"ComboBoxBackgroundColor": "#F7F7F7",
|
"AppInstallUnselectedColor": "#F7F7F7",
|
||||||
"LabelboxForegroundColor": "#232629",
|
"AppInstallHighlightedColor": "#CFCFCF",
|
||||||
"MainForegroundColor": "#232629",
|
"AppInstallSelectedColor": "#C2C2C2",
|
||||||
"MainBackgroundColor": "#F7F7F7",
|
"AppInstallOverlayBackgroundColor": "#6A6D72",
|
||||||
"LabelBackgroundColor": "#F7F7F7",
|
"ComboBoxForegroundColor": "#232629",
|
||||||
"LinkForegroundColor": "#484848",
|
"ComboBoxBackgroundColor": "#F7F7F7",
|
||||||
"LinkHoverForegroundColor": "#232629",
|
"LabelboxForegroundColor": "#232629",
|
||||||
"ScrollBarBackgroundColor": "#4A4D52",
|
"MainForegroundColor": "#232629",
|
||||||
"ScrollBarHoverColor": "#5A5D62",
|
"MainBackgroundColor": "#F7F7F7",
|
||||||
"ScrollBarDraggingColor": "#6A6D72",
|
"LabelBackgroundColor": "#F7F7F7",
|
||||||
|
"LinkForegroundColor": "#484848",
|
||||||
"ProgressBarForegroundColor": "#2e77ff",
|
"LinkHoverForegroundColor": "#232629",
|
||||||
"ProgressBarBackgroundColor": "Transparent",
|
"ScrollBarBackgroundColor": "#4A4D52",
|
||||||
"ProgressBarTextColor": "#232629",
|
"ScrollBarHoverColor": "#5A5D62",
|
||||||
"ButtonInstallBackgroundColor": "#F7F7F7",
|
"ScrollBarDraggingColor": "#6A6D72",
|
||||||
"ButtonTweaksBackgroundColor": "#F7F7F7",
|
"ProgressBarForegroundColor": "#2E77FF",
|
||||||
"ButtonConfigBackgroundColor": "#F7F7F7",
|
"ProgressBarBackgroundColor": "Transparent",
|
||||||
"ButtonUpdatesBackgroundColor": "#F7F7F7",
|
"ProgressBarTextColor": "#232629",
|
||||||
"ButtonInstallForegroundColor": "#232629",
|
"ButtonInstallBackgroundColor": "#F7F7F7",
|
||||||
"ButtonTweaksForegroundColor": "#232629",
|
"ButtonTweaksBackgroundColor": "#F7F7F7",
|
||||||
"ButtonConfigForegroundColor": "#232629",
|
"ButtonConfigBackgroundColor": "#F7F7F7",
|
||||||
"ButtonUpdatesForegroundColor": "#232629",
|
"ButtonUpdatesBackgroundColor": "#F7F7F7",
|
||||||
"ButtonBackgroundColor": "#F5F5F5",
|
"ButtonWin11ISOBackgroundColor": "#F7F7F7",
|
||||||
"ButtonBackgroundPressedColor": "#1A1A1A",
|
"ButtonInstallForegroundColor": "#232629",
|
||||||
"ButtonBackgroundMouseoverColor": "#C2C2C2",
|
"ButtonTweaksForegroundColor": "#232629",
|
||||||
"ButtonBackgroundSelectedColor": "#F0F0F0",
|
"ButtonConfigForegroundColor": "#232629",
|
||||||
"ButtonForegroundColor": "#232629",
|
"ButtonUpdatesForegroundColor": "#232629",
|
||||||
"ToggleButtonOnColor": "#2e77ff",
|
"ButtonWin11ISOForegroundColor": "#232629",
|
||||||
"ToggleButtonOffColor": "#707070",
|
"ButtonBackgroundColor": "#F5F5F5",
|
||||||
"BorderColor": "#232629",
|
"ButtonBackgroundPressedColor": "#1A1A1A",
|
||||||
"BorderOpacity": "0.2"
|
"ButtonBackgroundMouseoverColor": "#C2C2C2",
|
||||||
|
"ButtonBackgroundSelectedColor": "#F0F0F0",
|
||||||
},
|
"ButtonForegroundColor": "#232629",
|
||||||
"Dark": {
|
"ToggleButtonOnColor": "#2E77FF",
|
||||||
"AppInstallUnselectedColor": "#232629",
|
"ToggleButtonOffColor": "#707070",
|
||||||
"AppInstallHighlightedColor": "#3C3C3C",
|
"ToolTipBackgroundColor": "#F7F7F7",
|
||||||
"AppInstallSelectedColor": "#4C4C4C",
|
"BorderColor": "#232629",
|
||||||
"ComboBoxForegroundColor": "#F7F7F7",
|
"BorderOpacity": "0.2"
|
||||||
"ComboBoxBackgroundColor": "#1E3747",
|
},
|
||||||
"LabelboxForegroundColor": "#0567ff",
|
"Dark": {
|
||||||
"MainForegroundColor": "#F7F7F7",
|
"AppInstallUnselectedColor": "#232629",
|
||||||
"MainBackgroundColor": "#232629",
|
"AppInstallHighlightedColor": "#3C3C3C",
|
||||||
"LabelBackgroundColor": "#232629",
|
"AppInstallSelectedColor": "#4C4C4C",
|
||||||
"LinkForegroundColor": "#add8e6",
|
"AppInstallOverlayBackgroundColor": "#2E3135",
|
||||||
"LinkHoverForegroundColor": "#F7F7F7",
|
"ComboBoxForegroundColor": "#F7F7F7",
|
||||||
"ScrollBarBackgroundColor": "#2E3135",
|
"ComboBoxBackgroundColor": "#1E3747",
|
||||||
"ScrollBarHoverColor": "#3B4252",
|
"LabelboxForegroundColor": "#5BDCFF",
|
||||||
"ScrollBarDraggingColor": "#5E81AC",
|
"MainForegroundColor": "#F7F7F7",
|
||||||
|
"MainBackgroundColor": "#232629",
|
||||||
"ProgressBarForegroundColor": "#222222",
|
"LabelBackgroundColor": "#232629",
|
||||||
"ProgressBarBackgroundColor": "Transparent",
|
"LinkForegroundColor": "#ADD8E6",
|
||||||
"ProgressBarTextColor": "#cccccc",
|
"LinkHoverForegroundColor": "#F7F7F7",
|
||||||
"ButtonInstallBackgroundColor": "#222222",
|
"ScrollBarBackgroundColor": "#2E3135",
|
||||||
"ButtonTweaksBackgroundColor": "#333333",
|
"ScrollBarHoverColor": "#3B4252",
|
||||||
"ButtonConfigBackgroundColor": "#444444",
|
"ScrollBarDraggingColor": "#5E81AC",
|
||||||
"ButtonUpdatesBackgroundColor": "#555555",
|
"ProgressBarForegroundColor": "#222222",
|
||||||
"ButtonInstallForegroundColor": "#F7F7F7",
|
"ProgressBarBackgroundColor": "Transparent",
|
||||||
"ButtonTweaksForegroundColor": "#F7F7F7",
|
"ProgressBarTextColor": "#232629",
|
||||||
"ButtonConfigForegroundColor": "#F7F7F7",
|
"ButtonInstallBackgroundColor": "#222222",
|
||||||
"ButtonUpdatesForegroundColor": "#F7F7F7",
|
"ButtonTweaksBackgroundColor": "#333333",
|
||||||
"ButtonBackgroundColor": "#1E3747",
|
"ButtonConfigBackgroundColor": "#444444",
|
||||||
"ButtonBackgroundPressedColor": "#F7F7F7",
|
"ButtonUpdatesBackgroundColor": "#555555",
|
||||||
"ButtonBackgroundMouseoverColor": "#3B4252",
|
"ButtonWin11ISOBackgroundColor": "#666666",
|
||||||
"ButtonBackgroundSelectedColor": "#5E81AC",
|
"ButtonInstallForegroundColor": "#F7F7F7",
|
||||||
"ButtonForegroundColor": "#F7F7F7",
|
"ButtonTweaksForegroundColor": "#F7F7F7",
|
||||||
"ToggleButtonOnColor": "#2e77ff",
|
"ButtonConfigForegroundColor": "#F7F7F7",
|
||||||
"ToggleButtonOffColor": "#707070",
|
"ButtonUpdatesForegroundColor": "#F7F7F7",
|
||||||
"BorderColor": "#2F373D",
|
"ButtonWin11ISOForegroundColor": "#F7F7F7",
|
||||||
"BorderOpacity": "0.2"
|
"ButtonBackgroundColor": "#1E3747",
|
||||||
}
|
"ButtonBackgroundPressedColor": "#F7F7F7",
|
||||||
|
"ButtonBackgroundMouseoverColor": "#3B4252",
|
||||||
|
"ButtonBackgroundSelectedColor": "#5E81AC",
|
||||||
|
"ButtonForegroundColor": "#F7F7F7",
|
||||||
|
"ToggleButtonOnColor": "#2E77FF",
|
||||||
|
"ToggleButtonOffColor": "#707070",
|
||||||
|
"ToolTipBackgroundColor": "#2F373D",
|
||||||
|
"BorderColor": "#2F373D",
|
||||||
|
"BorderOpacity": "0.2"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,117 +0,0 @@
|
|||||||
# How to Contribute?
|
|
||||||
|
|
||||||
## Testing
|
|
||||||
|
|
||||||
* Test the latest changes to WinUtil by running the pre-release and reporting issues you are encountering to help us continually improve WinUtil!
|
|
||||||
|
|
||||||
#### **Run the latest pre-release**
|
|
||||||
```ps1
|
|
||||||
irm https://christitus.com/windev | iex
|
|
||||||
```
|
|
||||||
|
|
||||||
!!! bug "Keep in mind"
|
|
||||||
|
|
||||||
This is a pre-release and should be treated as such. It exists for developers to test the utility and report or fix bugs before they get added to the stable release. Don't use it in production!
|
|
||||||
|
|
||||||
## Issues
|
|
||||||
|
|
||||||
* If you encounter any challenges or problems with the script, I kindly request that you submit them via the "Issues" tab on the GitHub repository. By filling out the provided template, you can provide specific details about the issue, allowing me (and others in the community) to promptly address any bugs or consider feature requests.
|
|
||||||
|
|
||||||
## Contribute Code
|
|
||||||
|
|
||||||
* Pull requests are now handled directly on the **MAIN branch**. This was done since we can now select specific releases to launch via releases in GitHub.
|
|
||||||
|
|
||||||
* If you're doing code changes, then you can submit a PR to `main` branch, but I am very selective about these.
|
|
||||||
|
|
||||||
!!! warning "Important"
|
|
||||||
|
|
||||||
Do not use a code formatter, make massive amounts of line changes, or make multiple feature changes. EACH FEATURE CHANGE SHOULD BE IT'S OWN PULL REQUEST!
|
|
||||||
|
|
||||||
* When creating pull requests, it is essential to thoroughly document all changes made. This includes, but is not limited to, documenting any additions made to the `tweaks` section and corresponding `undo tweak`, so users are able to remove the newly added tweaks if necessary, and comprehensive documentation is required for all code changes. Document your changes and briefly explain why you made your changes in your Pull Request Description. Failure to adhere to this format may result in the denial of the pull request. Additionally, any code lacking sufficient documentation may also be denied.
|
|
||||||
|
|
||||||
* By following these guidelines, we can maintain a high standard of quality and ensure that the codebase remains organized and well-documented.
|
|
||||||
|
|
||||||
!!! note
|
|
||||||
|
|
||||||
When creating a function, please include "WPF" or "WinUtil" in the file name so it can be loaded into the runspace.
|
|
||||||
|
|
||||||
## Walk through
|
|
||||||
|
|
||||||
* This is a guide for beginners. If you are still having issues, look at the following official GitHub documentation:
|
|
||||||
* [Commit through WEB](https://docs.github.com/en/pull-requests/committing-changes-to-your-project/creating-and-editing-commits/about-commits)
|
|
||||||
* [Commit through GitHub Desktop](https://docs.github.com/en/desktop/making-changes-in-a-branch/committing-and-reviewing-changes-to-your-project-in-github-desktop#about-commits)
|
|
||||||
* [Create a Pull Request](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request)
|
|
||||||
|
|
||||||
|
|
||||||
### Overview
|
|
||||||
|
|
||||||
``` mermaid
|
|
||||||
%%{init: {"flowchart": {"curve": "cardinal"}} }%%
|
|
||||||
graph TD
|
|
||||||
A[Fork Project] --> B[Clone Repository];
|
|
||||||
B --> C[Create New Branch];
|
|
||||||
C --> D[Make Changes];
|
|
||||||
D --> G[Test Changes];
|
|
||||||
G --> H{Tests Passed?};
|
|
||||||
H -->|Yes| E[Commit Changes];
|
|
||||||
H -->|No| J[Fix Issues];
|
|
||||||
J --> G;
|
|
||||||
E --> F[Push Branch];
|
|
||||||
F --> K[Create Pull Request];
|
|
||||||
K --> L[Fill out PR template];
|
|
||||||
classDef default stroke:#333,stroke-width:4px,font-size:12pt;
|
|
||||||
```
|
|
||||||
!!! info
|
|
||||||
|
|
||||||
This is a diagram to guide you through the process. It may vary depending on the type of change you're making.
|
|
||||||
|
|
||||||
### Fork the Repo
|
|
||||||
* Fork the WinUtil Repository [here](https://github.com/ChrisTitusTech/winutil) to create a copy that will be available in your repository list.
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
### 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`
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
* 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:
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
* Now, commit your changes once you are happy with the result.
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
* Push the changes to upload them to your fork on github.com.
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
### 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.
|
|
||||||
@@ -1,214 +0,0 @@
|
|||||||
## Launch Issues
|
|
||||||
|
|
||||||
### Blocked by anti-virus
|
|
||||||
Windows Security (formerly Defender) and other anti-virus software are known to block the script. The script gets flagged due to the fact that it requires administrator privileges & makes drastic system changes.
|
|
||||||
|
|
||||||
To resolve this, allow/whitelist the script in your anti-virus software settings, or temporarily disable real-time protection. Since the project is open source, you may audit the code if security is a concern.
|
|
||||||
|
|
||||||
### Download not working
|
|
||||||
If `https://christitus.com/win` is not working, or you want to download the code from GitHub directly, you can use the direct download link:
|
|
||||||
|
|
||||||
```ps1
|
|
||||||
irm https://github.com/ChrisTitusTech/winutil/releases/latest/download/winutil.ps1 | iex
|
|
||||||
```
|
|
||||||
|
|
||||||
If you are seeing errors referencing TLS or security, you may be running an older version of Windows where TLS 1.2 is not the default security protocol used for network connections. The following commands will force .NET to use TLS 1.2, and download the script directly using .NET instead of PowerShell:
|
|
||||||
|
|
||||||
```ps1
|
|
||||||
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
|
|
||||||
iex (New-Object Net.WebClient).DownloadString('https://github.com/ChrisTitusTech/winutil/releases/latest/download/winutil.ps1')
|
|
||||||
```
|
|
||||||
|
|
||||||
If it still isn't working and you live in India, it might be due to India blocking GitHub's content domain and preventing downloads. See more on [Times of India](https://timesofindia.indiatimes.com/gadgets-news/github-content-domain-blocked-for-these-indian-users-reports/articleshow/96687992.cms).
|
|
||||||
|
|
||||||
If you are still having issues, try using a **VPN**, or changing your **DNS provider** to one of following two providers:
|
|
||||||
|
|
||||||
| Provider | Primary DNS | Secondary DNS |
|
|
||||||
|:------------:|:------------:|:-------------:|
|
|
||||||
| Cloudflare | `1.1.1.1` | `1.0.0.1` |
|
|
||||||
| Google | `8.8.8.8` | `8.8.4.4` |
|
|
||||||
|
|
||||||
|
|
||||||
### Script blocked by Execution Policy
|
|
||||||
1. Ensure you are running PowerShell as admin: Press `Windows Key`+`X` and select *PowerShell (Admin)* in Windows 10, or `Windows Terminal (Admin)` in Windows 11.
|
|
||||||
2. In the PowerShell window, type this to allow unsigned code to execute and run the installation script:
|
|
||||||
```ps1
|
|
||||||
Set-ExecutionPolicy Unrestricted -Scope Process -Force
|
|
||||||
irm https://christitus.com/win | iex
|
|
||||||
```
|
|
||||||
|
|
||||||
## Runtime Issues
|
|
||||||
|
|
||||||
### WinGet configuration
|
|
||||||
If you have not installed anything using PowerShell before, you may be prompted to configure WinGet. This requires user interaction on first run. You will need to manually type `y` into the PowerShell console and press enter to continue. Once you do it the first time, you will not be prompted again.
|
|
||||||
|
|
||||||
### MicroWin: Error `0x80041031`
|
|
||||||
This error code typically indicates an issue related to Windows Management Instrumentation (WMI). Here are a few steps you can try to resolve the issue:
|
|
||||||
|
|
||||||
1. **Reboot Your Computer:**
|
|
||||||
|
|
||||||
Sometimes, a simple reboot can resolve temporary issues. Restart your computer and try mounting the ISO again.
|
|
||||||
|
|
||||||
3. **Check for System Corruption:**
|
|
||||||
|
|
||||||
Run the System File Checker (SFC) utility to scan and repair system files that may be corrupted.
|
|
||||||
```powershell
|
|
||||||
sfc /scannow
|
|
||||||
```
|
|
||||||
|
|
||||||
4. **Update Your System:**
|
|
||||||
|
|
||||||
Make sure your operating system is up-to-date. Check for Windows updates and install any pending updates.
|
|
||||||
|
|
||||||
5. **Check WMI Service:**
|
|
||||||
|
|
||||||
Ensure that the Windows Management Instrumentation (WMI) service is running. You can do this through the Services application:
|
|
||||||
- Press `Win`+`R` to open the Run dialog.
|
|
||||||
- Type `services.msc` and press Enter.
|
|
||||||
- Locate *Windows Management Instrumentation* in the list.
|
|
||||||
- Make sure to set its status to "Running" and the startup type to "Automatic".
|
|
||||||
|
|
||||||
6. **Check for Security Software Interference:**
|
|
||||||
|
|
||||||
Security software can sometimes interfere with WMI operations. Temporarily disable your anti-virus or security software and check if the issue persists. WMI is a common attack/infection vector, so many anti-virus programs will limit its usage.
|
|
||||||
|
|
||||||
7. **Event Viewer:**
|
|
||||||
|
|
||||||
Check the Event Viewer for more detailed error information. Look for entries related to the `80041031` error and check if there are any additional details that can help identify the cause.
|
|
||||||
|
|
||||||
- Press `Win`+`X` and select *Event Viewer*.
|
|
||||||
- Navigate to *Windows Logs* > *Application* or *System*.
|
|
||||||
- Look for entries with the source related to WMI or the application use to mount the ISO.
|
|
||||||
|
|
||||||
8. **ISO File Integrity:**
|
|
||||||
|
|
||||||
Ensure that the ISO file you are trying to mount is uncorrupted. Try mounting a different ISO file to see if the issue persists.
|
|
||||||
|
|
||||||
If the problem persists after trying these steps, additional troubleshooting is required. Consider seeking assistance from Microsoft support or community forums for more specific guidance based on your system configuration and the software you use to mount the ISO.
|
|
||||||
|
|
||||||
## Windows Issues
|
|
||||||
|
|
||||||
### Windows takes longer to shut down
|
|
||||||
This could be for a number of reasons:
|
|
||||||
- Turn on fast startup: Press `Windows key`+`R`, then type:
|
|
||||||
```bat
|
|
||||||
control /name Microsoft.PowerOptions /page pageGlobalSettings
|
|
||||||
```
|
|
||||||
- If that doesn't work, disable Hibernation:
|
|
||||||
- Press `Windows Key`+`X` and select *PowerShell (Admin)* in Windows 10, or `Windows Terminal (Admin)` in Windows 11.
|
|
||||||
- In the PowerShell window, type:
|
|
||||||
```bat
|
|
||||||
powercfg /H off
|
|
||||||
```
|
|
||||||
Related issue: [#69](https://github.com/ChrisTitusTech/winutil/issues/69)
|
|
||||||
|
|
||||||
### Windows Search does not work
|
|
||||||
Enable Background Apps. Related issues: [#69](https://github.com/ChrisTitusTech/winutil/issues/69) [95](https://github.com/ChrisTitusTech/winutil/issues/95) [#232](https://github.com/ChrisTitusTech/winutil/issues/232)
|
|
||||||
|
|
||||||
### Xbox Game Bar Activation Broken
|
|
||||||
Set the Xbox Accessory Management Service to Automatic:
|
|
||||||
|
|
||||||
```ps1
|
|
||||||
Get-Service -Name "XboxGipSvc" | Set-Service -StartupType Automatic
|
|
||||||
```
|
|
||||||
|
|
||||||
Related issue: [#198](https://github.com/ChrisTitusTech/winutil/issues/198)
|
|
||||||
|
|
||||||
### Windows 11: Quick Settings no longer works
|
|
||||||
Launch the Script and click *Enable Action Center*.
|
|
||||||
|
|
||||||
### Explorer (file browser) no longer launches
|
|
||||||
- Press `Windows key`+`R` then type:
|
|
||||||
```bat
|
|
||||||
control /name Microsoft.FolderOptions
|
|
||||||
```
|
|
||||||
- Change the *Open File Explorer to* option to *This PC*.
|
|
||||||
|
|
||||||
### Battery drains too fast
|
|
||||||
If you're using a laptop or tablet and find your battery drains too fast, please try the below troubleshooting steps, and report the results back to the Winutil community.
|
|
||||||
|
|
||||||
1. **Check Battery Health:**
|
|
||||||
- Press `Windows Key`+`X` and select *PowerShell (Admin)* in Windows 10, or `Windows Terminal (Admin)` in Windows 11.
|
|
||||||
- Run the following command to generate a battery report:
|
|
||||||
```powershell
|
|
||||||
powercfg /batteryreport /output "C:\battery_report.html"
|
|
||||||
```
|
|
||||||
- Open the generated HTML report to review information about battery health and usage. A battery with poor health may hold less charge, discharge faster, or cause other issues.
|
|
||||||
|
|
||||||
2. **Review Power Settings:**
|
|
||||||
- Open the Settings app, and go to *System* > *Power & sleep*.
|
|
||||||
- Adjust power plan settings based on your preferences and usage patterns.
|
|
||||||
- Click on *Additional power settings* to access advanced power settings that may help.
|
|
||||||
|
|
||||||
3. **Identify Power-Hungry Apps:**
|
|
||||||
- Right-click on the taskbar and select *Task Manager*.
|
|
||||||
- Navigate to the *Processes* tab to identify applications with high CPU or memory usage.
|
|
||||||
- Consider reconfiguring, closing, disabling, or uninstalling applications that use a lot of resources.
|
|
||||||
|
|
||||||
4. **Update Drivers:**
|
|
||||||
- Visit your device manufacturer's website or use Windows Update to check for driver updates.
|
|
||||||
- Ensure graphics, chipset, and other essential drivers are up to date.
|
|
||||||
|
|
||||||
5. **Check for Windows Updates:**
|
|
||||||
- Open the Settings app, and go to *Update & Security* > *Windows Update*.
|
|
||||||
- Check for and install any available updates for your operating system.
|
|
||||||
|
|
||||||
6. **Reduce Screen Brightness:**
|
|
||||||
- Open the Settings app, and go to *System* > *Display*.
|
|
||||||
- Adjust screen brightness based on your preferences and lighting conditions.
|
|
||||||
|
|
||||||
7. **Enable Battery Saver:**
|
|
||||||
- Open the Settings app, and go to *System* > *Battery*.
|
|
||||||
- Turn on *Battery saver* to limit background activity and conserve power.
|
|
||||||
|
|
||||||
8. **Check Power Usage in Settings:**
|
|
||||||
- Open the Settings app, and go to *System* > *Battery* > *Battery usage by app*.
|
|
||||||
- Review the list of apps and their power usage. Disable or uninstall any you don't need.
|
|
||||||
|
|
||||||
9. **Check Background Apps:**
|
|
||||||
- Open the Settings app, and go to *Privacy* > *Background apps*.
|
|
||||||
- Disable or uninstall unnecessary apps running in the background.
|
|
||||||
|
|
||||||
10. **Use `powercfg` for Analysis:**
|
|
||||||
- Press `Windows Key`+`X` and select *PowerShell (Admin)* in Windows 10, or `Windows Terminal (Admin)` in Windows 11.
|
|
||||||
- Run the following command to analyze energy usage and generate a report:
|
|
||||||
```powershell
|
|
||||||
powercfg /energy /output "C:\energy_report.html"
|
|
||||||
```
|
|
||||||
- Open the generated HTML report to identify energy consumption patterns.
|
|
||||||
|
|
||||||
11. **Review Event Logs:**
|
|
||||||
- Open Event Viewer by searching for it in the Start menu.
|
|
||||||
- Navigate to *Windows Logs* > *System*.
|
|
||||||
- Look for events with the source *Power-Troubleshooter* to identify power-related events. These may highlight battery, input power, and other issues.
|
|
||||||
|
|
||||||
12. **Check Wake-up Sources:**
|
|
||||||
- Press `Windows Key`+`X` and select *PowerShell (Admin)* in Windows 10, or `Windows Terminal (Admin)` in Windows 11.
|
|
||||||
- Use the command `powercfg /requests` to identify processes preventing sleep.
|
|
||||||
- Use the command `powercfg /waketimers` to view active wake timers.
|
|
||||||
- Check Task Scheduler to see if any of the discovered processes are scheduled to start on boot or at regular intervals.
|
|
||||||
|
|
||||||
13. **Advanced Identification of Power-Hungry Apps:**
|
|
||||||
- Open Resource Monitor from the Start menu.
|
|
||||||
- Navigate to the *CPU*, *Memory*, *Network*, and other tabs to identify processes with high resource usage.
|
|
||||||
- Consider reconfiguring, closing, disabling, or uninstalling applications that use a lot of resources.
|
|
||||||
|
|
||||||
14. **Disable Activity History:**
|
|
||||||
- Open the Settings app, and go to *Privacy* > *Activity history*.
|
|
||||||
- Turn off *Let Windows collect my activities from this PC*.
|
|
||||||
|
|
||||||
15. **Prevent Network Adapters From Waking PC:**
|
|
||||||
- Open Device Manager by searching for it in the Start menu.
|
|
||||||
- Locate your network adapter, right-click, and go to *Properties*.
|
|
||||||
- Under the *Power Management* tab, uncheck the option that allows the device to wake the computer.
|
|
||||||
|
|
||||||
16. **Review Installed Applications:**
|
|
||||||
- Manually review installed applications by searching for *Add or remove programs* in the Start menu.
|
|
||||||
- Check settings/preferences of individual applications for power-related options.
|
|
||||||
- Uninstall unnecessary or problematic software.
|
|
||||||
|
|
||||||
These troubleshooting steps are generic, but should help in most situations. You should have these key takeaways:
|
|
||||||
- Battery health is the most significant limiter on your device's runtime. A battery in poor health usually cannot be made to last like it used to, simply by closing some applications. Consider replacing your battery.
|
|
||||||
- Background applications that use CPU and memory, make lots of or large network requests, read/write to disk frequently, or that keep your PC awake when it could be conserving energy are the next major concern. Avoid installing programs you don't need, only use programs you trust, and configure applications to use as little power and run as infrequently as possible.
|
|
||||||
- Windows performs a lot of tasks that may affect battery life by default. Changing settings, stopping scheduled tasks, and disabling features can help the system stay in lower power states to conserve battery.
|
|
||||||
- Bad chargers, inconsistent power input, and high temperatures will cause batteries to degrade and discharge faster. Use trusted high-quality chargers, ensure input power is steady, clean any fans or airflow ports, and keep the battery/PC cool.
|
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
title: '{{ replace .File.ContentBaseName "-" " " | title }}'
|
||||||
|
description: ""
|
||||||
|
date: '{{ .Date }}'
|
||||||
|
draft: true
|
||||||
|
---
|
||||||
|
Before Width: | Height: | Size: 194 KiB |
|
Before Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 6.8 KiB |
|
Before Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 22 KiB |
|
Before Width: | Height: | Size: 36 KiB |
|
Before Width: | Height: | Size: 27 KiB |
|
Before Width: | Height: | Size: 213 KiB |
|
Before Width: | Height: | Size: 137 KiB |
|
Before Width: | Height: | Size: 102 KiB |
|
Before Width: | Height: | Size: 108 KiB |
|
Before Width: | Height: | Size: 79 KiB |
|
Before Width: | Height: | Size: 77 KiB |
|
Before Width: | Height: | Size: 264 KiB |
|
Before Width: | Height: | Size: 40 KiB |
|
Before Width: | Height: | Size: 28 KiB |
|
Before Width: | Height: | Size: 122 KiB |
|
Before Width: | Height: | Size: 150 KiB |
|
Before Width: | Height: | Size: 99 KiB |
|
Before Width: | Height: | Size: 9.6 KiB |
|
After Width: | Height: | Size: 173 KiB |
|
After Width: | Height: | Size: 67 KiB |
|
After Width: | Height: | Size: 139 KiB |
|
After Width: | Height: | Size: 139 KiB |
|
After Width: | Height: | Size: 139 KiB |
|
After Width: | Height: | Size: 139 KiB |
|
After Width: | Height: | Size: 139 KiB |
|
After Width: | Height: | Size: 149 KiB |
|
After Width: | Height: | Size: 55 KiB |
|
After Width: | Height: | Size: 45 KiB |
@@ -0,0 +1,153 @@
|
|||||||
|
---
|
||||||
|
toc: true
|
||||||
|
---
|
||||||
|
|
||||||
|
## Contributing Code
|
||||||
|
|
||||||
|
### Before You Start
|
||||||
|
|
||||||
|
- Keep each pull request focused on a single feature or fix.
|
||||||
|
- Avoid unnecessary formatting changes or large unrelated edits.
|
||||||
|
- Document what changed and why in your PR description.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Basic Git Workflow
|
||||||
|
|
||||||
|
### 1. Fork the Repository
|
||||||
|
|
||||||
|
Go to the ChrisTitusTech/winutil repository on GitHub and click the Fork button in the top right corner.
|
||||||
|
|
||||||
|
<img width="171" height="50" alt="{650A4723-F38A-44A4-9820-D232BC87C8A0}" src="https://github.com/user-attachments/assets/a214f27c-2fee-444a-920f-d87b14f5896f" />
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### 2. Clone Your Fork
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git clone https://github.com/YOUR_USERNAME/winutil.git
|
||||||
|
cd winutil
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### 3. Create a Branch
|
||||||
|
|
||||||
|
Never work directly on `main`.
|
||||||
|
|
||||||
|
Create a branch related to your change:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git checkout -b feature-name
|
||||||
|
```
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git checkout -b add-firefox-tweak
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### 4. Edit the Code
|
||||||
|
|
||||||
|
Open the project in your preferred text editor and make your changes.
|
||||||
|
|
||||||
|
Keep changes small and focused.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### 5. Test Your Changes
|
||||||
|
|
||||||
|
Open PowerShell as Administrator.
|
||||||
|
|
||||||
|
Go to the project folder:
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
cd path\to\winutil
|
||||||
|
```
|
||||||
|
|
||||||
|
Run:
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
.\Compile.ps1 -Run
|
||||||
|
```
|
||||||
|
|
||||||
|
Verify:
|
||||||
|
|
||||||
|
- WinUtil launches correctly
|
||||||
|
- Your feature works
|
||||||
|
- Nothing else breaks
|
||||||
|
|
||||||
|
If something fails, fix it before committing.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### 6. Review Your Changes
|
||||||
|
|
||||||
|
Check what changed:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git status
|
||||||
|
```
|
||||||
|
|
||||||
|
Review the diff:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git diff
|
||||||
|
```
|
||||||
|
|
||||||
|
Make sure you did not accidentally modify unrelated files.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### 7. Commit Your Changes
|
||||||
|
|
||||||
|
Stage files:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git add .
|
||||||
|
```
|
||||||
|
|
||||||
|
Commit them:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git commit -m "Add feature description"
|
||||||
|
```
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git commit -m "Add Firefox package tweak"
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### 8. Push Your Branch
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git push origin branch-name
|
||||||
|
```
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git push origin add-firefox-tweak
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### 9. Open a Pull Request
|
||||||
|
|
||||||
|
Go to your fork on GitHub.
|
||||||
|
|
||||||
|
GitHub will show a button to create a pull request.
|
||||||
|
<img width="1009" height="71" alt="{C8C6A3CC-79D4-44FD-A54C-4C5717F12730}" src="https://github.com/user-attachments/assets/0419d193-d4e7-47c0-87cf-b986742201a0" />
|
||||||
|
|
||||||
|
Before submitting:
|
||||||
|
|
||||||
|
- Explain what changed
|
||||||
|
- Explain why you changed it
|
||||||
|
- Make sure unrelated files are not included
|
||||||
|
|
||||||
|
Once submitted, maintainers will review your PR.
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
---
|
||||||
|
title: Known Issues
|
||||||
|
toc: true
|
||||||
|
---
|
||||||
|
|
||||||
|
### Download not working
|
||||||
|
|
||||||
|
If you run WinUtil and get an error like:
|
||||||
|
|
||||||
|
`< : The term '<' is not recognized as the name of a cmdlet, function, script file, or operable program.`
|
||||||
|
|
||||||
|
try using a **VPN** and if that doesn't work than report the issue to https://github.com/ChrisTitusTech/winutil/issues
|
||||||
|
|
||||||
|
### Script Won't Run
|
||||||
|
|
||||||
|
If you run WinUtil and get the error:
|
||||||
|
|
||||||
|
`"WinUtil is unable to run on your system, powershell execution is restricted by security policies,"`
|
||||||
|
|
||||||
|
this means that your PowerShell session is in **Constrained Language Mode**, which prevents WinUtil from running.
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
---
|
||||||
|
title: Welcome to Winutil Documentation!
|
||||||
|
toc: false
|
||||||
|
width: full
|
||||||
|
---
|
||||||
|
|
||||||
|
<div style="display: flex; justify-content: center; align-items: center; width: 100%; flex-wrap: wrap; gap: 5px;margin-top:30px;" >
|
||||||
|
<a href="https://github.com/ChrisTitusTech/Winutil/releases/latest"><img src="https://img.shields.io/github/v/release/ChrisTitusTech/Winutil?color=%230567ff&label=Latest%20Release&style=for-the-badge" alt="Version" style="height: 28px; width: auto; min-width: 10px; object-fit: contain; margin: 0;"></a>
|
||||||
|
<img src="https://img.shields.io/github/downloads/ChrisTitusTech/Winutil/Winutil.ps1?label=Total%20Downloads&style=for-the-badge" alt="GitHub Downloads" style="height: 28px; width: auto; min-width: 10px; object-fit: contain; margin: 0;">
|
||||||
|
<a href="https://discord.gg/RUbZUZyByQ"><img src="https://dcbadge.limes.pink/api/server/https://discord.gg/RUbZUZyByQ" alt="Discord Community Server" style="height: 28px; width: auto; min-width: 10px; object-fit: contain; margin: 0;"></a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
Welcome to the official documentation for Winutil, your go-to utility for optimizing and managing your Windows environment. Whether you’re an IT professional, power user, or regular user, Winutil provides a comprehensive set of tools to enhance your Windows experience.
|
||||||
|
|
||||||
|
{{< image src="images/Title-Screen" alt="Winutil title screen" >}}
|
||||||
|
|
||||||
|
## Running the latest release of Winutil
|
||||||
|
|
||||||
|
* You will first need to start a PowerShell terminal **as Admin**.
|
||||||
|
* Now you can run the following command:
|
||||||
|
|
||||||
|
```
|
||||||
|
irm "https://christitus.com/win" | iex
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
> [!IMPORTANT]
|
||||||
|
> Winutil is updated frequently as of the time of writing. Consequently, features and functionalities may evolve, and the documentation may not always reflect the most current images or information.
|
||||||
@@ -0,0 +1,52 @@
|
|||||||
|
---
|
||||||
|
title: Developer Reference
|
||||||
|
weight: 3
|
||||||
|
toc: false
|
||||||
|
---
|
||||||
|
|
||||||
|
> [!NOTE]
|
||||||
|
> This section contains technical documentation for developers. For end-user documentation, see the [User Guide](../userguide/).
|
||||||
|
|
||||||
|
## Architecture
|
||||||
|
|
||||||
|
- [Architecture & Design](architecture/) - Code structure, data flow, and how Winutil works internally
|
||||||
|
|
||||||
|
## Tweaks
|
||||||
|
|
||||||
|
### Essential Tweaks
|
||||||
|
|
||||||
|
{{< autolinks section="dev/tweaks/essential-tweaks" >}}
|
||||||
|
|
||||||
|
### Advanced Tweaks (CAUTION)
|
||||||
|
|
||||||
|
{{< autolinks section="dev/tweaks/z--advanced-tweaks---caution" >}}
|
||||||
|
|
||||||
|
### Customize Preferences
|
||||||
|
|
||||||
|
{{< autolinks section="dev/tweaks/customize-preferences" >}}
|
||||||
|
|
||||||
|
### Performance Plans
|
||||||
|
|
||||||
|
{{< autolinks section="dev/tweaks/performance-plans" >}}
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
### Fixes
|
||||||
|
|
||||||
|
{{< autolinks section="dev/features/fixes" >}}
|
||||||
|
|
||||||
|
### Legacy Windows Panels
|
||||||
|
|
||||||
|
{{< autolinks section="dev/features/legacy-windows-panels" >}}
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
{{< autolinks section="dev/features/features" >}}
|
||||||
|
|
||||||
|
### Remote Access
|
||||||
|
|
||||||
|
{{< autolinks section="dev/features/remote-access" >}}
|
||||||
|
|
||||||
|
### Powershell Profile Powershell 7+ Only
|
||||||
|
|
||||||
|
{{< autolinks section="dev/features/powershell-profile-powershell-7--only" >}}
|
||||||
@@ -0,0 +1,669 @@
|
|||||||
|
---
|
||||||
|
title: Architecture & Design
|
||||||
|
weight: 1
|
||||||
|
toc: true
|
||||||
|
---
|
||||||
|
|
||||||
|
## Overview
|
||||||
|
|
||||||
|
Winutil is a PowerShell-based Windows utility with a WPF (Windows Presentation Foundation) GUI. This document explains the architecture, code structure, and how different components work together.
|
||||||
|
|
||||||
|
## High-Level Architecture
|
||||||
|
|
||||||
|
```
|
||||||
|
┌─────────────────────────────────────────────────────┐
|
||||||
|
│ Winutil GUI │
|
||||||
|
│ (WPF XAML Interface) │
|
||||||
|
└──────────────────┬──────────────────────────────────┘
|
||||||
|
│
|
||||||
|
┌─────────┴─────────┐
|
||||||
|
│ │
|
||||||
|
┌────────▼──────┐ ┌───────▼────────┐
|
||||||
|
│ Public APIs │ │ Private APIs │
|
||||||
|
│ (User-facing)│ │ (Internal) │
|
||||||
|
└───────┬───────┘ └───────┬────────┘
|
||||||
|
│ │
|
||||||
|
└────────┬──────────┘
|
||||||
|
│
|
||||||
|
┌────────────▼────────────┐
|
||||||
|
│ Configuration Files │
|
||||||
|
│ (JSON definitions) │
|
||||||
|
└────────────┬────────────┘
|
||||||
|
│
|
||||||
|
┌────────────▼────────────┐
|
||||||
|
│ External Tools │
|
||||||
|
│ (WinGet, Chocolatey) │
|
||||||
|
└─────────────────────────┘
|
||||||
|
```
|
||||||
|
|
||||||
|
## Project Structure
|
||||||
|
|
||||||
|
### Directory Layout
|
||||||
|
|
||||||
|
```
|
||||||
|
winutil/
|
||||||
|
├── Compile.ps1 # Build script that combines all files
|
||||||
|
├── winutil.ps1 # Compiled output (generated)
|
||||||
|
├── scripts/
|
||||||
|
│ ├── main.ps1 # Entry point and GUI initialization
|
||||||
|
│ └── start.ps1 # Startup logic
|
||||||
|
├── functions/
|
||||||
|
│ ├── private/ # Internal helper functions
|
||||||
|
│ │ ├── Get-WinUtilVariables.ps1
|
||||||
|
│ │ ├── Install-WinUtilWinget.ps1
|
||||||
|
│ │ └── ...
|
||||||
|
│ ├── public/ # User-facing functions
|
||||||
|
│ │ ├── Initialize-WPFUI.ps1
|
||||||
|
│ │ └── ...
|
||||||
|
├── config/ # JSON configuration files
|
||||||
|
│ ├── applications.json # Application definitions
|
||||||
|
│ ├── tweaks.json # Tweak definitions
|
||||||
|
│ ├── feature.json # Windows feature definitions
|
||||||
|
│ └── preset.json # Preset configurations
|
||||||
|
├── xaml/
|
||||||
|
│ └── inputXML.xaml # GUI layout definition
|
||||||
|
└── docs/ # Documentation
|
||||||
|
```
|
||||||
|
|
||||||
|
### Key Components
|
||||||
|
|
||||||
|
#### 1. Compile.ps1
|
||||||
|
**Purpose**: Combines all separate script files into a single `winutil.ps1` for distribution.
|
||||||
|
|
||||||
|
**Process**:
|
||||||
|
1. Reads all function files from `/functions/`
|
||||||
|
2. Includes configuration JSON files
|
||||||
|
3. Embeds XAML GUI definition
|
||||||
|
4. Combines into single script
|
||||||
|
5. Outputs `winutil.ps1`
|
||||||
|
|
||||||
|
**Why**: Makes distribution easier (single file) and improves load time.
|
||||||
|
|
||||||
|
#### 2. scripts/main.ps1
|
||||||
|
**Purpose**: Entry point that initializes the GUI and event system.
|
||||||
|
|
||||||
|
**Responsibilities**:
|
||||||
|
- Load XAML and create WPF window
|
||||||
|
- Initialize form elements
|
||||||
|
- Set up event handlers
|
||||||
|
- Load configurations
|
||||||
|
- Display the GUI
|
||||||
|
|
||||||
|
#### 3. functions/public/
|
||||||
|
**Purpose**: User-facing functions that implement main features.
|
||||||
|
|
||||||
|
**Key Functions**:
|
||||||
|
- `Initialize-WPFUI.ps1`: Sets up the GUI
|
||||||
|
- `Invoke-WPFTweak*`: Applies system tweaks
|
||||||
|
- `Invoke-WPFFeature*`: Enables Windows features
|
||||||
|
- `Install-WinUtilProgram*`: Installs applications
|
||||||
|
|
||||||
|
**Naming Convention**: Functions start with `WPF` or `Winutil` to be loaded into the runspace.
|
||||||
|
|
||||||
|
#### 4. functions/private/
|
||||||
|
**Purpose**: Internal helper functions not directly called by users.
|
||||||
|
|
||||||
|
**Key Functions**:
|
||||||
|
- `Get-WinUtilVariables.ps1`: Retrieves UI element references
|
||||||
|
- `Install-WinUtilWinget.ps1`: Ensures WinGet is installed
|
||||||
|
- `Get-WinUtilCheckBoxes.ps1`: Gets checkbox states
|
||||||
|
- `Invoke-WinUtilCurrentSystem.ps1`: Gets system information
|
||||||
|
|
||||||
|
#### 5. config/*.json
|
||||||
|
**Purpose**: Define available applications, tweaks, and features declaratively.
|
||||||
|
|
||||||
|
**Files**:
|
||||||
|
- `applications.json`: Application definitions with WinGet/Choco IDs
|
||||||
|
- `tweaks.json`: Registry tweaks and their undo actions
|
||||||
|
- `feature.json`: Windows features that can be enabled/disabled
|
||||||
|
- `preset.json`: Predefined tweak combinations
|
||||||
|
- `dns.json`: DNS provider configurations
|
||||||
|
|
||||||
|
#### 6. xaml/inputXML.xaml
|
||||||
|
**Purpose**: WPF GUI layout and design.
|
||||||
|
|
||||||
|
**Structure**:
|
||||||
|
- Buttons with event handlers
|
||||||
|
- TextBoxes for input
|
||||||
|
- CheckBoxes for options
|
||||||
|
- ListBoxes for selections
|
||||||
|
|
||||||
|
## Win11 Creator Architecture
|
||||||
|
|
||||||
|
The **Win11 Creator** is a specialized subsystem within Winutil that creates customized Windows 11 ISOs. It operates independently from the main package installation and tweak system.
|
||||||
|
|
||||||
|
### Win11 Creator Components
|
||||||
|
|
||||||
|
**Core Functions** (`functions/private/`):
|
||||||
|
- `Invoke-WinUtilISO.ps1`: Main orchestrator containing all Win11 Creator functions
|
||||||
|
- `Invoke-WinUtilISOBrowse`: ISO file selection dialog
|
||||||
|
- `Invoke-WinUtilISOMountAndVerify`: Validates and mounts ISO, verifies it's official Windows 11
|
||||||
|
- `Invoke-WinUtilISOModify`: Launches modification in background runspace
|
||||||
|
- `Invoke-WinUtilISOExport`: Handles ISO and USB export
|
||||||
|
- `Invoke-WinUtilISOCheckExistingWork`: Recovers incomplete work sessions
|
||||||
|
- `Invoke-WinUtilISOCleanAndReset`: Cleans up temp directories and resets UI
|
||||||
|
|
||||||
|
- `Invoke-WinUtilISOScript.ps1`: Applies modifications to mounted install.wim
|
||||||
|
- Removes provisioned AppX packages (40+ bloatware apps)
|
||||||
|
- Injects drivers (optional) from the current system
|
||||||
|
- Removes OneDrive setup files
|
||||||
|
- Applies offline registry tweaks (hardware bypass, privacy, telemetry, OOBE)
|
||||||
|
- Deletes telemetry scheduled task definitions
|
||||||
|
- Pre-stages setup scripts from autounattend.xml
|
||||||
|
- Removes unused Windows editions
|
||||||
|
- Cleans component store via DISM
|
||||||
|
|
||||||
|
### Win11 Creator Data Flow
|
||||||
|
|
||||||
|
```
|
||||||
|
User selects official Windows 11 ISO
|
||||||
|
↓
|
||||||
|
Invoke-WinUtilISOBrowse → OpenFileDialog, validates file size
|
||||||
|
↓
|
||||||
|
Invoke-WinUtilISOMountAndVerify
|
||||||
|
├─ Mount ISO via Mount-DiskImage
|
||||||
|
├─ Verify install.wim or install.esd exists
|
||||||
|
├─ Check for "Windows 11" in image metadata
|
||||||
|
├─ Extract available editions (Home, Pro, Enterprise, etc.)
|
||||||
|
└─ Store ISO path, drive letter, WIM path, image info in $sync
|
||||||
|
↓
|
||||||
|
User optionally enables the Driver Injection checkbox
|
||||||
|
↓
|
||||||
|
Invoke-WinUtilISOModify (runs in background runspace)
|
||||||
|
├─ Create work directory: ~WinUtil_Win11ISO_[timestamp]
|
||||||
|
├─ Copy ISO contents to disk (~5-6 GB)
|
||||||
|
├─ Mount install.wim at selected edition/index
|
||||||
|
├─ Invoke-WinUtilISOScript:
|
||||||
|
│ ├─ Remove 40+ bloat AppX packages
|
||||||
|
│ ├─ Export and inject drivers (if enabled)
|
||||||
|
│ ├─ Remove OneDrive setup
|
||||||
|
│ ├─ Load offline registry hives
|
||||||
|
│ ├─ Apply 50+ registry tweaks (hardware bypass, privacy, telemetry, OOBE, etc.)
|
||||||
|
│ ├─ Delete telemetry scheduled task files
|
||||||
|
│ ├─ Pre-stage setup scripts from autounattend.xml to C:\Windows\Setup\Scripts\
|
||||||
|
│ └─ Unload registry hives
|
||||||
|
├─ DISM /Cleanup-Image /StartComponentCleanup /ResetBase (saves 300-800 MB)
|
||||||
|
├─ Dismount and save the modified install.wim (~10+ minutes, slowest step)
|
||||||
|
├─ Export selected edition only (removes all other editions, saves 1-2 GB each)
|
||||||
|
├─ Dismount source ISO
|
||||||
|
└─ Report completion, enable export options
|
||||||
|
↓
|
||||||
|
Invoke-WinUtilISOExport (user chooses output)
|
||||||
|
├─ Option 1: Save as ISO
|
||||||
|
│ ├─ Build bootable ISO via oscdimg.exe (BIOS/UEFI dual-boot)
|
||||||
|
│ └─ Output: Win11_Modified_[date].iso (2.5-3.5 GB)
|
||||||
|
│
|
||||||
|
└─ Option 2: Write to USB
|
||||||
|
├─ Format USB as GPT
|
||||||
|
├─ Create 512 MB EFI partition
|
||||||
|
├─ Copy modified ISO contents
|
||||||
|
└─ Output: Bootable USB (minimum 8 GB)
|
||||||
|
↓
|
||||||
|
Invoke-WinUtilISOCleanAndReset (optional)
|
||||||
|
└─ Delete temp working directory (~10-15 GB)
|
||||||
|
└─ Reset UI to initial state
|
||||||
|
```
|
||||||
|
|
||||||
|
### Win11 Creator Validation & Safety
|
||||||
|
|
||||||
|
**ISO Validation**:
|
||||||
|
- Only accepts official Microsoft Windows 11 ISOs
|
||||||
|
- Validates presence of install.wim or install.esd
|
||||||
|
- Checks image metadata for "Windows 11" string
|
||||||
|
- Rejects custom, modified, or non-Windows 11 ISOs
|
||||||
|
|
||||||
|
**Work Session Recovery**:
|
||||||
|
- Auto-detects incomplete work from previous sessions
|
||||||
|
- Allows resuming Step 4 (export) without re-running Steps 1-3
|
||||||
|
- Prevents redundant modifications
|
||||||
|
|
||||||
|
**Modification Safety**:
|
||||||
|
- All registry changes are documented in a script (reversible)
|
||||||
|
- Original ISO never modified; only working copy
|
||||||
|
- Logged to `WinUtil_Win11ISO.log` for debugging
|
||||||
|
- DISM handles image dismount with automatic cleanup on error
|
||||||
|
|
||||||
|
### Win11 Creator Registry Tweaks
|
||||||
|
|
||||||
|
The `Invoke-WinUtilISOScript` function applies **50+ offline registry tweaks**:
|
||||||
|
|
||||||
|
**Hardware Bypass**:
|
||||||
|
- TPM 2.0 check bypass
|
||||||
|
- Secure Boot requirement bypass
|
||||||
|
- CPU compatibility bypass
|
||||||
|
- RAM requirement bypass
|
||||||
|
- Storage check bypass
|
||||||
|
|
||||||
|
**Privacy & Telemetry**:
|
||||||
|
- Disable advertising ID
|
||||||
|
- Disable tailored experiences
|
||||||
|
- Disable input personalization
|
||||||
|
- Disable speech online privacy
|
||||||
|
- Disable cloud content suggestions
|
||||||
|
- Disable app suggestion subscriptions
|
||||||
|
- Remove CEIP, Appraiser, WaaSMedic, etc.
|
||||||
|
|
||||||
|
**OOBE & Setup**:
|
||||||
|
- Enable local account setup
|
||||||
|
- Skip Microsoft account requirement
|
||||||
|
- Dark mode by default
|
||||||
|
- Empty taskbar and Start Menu
|
||||||
|
|
||||||
|
**Post-Setup Installations**:
|
||||||
|
- Prevent DevHome auto-installation
|
||||||
|
- Prevent new Outlook Mail app installation
|
||||||
|
- Prevent Teams auto-installation
|
||||||
|
|
||||||
|
**System Features**:
|
||||||
|
- Disable BitLocker and device encryption
|
||||||
|
- Disable Chat icon from the Taskbar
|
||||||
|
- Disable OneDrive folder backup
|
||||||
|
- Disable Copilot
|
||||||
|
- Disable Windows Update during OOBE (re-enabled at first login)
|
||||||
|
|
||||||
|
### Driver Injection Feature
|
||||||
|
|
||||||
|
**Optional Enhancement**: When enabled, exports all drivers from the running system and injects them into both:
|
||||||
|
- `install.wim` (main OS image)
|
||||||
|
- `boot.wim` index 2 (Windows Setup PE environment)
|
||||||
|
|
||||||
|
**Use Case**: Enables offline installation on systems with missing drivers.
|
||||||
|
|
||||||
|
### Disk Space Requirements
|
||||||
|
|
||||||
|
- **Temporary working directory**: ~10-15 GB
|
||||||
|
- **Original ISO**: 4-6 GB
|
||||||
|
- **Modified ISO**: 2.5-3.5 GB
|
||||||
|
- **Total needed**: ~25 GB for safe operation
|
||||||
|
|
||||||
|
## Data Flow
|
||||||
|
|
||||||
|
### Application Installation Flow
|
||||||
|
|
||||||
|
```
|
||||||
|
User clicks "Install"
|
||||||
|
↓
|
||||||
|
Get-WinUtilCheckBoxes → Retrieves selected apps
|
||||||
|
↓
|
||||||
|
For each selected app:
|
||||||
|
↓
|
||||||
|
Check if WinGet/Choco is installed
|
||||||
|
↓
|
||||||
|
Install-WinUtilWinget/Choco (if needed)
|
||||||
|
↓
|
||||||
|
Install-WinUtilProgramWinget/Choco → Install app
|
||||||
|
↓
|
||||||
|
Update UI with progress
|
||||||
|
↓
|
||||||
|
Display completion message
|
||||||
|
```
|
||||||
|
|
||||||
|
### Tweak Application Flow
|
||||||
|
|
||||||
|
```
|
||||||
|
User selects tweaks and clicks "Run Tweaks"
|
||||||
|
↓
|
||||||
|
Get-WinUtilCheckBoxes → Get selected tweaks
|
||||||
|
↓
|
||||||
|
For each selected tweak:
|
||||||
|
↓
|
||||||
|
Load tweak definition from tweaks.json
|
||||||
|
↓
|
||||||
|
Invoke-WPFTweak → Apply registry/service changes
|
||||||
|
↓
|
||||||
|
Log changes
|
||||||
|
↓
|
||||||
|
Store original values (for undo)
|
||||||
|
↓
|
||||||
|
Update UI
|
||||||
|
↓
|
||||||
|
Display completion
|
||||||
|
```
|
||||||
|
|
||||||
|
### Undo Tweak Flow
|
||||||
|
|
||||||
|
```
|
||||||
|
User selects tweaks and clicks "Undo"
|
||||||
|
↓
|
||||||
|
Get-WinUtilCheckBoxes → Get selected tweaks
|
||||||
|
↓
|
||||||
|
For each tweak:
|
||||||
|
↓
|
||||||
|
Retrieve "OriginalState" from tweak definition
|
||||||
|
↓
|
||||||
|
Invoke-WPFUndoTweak → Restore original values
|
||||||
|
↓
|
||||||
|
Remove from the applied tweaks log
|
||||||
|
↓
|
||||||
|
Update UI
|
||||||
|
```
|
||||||
|
|
||||||
|
## Configuration File Format
|
||||||
|
|
||||||
|
### applications.json Structure
|
||||||
|
|
||||||
|
```json {filename="config/applications.json"}
|
||||||
|
{
|
||||||
|
"WPFInstall<AppName>": {
|
||||||
|
"category": "Browsers",
|
||||||
|
"choco": "googlechrome",
|
||||||
|
"content": "Google Chrome",
|
||||||
|
"description": "Google Chrome browser",
|
||||||
|
"link": "https://chrome.google.com",
|
||||||
|
"winget": "Google.Chrome"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
**Fields**:
|
||||||
|
- `category`: Which section in the Install tab
|
||||||
|
- `content`: Display name in GUI
|
||||||
|
- `description`: Tooltip/description text
|
||||||
|
- `winget`: WinGet package ID
|
||||||
|
- `choco`: Chocolatey package name
|
||||||
|
- `link`: Official website
|
||||||
|
|
||||||
|
### tweaks.json Structure
|
||||||
|
|
||||||
|
```json {filename="config/tweaks.json"}
|
||||||
|
{
|
||||||
|
"WPFTweaksTelemetry": {
|
||||||
|
"Content": "Disable Telemetry",
|
||||||
|
"Description": "Disables Microsoft Telemetry",
|
||||||
|
"category": "Essential Tweaks",
|
||||||
|
"panel": "1",
|
||||||
|
"registry": [
|
||||||
|
{
|
||||||
|
"Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\DataCollection",
|
||||||
|
"Name": "AllowTelemetry",
|
||||||
|
"Type": "DWord",
|
||||||
|
"Value": "0",
|
||||||
|
"OriginalValue": "1"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
**Fields**:
|
||||||
|
- `Content`: Display name
|
||||||
|
- `Description`: What it does
|
||||||
|
- `category`: Essential/Advanced/Customize
|
||||||
|
- `registry`: Registry changes to make
|
||||||
|
- `service`: Services to change
|
||||||
|
- `OriginalValue/State`: For undo functionality
|
||||||
|
|
||||||
|
## PowerShell Runspace
|
||||||
|
|
||||||
|
Winutil uses PowerShell runspaces for the GUI to remain responsive:
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
# Create runspace
|
||||||
|
$sync.runspace = [runspacefactory]::CreateRunspace()
|
||||||
|
$sync.runspace.Open()
|
||||||
|
$sync.runspace.SessionStateProxy.SetVariable("sync", $sync)
|
||||||
|
|
||||||
|
# Run code in background
|
||||||
|
$powershell = [powershell]::Create().AddScript($scriptblock)
|
||||||
|
$powershell.Runspace = $sync.runspace
|
||||||
|
$handle = $powershell.BeginInvoke()
|
||||||
|
```
|
||||||
|
|
||||||
|
**Why**: Prevents UI freezing during long-running operations.
|
||||||
|
|
||||||
|
## WPF Event Handling
|
||||||
|
|
||||||
|
Events are wired up via XAML element names:
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
# Get all named elements
|
||||||
|
$sync.keys | ForEach-Object {
|
||||||
|
if($sync.$_.GetType().Name -eq "Button") {
|
||||||
|
$sync.$_.Add_Click({
|
||||||
|
$button = $sync.$($args[0].Name)
|
||||||
|
& "Invoke-$($args[0].Name)"
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
**Convention**: Button named `WPFInstallButton` calls function `Invoke-WPFInstallButton`.
|
||||||
|
|
||||||
|
## Package Manager Integration
|
||||||
|
|
||||||
|
### WinGet Integration
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
# Check if installed
|
||||||
|
if (!(Get-Command winget -ErrorAction SilentlyContinue)) {
|
||||||
|
Install-WinUtilWinget
|
||||||
|
}
|
||||||
|
|
||||||
|
# Install package
|
||||||
|
winget install --id $app.winget --silent --accept-source-agreements
|
||||||
|
```
|
||||||
|
|
||||||
|
### Chocolatey Integration
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
# Check if installed
|
||||||
|
if (!(Get-Command choco -ErrorAction SilentlyContinue)) {
|
||||||
|
Install-WinUtilChoco
|
||||||
|
}
|
||||||
|
|
||||||
|
# Install package
|
||||||
|
choco install $app.choco -y
|
||||||
|
```
|
||||||
|
|
||||||
|
## Error Handling
|
||||||
|
|
||||||
|
Winutil uses PowerShell error handling:
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
try {
|
||||||
|
# Attempt operation
|
||||||
|
Invoke-SomeOperation
|
||||||
|
}
|
||||||
|
catch {
|
||||||
|
Write-Host "Error: $_" -ForegroundColor Red
|
||||||
|
# Log error
|
||||||
|
Add-Content -Path $logfile -Value "ERROR: $_"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
**Logging**: Errors and operations are logged for debugging.
|
||||||
|
|
||||||
|
## Configuration Loading
|
||||||
|
|
||||||
|
At startup, Winutil loads all configurations:
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
# Load JSON configs
|
||||||
|
$sync.configs = @{}
|
||||||
|
$sync.configs.applications = Get-Content "config/applications.json" | ConvertFrom-Json
|
||||||
|
$sync.configs.tweaks = Get-Content "config/tweaks.json" | ConvertFrom-Json
|
||||||
|
$sync.configs.features = Get-Content "config/feature.json" | ConvertFrom-Json
|
||||||
|
```
|
||||||
|
|
||||||
|
**Sync Hash**: `$sync` hashtable shares state across runspaces.
|
||||||
|
|
||||||
|
## UI Update Pattern
|
||||||
|
|
||||||
|
UI updates must happen on the UI thread:
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
$sync.form.Dispatcher.Invoke([action]{
|
||||||
|
$sync.WPFStatusLabel.Content = "Installing..."
|
||||||
|
}, "Normal")
|
||||||
|
```
|
||||||
|
|
||||||
|
**Why**: WPF requires UI updates on the main thread.
|
||||||
|
|
||||||
|
## Adding New Features
|
||||||
|
|
||||||
|
### Adding a New Application
|
||||||
|
|
||||||
|
1. Edit `config/applications.json`:
|
||||||
|
```json {filename="config/applications.json"}
|
||||||
|
{
|
||||||
|
"WPFInstallNewApp": {
|
||||||
|
"category": "Utilities",
|
||||||
|
"content": "New App",
|
||||||
|
"description": "Description of new app",
|
||||||
|
"winget": "Publisher.AppName",
|
||||||
|
"choco": "appname"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
2. Recompile: `.\Compile.ps1`
|
||||||
|
3. The app appears automatically in the Install tab
|
||||||
|
|
||||||
|
### Adding a New Tweak
|
||||||
|
|
||||||
|
1. Edit `config/tweaks.json`:
|
||||||
|
```json {filename="config/tweaks.json"}
|
||||||
|
{
|
||||||
|
"WPFTweaksNewTweak": {
|
||||||
|
"Content": "New Tweak",
|
||||||
|
"Description": "What it does",
|
||||||
|
"category": "Essential Tweaks",
|
||||||
|
"registry": [
|
||||||
|
{
|
||||||
|
"Path": "HKLM:\\Path\\To\\Key",
|
||||||
|
"Name": "ValueName",
|
||||||
|
"Type": "DWord",
|
||||||
|
"Value": "1",
|
||||||
|
"OriginalValue": "0"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
2. Recompile: `.\Compile.ps1`
|
||||||
|
3. Tweak appears in the Tweaks tab
|
||||||
|
|
||||||
|
### Adding a New Function
|
||||||
|
|
||||||
|
1. Create file in `functions/public/` or `functions/private/`:
|
||||||
|
```powershell
|
||||||
|
# functions/public/Invoke-WPFNewFeature.ps1
|
||||||
|
function Invoke-WPFNewFeature {
|
||||||
|
<#
|
||||||
|
.SYNOPSIS
|
||||||
|
Does something new
|
||||||
|
#>
|
||||||
|
# Implementation
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
2. File naming must include "WPF" or "Winutil" to load
|
||||||
|
3. Recompile: `.\Compile.ps1`
|
||||||
|
|
||||||
|
## Testing
|
||||||
|
|
||||||
|
### Manual Testing
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
# Compile and run with -run flag
|
||||||
|
.\Compile.ps1 -run
|
||||||
|
```
|
||||||
|
|
||||||
|
### Automated Tests
|
||||||
|
|
||||||
|
Tests are in `/pester/`:
|
||||||
|
- `configs.Tests.ps1`: Validates JSON configurations
|
||||||
|
- `functions.Tests.ps1`: Tests PowerShell functions
|
||||||
|
|
||||||
|
Run tests:
|
||||||
|
```powershell
|
||||||
|
Invoke-Pester
|
||||||
|
```
|
||||||
|
|
||||||
|
## Build Process
|
||||||
|
|
||||||
|
### Development Build
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
.\Compile.ps1
|
||||||
|
```
|
||||||
|
|
||||||
|
Outputs `winutil.ps1` in the root directory.
|
||||||
|
|
||||||
|
### Production Release
|
||||||
|
|
||||||
|
1. Tag release in Git
|
||||||
|
2. GitHub Actions builds and uploads `winutil.ps1`
|
||||||
|
3. Release appears on GitHub Releases
|
||||||
|
4. Users download via `irm christitus.com/win`
|
||||||
|
|
||||||
|
## Dependencies
|
||||||
|
|
||||||
|
**Required**:
|
||||||
|
- PowerShell 5.1+
|
||||||
|
- .NET Framework 4.5+
|
||||||
|
- Windows 11
|
||||||
|
|
||||||
|
**Optional (auto-installed)**:
|
||||||
|
- WinGet (Windows Package Manager)
|
||||||
|
- Chocolatey
|
||||||
|
|
||||||
|
## Performance Considerations
|
||||||
|
|
||||||
|
**Optimization Strategies**:
|
||||||
|
- Lazy-load configurations (only when needed)
|
||||||
|
- Use runspaces for long operations
|
||||||
|
- Cache expensive lookups
|
||||||
|
- Minimize registry reads/writes
|
||||||
|
- Batch operations when possible
|
||||||
|
|
||||||
|
## Security Considerations
|
||||||
|
|
||||||
|
**Safety Measures**:
|
||||||
|
- All operations logged
|
||||||
|
- Registry backups for undo
|
||||||
|
- No credential storage
|
||||||
|
- Open source (auditable)
|
||||||
|
- Digitally signed (future)
|
||||||
|
|
||||||
|
## Contributing Guidelines
|
||||||
|
|
||||||
|
**Code Standards**:
|
||||||
|
- Use proper PowerShell cmdlet naming (Verb-Noun)
|
||||||
|
- Include comment-based help
|
||||||
|
- Follow existing code style
|
||||||
|
- Test thoroughly before PR
|
||||||
|
- Document significant changes
|
||||||
|
|
||||||
|
**File Naming**:
|
||||||
|
- Public functions: `Invoke-WPF*.ps1` or `Invoke-Winutil*.ps1`
|
||||||
|
- Private functions: `Get-WinUtil*.ps1` or verb-WinUtil*.ps1`
|
||||||
|
- Must include "WPF" or "Winutil" to load
|
||||||
|
|
||||||
|
## Future Architecture Plans
|
||||||
|
|
||||||
|
**Roadmap Considerations**:
|
||||||
|
- Plugin system for community extensions
|
||||||
|
- Config import/export
|
||||||
|
- Cloud sync for configurations
|
||||||
|
- Enhanced logging dashboard
|
||||||
|
- Modular compilation (choose features)
|
||||||
|
|
||||||
|
## Related Documentation
|
||||||
|
|
||||||
|
- [Contributing Guide](../../contributing/) - How to contribute code
|
||||||
|
- [User Guide](../../userguide/) - End-user documentation
|
||||||
|
- [Win11 Creator Guide](../../userguide/win11creator/) - Building customized Windows 11 ISOs
|
||||||
|
- [FAQ](../../faq/) - Common questions
|
||||||
|
|
||||||
|
## Additional Resources
|
||||||
|
|
||||||
|
- **GitHub Repository**: [ChrisTitusTech/winutil](https://github.com/ChrisTitusTech/winutil)
|
||||||
|
- **PowerShell Docs**: [Microsoft Docs](https://docs.microsoft.com/powershell/)
|
||||||
|
- **WPF Guide**: [WPF Documentation](https://docs.microsoft.com/dotnet/desktop/wpf/)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
**Last Updated**: January 2026
|
||||||
|
**Maintainers**: Chris Titus Tech and contributors
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
---
|
||||||
|
title: "Legacy F8 Boot Recovery - Disable"
|
||||||
|
description: ""
|
||||||
|
---
|
||||||
|
|
||||||
|
```json {filename="config/feature.json",linenos=inline,linenostart=107}
|
||||||
|
"WPFFeatureDisableLegacyRecovery": {
|
||||||
|
"Content": "Legacy F8 Boot Recovery - Disable",
|
||||||
|
"Description": "Disables Advanced Boot Options screen that lets you start Windows in advanced troubleshooting modes.",
|
||||||
|
"category": "Features",
|
||||||
|
"panel": "1",
|
||||||
|
"feature": [],
|
||||||
|
"InvokeScript": [
|
||||||
|
"bcdedit /set bootmenupolicy standard"
|
||||||
|
],
|
||||||
|
```
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
---
|
||||||
|
title: "Legacy F8 Boot Recovery - Enable"
|
||||||
|
description: ""
|
||||||
|
---
|
||||||
|
|
||||||
|
```json {filename="config/feature.json",linenos=inline,linenostart=96}
|
||||||
|
"WPFFeatureEnableLegacyRecovery": {
|
||||||
|
"Content": "Legacy F8 Boot Recovery - Enable",
|
||||||
|
"Description": "Enables Advanced Boot Options screen that lets you start Windows in advanced troubleshooting modes.",
|
||||||
|
"category": "Features",
|
||||||
|
"panel": "1",
|
||||||
|
"feature": [],
|
||||||
|
"InvokeScript": [
|
||||||
|
"bcdedit /set bootmenupolicy legacy"
|
||||||
|
],
|
||||||
|
```
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
---
|
||||||
|
title: "Registry Backup (Daily Task 12:30am) - Enable"
|
||||||
|
description: ""
|
||||||
|
---
|
||||||
|
|
||||||
|
```json {filename="config/feature.json",linenos=inline,linenostart=79}
|
||||||
|
"WPFFeatureRegBackup": {
|
||||||
|
"Content": "Registry Backup (Daily Task 12:30am) - Enable",
|
||||||
|
"Description": "Enables daily registry backup, previously disabled by Microsoft in Windows 10 1803.",
|
||||||
|
"category": "Features",
|
||||||
|
"panel": "1",
|
||||||
|
"feature": [],
|
||||||
|
"InvokeScript": [
|
||||||
|
"
|
||||||
|
New-ItemProperty -Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Configuration Manager' -Name 'EnablePeriodicBackup' -Type DWord -Value 1 -Force
|
||||||
|
New-ItemProperty -Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Configuration Manager' -Name 'BackupCount' -Type DWord -Value 2 -Force
|
||||||
|
$action = New-ScheduledTaskAction -Execute 'schtasks' -Argument '/run /i /tn \"\\Microsoft\\Windows\\Registry\\RegIdleBackup\"'
|
||||||
|
$trigger = New-ScheduledTaskTrigger -Daily -At 00:30
|
||||||
|
Register-ScheduledTask -Action $action -Trigger $trigger -TaskName 'AutoRegBackup' -Description 'Create System Registry Backups' -User 'System'
|
||||||
|
"
|
||||||
|
],
|
||||||
|
```
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
---
|
||||||
|
title: "Windows Sandbox - Enable"
|
||||||
|
description: ""
|
||||||
|
---
|
||||||
|
|
||||||
|
```json {filename="config/feature.json",linenos=inline,linenostart=118}
|
||||||
|
"WPFFeaturesSandbox": {
|
||||||
|
"Content": "Windows Sandbox - Enable",
|
||||||
|
"Description": "Windows Sandbox is a lightweight virtual machine that provides a temporary desktop environment to safely run applications and programs in isolation.",
|
||||||
|
"category": "Features",
|
||||||
|
"panel": "1",
|
||||||
|
"feature": [
|
||||||
|
"Containers-DisposableClientVM"
|
||||||
|
],
|
||||||
|
```
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
title: "Features"
|
||||||
|
weight: 1
|
||||||
|
toc: false
|
||||||
|
---
|
||||||
|
|
||||||
|
{{< autolinks section="dev/features/features" >}}
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
---
|
||||||
|
title: ".NET Framework (Versions 2, 3, 4) - Enable"
|
||||||
|
description: ""
|
||||||
|
---
|
||||||
|
|
||||||
|
```json {filename="config/feature.json",linenos=inline,linenostart=2}
|
||||||
|
"WPFFeaturesdotnet": {
|
||||||
|
"Content": ".NET Framework (Versions 2, 3, 4) - Enable",
|
||||||
|
"Description": ".NET and .NET Framework is a developer platform made up of tools, programming languages, and libraries for building many different types of applications.",
|
||||||
|
"category": "Features",
|
||||||
|
"panel": "1",
|
||||||
|
"feature": [
|
||||||
|
"NetFx4-AdvSrvs",
|
||||||
|
"NetFx3"
|
||||||
|
],
|
||||||
|
"InvokeScript": [],
|
||||||
|
```
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
---
|
||||||
|
title: "Hyper-V - Enable"
|
||||||
|
description: ""
|
||||||
|
---
|
||||||
|
|
||||||
|
```json {filename="config/feature.json",linenos=inline,linenostart=24}
|
||||||
|
"WPFFeatureshyperv": {
|
||||||
|
"Content": "Hyper-V - Enable",
|
||||||
|
"Description": "Hyper-V is a hardware virtualization product developed by Microsoft that allows users to create and manage virtual machines.",
|
||||||
|
"category": "Features",
|
||||||
|
"panel": "1",
|
||||||
|
"feature": [
|
||||||
|
"Microsoft-Hyper-V-All"
|
||||||
|
],
|
||||||
|
```
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
---
|
||||||
|
title: "Legacy Media Components (WMP, DirectPlay) - Enable"
|
||||||
|
description: ""
|
||||||
|
---
|
||||||
|
|
||||||
|
```json {filename="config/feature.json",linenos=inline,linenostart=34}
|
||||||
|
"WPFFeatureslegacymedia": {
|
||||||
|
"Content": "Legacy Media Components (WMP, DirectPlay) - Enable",
|
||||||
|
"Description": "Enables legacy programs from previous versions of Windows.",
|
||||||
|
"category": "Features",
|
||||||
|
"panel": "1",
|
||||||
|
"feature": [
|
||||||
|
"WindowsMediaPlayer",
|
||||||
|
"MediaPlayback",
|
||||||
|
"DirectPlay",
|
||||||
|
"LegacyComponents"
|
||||||
|
],
|
||||||
|
"InvokeScript": [],
|
||||||
|
```
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
---
|
||||||
|
title: "Network File System (NFS) - Enable"
|
||||||
|
description: ""
|
||||||
|
---
|
||||||
|
|
||||||
|
```json {filename="config/feature.json",linenos=inline,linenostart=60}
|
||||||
|
"WPFFeaturenfs": {
|
||||||
|
"Content": "Network File System (NFS) - Enable",
|
||||||
|
"Description": "Network File System (NFS) is a mechanism for storing files on a network.",
|
||||||
|
"category": "Features",
|
||||||
|
"panel": "1",
|
||||||
|
"feature": [
|
||||||
|
"ServicesForNFS-ClientOnly",
|
||||||
|
"ClientForNFS-Infrastructure",
|
||||||
|
"NFS-Administration"
|
||||||
|
],
|
||||||
|
"InvokeScript": [
|
||||||
|
"nfsadmin client stop",
|
||||||
|
"Set-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\ClientForNFS\\CurrentVersion\\Default' -Name 'AnonymousUID' -Type DWord -Value 0",
|
||||||
|
"Set-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\ClientForNFS\\CurrentVersion\\Default' -Name 'AnonymousGID' -Type DWord -Value 0",
|
||||||
|
"nfsadmin client start",
|
||||||
|
"nfsadmin client localhost config fileaccess=755 SecFlavors=+sys -krb5 -krb5i"
|
||||||
|
],
|
||||||
|
```
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
---
|
||||||
|
title: "Windows Subsystem for Linux (WSL) - Enable"
|
||||||
|
description: ""
|
||||||
|
---
|
||||||
|
|
||||||
|
```json {filename="config/feature.json",linenos=inline,linenostart=48}
|
||||||
|
"WPFFeaturewsl": {
|
||||||
|
"Content": "Windows Subsystem for Linux (WSL) - Enable",
|
||||||
|
"Description": "Windows Subsystem for Linux is an optional feature of Windows that allows Linux programs to run natively on Windows without the need for a separate virtual machine or dual booting.",
|
||||||
|
"category": "Features",
|
||||||
|
"panel": "1",
|
||||||
|
"feature": [
|
||||||
|
"VirtualMachinePlatform",
|
||||||
|
"Microsoft-Windows-Subsystem-Linux"
|
||||||
|
],
|
||||||
|
"InvokeScript": [],
|
||||||
|
```
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
---
|
||||||
|
title: "AutoLogon - Run"
|
||||||
|
description: ""
|
||||||
|
---
|
||||||
|
|
||||||
|
```powershell {filename="functions/public/Invoke-WPFPanelAutologin.ps1",linenos=inline,linenostart=1}
|
||||||
|
function Invoke-WPFPanelAutologin {
|
||||||
|
Invoke-WebRequest -Uri https://live.sysinternals.com/Autologon.exe -OutFile "$Env:Temp\autologin.exe"
|
||||||
|
Start-Process -FilePath "$Env:Temp\autologin.exe" -ArgumentList /accepteula
|
||||||
|
}
|
||||||
|
```
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
---
|
||||||
|
title: "System Corruption Scan - Run"
|
||||||
|
description: ""
|
||||||
|
---
|
||||||
|
|
||||||
|
```powershell {filename="functions/public/Invoke-WPFSystemRepair.ps1",linenos=inline,linenostart=1}
|
||||||
|
function Invoke-WPFSystemRepair {
|
||||||
|
<#
|
||||||
|
.SYNOPSIS
|
||||||
|
Checks for system corruption using SFC, and DISM
|
||||||
|
Checks for disk failure using Chkdsk
|
||||||
|
|
||||||
|
.DESCRIPTION
|
||||||
|
1. Chkdsk - Checks for disk errors, which can cause system file corruption and notifies of early disk failure
|
||||||
|
2. SFC - scans protected system files for corruption and fixes them
|
||||||
|
3. DISM - Repair a corrupted Windows operating system image
|
||||||
|
#>
|
||||||
|
|
||||||
|
Start-Process cmd.exe -ArgumentList "/c chkdsk /scan /perf" -NoNewWindow -Wait
|
||||||
|
Start-Process cmd.exe -ArgumentList "/c sfc /scannow" -NoNewWindow -Wait
|
||||||
|
Start-Process cmd.exe -ArgumentList "/c dism /online /cleanup-image /restorehealth" -NoNewWindow -Wait
|
||||||
|
|
||||||
|
Write-Host "==> Finished System Repair"
|
||||||
|
Set-WinUtilTaskbaritem -state "None" -overlay "checkmark"
|
||||||
|
}
|
||||||
|
```
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
---
|
||||||
|
title: "NTP Server - Enable"
|
||||||
|
description: ""
|
||||||
|
---
|
||||||
|
|
||||||
|
```powershell {filename="functions/public/Invoke-WPFFixesNTPPool.ps1",linenos=inline,linenostart=1}
|
||||||
|
function Invoke-WPFFixesNTPPool {
|
||||||
|
<#
|
||||||
|
.SYNOPSIS
|
||||||
|
Configures Windows to use pool.ntp.org for NTP synchronization
|
||||||
|
|
||||||
|
.DESCRIPTION
|
||||||
|
Replaces the default Windows NTP server (time.windows.com) with
|
||||||
|
pool.ntp.org for improved time synchronization accuracy and reliability.
|
||||||
|
#>
|
||||||
|
|
||||||
|
Start-Service w32time
|
||||||
|
w32tm /config /update /manualpeerlist:"pool.ntp.org,0x8" /syncfromflags:MANUAL
|
||||||
|
|
||||||
|
Restart-Service w32time
|
||||||
|
w32tm /resync
|
||||||
|
|
||||||
|
Write-Host "================================="
|
||||||
|
Write-Host "-- NTP Configuration Complete ---"
|
||||||
|
Write-Host "================================="
|
||||||
|
}
|
||||||
|
```
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
---
|
||||||
|
title: "Network - Reset"
|
||||||
|
description: ""
|
||||||
|
---
|
||||||
|
|
||||||
|
```powershell {filename="functions/public/Invoke-WPFFixesNetwork.ps1",linenos=inline,linenostart=1}
|
||||||
|
function Invoke-WPFFixesNetwork {
|
||||||
|
netsh winsock reset
|
||||||
|
netsh int ip reset
|
||||||
|
Write-Host "Network Configuration has been Reset Please restart your computer."
|
||||||
|
}
|
||||||
|
```
|
||||||
@@ -1,36 +1,9 @@
|
|||||||
# Reset Windows Update
|
---
|
||||||
|
title: "Windows Update - Reset"
|
||||||
|
description: ""
|
||||||
|
---
|
||||||
|
|
||||||
Last Updated: 2024-08-07
|
```powershell {filename="functions/public/Invoke-WPFFixesUpdate.ps1",linenos=inline,linenostart=1}
|
||||||
|
|
||||||
|
|
||||||
!!! 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.**
|
|
||||||
|
|
||||||
|
|
||||||
<!-- BEGIN CUSTOM CONTENT -->
|
|
||||||
|
|
||||||
<!-- END CUSTOM CONTENT -->
|
|
||||||
|
|
||||||
<details>
|
|
||||||
<summary>Preview Code</summary>
|
|
||||||
|
|
||||||
```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"
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
</details>
|
|
||||||
|
|
||||||
## Function: Invoke-WPFFixesUpdate
|
|
||||||
|
|
||||||
```powershell
|
|
||||||
function Invoke-WPFFixesUpdate {
|
function Invoke-WPFFixesUpdate {
|
||||||
|
|
||||||
<#
|
<#
|
||||||
@@ -39,19 +12,7 @@ function Invoke-WPFFixesUpdate {
|
|||||||
Performs various tasks in an attempt to repair Windows Update
|
Performs various tasks in an attempt to repair Windows Update
|
||||||
|
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
1. (Aggressive Only) Scans the system for corruption using chkdsk, SFC, and DISM
|
1. (Aggressive Only) Scans the system for corruption using the Invoke-WPFSystemRepair function
|
||||||
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
|
2. Stops Windows Update Services
|
||||||
3. Remove the QMGR Data file, which stores BITS jobs
|
3. Remove the QMGR Data file, which stores BITS jobs
|
||||||
4. (Aggressive Only) Renames the DataStore and CatRoot2 folders
|
4. (Aggressive Only) Renames the DataStore and CatRoot2 folders
|
||||||
@@ -75,108 +36,13 @@ function Invoke-WPFFixesUpdate {
|
|||||||
param($Aggressive = $false)
|
param($Aggressive = $false)
|
||||||
|
|
||||||
Write-Progress -Id 0 -Activity "Repairing Windows Update" -PercentComplete 0
|
Write-Progress -Id 0 -Activity "Repairing Windows Update" -PercentComplete 0
|
||||||
|
Set-WinUtilTaskbaritem -state "Indeterminate" -overlay "logo"
|
||||||
|
Write-Host "Starting Windows Update Repair..."
|
||||||
# Wait for the first progress bar to show, otherwise the second one won't show
|
# Wait for the first progress bar to show, otherwise the second one won't show
|
||||||
Start-Sleep -Milliseconds 200
|
Start-Sleep -Milliseconds 200
|
||||||
|
|
||||||
if ($Aggressive) {
|
if ($Aggressive) {
|
||||||
# Scan system for corruption
|
Invoke-WPFSystemRepair
|
||||||
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
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -220,9 +86,9 @@ function Invoke-WPFFixesUpdate {
|
|||||||
# Reset the Security Descriptors on the Windows Update Services
|
# 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 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
|
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)"
|
Start-Process -NoNewWindow -FilePath "sc.exe" -ArgumentList "sdset", "bits", "D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)" -Wait
|
||||||
Write-Progress -Id 4 -ParentId 0 -Activity "Resetting the WU Service Security Descriptors" -Status "Resetting the wuauserv Security Descriptor..." -PercentComplete 50
|
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)"
|
Start-Process -NoNewWindow -FilePath "sc.exe" -ArgumentList "sdset", "wuauserv", "D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)" -Wait
|
||||||
Write-Progress -Id 4 -ParentId 0 -Activity "Resetting the WU Service Security Descriptors" -Status "Completed" -PercentComplete 100
|
Write-Progress -Id 4 -ParentId 0 -Activity "Resetting the WU Service Security Descriptors" -Status "Completed" -PercentComplete 100
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -254,19 +120,53 @@ function Invoke-WPFFixesUpdate {
|
|||||||
if (Test-Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate") {
|
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 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
|
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", "AccountDomainSid", "/f" -RedirectStandardError "NUL"
|
||||||
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", "PingID", "/f" -RedirectStandardError "NUL"
|
||||||
Start-Process -NoNewWindow -FilePath "REG" -ArgumentList "DELETE", "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate", "/v", "SusClientId", "/f" -RedirectStandardError $true
|
Start-Process -NoNewWindow -FilePath "REG" -ArgumentList "DELETE", "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate", "/v", "SusClientId", "/f" -RedirectStandardError "NUL"
|
||||||
Write-Progress -Id 6 -ParentId 0 -Activity "Removing WSUS client settings" -Status "Completed" -PercentComplete 100
|
Write-Progress -Id 6 -ParentId 0 -Activity "Removing WSUS client settings" -Status "Completed" -PercentComplete 100
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Remove Group Policy Windows Update settings
|
||||||
|
Write-Progress -Id 0 -Activity "Repairing Windows Update" -Status "Removing Group Policy Windows Update settings..." -PercentComplete 60
|
||||||
|
Write-Progress -Id 7 -ParentId 0 -Activity "Removing Group Policy Windows Update settings" -PercentComplete 0
|
||||||
|
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" -Name "ExcludeWUDriversInQualityUpdate" -ErrorAction SilentlyContinue
|
||||||
|
Write-Host "Defaulting driver offering through Windows Update..."
|
||||||
|
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Device Metadata" -Name "PreventDeviceMetadataFromNetwork" -ErrorAction SilentlyContinue
|
||||||
|
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DriverSearching" -Name "DontPromptForWindowsUpdate" -ErrorAction SilentlyContinue
|
||||||
|
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DriverSearching" -Name "DontSearchWindowsUpdate" -ErrorAction SilentlyContinue
|
||||||
|
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DriverSearching" -Name "DriverUpdateWizardWuSearchEnabled" -ErrorAction SilentlyContinue
|
||||||
|
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" -Name "ExcludeWUDriversInQualityUpdate" -ErrorAction SilentlyContinue
|
||||||
|
Write-Host "Defaulting Windows Update automatic restart..."
|
||||||
|
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name "NoAutoRebootWithLoggedOnUsers" -ErrorAction SilentlyContinue
|
||||||
|
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name "AUPowerManagement" -ErrorAction SilentlyContinue
|
||||||
|
Write-Host "Clearing ANY Windows Update Policy settings..."
|
||||||
|
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" -Name "BranchReadinessLevel" -ErrorAction SilentlyContinue
|
||||||
|
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" -Name "DeferFeatureUpdatesPeriodInDays" -ErrorAction SilentlyContinue
|
||||||
|
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" -Name "DeferQualityUpdatesPeriodInDays" -ErrorAction SilentlyContinue
|
||||||
|
Remove-Item -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies" -Recurse -Force -ErrorAction SilentlyContinue
|
||||||
|
Remove-Item -Path "HKCU:\Software\Microsoft\WindowsSelfHost" -Recurse -Force -ErrorAction SilentlyContinue
|
||||||
|
Remove-Item -Path "HKCU:\Software\Policies" -Recurse -Force -ErrorAction SilentlyContinue
|
||||||
|
Remove-Item -Path "HKLM:\Software\Microsoft\Policies" -Recurse -Force -ErrorAction SilentlyContinue
|
||||||
|
Remove-Item -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies" -Recurse -Force -ErrorAction SilentlyContinue
|
||||||
|
Remove-Item -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\WindowsStore\WindowsUpdate" -Recurse -Force -ErrorAction SilentlyContinue
|
||||||
|
Remove-Item -Path "HKLM:\Software\Microsoft\WindowsSelfHost" -Recurse -Force -ErrorAction SilentlyContinue
|
||||||
|
Remove-Item -Path "HKLM:\Software\Policies" -Recurse -Force -ErrorAction SilentlyContinue
|
||||||
|
Remove-Item -Path "HKLM:\Software\WOW6432Node\Microsoft\Policies" -Recurse -Force -ErrorAction SilentlyContinue
|
||||||
|
Remove-Item -Path "HKLM:\Software\WOW6432Node\Microsoft\Windows\CurrentVersion\Policies" -Recurse -Force -ErrorAction SilentlyContinue
|
||||||
|
Remove-Item -Path "HKLM:\Software\WOW6432Node\Microsoft\Windows\CurrentVersion\WindowsStore\WindowsUpdate" -Recurse -Force -ErrorAction SilentlyContinue
|
||||||
|
Start-Process -NoNewWindow -FilePath "secedit" -ArgumentList "/configure", "/cfg", "$env:windir\inf\defltbase.inf", "/db", "defltbase.sdb", "/verbose" -Wait
|
||||||
|
Start-Process -NoNewWindow -FilePath "cmd.exe" -ArgumentList "/c RD /S /Q $env:WinDir\System32\GroupPolicyUsers" -Wait
|
||||||
|
Start-Process -NoNewWindow -FilePath "cmd.exe" -ArgumentList "/c RD /S /Q $env:WinDir\System32\GroupPolicy" -Wait
|
||||||
|
Start-Process -NoNewWindow -FilePath "gpupdate" -ArgumentList "/force" -Wait
|
||||||
|
Write-Progress -Id 7 -ParentId 0 -Activity "Removing Group Policy Windows Update settings" -Status "Completed" -PercentComplete 100
|
||||||
|
|
||||||
|
|
||||||
# Reset WinSock
|
# Reset WinSock
|
||||||
Write-Progress -Id 0 -Activity "Repairing Windows Update" -Status "Resetting WinSock..." -PercentComplete 65
|
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
|
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 "winsock", "reset"
|
||||||
Start-Process -NoNewWindow -FilePath "netsh" -ArgumentList "winhttp", "reset", "proxy" -RedirectStandardOutput $true
|
Start-Process -NoNewWindow -FilePath "netsh" -ArgumentList "winhttp", "reset", "proxy"
|
||||||
Start-Process -NoNewWindow -FilePath "netsh" -ArgumentList "int", "ip", "reset" -RedirectStandardOutput $true
|
Start-Process -NoNewWindow -FilePath "netsh" -ArgumentList "int", "ip", "reset"
|
||||||
Write-Progress -Id 7 -ParentId 0 -Activity "Resetting WinSock" -Status "Completed" -PercentComplete 100
|
Write-Progress -Id 7 -ParentId 0 -Activity "Resetting WinSock" -Status "Completed" -PercentComplete 100
|
||||||
|
|
||||||
|
|
||||||
@@ -295,11 +195,18 @@ function Invoke-WPFFixesUpdate {
|
|||||||
# Force Windows Update to check for updates
|
# Force Windows Update to check for updates
|
||||||
Write-Progress -Id 0 -Activity "Repairing Windows Update" -Status "Forcing discovery..." -PercentComplete 95
|
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
|
Write-Progress -Id 10 -ParentId 0 -Activity "Forcing discovery" -Status "Forcing discovery..." -PercentComplete 0
|
||||||
(New-Object -ComObject Microsoft.Update.AutoUpdate).DetectNow()
|
try {
|
||||||
|
(New-Object -ComObject Microsoft.Update.AutoUpdate).DetectNow()
|
||||||
|
} catch {
|
||||||
|
Set-WinUtilTaskbaritem -state "Error" -overlay "warning"
|
||||||
|
Write-Warning "Failed to create Windows Update COM object: $_"
|
||||||
|
}
|
||||||
Start-Process -NoNewWindow -FilePath "wuauclt" -ArgumentList "/resetauthorization", "/detectnow"
|
Start-Process -NoNewWindow -FilePath "wuauclt" -ArgumentList "/resetauthorization", "/detectnow"
|
||||||
Write-Progress -Id 10 -ParentId 0 -Activity "Forcing discovery" -Status "Completed" -PercentComplete 100
|
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
|
Write-Progress -Id 0 -Activity "Repairing Windows Update" -Status "Completed" -PercentComplete 100
|
||||||
|
|
||||||
|
Set-WinUtilTaskbaritem -state "None" -overlay "checkmark"
|
||||||
|
|
||||||
$ButtonType = [System.Windows.MessageBoxButton]::OK
|
$ButtonType = [System.Windows.MessageBoxButton]::OK
|
||||||
$MessageboxTitle = "Reset Windows Update "
|
$MessageboxTitle = "Reset Windows Update "
|
||||||
$Messageboxbody = ("Stock settings loaded.`n Please reboot your computer")
|
$Messageboxbody = ("Stock settings loaded.`n Please reboot your computer")
|
||||||
@@ -317,20 +224,10 @@ function Invoke-WPFFixesUpdate {
|
|||||||
Write-Progress -Id 3 -Activity "Renaming/Removing Files" -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 4 -Activity "Resetting the WU Service Security Descriptors" -Completed
|
||||||
Write-Progress -Id 5 -Activity "Reregistering DLLs" -Completed
|
Write-Progress -Id 5 -Activity "Reregistering DLLs" -Completed
|
||||||
Write-Progress -Id 6 -Activity "Removing WSUS client settings" -Completed
|
Write-Progress -Id 6 -Activity "Removing Group Policy Windows Update settings" -Completed
|
||||||
Write-Progress -Id 7 -Activity "Resetting WinSock" -Completed
|
Write-Progress -Id 7 -Activity "Resetting WinSock" -Completed
|
||||||
Write-Progress -Id 8 -Activity "Deleting BITS jobs" -Completed
|
Write-Progress -Id 8 -Activity "Deleting BITS jobs" -Completed
|
||||||
Write-Progress -Id 9 -Activity "Starting Windows Update Services" -Completed
|
Write-Progress -Id 9 -Activity "Starting Windows Update Services" -Completed
|
||||||
Write-Progress -Id 10 -Activity "Forcing discovery" -Completed
|
Write-Progress -Id 10 -Activity "Forcing discovery" -Completed
|
||||||
}
|
}
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
<!-- BEGIN SECOND CUSTOM CONTENT -->
|
|
||||||
|
|
||||||
<!-- END SECOND CUSTOM CONTENT -->
|
|
||||||
|
|
||||||
|
|
||||||
[View the JSON file](https://github.com/ChrisTitusTech/winutil/tree/main/config/feature.json)
|
|
||||||
|
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
---
|
||||||
|
title: "WinGet - Reinstall"
|
||||||
|
description: ""
|
||||||
|
---
|
||||||
|
|
||||||
|
```powershell {filename="functions/public/Invoke-WPFFixesWinget.ps1",linenos=inline,linenostart=1}
|
||||||
|
function Invoke-WPFFixesWinget {
|
||||||
|
|
||||||
|
<#
|
||||||
|
|
||||||
|
.SYNOPSIS
|
||||||
|
Fixes WinGet by running `choco install winget`
|
||||||
|
.DESCRIPTION
|
||||||
|
BravoNorris for the fantastic idea of a button to reinstall WinGet
|
||||||
|
#>
|
||||||
|
# Install Choco if not already present
|
||||||
|
try {
|
||||||
|
Set-WinUtilTaskbaritem -state "Indeterminate" -overlay "logo"
|
||||||
|
Write-Host "==> Starting WinGet Repair"
|
||||||
|
Install-WinUtilWinget
|
||||||
|
} catch {
|
||||||
|
Write-Error "Failed to install WinGet: $_"
|
||||||
|
Set-WinUtilTaskbaritem -state "Error" -overlay "warning"
|
||||||
|
} finally {
|
||||||
|
Write-Host "==> Finished WinGet Repair"
|
||||||
|
Set-WinUtilTaskbaritem -state "None" -overlay "checkmark"
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
```
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
title: "Fixes"
|
||||||
|
weight: 2
|
||||||
|
toc: false
|
||||||
|
---
|
||||||
|
|
||||||
|
{{< autolinks section="dev/features/fixes" >}}
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
---
|
||||||
|
title: "Computer Management"
|
||||||
|
description: ""
|
||||||
|
---
|
||||||
|
|
||||||
|
```json {filename="config/feature.json",linenos=inline,linenostart=193}
|
||||||
|
"WPFPanelComputer": {
|
||||||
|
"Content": "Computer Management",
|
||||||
|
"category": "Legacy Windows Panels",
|
||||||
|
"panel": "2",
|
||||||
|
"Type": "Button",
|
||||||
|
"ButtonWidth": "300",
|
||||||
|
"InvokeScript": [
|
||||||
|
"compmgmt.msc"
|
||||||
|
],
|
||||||
|
```
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
---
|
||||||
|
title: "Control Panel"
|
||||||
|
description: ""
|
||||||
|
---
|
||||||
|
|
||||||
|
```json {filename="config/feature.json",linenos=inline,linenostart=182}
|
||||||
|
"WPFPanelControl": {
|
||||||
|
"Content": "Control Panel",
|
||||||
|
"category": "Legacy Windows Panels",
|
||||||
|
"panel": "2",
|
||||||
|
"Type": "Button",
|
||||||
|
"ButtonWidth": "300",
|
||||||
|
"InvokeScript": [
|
||||||
|
"control"
|
||||||
|
],
|
||||||
|
```
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
---
|
||||||
|
title: "Network Connections"
|
||||||
|
description: ""
|
||||||
|
---
|
||||||
|
|
||||||
|
```json {filename="config/feature.json",linenos=inline,linenostart=204}
|
||||||
|
"WPFPanelNetwork": {
|
||||||
|
"Content": "Network Connections",
|
||||||
|
"category": "Legacy Windows Panels",
|
||||||
|
"panel": "2",
|
||||||
|
"Type": "Button",
|
||||||
|
"ButtonWidth": "300",
|
||||||
|
"InvokeScript": [
|
||||||
|
"ncpa.cpl"
|
||||||
|
],
|
||||||
|
```
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
---
|
||||||
|
title: "Power Panel"
|
||||||
|
description: ""
|
||||||
|
---
|
||||||
|
|
||||||
|
```json {filename="config/feature.json",linenos=inline,linenostart=215}
|
||||||
|
"WPFPanelPower": {
|
||||||
|
"Content": "Power Panel",
|
||||||
|
"category": "Legacy Windows Panels",
|
||||||
|
"panel": "2",
|
||||||
|
"Type": "Button",
|
||||||
|
"ButtonWidth": "300",
|
||||||
|
"InvokeScript": [
|
||||||
|
"powercfg.cpl"
|
||||||
|
],
|
||||||
|
```
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
---
|
||||||
|
title: "Printer Panel"
|
||||||
|
description: ""
|
||||||
|
---
|
||||||
|
|
||||||
|
```json {filename="config/feature.json",linenos=inline,linenostart=226}
|
||||||
|
"WPFPanelPrinter": {
|
||||||
|
"Content": "Printer Panel",
|
||||||
|
"category": "Legacy Windows Panels",
|
||||||
|
"panel": "2",
|
||||||
|
"Type": "Button",
|
||||||
|
"ButtonWidth": "300",
|
||||||
|
"InvokeScript": [
|
||||||
|
"Start-Process 'shell:::{A8A91A66-3A7D-4424-8D24-04E180695C7A}'"
|
||||||
|
],
|
||||||
|
```
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
---
|
||||||
|
title: "Region"
|
||||||
|
description: ""
|
||||||
|
---
|
||||||
|
|
||||||
|
```json {filename="config/feature.json",linenos=inline,linenostart=237}
|
||||||
|
"WPFPanelRegion": {
|
||||||
|
"Content": "Region",
|
||||||
|
"category": "Legacy Windows Panels",
|
||||||
|
"panel": "2",
|
||||||
|
"Type": "Button",
|
||||||
|
"ButtonWidth": "300",
|
||||||
|
"InvokeScript": [
|
||||||
|
"intl.cpl"
|
||||||
|
],
|
||||||
|
```
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
---
|
||||||
|
title: "Windows Restore"
|
||||||
|
description: ""
|
||||||
|
---
|
||||||
|
|
||||||
|
```json {filename="config/feature.json",linenos=inline,linenostart=248}
|
||||||
|
"WPFPanelRestore": {
|
||||||
|
"Content": "Windows Restore",
|
||||||
|
"category": "Legacy Windows Panels",
|
||||||
|
"panel": "2",
|
||||||
|
"Type": "Button",
|
||||||
|
"ButtonWidth": "300",
|
||||||
|
"InvokeScript": [
|
||||||
|
"rstrui.exe"
|
||||||
|
],
|
||||||
|
```
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
---
|
||||||
|
title: "Sound Settings"
|
||||||
|
description: ""
|
||||||
|
---
|
||||||
|
|
||||||
|
```json {filename="config/feature.json",linenos=inline,linenostart=259}
|
||||||
|
"WPFPanelSound": {
|
||||||
|
"Content": "Sound Settings",
|
||||||
|
"category": "Legacy Windows Panels",
|
||||||
|
"panel": "2",
|
||||||
|
"Type": "Button",
|
||||||
|
"ButtonWidth": "300",
|
||||||
|
"InvokeScript": [
|
||||||
|
"mmsys.cpl"
|
||||||
|
],
|
||||||
|
```
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
---
|
||||||
|
title: "System Properties"
|
||||||
|
description: ""
|
||||||
|
---
|
||||||
|
|
||||||
|
```json {filename="config/feature.json",linenos=inline,linenostart=270}
|
||||||
|
"WPFPanelSystem": {
|
||||||
|
"Content": "System Properties",
|
||||||
|
"category": "Legacy Windows Panels",
|
||||||
|
"panel": "2",
|
||||||
|
"Type": "Button",
|
||||||
|
"ButtonWidth": "300",
|
||||||
|
"InvokeScript": [
|
||||||
|
"sysdm.cpl"
|
||||||
|
],
|
||||||
|
```
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
---
|
||||||
|
title: "Time and Date"
|
||||||
|
description: ""
|
||||||
|
---
|
||||||
|
|
||||||
|
```json {filename="config/feature.json",linenos=inline,linenostart=281}
|
||||||
|
"WPFPanelTimedate": {
|
||||||
|
"Content": "Time and Date",
|
||||||
|
"category": "Legacy Windows Panels",
|
||||||
|
"panel": "2",
|
||||||
|
"Type": "Button",
|
||||||
|
"ButtonWidth": "300",
|
||||||
|
"InvokeScript": [
|
||||||
|
"timedate.cpl"
|
||||||
|
],
|
||||||
|
```
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
title: "Legacy Windows Panels"
|
||||||
|
weight: 3
|
||||||
|
toc: false
|
||||||
|
---
|
||||||
|
|
||||||
|
{{< autolinks section="dev/features/legacy-windows-panels" >}}
|
||||||