Compare commits
851 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
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 | ||
|
|
52de4690ab | ||
|
|
ef97a8da24 | ||
|
|
18a7f17a0b | ||
|
|
5a8cf5deb6 | ||
|
|
e4b2a38372 | ||
|
|
94c5d89430 | ||
|
|
8a0e0c7715 | ||
|
|
1ae16f6f38 | ||
|
|
6038556e64 | ||
|
|
329a3de9a6 | ||
|
|
f6e5d0e053 | ||
|
|
364076c25e | ||
|
|
a051e64a91 | ||
|
|
dccda61ab4 | ||
|
|
048f580a56 | ||
|
|
bfb83ced79 | ||
|
|
e2b37445f6 | ||
|
|
c2fb98b0dc | ||
|
|
cf8787a700 | ||
|
|
53b723fa11 | ||
|
|
32cb94f392 | ||
|
|
5550e40270 | ||
|
|
bcecf67c7d | ||
|
|
3b50ff813c | ||
|
|
eba5b35978 | ||
|
|
254738a420 | ||
|
|
bcc801683d | ||
|
|
72c23823b2 | ||
|
|
4e1ce7e417 | ||
|
|
1dd0367417 | ||
|
|
201f24c76e | ||
|
|
9183e92692 | ||
|
|
fa9dbcace4 | ||
|
|
02f0f85c25 | ||
|
|
83ae0579ba | ||
|
|
5ebcacf404 | ||
|
|
28bea518f0 | ||
|
|
61c2e39ddb | ||
|
|
0dfa9617fc | ||
|
|
2ce4f54b80 | ||
|
|
a05556a896 | ||
|
|
985d415db1 | ||
|
|
f4d4bdad3c | ||
|
|
9d47514190 | ||
|
|
4fc34e44b3 | ||
|
|
c33946bde2 | ||
|
|
4466720493 | ||
|
|
1d0e3bfd5c | ||
|
|
83450aef7b | ||
|
|
e2ce998426 | ||
|
|
cf7f161a06 | ||
|
|
d6c1fbe4a2 | ||
|
|
0779dd9096 | ||
|
|
d48f212be4 | ||
|
|
9c52f01204 | ||
|
|
d49b21f881 | ||
|
|
39ee4d53c0 | ||
|
|
6e708bfe95 | ||
|
|
e2b9586b0d | ||
|
|
c418fe9030 | ||
|
|
d619ee7e85 | ||
|
|
bbc18b2d4b | ||
|
|
9778c0d572 | ||
|
|
8087a607fc | ||
|
|
e5b79559bd | ||
|
|
66e6aa7e96 | ||
|
|
def47fe018 | ||
|
|
b382f16ae8 | ||
|
|
171441ddcf | ||
|
|
7a0c40420e | ||
|
|
0f0d9d0ae3 | ||
|
|
6149738e6c | ||
|
|
aa0b03feda | ||
|
|
e0889d51db | ||
|
|
ce1ef2a519 | ||
|
|
77cb0a14c4 | ||
|
|
c254a43f77 | ||
|
|
640d2ca107 | ||
|
|
c186642998 | ||
|
|
47a4f1547e | ||
|
|
1caf3111d3 | ||
|
|
7dcdc4dbb7 | ||
|
|
bfaba14191 | ||
|
|
5640f9d04c | ||
|
|
c6a832b006 | ||
|
|
fe19094395 | ||
|
|
fdd32f441f | ||
|
|
e4565f1f6f | ||
|
|
1404efab26 | ||
|
|
1deb863f40 | ||
|
|
de73efa868 | ||
|
|
59097fc7e1 | ||
|
|
207ce43428 | ||
|
|
d92284ec83 | ||
|
|
d855b08119 | ||
|
|
0deac4ebb2 | ||
|
|
c6fcf21dce | ||
|
|
64ed00c2db | ||
|
|
e165388117 | ||
|
|
806cbd021a | ||
|
|
869071783c | ||
|
|
ae74965548 | ||
|
|
b43d31088c | ||
|
|
4fa1b0ddc7 | ||
|
|
f012064574 | ||
|
|
db26666f97 | ||
|
|
38cf922572 | ||
|
|
dd337be45e | ||
|
|
3670c78789 | ||
|
|
225e774f1e | ||
|
|
0703935bfb | ||
|
|
fd2ac35228 | ||
|
|
f516c09ab3 | ||
|
|
182fe09b64 | ||
|
|
02751c706d | ||
|
|
102231c0e3 | ||
|
|
b9d7619f9b | ||
|
|
4e39096b51 | ||
|
|
662139ca5f | ||
|
|
42febae25e | ||
|
|
395ac9495d | ||
|
|
6cc7d314fe | ||
|
|
ba45c3303e | ||
|
|
1f683d3f78 | ||
|
|
18dff2af5e | ||
|
|
377758758e | ||
|
|
3f2759f967 | ||
|
|
1ee7274bdb | ||
|
|
06baebc60b | ||
|
|
10917c159c | ||
|
|
0251757fc0 | ||
|
|
9136ed9802 | ||
|
|
b3bbe0dbe5 | ||
|
|
16b11e994b | ||
|
|
a5a06c2a9b | ||
|
|
81aead7a68 | ||
|
|
a55a44a54c | ||
|
|
9c0b0b8913 | ||
|
|
7fe0f9a163 | ||
|
|
8e5fcceddb | ||
|
|
19a3c7070a | ||
|
|
343a72f528 | ||
|
|
0b13ca4b11 | ||
|
|
215de06a58 | ||
|
|
80555d945e | ||
|
|
314588283a | ||
|
|
00668755c9 | ||
|
|
d3ef94f175 | ||
|
|
1ac24c236e | ||
|
|
ff363d686f | ||
|
|
9abe11c975 | ||
|
|
14d20cd161 | ||
|
|
2b9b1b026c | ||
|
|
e9a45a002f | ||
|
|
6d996495a3 | ||
|
|
473f04ddc5 | ||
|
|
95db85f791 | ||
|
|
5059b93cd7 | ||
|
|
380e1e73a6 | ||
|
|
ad37371492 | ||
|
|
1bfd8bddcc | ||
|
|
6ad31edef1 | ||
|
|
c1009c3d7c | ||
|
|
885108df7e | ||
|
|
b21bc35443 | ||
|
|
e2d539048d | ||
|
|
588008612d | ||
|
|
859a733740 | ||
|
|
3bb1881254 | ||
|
|
8b37420eec | ||
|
|
af7528a60b | ||
|
|
0c6b2adb91 | ||
|
|
0635145896 | ||
|
|
2d751f4e8c | ||
|
|
9b9d0c58f5 | ||
|
|
531cb4c63c | ||
|
|
42bda0dc47 | ||
|
|
3414a3eee1 | ||
|
|
a4302742b3 | ||
|
|
2a0d121cf0 | ||
|
|
a397f20ac6 | ||
|
|
bddf57bcee | ||
|
|
2b3f1a811d | ||
|
|
2af864f7ab | ||
|
|
2b8592a50a | ||
|
|
aad0356c28 | ||
|
|
01515db90f | ||
|
|
2ba5572b6c | ||
|
|
7e1c593510 | ||
|
|
b6141808af | ||
|
|
a21845327b | ||
|
|
2a355c00c8 | ||
|
|
2d3dbe4f6a | ||
|
|
d315963693 | ||
|
|
6c82adbdc9 | ||
|
|
c1dd88d84a | ||
|
|
b67ec35cbb | ||
|
|
c45f36d58f | ||
|
|
1fc79bccf2 | ||
|
|
2b7d0b6c4b | ||
|
|
42061faa81 | ||
|
|
889ec8f57d | ||
|
|
be6b5b3aa0 | ||
|
|
90ddfb02a4 | ||
|
|
ece57f8ee2 | ||
|
|
6a99be9e05 | ||
|
|
488cd8dd98 | ||
|
|
7eed393902 | ||
|
|
97876348d9 | ||
|
|
f8db21bbee | ||
|
|
3697be1be4 | ||
|
|
51068d9670 | ||
|
|
46f827fe2f | ||
|
|
f6b238ec30 | ||
|
|
cc157f6976 | ||
|
|
9ae5092e29 | ||
|
|
c741e006eb | ||
|
|
322d527a0c | ||
|
|
99aff2aefc | ||
|
|
cfb9edbce7 | ||
|
|
bcfbce66fd | ||
|
|
2748767a47 | ||
|
|
83fe6c5b12 | ||
|
|
2ea708eeb0 | ||
|
|
11d3c66fc0 | ||
|
|
3dd51a6c3c | ||
|
|
307980a7ef | ||
|
|
93c96fafd2 | ||
|
|
4d2ea15e19 | ||
|
|
b0d54e41ad | ||
|
|
d0fa506e4f | ||
|
|
67be99bb7b | ||
|
|
46d9e2c437 | ||
|
|
863dd83faa | ||
|
|
09eb4eaa00 | ||
|
|
17d523d8f8 | ||
|
|
fa17abdd49 | ||
|
|
8fd08f7ac5 | ||
|
|
6c3539edbe | ||
|
|
ed1cdf0233 | ||
|
|
a046bcd6a2 | ||
|
|
bf518522f8 | ||
|
|
35dfd847ab | ||
|
|
0e85f20680 | ||
|
|
bdfc4c076c | ||
|
|
8c4dc82d31 | ||
|
|
e90156adb9 | ||
|
|
5d7d121e1f | ||
|
|
0919e78693 | ||
|
|
41ac93d09a | ||
|
|
5994105fba | ||
|
|
0bce9e2647 | ||
|
|
723e1a132d | ||
|
|
5acbfbd253 | ||
|
|
1945fe288d | ||
|
|
6ff815eed3 | ||
|
|
138c5de5d3 | ||
|
|
c619d02724 | ||
|
|
a0d15f1584 | ||
|
|
c5f29df2b2 | ||
|
|
11333a1f17 | ||
|
|
ff4398e45c | ||
|
|
7841f4bbce | ||
|
|
5b993adba9 | ||
|
|
73d42dee20 | ||
|
|
ee0a2818b6 | ||
|
|
9a1fbd77a7 | ||
|
|
5e3c6ba452 | ||
|
|
478aa4ac7b | ||
|
|
123d78116b | ||
|
|
a2d9f47ea6 | ||
|
|
da824d58a7 | ||
|
|
f38f534850 | ||
|
|
04c84dce45 | ||
|
|
3903eaaa24 | ||
|
|
3b2af3fa2b | ||
|
|
c979dae926 | ||
|
|
a5a8f3ff6f | ||
|
|
31aedcf684 | ||
|
|
ab6898aebc | ||
|
|
68437c2406 | ||
|
|
7c214666b8 | ||
|
|
9284741cd3 | ||
|
|
97e517a9dd | ||
|
|
97f67fa4b2 | ||
|
|
a77ef020fe | ||
|
|
2b01fb739f | ||
|
|
f3df13a4ca | ||
|
|
33d5d55b15 | ||
|
|
0bea5f8ceb | ||
|
|
de8a79df22 | ||
|
|
1c9cef0079 | ||
|
|
49100e1dd6 | ||
|
|
547e433b0b | ||
|
|
4ee41cf198 | ||
|
|
c2addcfedf | ||
|
|
09575b0f8d | ||
|
|
5a89053534 | ||
|
|
1350013b3e | ||
|
|
80675b4c3f | ||
|
|
2a530d0c12 | ||
|
|
fb1a0b919c | ||
|
|
83bcf246f6 | ||
|
|
e2567bddc9 | ||
|
|
2508f28806 | ||
|
|
2d185e1919 | ||
|
|
5ac13f265e | ||
|
|
128593a950 | ||
|
|
e7328c2739 | ||
|
|
18f9f5e35d | ||
|
|
760fb3d30a | ||
|
|
a75c80057a | ||
|
|
514eddd0b6 | ||
|
|
3929459106 | ||
|
|
b4bf321e66 | ||
|
|
74f58e7957 | ||
|
|
875864060e | ||
|
|
e38615b4b4 | ||
|
|
9f33cb1b82 | ||
|
|
313c5f59de | ||
|
|
7de93ae208 | ||
|
|
140620e76c | ||
|
|
8ae328c4b5 | ||
|
|
1032d3d5aa | ||
|
|
84a84fd34d | ||
|
|
b23c685580 | ||
|
|
214eb1d332 | ||
|
|
5083b84233 | ||
|
|
4553f3e758 | ||
|
|
8baacc2966 | ||
|
|
a8c47e64d7 | ||
|
|
fcc48a2b22 | ||
|
|
f2a5574a8c | ||
|
|
363ed1c41b | ||
|
|
706328e674 | ||
|
|
2f43975735 | ||
|
|
d1a40217c1 | ||
|
|
790afac860 | ||
|
|
efee03b940 | ||
|
|
8beca950a8 | ||
|
|
9bc6adf191 | ||
|
|
fb34c7cbd8 | ||
|
|
ae1b22552a | ||
|
|
57f4eba692 | ||
|
|
22684da35b | ||
|
|
7acb213a77 | ||
|
|
b9e8b9f697 | ||
|
|
300439c851 | ||
|
|
0e7ac225af | ||
|
|
0bbbe67446 | ||
|
|
376cc1d745 | ||
|
|
499848d643 | ||
|
|
601e338929 | ||
|
|
8045a78c44 | ||
|
|
df2fe4a4c6 | ||
|
|
8a6116cea1 | ||
|
|
e82870da89 | ||
|
|
e784604a1a | ||
|
|
e8022b8556 | ||
|
|
e7ed7829cf | ||
|
|
508f909fc9 | ||
|
|
60a6c387e2 | ||
|
|
1307abc1d6 | ||
|
|
45a103f76b | ||
|
|
b84c0d9248 | ||
|
|
f51c30023a | ||
|
|
bce4868896 | ||
|
|
8141baa879 | ||
|
|
280f8a7dbc | ||
|
|
0a472c06c4 | ||
|
|
1c72007a29 | ||
|
|
07434f706b | ||
|
|
4176435ebf | ||
|
|
a38cfb14d3 | ||
|
|
b319c32ae6 | ||
|
|
829e46b3a8 | ||
|
|
2304b06f68 | ||
|
|
c90363181c | ||
|
|
5d3d47eeb5 | ||
|
|
bc213d34d9 | ||
|
|
df2cd71d1e | ||
|
|
a760400aeb | ||
|
|
07a78fc3d8 | ||
|
|
78a6a60d96 | ||
|
|
1fb986a05d | ||
|
|
51e5af41ed | ||
|
|
7dba867101 | ||
|
|
ce787a9074 | ||
|
|
425ec42cb5 | ||
|
|
b2cd7d7897 | ||
|
|
ad9cc6fffd | ||
|
|
594ee94f49 | ||
|
|
30bea93dde | ||
|
|
2e26ae7ef1 | ||
|
|
0138a76601 | ||
|
|
8340aca48f | ||
|
|
265f4eb705 | ||
|
|
40cf1f80ef | ||
|
|
e182d2433f | ||
|
|
4831828b27 | ||
|
|
c9934a53b0 | ||
|
|
904e0ad468 | ||
|
|
792a5c4b38 | ||
|
|
ff0b3d29cf | ||
|
|
ac9b4fd645 | ||
|
|
84ca02a033 | ||
|
|
8cfd47e1b7 | ||
|
|
8df9a7c590 | ||
|
|
1d01b7490f | ||
|
|
3245756935 | ||
|
|
54ad3198dd | ||
|
|
7904380c8b | ||
|
|
81e8ca7fdc | ||
|
|
86cf331e01 | ||
|
|
150a99026f | ||
|
|
272a993099 | ||
|
|
d4faee5fbc | ||
|
|
e5ba389606 | ||
|
|
af36d76e65 | ||
|
|
5b7f0a0edf | ||
|
|
7294064aaa | ||
|
|
1e7b73df33 | ||
|
|
c68b8d0f75 | ||
|
|
2c1031865f | ||
|
|
b1e995fcaf | ||
|
|
e798ec9126 | ||
|
|
c4daafbe79 | ||
|
|
1f0ee72834 | ||
|
|
950bd59e2f | ||
|
|
05267d8a37 | ||
|
|
37089aeb5c | ||
|
|
bdb60b0b44 | ||
|
|
84242db2db | ||
|
|
2844b0df54 | ||
|
|
b2e3487989 | ||
|
|
01837b028a | ||
|
|
af1743066f | ||
|
|
d261f42ae4 | ||
|
|
02f335f4f3 | ||
|
|
3cb9a4f0ea | ||
|
|
d5c68029fe | ||
|
|
5375675347 | ||
|
|
8ed7732cbf | ||
|
|
fb932d7e10 | ||
|
|
78f2aa5979 | ||
|
|
5176e3d4ff | ||
|
|
b4aff6f7d3 | ||
|
|
ae240af11f | ||
|
|
cedc752be5 | ||
|
|
a1f534e6b5 | ||
|
|
cb1aed3bdd | ||
|
|
9e155c94d0 | ||
|
|
700a785092 | ||
|
|
80c7f6045f | ||
|
|
3466ea222d | ||
|
|
448d27f064 | ||
|
|
90f9c16446 | ||
|
|
0a821f6e21 | ||
|
|
aaaf5f7f85 | ||
|
|
d7c2e2cf2a | ||
|
|
9f3ad1b998 | ||
|
|
88612b4225 | ||
|
|
5c14d44afa | ||
|
|
d62d41347a | ||
|
|
6aaeb09e73 | ||
|
|
96d80c486b | ||
|
|
47dbbfb4ff | ||
|
|
ce7d14b227 | ||
|
|
79afb8c1bd | ||
|
|
65f76c2a77 | ||
|
|
cf9cb52cdb | ||
|
|
7dcd0ed67e | ||
|
|
49b7224a6f | ||
|
|
f04c87f5a3 | ||
|
|
d732c40b9a | ||
|
|
8984c177a0 | ||
|
|
747b1d76fd | ||
|
|
1b1ac22251 | ||
|
|
bcc8ad8171 | ||
|
|
6b73f71876 | ||
|
|
b47036630c | ||
|
|
e5ca44a0bd | ||
|
|
e7d49fe48b | ||
|
|
a5fbff142b | ||
|
|
e830894819 | ||
|
|
d4dc9aec9b | ||
|
|
e4d0e16b26 | ||
|
|
d6102e8954 | ||
|
|
227cb21c24 | ||
|
|
1891ea7966 | ||
|
|
6c49a8f2c9 | ||
|
|
ab384029f1 | ||
|
|
0c32d016b4 | ||
|
|
45818fd80c | ||
|
|
d08954945c | ||
|
|
a7ab24e3c9 | ||
|
|
a924d91d65 | ||
|
|
676e46f59f | ||
|
|
37b9c552df | ||
|
|
2e12176b2d | ||
|
|
7d1e4a8d82 | ||
|
|
4f8e7a8ea7 | ||
|
|
6c4c24b26d | ||
|
|
d205e75030 | ||
|
|
12561aba2c | ||
|
|
84fd1bc71c | ||
|
|
b9cd563915 | ||
|
|
58df438b92 | ||
|
|
9086b30a75 | ||
|
|
b268f98b91 | ||
|
|
25a4ebe062 | ||
|
|
60f5ef1f8e | ||
|
|
491b0b534c | ||
|
|
a59a30f905 | ||
|
|
227babe0e8 | ||
|
|
a0c4b33483 | ||
|
|
b831901967 | ||
|
|
d0427403f1 | ||
|
|
312f42f39a | ||
|
|
f68c9bf213 | ||
|
|
7b6a624ec6 | ||
|
|
43304808a9 | ||
|
|
ad0ed09940 | ||
|
|
b9813f86b9 | ||
|
|
2c5707e18f | ||
|
|
b646b139b8 | ||
|
|
5b369250b6 | ||
|
|
9274c683a2 | ||
|
|
f559de3a8c | ||
|
|
1e71020757 | ||
|
|
83ef15ccaf | ||
|
|
c2938f9339 | ||
|
|
b2be290be2 | ||
|
|
b6723bebf0 | ||
|
|
42c1ef434c | ||
|
|
a6ad919f16 | ||
|
|
52fd667ef9 | ||
|
|
04130231ff | ||
|
|
a510b52acb | ||
|
|
48581d6aad | ||
|
|
c3a77e71ad | ||
|
|
3d7b232248 | ||
|
|
b6d1dc50cb | ||
|
|
f6af93afbd | ||
|
|
0c841f98e8 | ||
|
|
e4c44e4878 | ||
|
|
8a78c960ea | ||
|
|
cb3b64e195 | ||
|
|
83f93ceba4 | ||
|
|
9ac93fd2dc | ||
|
|
13712b4c77 | ||
|
|
8d65f3bcf8 | ||
|
|
5c937efa9b | ||
|
|
ade1c3b830 | ||
|
|
8ded42a3ce | ||
|
|
65b91330ed | ||
|
|
98f8b07951 | ||
|
|
acaad991a7 | ||
|
|
e00bc5f723 | ||
|
|
a5fd8e355d | ||
|
|
8a2e1391e0 | ||
|
|
81c3722881 | ||
|
|
279e707a7a | ||
|
|
e894613f68 | ||
|
|
be08211cdc | ||
|
|
118c3e3964 | ||
|
|
3f4e353d13 | ||
|
|
a09ae3e251 | ||
|
|
f9c09495fc | ||
|
|
de424ce636 | ||
|
|
c28760e11a | ||
|
|
53090a6164 | ||
|
|
4661bf31ba | ||
|
|
5c687c98c6 | ||
|
|
495e08db05 | ||
|
|
a23d63613f | ||
|
|
acbabd4962 | ||
|
|
45a18b335f | ||
|
|
c23ea45e61 | ||
|
|
1f01933cc0 | ||
|
|
4958c5efe9 | ||
|
|
5dd3bb492f | ||
|
|
9d6d21bd40 |
11
.gitattributes
vendored
@@ -1,3 +1,12 @@
|
|||||||
|
* text=auto
|
||||||
|
|
||||||
|
*.ps1 text eol=crlf
|
||||||
|
*.json text eol=crlf
|
||||||
|
*.cfg text eol=crlf
|
||||||
|
|
||||||
|
*.png binary
|
||||||
|
*.jpg binary
|
||||||
|
|
||||||
config/* diff
|
config/* diff
|
||||||
config/applications.json diff
|
config/applications.json diff
|
||||||
*.json diff
|
*.json diff
|
||||||
|
|||||||
128
.github/CODE_OF_CONDUCT.md
vendored
Normal file
@@ -0,0 +1,128 @@
|
|||||||
|
# Contributor Covenant Code of Conduct
|
||||||
|
|
||||||
|
## Our Pledge
|
||||||
|
|
||||||
|
We as members, contributors, and leaders pledge to make participation in our
|
||||||
|
community a harassment-free experience for everyone, regardless of age, body
|
||||||
|
size, visible or invisible disability, ethnicity, sex characteristics, gender
|
||||||
|
identity and expression, level of experience, education, socio-economic status,
|
||||||
|
nationality, personal appearance, race, religion, or sexual identity
|
||||||
|
and orientation.
|
||||||
|
|
||||||
|
We pledge to act and interact in ways that contribute to an open, welcoming,
|
||||||
|
diverse, inclusive, and healthy community.
|
||||||
|
|
||||||
|
## Our Standards
|
||||||
|
|
||||||
|
Examples of behavior that contributes to a positive environment for our
|
||||||
|
community include:
|
||||||
|
|
||||||
|
* Demonstrating empathy and kindness toward other people
|
||||||
|
* Being respectful of differing opinions, viewpoints, and experiences
|
||||||
|
* Giving and gracefully accepting constructive feedback
|
||||||
|
* Accepting responsibility and apologizing to those affected by our mistakes,
|
||||||
|
and learning from the experience
|
||||||
|
* Focusing on what is best not just for us as individuals, but for the
|
||||||
|
overall community
|
||||||
|
|
||||||
|
Examples of unacceptable behavior include:
|
||||||
|
|
||||||
|
* The use of sexualized language or imagery, and sexual attention or
|
||||||
|
advances of any kind
|
||||||
|
* Trolling, insulting or derogatory comments, and personal or political attacks
|
||||||
|
* Public or private harassment
|
||||||
|
* Publishing others' private information, such as a physical or email
|
||||||
|
address, without their explicit permission
|
||||||
|
* Other conduct which could reasonably be considered inappropriate in a
|
||||||
|
professional setting
|
||||||
|
|
||||||
|
## Enforcement Responsibilities
|
||||||
|
|
||||||
|
Community leaders are responsible for clarifying and enforcing our standards of
|
||||||
|
acceptable behavior and will take appropriate and fair corrective action in
|
||||||
|
response to any behavior that they deem inappropriate, threatening, offensive,
|
||||||
|
or harmful.
|
||||||
|
|
||||||
|
Community leaders have the right and responsibility to remove, edit, or reject
|
||||||
|
comments, commits, code, wiki edits, issues, and other contributions that are
|
||||||
|
not aligned to this Code of Conduct, and will communicate reasons for moderation
|
||||||
|
decisions when appropriate.
|
||||||
|
|
||||||
|
## Scope
|
||||||
|
|
||||||
|
This Code of Conduct applies within all community spaces, and also applies when
|
||||||
|
an individual is officially representing the community in public spaces.
|
||||||
|
Examples of representing our community include using an official e-mail address,
|
||||||
|
posting via an official social media account, or acting as an appointed
|
||||||
|
representative at an online or offline event.
|
||||||
|
|
||||||
|
## Enforcement
|
||||||
|
|
||||||
|
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
||||||
|
reported to the community leaders responsible for enforcement at
|
||||||
|
contact@christitus.com.
|
||||||
|
All complaints will be reviewed and investigated promptly and fairly.
|
||||||
|
|
||||||
|
All community leaders are obligated to respect the privacy and security of the
|
||||||
|
reporter of any incident.
|
||||||
|
|
||||||
|
## Enforcement Guidelines
|
||||||
|
|
||||||
|
Community leaders will follow these Community Impact Guidelines in determining
|
||||||
|
the consequences for any action they deem in violation of this Code of Conduct:
|
||||||
|
|
||||||
|
### 1. Correction
|
||||||
|
|
||||||
|
**Community Impact**: Use of inappropriate language or other behavior deemed
|
||||||
|
unprofessional or unwelcome in the community.
|
||||||
|
|
||||||
|
**Consequence**: A private, written warning from community leaders, providing
|
||||||
|
clarity around the nature of the violation and an explanation of why the
|
||||||
|
behavior was inappropriate. A public apology may be requested.
|
||||||
|
|
||||||
|
### 2. Warning
|
||||||
|
|
||||||
|
**Community Impact**: A violation through a single incident or series
|
||||||
|
of actions.
|
||||||
|
|
||||||
|
**Consequence**: A warning with consequences for continued behavior. No
|
||||||
|
interaction with the people involved, including unsolicited interaction with
|
||||||
|
those enforcing the Code of Conduct, for a specified period of time. This
|
||||||
|
includes avoiding interactions in community spaces as well as external channels
|
||||||
|
like social media. Violating these terms may lead to a temporary or
|
||||||
|
permanent ban.
|
||||||
|
|
||||||
|
### 3. Temporary Ban
|
||||||
|
|
||||||
|
**Community Impact**: A serious violation of community standards, including
|
||||||
|
sustained inappropriate behavior.
|
||||||
|
|
||||||
|
**Consequence**: A temporary ban from any sort of interaction or public
|
||||||
|
communication with the community for a specified period of time. No public or
|
||||||
|
private interaction with the people involved, including unsolicited interaction
|
||||||
|
with those enforcing the Code of Conduct, is allowed during this period.
|
||||||
|
Violating these terms may lead to a permanent ban.
|
||||||
|
|
||||||
|
### 4. Permanent Ban
|
||||||
|
|
||||||
|
**Community Impact**: Demonstrating a pattern of violation of community
|
||||||
|
standards, including sustained inappropriate behavior, harassment of an
|
||||||
|
individual, or aggression toward or disparagement of classes of individuals.
|
||||||
|
|
||||||
|
**Consequence**: A permanent ban from any sort of public interaction within
|
||||||
|
the community.
|
||||||
|
|
||||||
|
## Attribution
|
||||||
|
|
||||||
|
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
||||||
|
version 2.0, available at
|
||||||
|
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
|
||||||
|
|
||||||
|
Community Impact Guidelines were inspired by [Mozilla's code of conduct
|
||||||
|
enforcement ladder](https://github.com/mozilla/diversity).
|
||||||
|
|
||||||
|
[homepage]: https://www.contributor-covenant.org
|
||||||
|
|
||||||
|
For answers to common questions about this code of conduct, see the FAQ at
|
||||||
|
https://www.contributor-covenant.org/faq. Translations are available at
|
||||||
|
https://www.contributor-covenant.org/translations.
|
||||||
117
.github/CONTRIBUTING.md
vendored
Normal file
@@ -0,0 +1,117 @@
|
|||||||
|
# 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 terminal as admin:
|
||||||
|
|
||||||
|
* Change the directory where you are running the commands to the forked project.
|
||||||
|
* `cd {path to the folder with the compile.ps1}`
|
||||||
|
* Run the following command to compile and run WinUtil:
|
||||||
|
* `.\Compile.ps1 -run`
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
* 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.
|
||||||
27
.github/ISSUE_TEMPLATE/bug_report.md
vendored
@@ -1,27 +0,0 @@
|
|||||||
---
|
|
||||||
name: Bug report
|
|
||||||
about: Create a report to help us improve
|
|
||||||
title: ''
|
|
||||||
labels: ''
|
|
||||||
assignees: ''
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
**Describe the bug**
|
|
||||||
A clear and concise description of what the bug is.
|
|
||||||
|
|
||||||
**To Reproduce**
|
|
||||||
Steps to reproduce the behavior:
|
|
||||||
1. Go to '...'
|
|
||||||
2. Click on '....'
|
|
||||||
3. Scroll down to '....'
|
|
||||||
4. See error
|
|
||||||
|
|
||||||
**Expected behavior**
|
|
||||||
A clear and concise description of what you expected to happen.
|
|
||||||
|
|
||||||
**Screenshots**
|
|
||||||
If applicable, add screenshots to help explain your problem.
|
|
||||||
|
|
||||||
**Additional context**
|
|
||||||
Add any other context about the problem here.
|
|
||||||
62
.github/ISSUE_TEMPLATE/bug_report.yaml
vendored
Normal file
@@ -0,0 +1,62 @@
|
|||||||
|
name: "Bug report"
|
||||||
|
description: "Report a bug to help us identify and fix issues in the project."
|
||||||
|
labels: ["bug"]
|
||||||
|
|
||||||
|
body:
|
||||||
|
- type: markdown
|
||||||
|
attributes:
|
||||||
|
value: |
|
||||||
|
# 🐞 **Issue Report**
|
||||||
|
Thank you for taking the time to report an issue! Please provide as much detail as possible to help us address the problem efficiently.
|
||||||
|
|
||||||
|
## ⚠️ **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
|
||||||
|
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 issue.
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: input
|
||||||
|
id: affected_part
|
||||||
|
attributes:
|
||||||
|
label: 📜 What part of Winutil are you having issues with?
|
||||||
|
placeholder: "e.g., Microwin, Tweaks, etc."
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: textarea
|
||||||
|
id: issue_description
|
||||||
|
attributes:
|
||||||
|
label: 📝 Provide a clear and concise description of the issue.
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: textarea
|
||||||
|
id: steps_to_reproduce
|
||||||
|
attributes:
|
||||||
|
label: 🔄 Steps to reproduce the issue.
|
||||||
|
placeholder: "e.g., Step 1: ..., Step 2: ..."
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: textarea
|
||||||
|
id: error_output
|
||||||
|
attributes:
|
||||||
|
label: ❌ Paste the full error output (if available).
|
||||||
|
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
|
||||||
5
.github/ISSUE_TEMPLATE/config.yml
vendored
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
blank_issues_enabled: false
|
||||||
|
contact_links:
|
||||||
|
- name: 💻 Community Discord
|
||||||
|
url: https://discord.gg/RUbZUZyByQ
|
||||||
|
about: Join our Community Discord server to chat with other users in the Winutil community.
|
||||||
20
.github/ISSUE_TEMPLATE/feature_request.md
vendored
@@ -1,20 +0,0 @@
|
|||||||
---
|
|
||||||
name: Feature request
|
|
||||||
about: Suggest an idea for this project
|
|
||||||
title: ''
|
|
||||||
labels: ''
|
|
||||||
assignees: ''
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
**Is your feature request related to a problem? Please describe.**
|
|
||||||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
|
||||||
|
|
||||||
**Describe the solution you'd like**
|
|
||||||
A clear and concise description of what you want to happen.
|
|
||||||
|
|
||||||
**Describe alternatives you've considered**
|
|
||||||
A clear and concise description of any alternative solutions or features you've considered.
|
|
||||||
|
|
||||||
**Additional context**
|
|
||||||
Add any other context or screenshots about the feature request here.
|
|
||||||
57
.github/ISSUE_TEMPLATE/feature_request.yaml
vendored
Normal file
@@ -0,0 +1,57 @@
|
|||||||
|
name: "Feature request"
|
||||||
|
description: "Suggest a new feature or improvement for the project."
|
||||||
|
labels: ["enhancement"]
|
||||||
|
|
||||||
|
body:
|
||||||
|
- type: markdown
|
||||||
|
attributes:
|
||||||
|
value: |
|
||||||
|
# ✨ **Feature request**
|
||||||
|
Thank you for taking the time to suggest a feature! Please provide as much detail as possible to help us understand and evaluate your request.
|
||||||
|
|
||||||
|
## ⚠️ **IMPORTANT**
|
||||||
|
- 🛠️ **Supported environments only:** We only support Windows 11.
|
||||||
|
- 💡 For general questions, use the [Discussions section](https://github.com/Christitustech/winutil/discussions) or join our Community-driven [Discord Server](https://discord.gg/RUbZUZyByQ).
|
||||||
|
|
||||||
|
- type: 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
|
||||||
|
id: proposed_solution
|
||||||
|
attributes:
|
||||||
|
label: 💡 Describe the solution you'd like
|
||||||
|
placeholder: "Provide a clear and concise description of what you want to happen."
|
||||||
|
validations:
|
||||||
|
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
|
||||||
24
.github/PULL_REQUEST_TEMPLATE.md
vendored
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
<!--Before you make this PR have you followed the docs here? - https://winutil.christitus.com/contributing/ -->
|
||||||
|
|
||||||
|
## Type of Change
|
||||||
|
- [ ] New feature
|
||||||
|
- [ ] Bug fix
|
||||||
|
- [ ] Documentation update
|
||||||
|
- [ ] Refactoring
|
||||||
|
- [ ] Hotfix
|
||||||
|
- [ ] Security patch
|
||||||
|
- [ ] UI/UX improvement
|
||||||
|
|
||||||
|
## 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.]-->
|
||||||
|
|
||||||
|
## Issue related to PR
|
||||||
|
<!--[What issue/discussion is related to this PR (if any)]-->
|
||||||
|
- Resolves #
|
||||||
|
|
||||||
|
## 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.
|
||||||
5
.github/SECURITY.md
vendored
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
# Security Policy
|
||||||
|
|
||||||
|
If you find a security issue please make post it in the issues tab. If you think it should be private you can email me at contact@christitus.com.
|
||||||
|
|
||||||
|
For immediate response check out our discord server @ [](https://discord.gg/RUbZUZyByQ)
|
||||||
9
.github/dependabot.yml
vendored
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
version: 2
|
||||||
|
updates:
|
||||||
|
- package-ecosystem: "github-actions"
|
||||||
|
directory: "/"
|
||||||
|
schedule:
|
||||||
|
interval: "weekly"
|
||||||
|
ignore:
|
||||||
|
- dependency-name: "actions/stale"
|
||||||
|
versions: '>= 9'
|
||||||
54
.github/release-drafter.yml
vendored
Normal file
@@ -0,0 +1,54 @@
|
|||||||
|
tag-prefix: ''
|
||||||
|
categories:
|
||||||
|
- title: '🚀 Features'
|
||||||
|
labels:
|
||||||
|
- 'feature'
|
||||||
|
- 'enhancement'
|
||||||
|
- title: '🐛 Bug Fixes'
|
||||||
|
labels:
|
||||||
|
- 'fix'
|
||||||
|
- 'bugfix'
|
||||||
|
- 'bug'
|
||||||
|
- title: '📚 Documentation'
|
||||||
|
label: 'documentation'
|
||||||
|
- title: '🔒 Security'
|
||||||
|
label: 'security'
|
||||||
|
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
|
||||||
|
template: |
|
||||||
|
## Changes
|
||||||
|
|
||||||
|
$CHANGES
|
||||||
|
|
||||||
|
change-title-escapes: '\<*_&"'''
|
||||||
|
autolabeler:
|
||||||
|
- label: 'documentation'
|
||||||
|
files:
|
||||||
|
- '*.md'
|
||||||
|
branch:
|
||||||
|
- '/docs{0,1}\/.+/'
|
||||||
|
- label: 'bug'
|
||||||
|
branch:
|
||||||
|
- '/fix\/.+/'
|
||||||
|
title:
|
||||||
|
- '/fix/i'
|
||||||
|
- label: 'enhancement'
|
||||||
|
branch:
|
||||||
|
- '/feature\/.+/'
|
||||||
|
body:
|
||||||
|
- '/[A-Z]+-[0-9]+/'
|
||||||
|
- label: 'documentation'
|
||||||
|
files:
|
||||||
|
- '**/*.md'
|
||||||
|
- 'docs/**/*'
|
||||||
|
- label: 'security'
|
||||||
|
branch:
|
||||||
|
- '/security\/.+/'
|
||||||
|
replacers:
|
||||||
|
- search: /"/g
|
||||||
|
replace: ''
|
||||||
|
- search: /'/g
|
||||||
|
replace: ''
|
||||||
|
exclude-labels:
|
||||||
|
- 'skip-changelog'
|
||||||
|
|
||||||
|
filter-by-commitish: true
|
||||||
48
.github/workflows/close-discussion-on-pr.yaml
vendored
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
name: Close Discussion on PR Merge
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
types: [closed]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
closeDiscussion:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
|
- name: Check if PR was merged
|
||||||
|
if: github.event.pull_request.merged == true
|
||||||
|
run: echo "PR was merged"
|
||||||
|
|
||||||
|
- name: Extract Discussion Number & Close If any Were Found
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
if: github.event.pull_request.merged == true
|
||||||
|
id: extract-discussion
|
||||||
|
run: |
|
||||||
|
pr_body="${{ github.event.pull_request.body }}"
|
||||||
|
discussion_ids=$(echo "$pr_body" | grep -oP '(?i)(resolve|fix|close)[s|d]? #\K[0-9]+')
|
||||||
|
|
||||||
|
if [ -z "$discussion_ids" ]; then
|
||||||
|
echo "No discussion IDs found."
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
for discussion_id in $discussion_ids; do
|
||||||
|
echo "Attempting to close discussion #$discussion_id"
|
||||||
|
response=$(curl -s -X PATCH -H "Authorization: token $GITHUB_TOKEN" \
|
||||||
|
-H "Accept: application/vnd.github.v3+json" \
|
||||||
|
-d '{"state": "closed"}' \
|
||||||
|
"https://api.github.com/repos/${{ github.repository }}/discussions/$discussion_id")
|
||||||
|
|
||||||
|
if echo "$response" | jq -e '.id' > /dev/null; then
|
||||||
|
echo "Successfully closed discussion #$discussion_id"
|
||||||
|
else
|
||||||
|
error_message=$(echo "$response" | jq -r '.message // "Unknown error"')
|
||||||
|
echo "Warning: Failed to close discussion #$discussion_id. Error: $error_message"
|
||||||
|
echo "Full response: $response"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
shell: bash
|
||||||
|
continue-on-error: true
|
||||||
24
.github/workflows/close-old-issues.yaml
vendored
@@ -14,10 +14,26 @@ jobs:
|
|||||||
contents: none
|
contents: none
|
||||||
steps:
|
steps:
|
||||||
- name: Close inactive issues
|
- name: Close inactive issues
|
||||||
uses: actions/stale@v9.0.0
|
uses: actions/stale@v8
|
||||||
with:
|
with:
|
||||||
|
# A list of labels to reference when looking through issues,
|
||||||
|
# and only when one (or even more) of these labels are found..
|
||||||
|
# then skip this issue, and never try to stale and/or close it.
|
||||||
exempt-issue-labels: "Keep Issue Open"
|
exempt-issue-labels: "Keep Issue Open"
|
||||||
days-before-issue-close: 14
|
# Split it into two weeks, after one week the issue will be marked as stale,
|
||||||
close-issue-message: "This issue was closed because it has been inactive for 14 days"
|
# after another week have pasted without any update.. the issue will then be closed.
|
||||||
debug-only: false # Make this field equal true if you want to test your configuration if it works or not
|
days-before-issue-stale: 90
|
||||||
|
days-before-issue-close: 365
|
||||||
|
# NEVER mark PRs as Stale or Close + this workflow should never have write permissions on PRs, EVER!
|
||||||
|
days-before-pr-stale: -1
|
||||||
|
days-before-pr-close: -1
|
||||||
|
# Sends a message for both the Stale and Close events of an issue.
|
||||||
|
stale-issue-message: "This issue was marked as stale due to inactivity."
|
||||||
|
close-issue-message: "This issue was closed after remaining stale without updates."
|
||||||
|
# Increase this value if the project receives a lot of
|
||||||
|
# PRs (yes.. apparently they're processed no matter what) & Issues.
|
||||||
|
# Default value for it (according to the docs) is 30
|
||||||
|
operations-per-run: 200
|
||||||
|
# Make this field equal true if you want to test your configuration if it works correctly or not
|
||||||
|
debug-only: false
|
||||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
@@ -1,25 +1,22 @@
|
|||||||
name: Compile
|
name: Compile & Check
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches: ["main"]
|
||||||
- main
|
pull_request:
|
||||||
- test*
|
branches: ["main"]
|
||||||
workflow_dispatch: # Manual trigger added
|
workflow_dispatch: # Manual trigger added
|
||||||
|
workflow_call: # Allow other Actions to call this workflow
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-runspace:
|
Compile-and-Check:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- name: Checkout Sources
|
||||||
with:
|
uses: actions/checkout@v6
|
||||||
ref: ${{ github.head_ref }}
|
|
||||||
- name: Compile project
|
- name: Compile and Syntaxcheck winutil.ps1
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
run: |
|
run: |
|
||||||
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
|
||||||
- uses: stefanzweifel/git-auto-commit-action@v5
|
|
||||||
with:
|
|
||||||
commit_message: Compile Winutil
|
|
||||||
if: success()
|
|
||||||
93
.github/workflows/docs.yaml
vendored
Normal file
@@ -0,0 +1,93 @@
|
|||||||
|
# Sample workflow for building and deploying a Hugo site to GitHub Pages
|
||||||
|
name: Deploy Hugo site to Pages
|
||||||
|
|
||||||
|
on:
|
||||||
|
# Runs on pushes targeting the default branch
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
paths:
|
||||||
|
- 'docs/**' # ONLY triggers if files in the 'docs' folder are changed
|
||||||
|
|
||||||
|
# Allows you to run this workflow manually from the Actions tab
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
pages: write
|
||||||
|
id-token: write
|
||||||
|
|
||||||
|
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
|
||||||
|
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
|
||||||
|
concurrency:
|
||||||
|
group: "pages"
|
||||||
|
cancel-in-progress: false
|
||||||
|
|
||||||
|
# Default to bash
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
# Build job
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
HUGO_VERSION: 0.145.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
|
||||||
|
- name: Setup Pages
|
||||||
|
id: pages
|
||||||
|
uses: actions/configure-pages@v5
|
||||||
|
- name: Install Node.js dependencies
|
||||||
|
run: "cd docs && [[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
|
||||||
|
- name: Cache Restore
|
||||||
|
id: cache-restore
|
||||||
|
uses: actions/cache/restore@v5
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
${{ runner.temp }}/hugo_cache
|
||||||
|
key: hugo-${{ github.run_id }}
|
||||||
|
restore-keys:
|
||||||
|
hugo-
|
||||||
|
- name: Build with Hugo
|
||||||
|
run: |
|
||||||
|
hugo \
|
||||||
|
--gc \
|
||||||
|
--minify \
|
||||||
|
--cleanDestinationDir \
|
||||||
|
--source docs \
|
||||||
|
--cacheDir "${{ runner.temp }}/hugo_cache"
|
||||||
|
- name: Cache Save
|
||||||
|
id: cache-save
|
||||||
|
uses: actions/cache/save@v5
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
${{ runner.temp }}/hugo_cache
|
||||||
|
key: ${{ steps.cache-restore.outputs.cache-primary-key }}
|
||||||
|
- name: Upload artifact
|
||||||
|
uses: actions/upload-pages-artifact@v4
|
||||||
|
with:
|
||||||
|
path: ./docs/public
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
environment:
|
||||||
|
name: github-pages
|
||||||
|
url: ${{ steps.deployment.outputs.page_url }}
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: build
|
||||||
|
steps:
|
||||||
|
- name: Deploy to GitHub Pages
|
||||||
|
id: deployment
|
||||||
|
uses: actions/deploy-pages@v4
|
||||||
115
.github/workflows/issue-slash-commands.yaml
vendored
Normal file
@@ -0,0 +1,115 @@
|
|||||||
|
name: Issue slash commands
|
||||||
|
|
||||||
|
on:
|
||||||
|
issue_comment:
|
||||||
|
types: [created, edited]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
issueCommands:
|
||||||
|
# Skip this job if the comment was created/edited on a PR
|
||||||
|
if: ${{ !github.event.issue.pull_request }}
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
issues: write
|
||||||
|
pull-requests: none
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- run: echo "command=false" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Check for /label command
|
||||||
|
id: check_label_command
|
||||||
|
run: |
|
||||||
|
if [[ "${{ contains(github.event.comment.body, '/label') }}" == "true" ]]; then
|
||||||
|
echo "command=true" >> $GITHUB_ENV
|
||||||
|
LABEL_NAME=$(echo "${{ github.event.comment.body }}" | awk -F"/label" '/\/label/ { match($2, /'\''([^'\'']*)'\''/, arr); if (arr[1] != "") print arr[1] }')
|
||||||
|
echo "label_command=true" >> $GITHUB_ENV
|
||||||
|
echo "label_name=${LABEL_NAME}" >> $GITHUB_ENV
|
||||||
|
else
|
||||||
|
echo "label_command=false" >> $GITHUB_ENV
|
||||||
|
fi
|
||||||
|
|
||||||
|
- name: Check for /unlabel command
|
||||||
|
id: check_unlabel_command
|
||||||
|
run: |
|
||||||
|
if [[ "${{ contains(github.event.comment.body, '/unlabel') }}" == "true" ]]; then
|
||||||
|
echo "command=true" >> $GITHUB_ENV
|
||||||
|
UNLABEL_NAME=$(echo "${{ github.event.comment.body }}" | awk -F"/unlabel" '/\/unlabel/ { match($2, /'\''([^'\'']*)'\''/, arr); if (arr[1] != "") print arr[1] }')
|
||||||
|
echo "unlabel_command=true" >> $GITHUB_ENV
|
||||||
|
echo "unlabel_name=${UNLABEL_NAME}" >> $GITHUB_ENV
|
||||||
|
else
|
||||||
|
echo "unlabel_command=false" >> $GITHUB_ENV
|
||||||
|
fi
|
||||||
|
|
||||||
|
- name: Check for /close command
|
||||||
|
id: check_close_command
|
||||||
|
run: |
|
||||||
|
if [[ "${{ contains(github.event.comment.body, '/close') }}" == "true" ]]; then
|
||||||
|
echo "command=true" >> $GITHUB_ENV
|
||||||
|
echo "close_command=true" >> $GITHUB_ENV
|
||||||
|
echo "reopen_command=false" >> $GITHUB_ENV
|
||||||
|
else
|
||||||
|
echo "close_command=false" >> $GITHUB_ENV
|
||||||
|
fi
|
||||||
|
|
||||||
|
- name: Check for /open or /reopen command
|
||||||
|
id: check_reopen_command
|
||||||
|
run: |
|
||||||
|
if [[ "${{ contains(github.event.comment.body, '/open') }}" == "true" ]] || [[ "${{ contains(github.event.comment.body, '/reopen') }}" == "true" ]]; then
|
||||||
|
echo "command=true" >> $GITHUB_ENV
|
||||||
|
echo "reopen_command=true" >> $GITHUB_ENV
|
||||||
|
echo "close_command=false" >> $GITHUB_ENV
|
||||||
|
else
|
||||||
|
echo "reopen_command=false" >> $GITHUB_ENV
|
||||||
|
fi
|
||||||
|
|
||||||
|
- name: Check if the user is allowed
|
||||||
|
id: check_user
|
||||||
|
if: env.command == 'true'
|
||||||
|
run: |
|
||||||
|
ALLOWED_USERS=("ChrisTitusTech" "og-mrk" "Marterich" "MyDrift-user" "Real-MullaC" "CodingWonders")
|
||||||
|
if [[ " ${ALLOWED_USERS[@]} " =~ " ${{ github.event.comment.user.login }} " ]]; then
|
||||||
|
echo "user=true" >> $GITHUB_ENV
|
||||||
|
else
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
- name: Close issue
|
||||||
|
if: env.close_command == 'true'
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
ISSUE_NUMBER: ${{ github.event.issue.number }}
|
||||||
|
run: |
|
||||||
|
echo Closing the issue...
|
||||||
|
if [[ "${{ contains(github.event.comment.body, 'not planned') }}" == "true" ]]; then
|
||||||
|
gh issue close $ISSUE_NUMBER --repo ${{ github.repository }} --reason 'not planned'
|
||||||
|
else
|
||||||
|
gh issue close $ISSUE_NUMBER --repo ${{ github.repository }}
|
||||||
|
fi
|
||||||
|
|
||||||
|
- name: Reopen issue
|
||||||
|
if: env.reopen_command == 'true'
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
ISSUE_NUMBER: ${{ github.event.issue.number }}
|
||||||
|
run: |
|
||||||
|
echo Reopening the issue...
|
||||||
|
gh issue reopen $ISSUE_NUMBER --repo ${{ github.repository }}
|
||||||
|
|
||||||
|
- name: Label issue
|
||||||
|
if: env.label_command == 'true'
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
ISSUE_NUMBER: ${{ github.event.issue.number }}
|
||||||
|
run: |
|
||||||
|
echo Labeling the issue...
|
||||||
|
gh issue edit $ISSUE_NUMBER --repo ${{ github.repository }} --add-label "${{ env.label_name }}"
|
||||||
|
|
||||||
|
- name: Remove labels
|
||||||
|
if: env.unlabel_command == 'true'
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
ISSUE_NUMBER: ${{ github.event.issue.number }}
|
||||||
|
run: |
|
||||||
|
echo Unlabeling the issue...
|
||||||
|
gh issue edit $ISSUE_NUMBER --repo ${{ github.repository }} --remove-label "${{ env.unlabel_name }}"
|
||||||
75
.github/workflows/pre-release.yaml
vendored
Normal file
@@ -0,0 +1,75 @@
|
|||||||
|
name: Pre-Release WinUtil
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
actions: read
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch: # Manual trigger added
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-runspace:
|
||||||
|
runs-on: windows-latest
|
||||||
|
env:
|
||||||
|
CERTIFICATE_BASE64: ${{ secrets.CERTIFICATE_BASE64 }}
|
||||||
|
steps:
|
||||||
|
- name: Checkout Repository
|
||||||
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
|
- name: Compile project
|
||||||
|
shell: pwsh
|
||||||
|
run: |
|
||||||
|
Set-ExecutionPolicy Bypass -Scope Process -Force; ./Compile.ps1
|
||||||
|
continue-on-error: false # Directly fail the job on error, removing the need for a separate check
|
||||||
|
|
||||||
|
- name: Set Version to Todays Date
|
||||||
|
id: extract_version
|
||||||
|
run: |
|
||||||
|
$version = (Get-Date -Format "yy.MM.dd")
|
||||||
|
echo "VERSION=$version" >> $env:GITHUB_ENV
|
||||||
|
shell: pwsh
|
||||||
|
|
||||||
|
- name: Create Tag
|
||||||
|
id: create_tag
|
||||||
|
run: |
|
||||||
|
$tagExists = git tag -l $env:VERSION
|
||||||
|
if ($tagExists -eq "") {
|
||||||
|
git tag $env:VERSION
|
||||||
|
if ($LASTEXITCODE -ne 0) {
|
||||||
|
Write-Error "Failed to create tag $env:VERSION"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
git push origin $env:VERSION
|
||||||
|
if ($LASTEXITCODE -ne 0) {
|
||||||
|
Write-Error "Failed to push tag $env:VERSION"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
Write-Host "Tag $env:VERSION already exists, skipping tag creation"
|
||||||
|
}
|
||||||
|
shell: pwsh
|
||||||
|
|
||||||
|
- name: Generate Release Notes
|
||||||
|
id: generate_notes
|
||||||
|
uses: release-drafter/release-drafter@v6
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
with:
|
||||||
|
config-name: release-drafter.yml
|
||||||
|
version: ${{ env.VERSION }} # Pass the version variable
|
||||||
|
|
||||||
|
- name: Create and Upload Release
|
||||||
|
id: create_release
|
||||||
|
uses: softprops/action-gh-release@v2
|
||||||
|
with:
|
||||||
|
tag_name: ${{ env.VERSION }}
|
||||||
|
name: Pre-Release ${{ env.VERSION }}
|
||||||
|
body: |
|
||||||
|
${{ steps.generate_notes.outputs.body }}
|
||||||
|
|
||||||
|

|
||||||
|
append_body: false
|
||||||
|
files: ./winutil.ps1
|
||||||
|
prerelease: true
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
45
.github/workflows/release.yaml
vendored
@@ -1,45 +0,0 @@
|
|||||||
name: Release WinUtil
|
|
||||||
|
|
||||||
on:
|
|
||||||
workflow_run:
|
|
||||||
workflows: ["Compile"] #Ensure Compile winget.ps1 is done
|
|
||||||
types:
|
|
||||||
- completed
|
|
||||||
workflow_dispatch: # Manual trigger added
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build-runspace:
|
|
||||||
runs-on: windows-latest
|
|
||||||
outputs:
|
|
||||||
version: ${{ steps.extract_version.outputs.version }}
|
|
||||||
steps:
|
|
||||||
- name: Checkout Repository
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Extract Version from winutil.ps1
|
|
||||||
id: extract_version
|
|
||||||
run: |
|
|
||||||
$version = ''
|
|
||||||
Get-Content ./winutil.ps1 -TotalCount 30 | ForEach-Object {
|
|
||||||
if ($_ -match 'Version\s*:\s*(\d{2}\.\d{2}\.\d{2})') {
|
|
||||||
$version = $matches[1]
|
|
||||||
echo "version=$version" >> $GITHUB_ENV
|
|
||||||
echo "::set-output name=version::$version"
|
|
||||||
break
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (-not $version) {
|
|
||||||
Write-Error "Version not found in winutil.ps1"
|
|
||||||
exit 1
|
|
||||||
}
|
|
||||||
shell: pwsh
|
|
||||||
|
|
||||||
- name: Create and Upload Release
|
|
||||||
id: create_release
|
|
||||||
uses: softprops/action-gh-release@v2
|
|
||||||
with:
|
|
||||||
tag_name: ${{ steps.extract_version.outputs.version }}
|
|
||||||
name: Release ${{ steps.extract_version.outputs.version }}
|
|
||||||
files: ./winutil.ps1
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
34
.github/workflows/remove-winutil.yaml
vendored
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
name: Remove winutil.ps1 if included in a Push
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- '**'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
check-and-delete-file:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
|
- name: Check if winutil.ps1 exists
|
||||||
|
id: check_existence
|
||||||
|
run: |
|
||||||
|
if [ -f "winutil.ps1" ]; then
|
||||||
|
echo "winutil_exists=true" >> $GITHUB_OUTPUT
|
||||||
|
else
|
||||||
|
echo "winutil_exists=false" >> $GITHUB_OUTPUT
|
||||||
|
fi
|
||||||
|
|
||||||
|
- name: Delete winutil.ps1 if it exists
|
||||||
|
if: steps.check_existence.outputs.winutil_exists == 'true'
|
||||||
|
run: |
|
||||||
|
git config --global user.email "winutil-action@noreply.github.com"
|
||||||
|
git config --global user.name "winutil-action"
|
||||||
|
git rm winutil.ps1
|
||||||
|
git commit -m "Delete winutil.ps1 as it is not allowed"
|
||||||
|
git push origin HEAD:${{ github.ref }}
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
26
.github/workflows/sponsors.yaml
vendored
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
name: Generate Sponsors README
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
schedule:
|
||||||
|
- cron: 30 15 * * 0-6
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: (github.event_name == 'schedule' && github.repository == 'ChrisTitusTech/winutil') || (github.event_name != 'schedule')
|
||||||
|
steps:
|
||||||
|
- name: Checkout 🛎️
|
||||||
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
|
- name: Generate Sponsors 💖
|
||||||
|
uses: JamesIves/github-sponsors-readme-action@v1
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.PAT }}
|
||||||
|
file: 'README.md'
|
||||||
|
|
||||||
|
- name: Deploy to GitHub Pages 🚀
|
||||||
|
uses: JamesIves/github-pages-deploy-action@v4
|
||||||
|
with:
|
||||||
|
branch: main
|
||||||
|
folder: '.'
|
||||||
10
.github/workflows/unittests.yaml
vendored
@@ -1,14 +1,14 @@
|
|||||||
name: Unit Tests
|
name: Unit Tests
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
name: PS Script Analyzer
|
name: PS Script Analyzer
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- 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@v2
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Install Pester
|
- name: Install Pester
|
||||||
run: |
|
run: |
|
||||||
@@ -34,7 +34,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process
|
Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process
|
||||||
Invoke-Pester -Path 'pester/*.Tests.ps1' -Output Detailed
|
Invoke-Pester -Path 'pester/*.Tests.ps1' -Output Detailed
|
||||||
|
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
env:
|
env:
|
||||||
TEMP: ${{ runner.temp }}
|
TEMP: ${{ runner.temp }}
|
||||||
|
|||||||
11
.gitignore
vendored
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
# Configuration folder
|
# Configuration folder
|
||||||
.vscode/
|
.vscode/
|
||||||
|
.idea/
|
||||||
|
|
||||||
### Visual Studio ###
|
### Visual Studio ###
|
||||||
|
|
||||||
@@ -10,6 +11,9 @@
|
|||||||
|
|
||||||
winutil.pdb
|
winutil.pdb
|
||||||
|
|
||||||
|
### Preprocessor Hashes ###
|
||||||
|
.preprocessor_hashes.json
|
||||||
|
|
||||||
### Windows ###
|
### Windows ###
|
||||||
|
|
||||||
# Folder config file
|
# Folder config file
|
||||||
@@ -45,3 +49,10 @@ microwin.log
|
|||||||
True
|
True
|
||||||
test.ps1
|
test.ps1
|
||||||
winutil.ps1
|
winutil.ps1
|
||||||
|
|
||||||
|
# temporary excludes for docs
|
||||||
|
.github/site/
|
||||||
|
|
||||||
|
binary/
|
||||||
|
|
||||||
|
.preprocessor_hashes.json
|
||||||
197
Compile.ps1
@@ -1,14 +1,41 @@
|
|||||||
param (
|
param (
|
||||||
[switch]$Debug
|
[switch]$Debug,
|
||||||
|
[switch]$Run,
|
||||||
|
[string]$Arguments
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if ((Get-Item ".\winutil.ps1" -ErrorAction SilentlyContinue).IsReadOnly) {
|
||||||
|
Remove-Item ".\winutil.ps1" -Force
|
||||||
|
}
|
||||||
|
|
||||||
$OFS = "`r`n"
|
$OFS = "`r`n"
|
||||||
$scriptname = "winutil.ps1"
|
$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 = $PSScriptRoot
|
$sync.PSScriptRoot = $workingdir
|
||||||
$sync.configs = @{}
|
$sync.configs = @{}
|
||||||
|
|
||||||
|
function Update-Progress {
|
||||||
|
param (
|
||||||
|
[Parameter(Mandatory, position=0)]
|
||||||
|
[string]$StatusMessage,
|
||||||
|
|
||||||
|
[Parameter(Mandatory, position=1)]
|
||||||
|
[ValidateRange(0,100)]
|
||||||
|
[int]$Percent,
|
||||||
|
|
||||||
|
[Parameter(position=2)]
|
||||||
|
[string]$Activity = "Compiling"
|
||||||
|
)
|
||||||
|
|
||||||
|
Write-Progress -Activity $Activity -Status $StatusMessage -PercentComplete $Percent
|
||||||
|
}
|
||||||
|
|
||||||
$header = @"
|
$header = @"
|
||||||
################################################################################################################
|
################################################################################################################
|
||||||
### ###
|
### ###
|
||||||
@@ -17,93 +44,119 @@ $header = @"
|
|||||||
################################################################################################################
|
################################################################################################################
|
||||||
"@
|
"@
|
||||||
|
|
||||||
|
|
||||||
|
Update-Progress "Pre-req: Running Preprocessor..." 0
|
||||||
|
|
||||||
|
# Dot source the 'Invoke-Preprocessing' Function from 'tools/Invoke-Preprocessing.ps1' Script
|
||||||
|
$preprocessingFilePath = ".\tools\Invoke-Preprocessing.ps1"
|
||||||
|
. $preprocessingFilePath
|
||||||
|
|
||||||
|
$excludedFiles = @()
|
||||||
|
|
||||||
|
# Add directories only if they exist
|
||||||
|
if (Test-Path '.\.git\') { $excludedFiles += '.\.git\' }
|
||||||
|
if (Test-Path '.\binary\') { $excludedFiles += '.\binary\' }
|
||||||
|
|
||||||
|
# Add files that should always be excluded
|
||||||
|
$excludedFiles += @(
|
||||||
|
'.\.gitignore',
|
||||||
|
'.\.gitattributes',
|
||||||
|
'.\.github\CODEOWNERS',
|
||||||
|
'.\LICENSE',
|
||||||
|
"$preprocessingFilePath",
|
||||||
|
'*.png',
|
||||||
|
'*.exe',
|
||||||
|
'.\.preprocessor_hashes.json'
|
||||||
|
)
|
||||||
|
|
||||||
|
$msg = "Pre-req: Code Formatting"
|
||||||
|
Invoke-Preprocessing -WorkingDir "$workingdir" -ExcludedFiles $excludedFiles -ProgressStatusMessage $msg
|
||||||
|
|
||||||
# Create the script in memory.
|
# Create the script in memory.
|
||||||
|
Update-Progress "Pre-req: Allocating Memory" 0
|
||||||
$script_content = [System.Collections.Generic.List[string]]::new()
|
$script_content = [System.Collections.Generic.List[string]]::new()
|
||||||
|
|
||||||
Write-Progress -Activity "Compiling" -Status "Adding: Header" -PercentComplete 5
|
Update-Progress "Adding: Header" 5
|
||||||
$script_content.Add($header)
|
$script_content.Add($header)
|
||||||
|
|
||||||
Write-Progress -Activity "Compiling" -Status "Adding: Version" -PercentComplete 10
|
Update-Progress "Adding: Version" 10
|
||||||
$script_content.Add($(Get-Content .\scripts\start.ps1).replace('#{replaceme}',"$(Get-Date -Format yy.MM.dd)"))
|
$script_content.Add($(Get-Content "scripts\start.ps1").replace('#{replaceme}',"$(Get-Date -Format yy.MM.dd)"))
|
||||||
|
|
||||||
Write-Progress -Activity "Compiling" -Status "Adding: Functions" -PercentComplete 20
|
Update-Progress "Adding: Functions" 20
|
||||||
Get-ChildItem .\functions -Recurse -File | ForEach-Object {
|
Get-ChildItem "functions" -Recurse -File | ForEach-Object {
|
||||||
$script_content.Add($(Get-Content $psitem.FullName))
|
$script_content.Add($(Get-Content $psitem.FullName))
|
||||||
}
|
}
|
||||||
Write-Progress -Activity "Compiling" -Status "Adding: Config *.json" -PercentComplete 40
|
Update-Progress "Adding: Config *.json" 40
|
||||||
Get-ChildItem .\config | Where-Object {$psitem.extension -eq ".json"} | ForEach-Object {
|
Get-ChildItem "config" | Where-Object {$psitem.extension -eq ".json"} | ForEach-Object {
|
||||||
|
$json = (Get-Content $psitem.FullName -Raw)
|
||||||
|
$jsonAsObject = $json | ConvertFrom-Json
|
||||||
|
|
||||||
$json = (Get-Content $psitem.FullName).replace("'","''")
|
# Add 'WPFInstall' as a prefix to every entry-name in 'applications.json' file
|
||||||
|
if ($psitem.Name -eq "applications.json") {
|
||||||
# Replace every XML Special Character so it'll render correctly in final build
|
foreach ($appEntryName in $jsonAsObject.PSObject.Properties.Name) {
|
||||||
# Only do so if json files has content to be displayed (for example the applications, tweaks, features json files)
|
$appEntryContent = $jsonAsObject.$appEntryName
|
||||||
# Some Type Convertion using Casting and Cleaning Up of the convertion result using 'Replace' Method
|
$jsonAsObject.PSObject.Properties.Remove($appEntryName)
|
||||||
$jsonAsObject = $json | convertfrom-json
|
$jsonAsObject | Add-Member -MemberType NoteProperty -Name "WPFInstall$appEntryName" -Value $appEntryContent
|
||||||
$firstLevelJsonList = ([System.String]$jsonAsObject).split('=;') | ForEach-Object {
|
|
||||||
$_.Replace('=}','').Replace('@{','').Replace(' ','')
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
for ($i = 0; $i -lt $firstLevelJsonList.Count; $i += 1) {
|
# Line 90 requires no whitespace inside the here-strings, to keep formatting of the JSON in the final script.
|
||||||
$firstLevelName = $firstLevelJsonList[$i]
|
$json = @"
|
||||||
# Note: Avoid using HTML Entity Codes (for example '”' (stands for "Right Double Quotation Mark")), and use HTML decimal/hex codes instead.
|
$($jsonAsObject | ConvertTo-Json -Depth 3)
|
||||||
# as using HTML Entity Codes will result in XML parse Error when running the compiled script.
|
"@
|
||||||
if ($jsonAsObject.$firstLevelName.content -ne $null) {
|
|
||||||
$jsonAsObject.$firstLevelName.content = $jsonAsObject.$firstLevelName.content.replace('&','&').replace('“','“').replace('”','”').replace("'",''').replace('<','<').replace('>','>')
|
|
||||||
$jsonAsObject.$firstLevelName.content = $jsonAsObject.$firstLevelName.content.replace('''',"'") # resolves the Double Apostrophe caused by the first replace function in the main loop
|
|
||||||
}
|
|
||||||
if ($jsonAsObject.$firstLevelName.description -ne $null) {
|
|
||||||
$jsonAsObject.$firstLevelName.description = $jsonAsObject.$firstLevelName.description.replace('&','&').replace('“','“').replace('”','”').replace("'",''').replace('<','<').replace('>','>')
|
|
||||||
$jsonAsObject.$firstLevelName.description = $jsonAsObject.$firstLevelName.description.replace('''',"'") # resolves the Double Apostrophe caused by the first replace function in the main loop
|
|
||||||
}
|
|
||||||
}
|
|
||||||
# The replace at the end is required, as without it the output of converto-json will be somewhat weird for Multiline String
|
|
||||||
# Most Notably is the scripts in json files, making it harder for users who want to review these scripts that are found in the final compiled script
|
|
||||||
$json = ($jsonAsObject | convertto-json -Depth 3).replace('\r\n',"`r`n")
|
|
||||||
|
|
||||||
$sync.configs.$($psitem.BaseName) = $json | convertfrom-json
|
$sync.configs.$($psitem.BaseName) = $json | ConvertFrom-Json
|
||||||
$script_content.Add($(Write-output "`$sync.configs.$($psitem.BaseName) = '$json' `| convertfrom-json" ))
|
$script_content.Add($(Write-Output "`$sync.configs.$($psitem.BaseName) = @'`r`n$json`r`n'@ `| ConvertFrom-Json" ))
|
||||||
}
|
|
||||||
Write-Progress -Activity "Compiling" -Status "Adding: Config *.cfg" -PercentComplete 45
|
|
||||||
Get-ChildItem .\config | Where-Object {$PSItem.Extension -eq ".cfg"} | ForEach-Object {
|
|
||||||
$script_content.Add($(Write-output "`$sync.configs.$($psitem.BaseName) = '$(Get-Content $PSItem.FullName)'"))
|
|
||||||
}
|
|
||||||
Get-ChildItem .\config | Where-Object {$PSItem.Extension -eq ".cfg"} | ForEach-Object {
|
|
||||||
$script_content.Add($(Write-output "`$sync.configs.$($psitem.BaseName) = '$(Get-Content $PSItem.FullName)'"))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$xaml = (Get-Content .\xaml\inputXML.xaml).replace("'","''")
|
# Read the entire XAML file as a single string, preserving line breaks
|
||||||
|
$xaml = Get-Content "$workingdir\xaml\inputXML.xaml" -Raw
|
||||||
|
|
||||||
# Dot-source the Get-TabXaml function
|
Update-Progress "Adding: Xaml " 90
|
||||||
. .\functions\private\Get-TabXaml.ps1
|
|
||||||
|
|
||||||
Write-Progress -Activity "Compiling" -Status "Building: Xaml " -PercentComplete 75
|
# Add the XAML content to $script_content using a here-string
|
||||||
$appXamlContent = Get-TabXaml "applications" 5
|
$script_content.Add(@"
|
||||||
$tweaksXamlContent = Get-TabXaml "tweaks"
|
`$inputXML = @'
|
||||||
$featuresXamlContent = Get-TabXaml "feature"
|
$xaml
|
||||||
|
'@
|
||||||
|
"@)
|
||||||
|
|
||||||
|
$script_content.Add($(Get-Content "scripts\main.ps1"))
|
||||||
|
|
||||||
Write-Progress -Activity "Compiling" -Status "Adding: Xaml " -PercentComplete 90
|
if ($Debug) {
|
||||||
# Replace the placeholder in $inputXML with the content of inputApp.xaml
|
Update-Progress "Writing debug files" 95
|
||||||
$xaml = $xaml -replace "{{InstallPanel_applications}}", $appXamlContent
|
$appXamlContent | Out-File -FilePath "xaml\inputApp.xaml" -Encoding ascii
|
||||||
$xaml = $xaml -replace "{{InstallPanel_tweaks}}", $tweaksXamlContent
|
$tweaksXamlContent | Out-File -FilePath "xaml\inputTweaks.xaml" -Encoding ascii
|
||||||
$xaml = $xaml -replace "{{InstallPanel_features}}", $featuresXamlContent
|
$featuresXamlContent | Out-File -FilePath "xaml\inputFeatures.xaml" -Encoding ascii
|
||||||
|
} else {
|
||||||
$script_content.Add($(Write-output "`$inputXML = '$xaml'"))
|
Update-Progress "Removing temporary files" 99
|
||||||
|
Remove-Item "xaml\inputApp.xaml" -ErrorAction SilentlyContinue
|
||||||
$script_content.Add($(Get-Content .\scripts\main.ps1))
|
Remove-Item "xaml\inputTweaks.xaml" -ErrorAction SilentlyContinue
|
||||||
|
Remove-Item "xaml\inputFeatures.xaml" -ErrorAction SilentlyContinue
|
||||||
if ($Debug){
|
|
||||||
Write-Progress -Activity "Compiling" -Status "Writing debug files" -PercentComplete 95
|
|
||||||
$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 {
|
|
||||||
Write-Progress -Activity "Compiling" -Status "Removing temporary files" -PercentComplete 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
|
Set-Content -Path "$scriptname" -Value ($script_content -join "`r`n") -Encoding ascii
|
||||||
Write-Progress -Activity "Compiling" -Completed
|
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,33 +0,0 @@
|
|||||||
## Known Issues and Fixes
|
|
||||||
- Windows taking longer to shut down:
|
|
||||||
- [#69](https://github.com/ChrisTitusTech/winutil/issues/69) Turn on fast startup: Press Windows key + R, then type:
|
|
||||||
```
|
|
||||||
control /name Microsoft.PowerOptions /page pageGlobalSettings
|
|
||||||
```
|
|
||||||
- If that doesn't work, Disable Hibernation: Press Windows Key+X and select 'PowerShell (Admin)' (Windows 10) or 'Windows Terminal (Admin)' (Windows 11) and enter:
|
|
||||||
```
|
|
||||||
powercfg /H off
|
|
||||||
```
|
|
||||||
- [#69](https://github.com/ChrisTitusTech/winutil/issues/69) [95](https://github.com/ChrisTitusTech/winutil/issues/95) [#232](https://github.com/ChrisTitusTech/winutil/issues/232) Windows Search does not work: Enable Background Apps
|
|
||||||
- [#198](https://github.com/ChrisTitusTech/winutil/issues/198) Xbox Game Bar Activation Broken: Set the Xbox Accessory Management Service to Automatic
|
|
||||||
```
|
|
||||||
Get-Service -Name "XboxGipSvc" | Set-Service -StartupType Automatic
|
|
||||||
```
|
|
||||||
- Windows Insider Builds not installing: Telemetry needs to be enabled
|
|
||||||
```
|
|
||||||
Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\DataCollection" -Name "AllowTelemetry" -Type DWord -Value 0
|
|
||||||
Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DataCollection" -Name "AllowTelemetry" -Type DWord -Value 0
|
|
||||||
```
|
|
||||||
- Winget requires interaction on first run: Manually type 'y' and 'enter' into the PowerShell console to continue
|
|
||||||
- (Windows 11) Quick Settings no longer works: Launch the Script and click 'Enable Action Center'
|
|
||||||
- Explorer no longer launches: Go to Control Panel, File Explorer Options, Change the 'Open File Explorer to' option to 'This PC'.
|
|
||||||
- Script doesn't run/PowerShell crashes:
|
|
||||||
1. Press Windows Key+X and select 'PowerShell (Admin)' (Windows 10) or 'Windows Terminal (Admin)' (Windows 11)
|
|
||||||
2. Run:
|
|
||||||
```
|
|
||||||
Set-ExecutionPolicy Unrestricted -Scope Process -Force
|
|
||||||
```
|
|
||||||
3. Run:
|
|
||||||
```
|
|
||||||
irm christitus.com/win | iex
|
|
||||||
```
|
|
||||||
2
LICENSE
@@ -1,6 +1,6 @@
|
|||||||
MIT License
|
MIT License
|
||||||
|
|
||||||
Copyright (c) 2022 Chris Titus
|
Copyright (c) 2022 CT Tech Group LLC
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
161
README.md
@@ -1,147 +1,88 @@
|
|||||||
# Chris Titus Tech's Windows Utility
|
# Chris Titus Tech's Windows Utility
|
||||||
|
|
||||||
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.
|
[](https://github.com/ChrisTitusTech/winutil/releases/latest)
|
||||||
|

|
||||||
|
[](https://discord.gg/RUbZUZyByQ)
|
||||||
|
[](https://winutil.christitus.com/)
|
||||||
|
|
||||||

|
This utility is a compilation of Windows tasks I perform on each Windows system I use. It is meant to streamline *installs*, debloat with *tweaks*, troubleshoot with *config*, and fix Windows *updates*. I am extremely picky about any contributions to keep this project clean and efficient.
|
||||||
|
|
||||||
## Usage
|

|
||||||
|
|
||||||
Winutil must be run in Admin mode because it performs system-wide tweaks. To achieve this, open PowerShell or Windows Terminal as an administrator. Here are a few ways to do it:
|
## 💡 Usage
|
||||||
|
|
||||||
1. **Right-Click Method:**
|
Winutil must be run in Admin mode because it performs system-wide tweaks. To achieve this, run PowerShell as an administrator. Here are a few ways to do it:
|
||||||
|
|
||||||
|
1. **Start menu Method:**
|
||||||
- Right-click on the start menu.
|
- Right-click on the start menu.
|
||||||
- Choose "Windows PowerShell (Admin)" (for Windows 10) or "Terminal (Admin)" (for Windows 11).
|
- Choose "Windows PowerShell (Admin)" (for Windows 10) or "Terminal (Admin)" (for Windows 11).
|
||||||
|
|
||||||
2. **Search and Launch Method:**
|
2. **Search and Launch Method:**
|
||||||
- Press the Windows key.
|
- Press the Windows key.
|
||||||
- Type "PowerShell" or "Terminal" (for Windows 11).
|
- Type "PowerShell" or "Terminal" (for Windows 11).
|
||||||
- Press `Ctrl + Shift + Enter` to launch it with administrator privileges.
|
- Press `Ctrl + Shift + Enter` or Right-click and choose "Run as administrator" to launch it with administrator privileges.
|
||||||
|
|
||||||
|
|
||||||
### Launch Command
|
### Launch Command
|
||||||
|
|
||||||
#### Simple way
|
#### Stable Branch (Recommended)
|
||||||
|
|
||||||
|
```ps1
|
||||||
|
irm "https://christitus.com/win" | iex
|
||||||
```
|
```
|
||||||
irm https://christitus.com/win | iex
|
#### Dev Branch
|
||||||
```
|
|
||||||
Courtesy of the issue raised at: [#144](/../../issues/144)
|
|
||||||
|
|
||||||
or by executing:
|
```ps1
|
||||||
```
|
irm "https://christitus.com/windev" | iex
|
||||||
iwr -useb https://christitus.com/win | iex
|
|
||||||
```
|
```
|
||||||
|
|
||||||
if for some reason this site is not reachable from your country please try running it directly from github (replace `RELEASE_TAG` with current release that you are interested in, for example `v2024.06.05`)
|
If you have Issues, refer to [Known Issues](https://winutil.christitus.com/knownissues/) or [Create Issue](https://github.com/ChrisTitusTech/winutil/issues)
|
||||||
```
|
|
||||||
irm "https://github.com/ChrisTitusTech/winutil/releases/download/RELEASE_TAG/winutil.ps1" | iex
|
## 🎓 Documentation
|
||||||
|
|
||||||
|
### [WinUtil Official Documentation](https://winutil.christitus.com/)
|
||||||
|
|
||||||
|
### [YouTube Tutorial](https://www.youtube.com/watch?v=6UQZ5oQg8XA)
|
||||||
|
|
||||||
|
### [ChrisTitus.com Article](https://christitus.com/windows-tool/)
|
||||||
|
|
||||||
|
## 🛠️ Build & Develop
|
||||||
|
|
||||||
|
> [!NOTE]
|
||||||
|
> Winutil is a relatively large script, so it's split into multiple files which're combined into a single `.ps1` file using a custom compiler. This makes maintaining the project a lot easier.
|
||||||
|
|
||||||
|
Get a copy of the source code, this can be done using GitHub UI (`Code -> Download ZIP`), or by cloning (downloading) the repo using git.
|
||||||
|
|
||||||
|
If git is installed, run the following commands under a PowerShell window to clone and move into project's directory:
|
||||||
|
```ps1
|
||||||
|
git clone --depth 1 "https://github.com/ChrisTitusTech/winutil.git"
|
||||||
|
cd winutil
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Automation
|
To build the project, run the Compile Script under a PowerShell window (admin permissions IS NOT required):
|
||||||
|
```ps1
|
||||||
Some features are avaliable through automation. This allows you to save your config file pass it to Winutil walk away and come back to a finished system. Here is how you can set it up currently with Winutil >24.01.15
|
.\Compile.ps1
|
||||||
|
|
||||||
1. On the Install Tab, click "Get Installed", this will get all installed apps **supported by Winutil** on the system
|
|
||||||

|
|
||||||
2. Click on the Settings cog in the upper right corner and chose Export, chose file file and location, this will export the setting file.
|
|
||||||

|
|
||||||
3. Copy this file to a USB or somewhere you can use after Windows installation.
|
|
||||||
4. Use Microwin tab to create a custom Windows image.
|
|
||||||
5. Install the Windows image.
|
|
||||||
6. In the new Windows, Open PowerShell in the admin mode and run command to automatically apply tweaks and install apps from the config file.
|
|
||||||
```
|
|
||||||
iex "& { $(irm christitus.com/win) } -Config [path-to-your-config] -Run"
|
|
||||||
```
|
|
||||||
7. Have a cup of coffee! Come back when it's done.
|
|
||||||
|
|
||||||
|
|
||||||
## Issues:
|
|
||||||
|
|
||||||
- If you are unable to resolve christitus.com/win and are getting errors launching the tool, it might be due to India blocking GitHub's content domain and preventing downloads. You may use a VPN or change your DNS provider to Google/Cloudflare/etc.
|
|
||||||
|
|
||||||
Source: <https://timesofindia.indiatimes.com/gadgets-news/github-content-domain-blocked-for-these-indian-users-reports/articleshow/96687992.cms>
|
|
||||||
|
|
||||||
- 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.
|
|
||||||
|
|
||||||
- If you are having TLS 1.2 issues, or are having trouble resolving `christitus.com/win` then run with the following command:
|
|
||||||
|
|
||||||
```
|
|
||||||
[Net.ServicePointManager]::SecurityProtocol=[Net.SecurityProtocolType]::Tls12;iex(New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/ChrisTitusTech/winutil/main/winutil.ps1')
|
|
||||||
```
|
```
|
||||||
|
|
||||||
If you are still having issues try changing your DNS provider to 1.1.1.1 || 1.0.0.1 or 8.8.8.8 || 8.8.4.4
|
You'll see a new file named `winutil.ps1`, which's created by `Compile.ps1` script, now you can run it as admin and a new window will popup, enjoy your own compiled version of WinUtil :)
|
||||||
|
|
||||||
## Support
|
> [!TIP]
|
||||||
|
> For more info on using WinUtil and how to develop for it, please consider reading [the Contribution Guidelines](https://winutil.christitus.com/contributing/), if you don't know where to start, or have questions, you can ask over on our [Discord Community Server](https://discord.gg/RUbZUZyByQ) and active project members will answer when they can.
|
||||||
|
|
||||||
|
## 💖 Support
|
||||||
- To morally and mentally support the project, make sure to leave a ⭐️!
|
- To morally and mentally support the project, make sure to leave a ⭐️!
|
||||||
- EXE Wrapper for $10 @ https://www.cttstore.com/windows-toolbox
|
- EXE Wrapper for $10 @ https://www.cttstore.com/windows-toolbox
|
||||||
|
|
||||||
## Tutorial
|
## 💖 Sponsors
|
||||||
|
|
||||||
[](https://www.youtube.com/watch?v=6UQZ5oQg8XA)
|
These are the sponsors that help keep this project alive with monthly contributions.
|
||||||
|
|
||||||
## Overview
|
<!-- sponsors --><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/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 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/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><a href="https://github.com/andrewpayne68"><img src="https://github.com/andrewpayne68.png" width="60px" alt="User avatar: Andrew P" /></a><!-- sponsors -->
|
||||||
|
|
||||||
- Install
|
## 🏅 Thanks to all Contributors
|
||||||
- Install Selection: Organize programs by category and facilitate installation by enabling users to select programs and initiate the installation process with a single click.
|
|
||||||
|
|
||||||
- Upgrade All: Upgrade all existing programs to their latest versions, ensuring users have the most up-to-date and feature-rich software.
|
|
||||||
|
|
||||||
- Uninstall Selection: Effortlessly uninstall selected programs, providing users with a streamlined way to remove unwanted software from their system.
|
|
||||||
|
|
||||||
- Get Installed: Retrieve a comprehensive list of installed programs on the system, offering users visibility into the software currently installed on their computer.
|
|
||||||
|
|
||||||
- Import / Export: Enable users to import or export the selection list of programs, allowing them to save their preferred program configurations or share them with others. This feature promotes convenience and flexibility in managing program selections across different systems.
|
|
||||||
|
|
||||||
- Tweaks
|
|
||||||
- Recommended Selection: Provides pre-defined templates tailored for desktop, laptop, and minimal configurations, allowing users to select recommended settings and optimizations specific to their system type.
|
|
||||||
|
|
||||||
- Essential Tweaks: Offers a collection of essential tweaks aimed at improving system performance, privacy, and resource utilization. These tweaks include creating a system restore point, disabling telemetry, Wi-Fi Sense, setting services to manual, disabling location tracking, and HomeGroup, among others.
|
|
||||||
|
|
||||||
- Advanced Tweaks: Encompasses a range of various advanced power user tweaks to further optimize the system. These tweaks include removing OneDrive and Edge, disabling User Account Control (UAC), notification panel, among others.
|
|
||||||
|
|
||||||
- Toggles: Adds easy to use, one click shortcuts for toggling dark mode, NumLock on startup, file extensions, sticky keys, among others.
|
|
||||||
|
|
||||||
- Additional Tweaks: Introduces various other tweaks such as enabling dark mode, changing DNS settings, adding an Ultimate Performance mode, and creating shortcuts for WinUtil tools. These tweaks provide users with additional customization options to tailor their system to their preferences.
|
|
||||||
|
|
||||||
- Config
|
|
||||||
- Features: Allows users to easily install various essential components and features to enhance their Windows experience. These features include installing .NET Frameworks, enabling Hyper-V virtualization, enabling legacy media support for Windows Media Player and DirectPlay, enabling NFS (Network File System) for network file sharing, and enabling Windows Subsystem for Linux (WSL) for running Linux applications on Windows.
|
|
||||||
|
|
||||||
- Fixes: Provides a range of helpful fixes to address common issues and improve system stability. This includes setting up autologon for seamless login experiences, resetting Windows updates to resolve update-related problems, performing a system corruption scan to detect and repair corrupted files, and resetting network settings to troubleshoot network connectivity issues.
|
|
||||||
|
|
||||||
- Legacy Windows Panels: Includes access to legacy Windows panels from Windows 7, allowing users to access familiar and powerful tools. These panels include Control Panel for managing system settings, Network Connections for configuring network adapters and connections, Power Panel for adjusting power and sleep settings, Sound Settings for managing audio devices and settings, System Properties for viewing and modifying system information, and User Accounts for managing user profiles and account settings.
|
|
||||||
|
|
||||||
|
|
||||||
- Updates:
|
|
||||||
- Default (Out of Box) Settings: Provides the default settings that come with Windows for updates.
|
|
||||||
|
|
||||||
- Security (Recommended) Settings: Offers recommended settings, including a slight delay of feature updates by 2 years and installation of security updates 4 days after release.
|
|
||||||
|
|
||||||
- Disable All Updates (Not Recommended!): Allows users to disable all Windows updates, but it's not recommended due to potential security risks.
|
|
||||||
|
|
||||||
|
|
||||||
Video and Written Article walkthrough @ <https://christitus.com/windows-tool/>
|
|
||||||
|
|
||||||
## 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 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 doing a code change and you can submit a PR to main branch, but I am very selective about these. Do not use a code formatter, massive amounts of line changes, and 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 documenting any additions made to the tweaks section and ensuring that corresponding undo measures are in place to remove the newly added tweaks if necessary. Failure to adhere to this format may result in denial of the pull request. Additionally, comprehensive documentation is required for all code changes. 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 name so that it can be loaded into the runspace.
|
|
||||||
|
|
||||||
## Thanks to all Contributors
|
|
||||||
Thanks a lot for spending your time helping Winutil grow. Thanks a lot! Keep rocking 🍻.
|
Thanks a lot for spending your time helping Winutil grow. Thanks a lot! Keep rocking 🍻.
|
||||||
|
|
||||||
[](https://github.com/ChrisTitusTech/winutil/graphs/contributors)
|
[](https://github.com/ChrisTitusTech/winutil/graphs/contributors)
|
||||||
|
|
||||||
## GitHub Stats
|
## 📊 GitHub Stats
|
||||||
|
|
||||||

|

|
||||||
|
|||||||
62
config/appnavigation.json
Normal file
@@ -0,0 +1,62 @@
|
|||||||
|
{
|
||||||
|
"WPFInstall": {
|
||||||
|
"Content": "Install/Upgrade Applications",
|
||||||
|
"Category": "____Actions",
|
||||||
|
"Type": "Button",
|
||||||
|
"Order": "1",
|
||||||
|
"Description": "Install or upgrade the selected applications"
|
||||||
|
},
|
||||||
|
"WPFUninstall": {
|
||||||
|
"Content": "Uninstall Applications",
|
||||||
|
"Category": "____Actions",
|
||||||
|
"Type": "Button",
|
||||||
|
"Order": "2",
|
||||||
|
"Description": "Uninstall the selected applications"
|
||||||
|
},
|
||||||
|
"WPFInstallUpgrade": {
|
||||||
|
"Content": "Upgrade all Applications",
|
||||||
|
"Category": "____Actions",
|
||||||
|
"Type": "Button",
|
||||||
|
"Order": "3",
|
||||||
|
"Description": "Upgrade all applications to the latest version"
|
||||||
|
},
|
||||||
|
"WingetRadioButton": {
|
||||||
|
"Content": "Winget",
|
||||||
|
"Category": "__Package Manager",
|
||||||
|
"Type": "RadioButton",
|
||||||
|
"GroupName": "PackageManagerGroup",
|
||||||
|
"Checked": true,
|
||||||
|
"Order": "1",
|
||||||
|
"Description": "Use Winget for package management"
|
||||||
|
},
|
||||||
|
"ChocoRadioButton": {
|
||||||
|
"Content": "Chocolatey",
|
||||||
|
"Category": "__Package Manager",
|
||||||
|
"Type": "RadioButton",
|
||||||
|
"GroupName": "PackageManagerGroup",
|
||||||
|
"Checked": false,
|
||||||
|
"Order": "2",
|
||||||
|
"Description": "Use Chocolatey for package management"
|
||||||
|
},
|
||||||
|
"WPFClearInstallSelection": {
|
||||||
|
"Content": "Clear Selection",
|
||||||
|
"Category": "__Selection",
|
||||||
|
"Type": "Button",
|
||||||
|
"Order": "1",
|
||||||
|
"Description": "Clear the selection of applications"
|
||||||
|
},
|
||||||
|
"WPFGetInstalled": {
|
||||||
|
"Content": "Get Installed",
|
||||||
|
"Category": "__Selection",
|
||||||
|
"Type": "Button",
|
||||||
|
"Order": "2",
|
||||||
|
"Description": "Show installed applications"
|
||||||
|
},
|
||||||
|
"WPFselectedAppsButton": {
|
||||||
|
"Content": "Selected Apps: 0",
|
||||||
|
"Category": "__Selection",
|
||||||
|
"Type": "Button",
|
||||||
|
"Order": "3",
|
||||||
|
"Description": "Show the selected applications"
|
||||||
|
}
|
||||||
|
}
|
||||||
442
config/autounattend.xml
Normal file
@@ -0,0 +1,442 @@
|
|||||||
|
<?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>
|
||||||
@@ -1,30 +1,50 @@
|
|||||||
{
|
{
|
||||||
"Google":{
|
"Google":{
|
||||||
"Primary": "8.8.8.8",
|
"Primary": "8.8.8.8",
|
||||||
"Secondary": "8.8.4.4"
|
"Secondary": "8.8.4.4",
|
||||||
|
"Primary6": "2001:4860:4860::8888",
|
||||||
|
"Secondary6": "2001:4860:4860::8844"
|
||||||
},
|
},
|
||||||
"Cloudflare":{
|
"Cloudflare":{
|
||||||
"Primary": "1.1.1.1",
|
"Primary": "1.1.1.1",
|
||||||
"Secondary": "1.0.0.1"
|
"Secondary": "1.0.0.1",
|
||||||
|
"Primary6": "2606:4700:4700::1111",
|
||||||
|
"Secondary6": "2606:4700:4700::1001"
|
||||||
},
|
},
|
||||||
"Cloudflare_Malware":{
|
"Cloudflare_Malware":{
|
||||||
"Primary": "1.1.1.2",
|
"Primary": "1.1.1.2",
|
||||||
"Secondary": "1.0.0.2"
|
"Secondary": "1.0.0.2",
|
||||||
|
"Primary6": "2606:4700:4700::1112",
|
||||||
|
"Secondary6": "2606:4700:4700::1002"
|
||||||
},
|
},
|
||||||
"Cloudflare_Malware_Adult":{
|
"Cloudflare_Malware_Adult":{
|
||||||
"Primary": "1.1.1.3",
|
"Primary": "1.1.1.3",
|
||||||
"Secondary": "1.0.0.3"
|
"Secondary": "1.0.0.3",
|
||||||
},
|
"Primary6": "2606:4700:4700::1113",
|
||||||
"Level3":{
|
"Secondary6": "2606:4700:4700::1003"
|
||||||
"Primary": "4.2.2.2",
|
|
||||||
"Secondary": "4.2.2.1"
|
|
||||||
},
|
},
|
||||||
"Open_DNS":{
|
"Open_DNS":{
|
||||||
"Primary": "208.67.222.222",
|
"Primary": "208.67.222.222",
|
||||||
"Secondary": "208.67.220.220"
|
"Secondary": "208.67.220.220",
|
||||||
|
"Primary6": "2620:119:35::35",
|
||||||
|
"Secondary6": "2620:119:53::53"
|
||||||
},
|
},
|
||||||
"Quad9":{
|
"Quad9":{
|
||||||
"Primary": "9.9.9.9",
|
"Primary": "9.9.9.9",
|
||||||
"Secondary": "149.112.112.112"
|
"Secondary": "149.112.112.112",
|
||||||
|
"Primary6": "2620:fe::fe",
|
||||||
|
"Secondary6": "2620:fe::9"
|
||||||
|
},
|
||||||
|
"AdGuard_Ads_Trackers":{
|
||||||
|
"Primary": "94.140.14.14",
|
||||||
|
"Secondary": "94.140.15.15",
|
||||||
|
"Primary6": "2a10:50c0::ad1:ff",
|
||||||
|
"Secondary6": "2a10:50c0::ad2:ff"
|
||||||
|
},
|
||||||
|
"AdGuard_Ads_Trackers_Malware_Adult":{
|
||||||
|
"Primary": "94.140.14.15",
|
||||||
|
"Secondary": "94.140.15.16",
|
||||||
|
"Primary6": "2a10:50c0::bad1:ff",
|
||||||
|
"Secondary6": "2a10:50c0::bad2:ff"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,9 +9,8 @@
|
|||||||
"NetFx4-AdvSrvs",
|
"NetFx4-AdvSrvs",
|
||||||
"NetFx3"
|
"NetFx3"
|
||||||
],
|
],
|
||||||
"InvokeScript": [
|
"InvokeScript": [],
|
||||||
|
"link": "https://winutil.christitus.com/dev/features/features/dotnet"
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"WPFFeatureshyperv": {
|
"WPFFeatureshyperv": {
|
||||||
"Content": "HyperV Virtualization",
|
"Content": "HyperV Virtualization",
|
||||||
@@ -20,18 +19,12 @@
|
|||||||
"panel": "1",
|
"panel": "1",
|
||||||
"Order": "a011_",
|
"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": [
|
"InvokeScript": [
|
||||||
"Start-Process -FilePath cmd.exe -ArgumentList '/c bcdedit /set hypervisorschedulertype classic' -Wait"
|
"bcdedit /set hypervisorschedulertype classic"
|
||||||
]
|
],
|
||||||
|
"link": "https://winutil.christitus.com/dev/features/features/hyperv"
|
||||||
},
|
},
|
||||||
"WPFFeatureslegacymedia": {
|
"WPFFeatureslegacymedia": {
|
||||||
"Content": "Legacy Media (WMP, DirectPlay)",
|
"Content": "Legacy Media (WMP, DirectPlay)",
|
||||||
@@ -45,9 +38,8 @@
|
|||||||
"DirectPlay",
|
"DirectPlay",
|
||||||
"LegacyComponents"
|
"LegacyComponents"
|
||||||
],
|
],
|
||||||
"InvokeScript": [
|
"InvokeScript": [],
|
||||||
|
"link": "https://winutil.christitus.com/dev/features/features/legacymedia"
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"WPFFeaturewsl": {
|
"WPFFeaturewsl": {
|
||||||
"Content": "Windows Subsystem for Linux",
|
"Content": "Windows Subsystem for Linux",
|
||||||
@@ -59,9 +51,8 @@
|
|||||||
"VirtualMachinePlatform",
|
"VirtualMachinePlatform",
|
||||||
"Microsoft-Windows-Subsystem-Linux"
|
"Microsoft-Windows-Subsystem-Linux"
|
||||||
],
|
],
|
||||||
"InvokeScript": [
|
"InvokeScript": [],
|
||||||
|
"link": "https://winutil.christitus.com/dev/features/features/wsl"
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"WPFFeaturenfs": {
|
"WPFFeaturenfs": {
|
||||||
"Content": "NFS - Network File System",
|
"Content": "NFS - Network File System",
|
||||||
@@ -80,43 +71,8 @@
|
|||||||
"Set-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\ClientForNFS\\CurrentVersion\\Default' -Name 'AnonymousGID' -Type DWord -Value 0",
|
"Set-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\ClientForNFS\\CurrentVersion\\Default' -Name 'AnonymousGID' -Type DWord -Value 0",
|
||||||
"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"
|
||||||
]
|
|
||||||
},
|
|
||||||
"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": [
|
"link": "https://winutil.christitus.com/dev/features/features/nfs"
|
||||||
"
|
|
||||||
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
|
|
||||||
"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"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
|
|
||||||
"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"WPFFeatureRegBackup": {
|
"WPFFeatureRegBackup": {
|
||||||
"Content": "Enable Daily Registry Backup Task 12.30am",
|
"Content": "Enable Daily Registry Backup Task 12.30am",
|
||||||
@@ -124,8 +80,7 @@
|
|||||||
"category": "Features",
|
"category": "Features",
|
||||||
"panel": "1",
|
"panel": "1",
|
||||||
"Order": "a017_",
|
"Order": "a017_",
|
||||||
"feature": [
|
"feature": [],
|
||||||
],
|
|
||||||
"InvokeScript": [
|
"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 'EnablePeriodicBackup' -Type DWord -Value 1 -Force
|
||||||
@@ -134,7 +89,8 @@
|
|||||||
$trigger = New-ScheduledTaskTrigger -Daily -At 00:30
|
$trigger = New-ScheduledTaskTrigger -Daily -At 00:30
|
||||||
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://winutil.christitus.com/dev/features/features/regbackup"
|
||||||
},
|
},
|
||||||
"WPFFeatureEnableLegacyRecovery": {
|
"WPFFeatureEnableLegacyRecovery": {
|
||||||
"Content": "Enable Legacy F8 Boot Recovery",
|
"Content": "Enable Legacy F8 Boot Recovery",
|
||||||
@@ -142,17 +98,11 @@
|
|||||||
"category": "Features",
|
"category": "Features",
|
||||||
"panel": "1",
|
"panel": "1",
|
||||||
"Order": "a018_",
|
"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
|
"link": "https://winutil.christitus.com/dev/features/features/enablelegacyrecovery"
|
||||||
}
|
|
||||||
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
|
|
||||||
"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"WPFFeatureDisableLegacyRecovery": {
|
"WPFFeatureDisableLegacyRecovery": {
|
||||||
"Content": "Disable Legacy F8 Boot Recovery",
|
"Content": "Disable Legacy F8 Boot Recovery",
|
||||||
@@ -160,114 +110,188 @@
|
|||||||
"category": "Features",
|
"category": "Features",
|
||||||
"panel": "1",
|
"panel": "1",
|
||||||
"Order": "a019_",
|
"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
|
"link": "https://winutil.christitus.com/dev/features/features/disablelegacyrecovery"
|
||||||
}
|
|
||||||
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
|
|
||||||
"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"WPFFeaturesandbox": {
|
"WPFFeaturesSandbox": {
|
||||||
"Content": "Windows Sandbox",
|
"Content": "Windows Sandbox",
|
||||||
|
"Description": "Windows Sandbox is a lightweight virtual machine that provides a temporary desktop environment to safely run applications and programs in isolation.",
|
||||||
"category": "Features",
|
"category": "Features",
|
||||||
"panel": "1",
|
"panel": "1",
|
||||||
"Order": "a021_",
|
"Order": "a021_",
|
||||||
"Description": "Windows Sandbox is a lightweight virtual machine that provides a temporary desktop environment to safely run applications and programs in isolation."
|
"feature": [
|
||||||
|
"Containers-DisposableClientVM"
|
||||||
|
],
|
||||||
|
"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_",
|
"Order": "a060_",
|
||||||
"Type": "150"
|
"Type": "Button",
|
||||||
|
"ButtonWidth": "300",
|
||||||
|
"link": "https://winutil.christitus.com/dev/features/features/install"
|
||||||
},
|
},
|
||||||
"WPFPanelAutologin": {
|
"WPFPanelAutologin": {
|
||||||
"Content": "Set Up Autologin",
|
"Content": "Set Up Autologin",
|
||||||
"category": "Fixes",
|
"category": "Fixes",
|
||||||
"Order": "a040_",
|
"Order": "a040_",
|
||||||
"panel": "1",
|
"panel": "1",
|
||||||
"Type": "300"
|
"Type": "Button",
|
||||||
|
"ButtonWidth": "300",
|
||||||
|
"link": "https://winutil.christitus.com/dev/features/fixes/autologin"
|
||||||
},
|
},
|
||||||
"WPFFixesUpdate": {
|
"WPFFixesUpdate": {
|
||||||
"Content": "Reset Windows Update",
|
"Content": "Reset Windows Update",
|
||||||
"category": "Fixes",
|
"category": "Fixes",
|
||||||
"panel": "1",
|
"panel": "1",
|
||||||
"Order": "a041_",
|
"Order": "a041_",
|
||||||
"Type": "300"
|
"Type": "Button",
|
||||||
|
"ButtonWidth": "300",
|
||||||
|
"link": "https://winutil.christitus.com/dev/features/fixes/update"
|
||||||
},
|
},
|
||||||
"WPFFixesNetwork": {
|
"WPFFixesNetwork": {
|
||||||
"Content": "Reset Network",
|
"Content": "Reset Network",
|
||||||
"category": "Fixes",
|
"category": "Fixes",
|
||||||
"Order": "a042_",
|
"Order": "a042_",
|
||||||
"panel": "1",
|
"panel": "1",
|
||||||
"Type": "300"
|
"Type": "Button",
|
||||||
|
"ButtonWidth": "300",
|
||||||
|
"link": "https://winutil.christitus.com/dev/features/fixes/network"
|
||||||
},
|
},
|
||||||
"WPFPanelDISM": {
|
"WPFPanelDISM": {
|
||||||
"Content": "System Corruption Scan",
|
"Content": "System Corruption Scan",
|
||||||
"category": "Fixes",
|
"category": "Fixes",
|
||||||
"panel": "1",
|
"panel": "1",
|
||||||
"Order": "a043_",
|
"Order": "a043_",
|
||||||
"Type": "300"
|
"Type": "Button",
|
||||||
|
"ButtonWidth": "300",
|
||||||
|
"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_",
|
"Order": "a044_",
|
||||||
"Type": "300"
|
"Type": "Button",
|
||||||
|
"ButtonWidth": "300",
|
||||||
|
"link": "https://winutil.christitus.com/dev/features/fixes/winget"
|
||||||
},
|
},
|
||||||
"WPFRunAdobeCCCleanerTool": {
|
"WPFRunAdobeCCCleanerTool": {
|
||||||
"Content": "Remove Adobe Creative Cloud",
|
"Content": "Remove Adobe Creative Cloud",
|
||||||
"category": "Fixes",
|
"category": "Fixes",
|
||||||
"panel": "1",
|
"panel": "1",
|
||||||
"Order": "a045_",
|
"Order": "a045_",
|
||||||
"Type": "300"
|
"Type": "Button",
|
||||||
|
"ButtonWidth": "300",
|
||||||
|
"link": "https://winutil.christitus.com/dev/features/fixes/runadobecccleanertool"
|
||||||
},
|
},
|
||||||
"WPFPanelnetwork": {
|
"WPFPanelControl": {
|
||||||
"Content": "Network Connections",
|
|
||||||
"category": "Legacy Windows Panels",
|
|
||||||
"panel": "2",
|
|
||||||
"Type": "200"
|
|
||||||
},
|
|
||||||
"WPFPanelcontrol": {
|
|
||||||
"Content": "Control Panel",
|
"Content": "Control Panel",
|
||||||
"category": "Legacy Windows Panels",
|
"category": "Legacy Windows Panels",
|
||||||
"panel": "2",
|
"panel": "2",
|
||||||
"Type": "200"
|
"Type": "Button",
|
||||||
|
"ButtonWidth": "300",
|
||||||
|
"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",
|
||||||
|
"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",
|
||||||
|
"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": "200"
|
"Type": "Button",
|
||||||
|
"ButtonWidth": "300",
|
||||||
|
"link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/power"
|
||||||
},
|
},
|
||||||
"WPFPanelregion": {
|
"WPFPanelPrinter": {
|
||||||
|
"Content": "Printer Panel",
|
||||||
|
"category": "Legacy Windows Panels",
|
||||||
|
"panel": "2",
|
||||||
|
"Type": "Button",
|
||||||
|
"ButtonWidth": "300",
|
||||||
|
"link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/printer"
|
||||||
|
},
|
||||||
|
"WPFPanelRegion": {
|
||||||
"Content": "Region",
|
"Content": "Region",
|
||||||
"category": "Legacy Windows Panels",
|
"category": "Legacy Windows Panels",
|
||||||
"panel": "2",
|
"panel": "2",
|
||||||
"Type": "200"
|
"Type": "Button",
|
||||||
|
"ButtonWidth": "300",
|
||||||
|
"link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/region"
|
||||||
},
|
},
|
||||||
"WPFPanelsound": {
|
"WPFPanelRestore": {
|
||||||
|
"Content": "Windows Restore",
|
||||||
|
"category": "Legacy Windows Panels",
|
||||||
|
"panel": "2",
|
||||||
|
"Type": "Button",
|
||||||
|
"ButtonWidth": "300",
|
||||||
|
"link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/restore"
|
||||||
|
},
|
||||||
|
"WPFPanelSound": {
|
||||||
"Content": "Sound Settings",
|
"Content": "Sound Settings",
|
||||||
"category": "Legacy Windows Panels",
|
"category": "Legacy Windows Panels",
|
||||||
"panel": "2",
|
"panel": "2",
|
||||||
"Type": "200"
|
"Type": "Button",
|
||||||
|
"ButtonWidth": "300",
|
||||||
|
"link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/user"
|
||||||
},
|
},
|
||||||
"WPFPanelsystem": {
|
"WPFPanelSystem": {
|
||||||
"Content": "System Properties",
|
"Content": "System Properties",
|
||||||
"category": "Legacy Windows Panels",
|
"category": "Legacy Windows Panels",
|
||||||
"panel": "2",
|
"panel": "2",
|
||||||
"Type": "200"
|
"Type": "Button",
|
||||||
|
"ButtonWidth": "300",
|
||||||
|
"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": "200"
|
"Type": "Button",
|
||||||
|
"ButtonWidth": "300",
|
||||||
|
"link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/timedate"
|
||||||
|
},
|
||||||
|
"WPFWinUtilInstallPSProfile": {
|
||||||
|
"Content": "Install CTT PowerShell Profile",
|
||||||
|
"category": "Powershell Profile",
|
||||||
|
"panel": "2",
|
||||||
|
"Order": "a083_",
|
||||||
|
"Type": "Button",
|
||||||
|
"ButtonWidth": "300"
|
||||||
|
},
|
||||||
|
"WPFWinUtilUninstallPSProfile": {
|
||||||
|
"Content": "Uninstall CTT PowerShell Profile",
|
||||||
|
"category": "Powershell Profile",
|
||||||
|
"panel": "2",
|
||||||
|
"Order": "a084_",
|
||||||
|
"Type": "Button",
|
||||||
|
"ButtonWidth": "300"
|
||||||
|
},
|
||||||
|
"WPFWinUtilSSHServer": {
|
||||||
|
"Content": "Enable OpenSSH Server",
|
||||||
|
"category": "Remote Access",
|
||||||
|
"panel": "2",
|
||||||
|
"Order": "a084_",
|
||||||
|
"Type": "Button",
|
||||||
|
"ButtonWidth": "300"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,399 +0,0 @@
|
|||||||
# This file is meant to assist in building out the json files inside this folder.
|
|
||||||
|
|
||||||
#===========================================================================
|
|
||||||
# applications.json
|
|
||||||
#===========================================================================
|
|
||||||
|
|
||||||
<#
|
|
||||||
Applications.json
|
|
||||||
-----------------
|
|
||||||
This file holds all the install commands to install the applications.
|
|
||||||
This file has the ability to expect multiple frameworks per checkbox.
|
|
||||||
You can also add multiple install commands by separating them with ;
|
|
||||||
|
|
||||||
The structure of the json is as follows
|
|
||||||
|
|
||||||
{
|
|
||||||
"Name of Button": {
|
|
||||||
"winget": "Winget command"
|
|
||||||
"choco": "Chocolatey command"
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
Example:
|
|
||||||
|
|
||||||
{
|
|
||||||
"WPFInstalladobe": {
|
|
||||||
"winget": "Adobe.Acrobat.Reader.64-bit"
|
|
||||||
"choco": "adobereader"
|
|
||||||
},
|
|
||||||
"WPFInstalladvancedip": {
|
|
||||||
"winget": "Famatech.AdvancedIPScanner"
|
|
||||||
"choco": "advanced-ip-scanner"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#>
|
|
||||||
|
|
||||||
# Modify the variables and run his code. It will import the current file and add your addition. From there you can create a pull request.
|
|
||||||
#------Do not delete WPF------
|
|
||||||
|
|
||||||
$NameofButton = "WPF" + ""
|
|
||||||
$WingetCommand = ""
|
|
||||||
$ChocoCommand = ""
|
|
||||||
|
|
||||||
$ButtonToAdd = New-Object psobject
|
|
||||||
$jsonfile = Get-Content ./config/applications.json | ConvertFrom-Json
|
|
||||||
|
|
||||||
# Remove if already exists
|
|
||||||
if($jsonfile.$NameofButton){
|
|
||||||
$jsonfile.psobject.Properties.remove($NameofButton)
|
|
||||||
}
|
|
||||||
|
|
||||||
Add-Member -InputObject $ButtonToAdd -MemberType NoteProperty -Name "Winget" -Value $WingetCommand
|
|
||||||
Add-Member -InputObject $ButtonToAdd -MemberType NoteProperty -Name "choco" -Value $ChocoCommand
|
|
||||||
Add-Member -InputObject $jsonfile.install -MemberType NoteProperty -Name $NameofButton -Value $ButtonToAdd
|
|
||||||
|
|
||||||
$jsonfile | ConvertTo-Json | Out-File ./config/applications.json
|
|
||||||
|
|
||||||
#===========================================================================
|
|
||||||
# feature.json
|
|
||||||
#===========================================================================
|
|
||||||
|
|
||||||
<#
|
|
||||||
feature.json
|
|
||||||
-----------------
|
|
||||||
This file holds all the windows commands to install specific features (IE Hyper-v)
|
|
||||||
|
|
||||||
The structure of the json is as follows
|
|
||||||
|
|
||||||
{
|
|
||||||
"Name of Button": [
|
|
||||||
"Array of",
|
|
||||||
"commands"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
Example:
|
|
||||||
{
|
|
||||||
"Featurewsl": [
|
|
||||||
"VirtualMachinePlatform",
|
|
||||||
"Microsoft-Windows-Subsystem-Linux"
|
|
||||||
],
|
|
||||||
"Featurenfs": [
|
|
||||||
"ServicesForNFS-ClientOnly",
|
|
||||||
"ClientForNFS-Infrastructure",
|
|
||||||
"NFS-Administration"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
#>
|
|
||||||
|
|
||||||
# Modify the variables and run his code. It will import the current file and add your addition. From there you can create a pull request.
|
|
||||||
|
|
||||||
$NameofButton = ""
|
|
||||||
$commands = @(
|
|
||||||
|
|
||||||
)
|
|
||||||
|
|
||||||
$jsonfile = Get-Content ./config/feature.json | ConvertFrom-Json
|
|
||||||
|
|
||||||
# Remove if already exists
|
|
||||||
if($jsonfile.$NameofButton){
|
|
||||||
$jsonfile.psobject.Properties.remove($NameofButton)
|
|
||||||
}
|
|
||||||
|
|
||||||
Add-Member -InputObject $jsonfile -MemberType NoteProperty -Name $NameofButton -Value $commands
|
|
||||||
|
|
||||||
$jsonfile | ConvertTo-Json | Out-File ./config/feature.json
|
|
||||||
|
|
||||||
#===========================================================================
|
|
||||||
# preset.json
|
|
||||||
#===========================================================================
|
|
||||||
|
|
||||||
<#
|
|
||||||
preset.json
|
|
||||||
-----------------
|
|
||||||
This file holds all check boxes you wish to check when clicking a preset button in the tweaks section.
|
|
||||||
|
|
||||||
The structure of the json is as follows
|
|
||||||
|
|
||||||
{
|
|
||||||
"Name of Button": [
|
|
||||||
"Array of",
|
|
||||||
"checkboxes to check"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
Example:
|
|
||||||
{
|
|
||||||
"laptop": [
|
|
||||||
"EssTweaksAH",
|
|
||||||
"EssTweaksDVR",
|
|
||||||
"EssTweaksHome",
|
|
||||||
"EssTweaksLoc",
|
|
||||||
"EssTweaksOO",
|
|
||||||
"EssTweaksRP",
|
|
||||||
"EssTweaksServices",
|
|
||||||
"EssTweaksStorage",
|
|
||||||
"EssTweaksTele",
|
|
||||||
"EssTweaksWifi",
|
|
||||||
"MiscTweaksLapPower",
|
|
||||||
"MiscTweaksLapNum"
|
|
||||||
],
|
|
||||||
"minimal": [
|
|
||||||
"EssTweaksHome",
|
|
||||||
"EssTweaksOO",
|
|
||||||
"EssTweaksRP",
|
|
||||||
"EssTweaksServices",
|
|
||||||
"EssTweaksTele"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
#>
|
|
||||||
|
|
||||||
# Modify the variables and run his code. It will import the current file and add your addition. From there you can create a pull request.
|
|
||||||
|
|
||||||
$NameofButton = "WPF" + ""
|
|
||||||
$commands = @(
|
|
||||||
|
|
||||||
)
|
|
||||||
|
|
||||||
$jsonfile = Get-Content ./config/preset.json | ConvertFrom-Json
|
|
||||||
|
|
||||||
# Remove if already exists
|
|
||||||
if($jsonfile.$NameofButton){
|
|
||||||
$jsonfile.psobject.Properties.remove($NameofButton)
|
|
||||||
}
|
|
||||||
|
|
||||||
Add-Member -InputObject $jsonfile -MemberType NoteProperty -Name $NameofButton -Value $commands
|
|
||||||
|
|
||||||
$jsonfile | ConvertTo-Json | Out-File ./config/preset.json
|
|
||||||
|
|
||||||
#===========================================================================
|
|
||||||
# tweaks.json
|
|
||||||
#===========================================================================
|
|
||||||
|
|
||||||
<#
|
|
||||||
tweaks.json
|
|
||||||
-----------------
|
|
||||||
This file holds all the tweaks needed to make modifications to windows. This file is the most complicated so modify with care.
|
|
||||||
|
|
||||||
The structure of the json is as follows
|
|
||||||
|
|
||||||
{
|
|
||||||
"Name of button": {
|
|
||||||
"registry" : [
|
|
||||||
{
|
|
||||||
"Path": "Path in registry",
|
|
||||||
"Name": "Name of Registry key",
|
|
||||||
"Type": "Item type",
|
|
||||||
"Value": "Value to modify",
|
|
||||||
"OriginalValue": "value to reset"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"service" : [
|
|
||||||
{
|
|
||||||
"Name": "Name of service",
|
|
||||||
"StartupType": "Startup type to set",
|
|
||||||
"OriginalType": "Startup type to reset"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"ScheduledTask" : [
|
|
||||||
{
|
|
||||||
"Name": "Path to scheduled task",
|
|
||||||
"State": "State to set",
|
|
||||||
"OriginalState": "State to reset"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"appx": [
|
|
||||||
List of appx,
|
|
||||||
files to uninstall
|
|
||||||
],
|
|
||||||
"InvokeScript": [
|
|
||||||
"Script to make modifications not possible with the above types
|
|
||||||
Special care needs to be taken here as converting from json to a scriptblock
|
|
||||||
can cause weird issues. Please look at the example below to get an idea of how things should work"
|
|
||||||
],
|
|
||||||
"UndoScript": [
|
|
||||||
"Same as above however is meant to undo what you did above"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Example:
|
|
||||||
|
|
||||||
{
|
|
||||||
EssTweaksAH": {
|
|
||||||
"registry" : [
|
|
||||||
{
|
|
||||||
"Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\System",
|
|
||||||
"Name": "EnableActivityFeed",
|
|
||||||
"Type": "DWord",
|
|
||||||
"Value": "0",
|
|
||||||
"OriginalValue": "1"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\System",
|
|
||||||
"Name": "PublishUserActivities",
|
|
||||||
"Type": "DWord",
|
|
||||||
"Value": "0",
|
|
||||||
"OriginalValue": "1"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"EssTweaksHome": {
|
|
||||||
"service" : [
|
|
||||||
{
|
|
||||||
"Name": "HomeGroupListener",
|
|
||||||
"StartupType": "Manual",
|
|
||||||
"OriginalType": "Automatic"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Name": "HomeGroupProvider",
|
|
||||||
"StartupType": "Manual",
|
|
||||||
"OriginalType": "Automatic"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"EssTweaksTele": {
|
|
||||||
"ScheduledTask" : [
|
|
||||||
{
|
|
||||||
"Name": "Microsoft\\Windows\\Application Experience\\Microsoft Compatibility Appraiser",
|
|
||||||
"State": "Disabled",
|
|
||||||
"OriginalState": "Enabled"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Name": "Microsoft\\Windows\\Application Experience\\ProgramDataUpdater",
|
|
||||||
"State": "Disabled",
|
|
||||||
"OriginalState": "Enabled"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"EssTweaksDeBloat": {
|
|
||||||
"appx": [
|
|
||||||
"Microsoft.Microsoft3DViewer",
|
|
||||||
"Microsoft.AppConnector"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"EssTweaksOO": {
|
|
||||||
"InvokeScript": [
|
|
||||||
"Import-Module BitsTransfer
|
|
||||||
Start-BitsTransfer -Source \"https://raw.githubusercontent.com/ChrisTitusTech/win10script/master/ooshutup10.cfg\" -Destination C:\\Windows\\Temp\\ooshutup10.cfg
|
|
||||||
Start-BitsTransfer -Source \"https://dl5.oo-software.com/files/ooshutup10/OOSU10.exe\" -Destination C:\\Windows\\Temp\\OOSU10.exe
|
|
||||||
C:\\Windows\\Temp\\OOSU10.exe C:\\Windows\\Temp\\ooshutup10.cfg /quiet"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#>
|
|
||||||
|
|
||||||
# Modify the variables and run his code. It will import the current file and add your addition. From there you can create a pull request.
|
|
||||||
# Make sure to uncomment the sections you which to add.
|
|
||||||
|
|
||||||
#$Registry = @(
|
|
||||||
# # To add more repeat this separated by a comma
|
|
||||||
# @{
|
|
||||||
# Path = ""
|
|
||||||
# Name = ""
|
|
||||||
# Type = ""
|
|
||||||
# Value = ""
|
|
||||||
# OriginalValue = ""
|
|
||||||
# }
|
|
||||||
#)
|
|
||||||
|
|
||||||
#$Service = @(
|
|
||||||
# # To add more repeat this separated by a comma
|
|
||||||
# @{
|
|
||||||
# Name = ""
|
|
||||||
# StartupType = ""
|
|
||||||
# OriginalType = ""
|
|
||||||
# }
|
|
||||||
#)
|
|
||||||
|
|
||||||
#$ScheduledTask = @(
|
|
||||||
# # To add more repeat this separated by a comma
|
|
||||||
# @{
|
|
||||||
# Name = ""
|
|
||||||
# State = ""
|
|
||||||
# OriginalState = ""
|
|
||||||
# }
|
|
||||||
#)
|
|
||||||
|
|
||||||
#$Appx = @(
|
|
||||||
# ""
|
|
||||||
#)
|
|
||||||
|
|
||||||
#$InvokeScript = @(
|
|
||||||
# ""
|
|
||||||
#)
|
|
||||||
|
|
||||||
#$UndoScript = @(
|
|
||||||
# ""
|
|
||||||
#)
|
|
||||||
|
|
||||||
$NameofButton = "WPF" + ""
|
|
||||||
|
|
||||||
$ButtonToAdd = New-Object psobject
|
|
||||||
$jsonfile = Get-Content ./config/tweaks.json | ConvertFrom-Json
|
|
||||||
|
|
||||||
# Remove if already exists
|
|
||||||
if($jsonfile.$NameofButton){
|
|
||||||
$jsonfile.psobject.Properties.remove($NameofButton)
|
|
||||||
}
|
|
||||||
|
|
||||||
if($Registry){Add-Member -InputObject $ButtonToAdd -MemberType NoteProperty -Name "registry" -Value $Registry}
|
|
||||||
if($Service){Add-Member -InputObject $ButtonToAdd -MemberType NoteProperty -Name "service" -Value $Service}
|
|
||||||
if($ScheduledTask){Add-Member -InputObject $ButtonToAdd -MemberType NoteProperty -Name "ScheduledTask" -Value $ScheduledTask}
|
|
||||||
if($Appx){Add-Member -InputObject $ButtonToAdd -MemberType NoteProperty -Name "Appx" -Value $Appx}
|
|
||||||
if($InvokeScript){Add-Member -InputObject $ButtonToAdd -MemberType NoteProperty -Name "InvokeScript" -Value $InvokeScript}
|
|
||||||
if($UndoScript){Add-Member -InputObject $ButtonToAdd -MemberType NoteProperty -Name "UndoScript" -Value $UndoScript}
|
|
||||||
|
|
||||||
Add-Member -InputObject $jsonfile -MemberType NoteProperty -Name $NameofButton -Value $ButtonToAdd
|
|
||||||
|
|
||||||
($jsonfile | ConvertTo-Json -Depth 5).replace('\r\n',"`r`n") | Out-File ./config/tweaks.json
|
|
||||||
|
|
||||||
#===========================================================================
|
|
||||||
# dns.json
|
|
||||||
#===========================================================================
|
|
||||||
|
|
||||||
<#
|
|
||||||
dns.json
|
|
||||||
-----------------
|
|
||||||
This file holds all the DNS entries.
|
|
||||||
|
|
||||||
The structure of the json is as follows
|
|
||||||
|
|
||||||
{
|
|
||||||
"DNS Provider": [
|
|
||||||
"Primary": "IP address",
|
|
||||||
"Secondary": "IP address"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
Example:
|
|
||||||
{
|
|
||||||
"Cloudflare":{
|
|
||||||
"Primary": "1.1.1.1",
|
|
||||||
"Secondary": "1.0.0.1"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#>
|
|
||||||
|
|
||||||
# Modify the variables and run his code. It will import the current file and add your addition. From there you can create a pull request.
|
|
||||||
|
|
||||||
$NameofProvider = "" -replace " ","_"
|
|
||||||
$IPAddress = @{
|
|
||||||
"Primary" = "0.0.0.0"
|
|
||||||
"Secondary" = "0.0.0.0"
|
|
||||||
}
|
|
||||||
|
|
||||||
$ButtonToAdd = New-Object psobject
|
|
||||||
$jsonfile = Get-Content ./config/dns.json | ConvertFrom-Json
|
|
||||||
|
|
||||||
# Remove if already exists
|
|
||||||
if($jsonfile.$NameofProvider){
|
|
||||||
$jsonfile.psobject.Properties.remove($NameofProvider)
|
|
||||||
}
|
|
||||||
|
|
||||||
Add-Member -InputObject $jsonfile -MemberType NoteProperty -Name $NameofProvider -Value $IPAddress
|
|
||||||
|
|
||||||
($jsonfile | ConvertTo-Json -Depth 5).replace('\r\n',"`r`n") | Out-File ./config/dns.json
|
|
||||||
@@ -1,227 +0,0 @@
|
|||||||
############################################################################
|
|
||||||
# This file was created with O&O ShutUp10++ V1.9.1436
|
|
||||||
# and can be imported onto another computer.
|
|
||||||
#
|
|
||||||
# Download the application at https://www.oo-software.com/shutup10
|
|
||||||
# You can then import the file from within the program.
|
|
||||||
#
|
|
||||||
# Alternatively you can import it automatically over a command line.
|
|
||||||
# Simply use the following parameter:
|
|
||||||
# OOSU10.exe <path to file>
|
|
||||||
#
|
|
||||||
# Selecting the Option /quiet ends the app right after the import and the
|
|
||||||
# user does not get any feedback about the import.
|
|
||||||
#
|
|
||||||
# We are always happy to answer any questions you may have!
|
|
||||||
# © 2015-2023 O&O Software GmbH, Berlin. All rights reserved.
|
|
||||||
# https://www.oo-software.com/
|
|
||||||
############################################################################
|
|
||||||
|
|
||||||
P001 -
|
|
||||||
P002 -
|
|
||||||
P003 -
|
|
||||||
P004 -
|
|
||||||
P005 -
|
|
||||||
P006 -
|
|
||||||
P008 -
|
|
||||||
P026 -
|
|
||||||
P027 -
|
|
||||||
P028 -
|
|
||||||
P064 -
|
|
||||||
P065 -
|
|
||||||
P066 -
|
|
||||||
P067 -
|
|
||||||
P070 -
|
|
||||||
P069 -
|
|
||||||
P009 -
|
|
||||||
P010 -
|
|
||||||
P015 -
|
|
||||||
P068 -
|
|
||||||
P016 -
|
|
||||||
A001 -
|
|
||||||
A002 -
|
|
||||||
A003 -
|
|
||||||
A004 -
|
|
||||||
A006 -
|
|
||||||
A005 -
|
|
||||||
P007 -
|
|
||||||
P036 -
|
|
||||||
P025 -
|
|
||||||
P033 -
|
|
||||||
P023 -
|
|
||||||
P056 -
|
|
||||||
P057 -
|
|
||||||
P012 -
|
|
||||||
P034 -
|
|
||||||
P013 -
|
|
||||||
P035 -
|
|
||||||
P062 -
|
|
||||||
P063 -
|
|
||||||
P081 -
|
|
||||||
P047 -
|
|
||||||
P019 -
|
|
||||||
P048 -
|
|
||||||
P049 -
|
|
||||||
P020 -
|
|
||||||
P037 -
|
|
||||||
P011 -
|
|
||||||
P038 -
|
|
||||||
P050 -
|
|
||||||
P051 -
|
|
||||||
P018 -
|
|
||||||
P039 -
|
|
||||||
P021 -
|
|
||||||
P040 -
|
|
||||||
P022 -
|
|
||||||
P041 -
|
|
||||||
P014 -
|
|
||||||
P042 -
|
|
||||||
P052 -
|
|
||||||
P053 -
|
|
||||||
P054 -
|
|
||||||
P055 -
|
|
||||||
P029 -
|
|
||||||
P043 -
|
|
||||||
P030 -
|
|
||||||
P044 -
|
|
||||||
P031 -
|
|
||||||
P045 -
|
|
||||||
P032 -
|
|
||||||
P046 -
|
|
||||||
P058 -
|
|
||||||
P059 -
|
|
||||||
P060 -
|
|
||||||
P061 -
|
|
||||||
P071 -
|
|
||||||
P072 -
|
|
||||||
P073 -
|
|
||||||
P074 -
|
|
||||||
P075 -
|
|
||||||
P076 -
|
|
||||||
P077 -
|
|
||||||
P078 -
|
|
||||||
P079 -
|
|
||||||
P080 -
|
|
||||||
P024 -
|
|
||||||
S001 -
|
|
||||||
S002 -
|
|
||||||
S003 -
|
|
||||||
S008 -
|
|
||||||
E101 -
|
|
||||||
E201 -
|
|
||||||
E115 -
|
|
||||||
E215 -
|
|
||||||
E118 -
|
|
||||||
E218 -
|
|
||||||
E107 -
|
|
||||||
E207 -
|
|
||||||
E111 -
|
|
||||||
E211 -
|
|
||||||
E112 -
|
|
||||||
E212 -
|
|
||||||
E109 -
|
|
||||||
E209 -
|
|
||||||
E121 -
|
|
||||||
E221 -
|
|
||||||
E103 -
|
|
||||||
E203 -
|
|
||||||
E123 -
|
|
||||||
E223 -
|
|
||||||
E124 -
|
|
||||||
E224 -
|
|
||||||
E128 -
|
|
||||||
E228 -
|
|
||||||
E119 -
|
|
||||||
E219 -
|
|
||||||
E120 -
|
|
||||||
E220 -
|
|
||||||
E122 -
|
|
||||||
E222 -
|
|
||||||
E125 -
|
|
||||||
E225 -
|
|
||||||
E126 -
|
|
||||||
E226 -
|
|
||||||
E106 -
|
|
||||||
E206 -
|
|
||||||
E127 -
|
|
||||||
E227 -
|
|
||||||
E001 -
|
|
||||||
E002 -
|
|
||||||
E003 -
|
|
||||||
E008 -
|
|
||||||
E007 -
|
|
||||||
E010 -
|
|
||||||
E011 +
|
|
||||||
E012 +
|
|
||||||
E009 -
|
|
||||||
E004 -
|
|
||||||
E005 -
|
|
||||||
E013 -
|
|
||||||
E014 -
|
|
||||||
E006 -
|
|
||||||
Y001 -
|
|
||||||
Y002 -
|
|
||||||
Y003 -
|
|
||||||
Y004 -
|
|
||||||
Y005 -
|
|
||||||
Y006 -
|
|
||||||
Y007 -
|
|
||||||
C012 -
|
|
||||||
C002 -
|
|
||||||
C013 -
|
|
||||||
C007 -
|
|
||||||
C008 -
|
|
||||||
C009 -
|
|
||||||
C010 -
|
|
||||||
C011 -
|
|
||||||
C014 -
|
|
||||||
C015 -
|
|
||||||
C101 -
|
|
||||||
C201 -
|
|
||||||
C102 -
|
|
||||||
L001 -
|
|
||||||
L003 -
|
|
||||||
L004 -
|
|
||||||
L005 -
|
|
||||||
U001 -
|
|
||||||
U004 -
|
|
||||||
U005 -
|
|
||||||
U006 -
|
|
||||||
U007 -
|
|
||||||
W001 -
|
|
||||||
W011 -
|
|
||||||
W004 -
|
|
||||||
W005 -
|
|
||||||
W010 -
|
|
||||||
W009 -
|
|
||||||
P017 -
|
|
||||||
W006 -
|
|
||||||
W008 -
|
|
||||||
M006 -
|
|
||||||
M011 -
|
|
||||||
M010 -
|
|
||||||
O003 -
|
|
||||||
O001 -
|
|
||||||
S012 -
|
|
||||||
S013 -
|
|
||||||
S014 -
|
|
||||||
K001 -
|
|
||||||
K002 -
|
|
||||||
K005 -
|
|
||||||
M003 -
|
|
||||||
M015 -
|
|
||||||
M016 -
|
|
||||||
M017 -
|
|
||||||
M018 -
|
|
||||||
M019 -
|
|
||||||
M020 -
|
|
||||||
M021 -
|
|
||||||
M022 -
|
|
||||||
M001 -
|
|
||||||
M004 -
|
|
||||||
M005 -
|
|
||||||
M024 -
|
|
||||||
M012 -
|
|
||||||
M013 -
|
|
||||||
M014 -
|
|
||||||
N001 -
|
|
||||||
@@ -1,231 +0,0 @@
|
|||||||
############################################################################
|
|
||||||
# This file was created with O&O ShutUp10++ V1.9.1438
|
|
||||||
# and can be imported onto another computer.
|
|
||||||
#
|
|
||||||
# Download the application at https://www.oo-software.com/shutup10
|
|
||||||
# You can then import the file from within the program.
|
|
||||||
#
|
|
||||||
# Alternatively you can import it automatically over a command line.
|
|
||||||
# Simply use the following parameter:
|
|
||||||
# OOSU10.exe <path to file>
|
|
||||||
#
|
|
||||||
# Selecting the Option /quiet ends the app right after the import and the
|
|
||||||
# user does not get any feedback about the import.
|
|
||||||
#
|
|
||||||
# We are always happy to answer any questions you may have!
|
|
||||||
# © 2015-2024 O&O Software GmbH, Berlin. All rights reserved.
|
|
||||||
# https://www.oo-software.com/
|
|
||||||
############################################################################
|
|
||||||
|
|
||||||
P001 +
|
|
||||||
P002 +
|
|
||||||
P003 +
|
|
||||||
P004 +
|
|
||||||
P005 +
|
|
||||||
P006 +
|
|
||||||
P008 +
|
|
||||||
P026 +
|
|
||||||
P027 +
|
|
||||||
P028 +
|
|
||||||
P064 +
|
|
||||||
P065 +
|
|
||||||
P066 +
|
|
||||||
P067 +
|
|
||||||
P070 +
|
|
||||||
P069 +
|
|
||||||
P009 -
|
|
||||||
P010 +
|
|
||||||
P015 +
|
|
||||||
P068 -
|
|
||||||
P016 -
|
|
||||||
A001 +
|
|
||||||
A002 +
|
|
||||||
A003 +
|
|
||||||
A004 +
|
|
||||||
A006 +
|
|
||||||
A005 +
|
|
||||||
P007 +
|
|
||||||
P036 +
|
|
||||||
P025 +
|
|
||||||
P033 +
|
|
||||||
P023 +
|
|
||||||
P056 +
|
|
||||||
P057 -
|
|
||||||
P012 -
|
|
||||||
P034 -
|
|
||||||
P013 -
|
|
||||||
P035 -
|
|
||||||
P062 -
|
|
||||||
P063 -
|
|
||||||
P081 -
|
|
||||||
P047 -
|
|
||||||
P019 -
|
|
||||||
P048 -
|
|
||||||
P049 -
|
|
||||||
P020 -
|
|
||||||
P037 -
|
|
||||||
P011 -
|
|
||||||
P038 -
|
|
||||||
P050 -
|
|
||||||
P051 -
|
|
||||||
P018 -
|
|
||||||
P039 -
|
|
||||||
P021 -
|
|
||||||
P040 -
|
|
||||||
P022 -
|
|
||||||
P041 -
|
|
||||||
P014 -
|
|
||||||
P042 -
|
|
||||||
P052 -
|
|
||||||
P053 -
|
|
||||||
P054 -
|
|
||||||
P055 -
|
|
||||||
P029 -
|
|
||||||
P043 -
|
|
||||||
P030 -
|
|
||||||
P044 -
|
|
||||||
P031 -
|
|
||||||
P045 -
|
|
||||||
P032 -
|
|
||||||
P046 -
|
|
||||||
P058 -
|
|
||||||
P059 -
|
|
||||||
P060 -
|
|
||||||
P061 -
|
|
||||||
P071 -
|
|
||||||
P072 -
|
|
||||||
P073 -
|
|
||||||
P074 -
|
|
||||||
P075 -
|
|
||||||
P076 -
|
|
||||||
P077 -
|
|
||||||
P078 -
|
|
||||||
P079 -
|
|
||||||
P080 -
|
|
||||||
P024 +
|
|
||||||
S001 +
|
|
||||||
S002 +
|
|
||||||
S003 +
|
|
||||||
S008 -
|
|
||||||
E101 +
|
|
||||||
E201 +
|
|
||||||
E115 +
|
|
||||||
E215 +
|
|
||||||
E118 +
|
|
||||||
E218 +
|
|
||||||
E107 +
|
|
||||||
E207 +
|
|
||||||
E111 +
|
|
||||||
E211 +
|
|
||||||
E112 +
|
|
||||||
E212 +
|
|
||||||
E109 +
|
|
||||||
E209 +
|
|
||||||
E121 +
|
|
||||||
E221 +
|
|
||||||
E103 +
|
|
||||||
E203 +
|
|
||||||
E123 +
|
|
||||||
E223 +
|
|
||||||
E124 +
|
|
||||||
E224 +
|
|
||||||
E128 +
|
|
||||||
E228 +
|
|
||||||
E119 -
|
|
||||||
E219 -
|
|
||||||
E120 -
|
|
||||||
E220 -
|
|
||||||
E122 -
|
|
||||||
E222 -
|
|
||||||
E125 -
|
|
||||||
E225 -
|
|
||||||
E126 -
|
|
||||||
E226 -
|
|
||||||
E106 -
|
|
||||||
E206 -
|
|
||||||
E127 -
|
|
||||||
E227 -
|
|
||||||
E001 +
|
|
||||||
E002 +
|
|
||||||
E003 +
|
|
||||||
E008 +
|
|
||||||
E007 +
|
|
||||||
E010 +
|
|
||||||
E011 +
|
|
||||||
E012 +
|
|
||||||
E009 -
|
|
||||||
E004 -
|
|
||||||
E005 -
|
|
||||||
E013 -
|
|
||||||
E014 -
|
|
||||||
E006 -
|
|
||||||
Y001 +
|
|
||||||
Y002 +
|
|
||||||
Y003 +
|
|
||||||
Y004 +
|
|
||||||
Y005 +
|
|
||||||
Y006 +
|
|
||||||
Y007 +
|
|
||||||
C012 +
|
|
||||||
C002 +
|
|
||||||
C013 +
|
|
||||||
C007 +
|
|
||||||
C008 +
|
|
||||||
C009 +
|
|
||||||
C010 +
|
|
||||||
C011 +
|
|
||||||
C014 +
|
|
||||||
C015 +
|
|
||||||
C101 +
|
|
||||||
C201 +
|
|
||||||
C102 +
|
|
||||||
C103 +
|
|
||||||
C203 +
|
|
||||||
L001 +
|
|
||||||
L003 +
|
|
||||||
L004 -
|
|
||||||
L005 -
|
|
||||||
U001 +
|
|
||||||
U004 +
|
|
||||||
U005 +
|
|
||||||
U006 +
|
|
||||||
U007 +
|
|
||||||
W001 +
|
|
||||||
W011 +
|
|
||||||
W004 -
|
|
||||||
W005 -
|
|
||||||
W010 -
|
|
||||||
W009 -
|
|
||||||
P017 +
|
|
||||||
W006 -
|
|
||||||
W008 -
|
|
||||||
M006 +
|
|
||||||
M011 -
|
|
||||||
M010 +
|
|
||||||
O003 -
|
|
||||||
O001 -
|
|
||||||
S012 -
|
|
||||||
S013 -
|
|
||||||
S014 -
|
|
||||||
K001 +
|
|
||||||
K002 +
|
|
||||||
K005 +
|
|
||||||
M003 +
|
|
||||||
M015 +
|
|
||||||
M016 +
|
|
||||||
M017 -
|
|
||||||
M018 +
|
|
||||||
M019 -
|
|
||||||
M020 +
|
|
||||||
M021 +
|
|
||||||
M022 +
|
|
||||||
M001 +
|
|
||||||
M004 +
|
|
||||||
M005 +
|
|
||||||
M024 +
|
|
||||||
M026 +
|
|
||||||
M027 +
|
|
||||||
M012 -
|
|
||||||
M013 -
|
|
||||||
M014 -
|
|
||||||
N001 -
|
|
||||||
@@ -1,25 +1,24 @@
|
|||||||
{
|
{
|
||||||
"Standard": [
|
"Standard": [
|
||||||
"WPFTweaksAH",
|
"WPFTweaksActivity",
|
||||||
|
"WPFTweaksConsumerFeatures",
|
||||||
|
"WPFTweaksDisableExplorerAutoDiscovery",
|
||||||
|
"WPFTweaksWPBT",
|
||||||
"WPFTweaksDVR",
|
"WPFTweaksDVR",
|
||||||
"WPFTweaksHiber",
|
"WPFTweaksLocation",
|
||||||
"WPFTweaksHome",
|
|
||||||
"WPFTweaksLoc",
|
|
||||||
"WPFTweaksOO",
|
|
||||||
"WPFTweaksServices",
|
"WPFTweaksServices",
|
||||||
"WPFTweaksStorage",
|
"WPFTweaksTelemetry",
|
||||||
"WPFTweaksTele",
|
|
||||||
"WPFTweaksWifi",
|
|
||||||
"WPFTweaksDiskCleanup",
|
"WPFTweaksDiskCleanup",
|
||||||
"WPFTweaksDeleteTempFiles",
|
"WPFTweaksDeleteTempFiles",
|
||||||
"WPFTweaksEndTaskOnTaskbar",
|
"WPFTweaksEndTaskOnTaskbar",
|
||||||
"WPFTweaksRestorePoint",
|
"WPFTweaksRestorePoint",
|
||||||
"WPFTweaksTeredo"
|
"WPFTweaksPowershell7Tele"
|
||||||
],
|
],
|
||||||
"Minimal": [
|
"Minimal": [
|
||||||
"WPFTweaksHome",
|
"WPFTweaksConsumerFeatures",
|
||||||
"WPFTweaksOO",
|
"WPFTweaksDisableExplorerAutoDiscovery",
|
||||||
|
"WPFTweaksWPBT",
|
||||||
"WPFTweaksServices",
|
"WPFTweaksServices",
|
||||||
"WPFTweaksTele"
|
"WPFTweaksTelemetry"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,97 +1,127 @@
|
|||||||
{
|
{
|
||||||
"Classic": {
|
"shared":{
|
||||||
"ComboBoxBackgroundColor": "#FFFFFF",
|
"AppEntryWidth": "130",
|
||||||
"LabelboxForegroundColor": "#000000",
|
"AppEntryFontSize": "11",
|
||||||
"MainForegroundColor": "#000000",
|
"AppEntryMargin": "1,1,1,1",
|
||||||
"MainBackgroundColor": "#FFFFFF",
|
"AppEntryBorderThickness": "0",
|
||||||
"LabelBackgroundColor": "#FAFAFA",
|
"CustomDialogFontSize": "12",
|
||||||
"LinkForegroundColor": "#000000",
|
"CustomDialogFontSizeHeader": "14",
|
||||||
"LinkHoverForegroundColor": "#000000",
|
"CustomDialogLogoSize": "25",
|
||||||
"GroupBorderBackgroundColor": "#000000",
|
"CustomDialogWidth": "400",
|
||||||
"ComboBoxForegroundColor": "#000000",
|
"CustomDialogHeight": "200",
|
||||||
"ButtonInstallBackgroundColor": "#FFFFFF",
|
"FontSize": "12",
|
||||||
"ButtonTweaksBackgroundColor": "#FFFFFF",
|
"FontFamily": "Arial",
|
||||||
"ButtonConfigBackgroundColor": "#FFFFFF",
|
"HeaderFontSize": "16",
|
||||||
"ButtonUpdatesBackgroundColor": "#FFFFFF",
|
"HeaderFontFamily": "Consolas, Monaco",
|
||||||
"ButtonInstallForegroundColor": "#000000",
|
"CheckBoxBulletDecoratorSize": "14",
|
||||||
"ButtonTweaksForegroundColor": "#000000",
|
"CheckBoxMargin": "15,0,0,2",
|
||||||
"ButtonConfigForegroundColor": "#000000",
|
"TabContentMargin": "5",
|
||||||
"ButtonUpdatesForegroundColor": "#000000",
|
"TabButtonFontSize": "14",
|
||||||
"ButtonBackgroundColor": "#F5F5F5",
|
"TabButtonWidth": "110",
|
||||||
"ButtonBackgroundPressedColor": "#1A1A1A",
|
"TabButtonHeight": "26",
|
||||||
"CheckboxMouseOverColor": "#999999",
|
"TabRowHeightInPixels": "50",
|
||||||
"ButtonBackgroundMouseoverColor": "#C2C2C2",
|
"ToolTipWidth": "300",
|
||||||
"ButtonBackgroundSelectedColor": "#F0F0F0",
|
"IconFontSize": "14",
|
||||||
"ButtonForegroundColor": "#000000",
|
"IconButtonSize": "35",
|
||||||
"ToggleButtonOnColor": "#2e77ff",
|
"SettingsIconFontSize": "18",
|
||||||
"ButtonBorderThickness": "1",
|
"CloseIconFontSize": "18",
|
||||||
"ButtonMargin": "1",
|
"MicroWinLogoSize": "10",
|
||||||
"ButtonCornerRadius": "2",
|
"MicrowinCheckBoxMargin": "-10,5,0,0",
|
||||||
"ToggleButtonHeight": "25",
|
"GroupBorderBackgroundColor": "#232629",
|
||||||
"BorderColor": "#000000",
|
"ButtonFontSize": "12",
|
||||||
"BorderOpacity": "0.2",
|
"ButtonFontFamily": "Arial",
|
||||||
"ShadowPulse": "Forever"
|
"ButtonWidth": "200",
|
||||||
},
|
"ButtonHeight": "25",
|
||||||
"Matrix": {
|
"ConfigTabButtonFontSize": "14",
|
||||||
"ComboBoxBackgroundColor": "#000000",
|
"ConfigUpdateButtonFontSize": "14",
|
||||||
"LabelboxForegroundColor": "#FFEE58",
|
"SearchBarWidth": "200",
|
||||||
"MainForegroundColor": "#9CCC65",
|
"SearchBarHeight": "26",
|
||||||
"MainBackgroundColor": "#000000",
|
"SearchBarTextBoxFontSize": "12",
|
||||||
"LabelBackgroundColor": "#000000",
|
"SearchBarClearButtonFontSize": "14",
|
||||||
"LinkForegroundColor": "#add8e6",
|
"CheckboxMouseOverColor": "#999999",
|
||||||
"LinkHoverForegroundColor": "#FFFFFF",
|
"ButtonBorderThickness": "1",
|
||||||
"ComboBoxForegroundColor": "#FFEE58",
|
"ButtonMargin": "1",
|
||||||
"ButtonInstallBackgroundColor": "#222222",
|
"ButtonCornerRadius": "2"
|
||||||
"ButtonTweaksBackgroundColor": "#333333",
|
},
|
||||||
"ButtonConfigBackgroundColor": "#444444",
|
"Light": {
|
||||||
"ButtonUpdatesBackgroundColor": "#555555",
|
"AppInstallUnselectedColor": "#F7F7F7",
|
||||||
"ButtonInstallForegroundColor": "#FFFFFF",
|
"AppInstallHighlightedColor": "#CFCFCF",
|
||||||
"ButtonTweaksForegroundColor": "#FFFFFF",
|
"AppInstallSelectedColor": "#C2C2C2",
|
||||||
"ButtonConfigForegroundColor": "#FFFFFF",
|
"AppInstallOverlayBackgroundColor":"#6A6D72",
|
||||||
"ButtonUpdatesForegroundColor": "#FFFFFF",
|
"ComboBoxForegroundColor": "#232629",
|
||||||
"ButtonBackgroundColor": "#000019",
|
"ComboBoxBackgroundColor": "#F7F7F7",
|
||||||
"ButtonBackgroundPressedColor": "#FFFFFF",
|
"LabelboxForegroundColor": "#232629",
|
||||||
"ButtonBackgroundMouseoverColor": "#A55A64",
|
"MainForegroundColor": "#232629",
|
||||||
"ButtonBackgroundSelectedColor": "#FF5733",
|
"MainBackgroundColor": "#F7F7F7",
|
||||||
"ButtonForegroundColor": "#9CCC65",
|
"LabelBackgroundColor": "#F7F7F7",
|
||||||
"ToggleButtonOnColor": "#2e77ff",
|
"LinkForegroundColor": "#484848",
|
||||||
"ButtonBorderThickness": "1",
|
"LinkHoverForegroundColor": "#232629",
|
||||||
"ButtonMargin": "1",
|
"ScrollBarBackgroundColor": "#4A4D52",
|
||||||
"ButtonCornerRadius": "2",
|
"ScrollBarHoverColor": "#5A5D62",
|
||||||
"ToggleButtonHeight": "25",
|
"ScrollBarDraggingColor": "#6A6D72",
|
||||||
"BorderColor": "#FFAC1C",
|
|
||||||
"BorderOpacity": "0.8",
|
"MicrowinBusyColor": "#2e77ff",
|
||||||
"ShadowPulse": "0:0:3"
|
"ProgressBarForegroundColor": "#2e77ff",
|
||||||
},
|
"ProgressBarBackgroundColor": "Transparent",
|
||||||
"Dark": {
|
"ProgressBarTextColor": "#232629",
|
||||||
"ComboBoxBackgroundColor": "#000000",
|
"ButtonInstallBackgroundColor": "#F7F7F7",
|
||||||
"LabelboxForegroundColor": "#FFEE58",
|
"ButtonTweaksBackgroundColor": "#F7F7F7",
|
||||||
"MainForegroundColor": "#9CCC65",
|
"ButtonConfigBackgroundColor": "#F7F7F7",
|
||||||
"MainBackgroundColor": "#000000",
|
"ButtonUpdatesBackgroundColor": "#F7F7F7",
|
||||||
"LabelBackgroundColor": "#000000",
|
"ButtonInstallForegroundColor": "#232629",
|
||||||
"LinkForegroundColor": "#add8e6",
|
"ButtonTweaksForegroundColor": "#232629",
|
||||||
"LinkHoverForegroundColor": "#FFFFFF",
|
"ButtonConfigForegroundColor": "#232629",
|
||||||
"ComboBoxForegroundColor": "#FFEE58",
|
"ButtonUpdatesForegroundColor": "#232629",
|
||||||
"ButtonInstallBackgroundColor": "#222222",
|
"ButtonBackgroundColor": "#F5F5F5",
|
||||||
"ButtonTweaksBackgroundColor": "#333333",
|
"ButtonBackgroundPressedColor": "#1A1A1A",
|
||||||
"ButtonConfigBackgroundColor": "#444444",
|
"ButtonBackgroundMouseoverColor": "#C2C2C2",
|
||||||
"ButtonUpdatesBackgroundColor": "#555555",
|
"ButtonBackgroundSelectedColor": "#F0F0F0",
|
||||||
"ButtonInstallForegroundColor": "#FFFFFF",
|
"ButtonForegroundColor": "#232629",
|
||||||
"ButtonTweaksForegroundColor": "#FFFFFF",
|
"ToggleButtonOnColor": "#2e77ff",
|
||||||
"ButtonConfigForegroundColor": "#FFFFFF",
|
"ToggleButtonOffColor": "#707070",
|
||||||
"ButtonUpdatesForegroundColor": "#FFFFFF",
|
"ToolTipBackgroundColor": "#F7F7F7",
|
||||||
"ButtonBackgroundColor": "#000019",
|
"BorderColor": "#232629",
|
||||||
"ButtonBackgroundPressedColor": "#9CCC65",
|
"BorderOpacity": "0.2"
|
||||||
"ButtonBackgroundMouseoverColor": "#FF5733",
|
|
||||||
"ButtonBackgroundSelectedColor": "#FF5733",
|
},
|
||||||
"ButtonForegroundColor": "#9CCC65",
|
"Dark": {
|
||||||
"ToggleButtonOnColor": "#2e77ff",
|
"AppInstallUnselectedColor": "#232629",
|
||||||
"ButtonBorderThickness": "1",
|
"AppInstallHighlightedColor": "#3C3C3C",
|
||||||
"ButtonMargin": "1",
|
"AppInstallSelectedColor": "#4C4C4C",
|
||||||
"ButtonCornerRadius": "2",
|
"AppInstallOverlayBackgroundColor":"#2E3135",
|
||||||
"ToggleButtonHeight": "25",
|
"ComboBoxForegroundColor": "#F7F7F7",
|
||||||
"BorderColor": "#FFAC1C",
|
"ComboBoxBackgroundColor": "#1E3747",
|
||||||
"BorderOpacity": "0.2",
|
"LabelboxForegroundColor": "#0567ff",
|
||||||
"ShadowPulse": "Forever"
|
"MainForegroundColor": "#F7F7F7",
|
||||||
}
|
"MainBackgroundColor": "#232629",
|
||||||
}
|
"LabelBackgroundColor": "#232629",
|
||||||
|
"LinkForegroundColor": "#add8e6",
|
||||||
|
"LinkHoverForegroundColor": "#F7F7F7",
|
||||||
|
"ScrollBarBackgroundColor": "#2E3135",
|
||||||
|
"ScrollBarHoverColor": "#3B4252",
|
||||||
|
"ScrollBarDraggingColor": "#5E81AC",
|
||||||
|
|
||||||
|
"MicrowinBusyColor": "#2e77ff",
|
||||||
|
"ProgressBarForegroundColor": "#222222",
|
||||||
|
"ProgressBarBackgroundColor": "Transparent",
|
||||||
|
"ProgressBarTextColor": "#232629",
|
||||||
|
"ButtonInstallBackgroundColor": "#222222",
|
||||||
|
"ButtonTweaksBackgroundColor": "#333333",
|
||||||
|
"ButtonConfigBackgroundColor": "#444444",
|
||||||
|
"ButtonUpdatesBackgroundColor": "#555555",
|
||||||
|
"ButtonInstallForegroundColor": "#F7F7F7",
|
||||||
|
"ButtonTweaksForegroundColor": "#F7F7F7",
|
||||||
|
"ButtonConfigForegroundColor": "#F7F7F7",
|
||||||
|
"ButtonUpdatesForegroundColor": "#F7F7F7",
|
||||||
|
"ButtonBackgroundColor": "#1E3747",
|
||||||
|
"ButtonBackgroundPressedColor": "#F7F7F7",
|
||||||
|
"ButtonBackgroundMouseoverColor": "#3B4252",
|
||||||
|
"ButtonBackgroundSelectedColor": "#5E81AC",
|
||||||
|
"ButtonForegroundColor": "#F7F7F7",
|
||||||
|
"ToggleButtonOnColor": "#2e77ff",
|
||||||
|
"ToggleButtonOffColor": "#707070",
|
||||||
|
"ToolTipBackgroundColor": "#2F373D",
|
||||||
|
"BorderColor": "#2F373D",
|
||||||
|
"BorderOpacity": "0.2"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
2379
config/tweaks.json
5
docs/archetypes/default.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
date: '{{ .Date }}'
|
||||||
|
draft: true
|
||||||
|
title: '{{ replace .File.ContentBaseName "-" " " | title }}'
|
||||||
|
---
|
||||||
BIN
docs/assets/favicon.png
Normal file
|
After Width: | Height: | Size: 9.6 KiB |
BIN
docs/assets/images/Commit-GHD.png
Normal file
|
After Width: | Height: | Size: 194 KiB |
BIN
docs/assets/images/Complie.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
docs/assets/images/Create-Branch.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
docs/assets/images/Discard-GHD.png
Normal file
|
After Width: | Height: | Size: 6.8 KiB |
BIN
docs/assets/images/Fork-Button-Dark.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
docs/assets/images/Fork-Button-Light.png
Normal file
|
After Width: | Height: | Size: 22 KiB |
BIN
docs/assets/images/Get-Installed-Dark.png
Normal file
|
After Width: | Height: | Size: 27 KiB |
BIN
docs/assets/images/Get-Installed-Light.png
Normal file
|
After Width: | Height: | Size: 28 KiB |
BIN
docs/assets/images/Install-Tab-Dark.png
Normal file
|
After Width: | Height: | Size: 164 KiB |
BIN
docs/assets/images/Install-Tab-Light.png
Normal file
|
After Width: | Height: | Size: 179 KiB |
BIN
docs/assets/images/Install/Install-apps.png
Normal file
|
After Width: | Height: | Size: 164 KiB |
BIN
docs/assets/images/Install/Installation.png
Normal file
|
After Width: | Height: | Size: 164 KiB |
BIN
docs/assets/images/Install/Select-Apps-to-install-upgrade.png
Normal file
|
After Width: | Height: | Size: 92 KiB |
BIN
docs/assets/images/MicroWinScreen.png
Normal file
|
After Width: | Height: | Size: 124 KiB |
BIN
docs/assets/images/Microwin-Dark.png
Normal file
|
After Width: | Height: | Size: 109 KiB |
BIN
docs/assets/images/Microwin-Light.png
Normal file
|
After Width: | Height: | Size: 108 KiB |
BIN
docs/assets/images/Push-Commit.png
Normal file
|
After Width: | Height: | Size: 77 KiB |
BIN
docs/assets/images/Screen.png
Normal file
|
After Width: | Height: | Size: 14 MiB |
BIN
docs/assets/images/Settings-Export-Dark.png
Normal file
|
After Width: | Height: | Size: 18 KiB |
BIN
docs/assets/images/Settings-Export-Light.png
Normal file
|
After Width: | Height: | Size: 17 KiB |
BIN
docs/assets/images/Title-Screen.png
Normal file
|
After Width: | Height: | Size: 4.2 MiB |
BIN
docs/assets/images/Tweaks-Tab-Dark.png
Normal file
|
After Width: | Height: | Size: 123 KiB |
BIN
docs/assets/images/Tweaks-Tab-Light.png
Normal file
|
After Width: | Height: | Size: 122 KiB |
BIN
docs/assets/images/favicon.png
Normal file
|
After Width: | Height: | Size: 9.6 KiB |
BIN
docs/assets/images/microwin/Configure-Windows-ISO.png
Normal file
|
After Width: | Height: | Size: 18 KiB |
BIN
docs/assets/images/microwin/Microwin.png
Normal file
|
After Width: | Height: | Size: 164 KiB |
BIN
docs/assets/navlogo.png
Normal file
|
After Width: | Height: | Size: 7.8 KiB |
115
docs/content/CONTRIBUTING.md
Normal file
@@ -0,0 +1,115 @@
|
|||||||
|
---
|
||||||
|
toc: true
|
||||||
|
---
|
||||||
|
|
||||||
|
# How to Contribute?
|
||||||
|
|
||||||
|
## Testing
|
||||||
|
|
||||||
|
* Test the latest changes to Winutil by running the pre-release and reporting issues you are encountering to help us continually improve Winutil!
|
||||||
|
|
||||||
|
#### **Run the latest pre-release**
|
||||||
|
```
|
||||||
|
irm https://christitus.com/windev | iex
|
||||||
|
```
|
||||||
|
|
||||||
|
> [!WARNING]
|
||||||
|
> This is a pre-release and should be treated as such. It exists for developers to test the utility and report or fix bugs before they get added to the stable release. Don't use it in production!
|
||||||
|
|
||||||
|
## Issues
|
||||||
|
|
||||||
|
* If you encounter any challenges or problems with the script, I kindly request that you submit them via the "Issues" tab on the GitHub repository. By filling out the provided template, you can provide specific details about the issue, allowing me (and others in the community) to promptly address any bugs or consider feature requests.
|
||||||
|
|
||||||
|
## Contribute Code
|
||||||
|
|
||||||
|
* Pull requests are now handled directly on the **MAIN branch**. This was done since we can now select specific releases to launch via releases in GitHub.
|
||||||
|
|
||||||
|
* If you're doing code changes, then you can submit a PR to `main` branch, but I am very selective about these.
|
||||||
|
|
||||||
|
> [!IMPORTANT]
|
||||||
|
> Do not use a code formatter, make massive amounts of line changes, or make multiple feature changes. EACH FEATURE CHANGE SHOULD BE IT'S OWN PULL REQUEST!
|
||||||
|
|
||||||
|
* When creating pull requests, it is essential to thoroughly document all changes made. This includes, but is not limited to, documenting any additions made to the `tweaks` section and corresponding `undo tweak`, so users are able to remove the newly added tweaks if necessary, and comprehensive documentation is required for all code changes. Document your changes and briefly explain why you made your changes in your Pull Request Description. Failure to adhere to this format may result in the denial of the pull request. Additionally, any code lacking sufficient documentation may also be denied.
|
||||||
|
|
||||||
|
* By following these guidelines, we can maintain a high standard of quality and ensure that the codebase remains organized and well-documented.
|
||||||
|
|
||||||
|
> [!NOTE]
|
||||||
|
> When creating a function, please include "WPF" or "Winutil" in the file name so it can be loaded into the runspace.
|
||||||
|
|
||||||
|
## Walk through
|
||||||
|
|
||||||
|
* This is a guide for beginners. If you are still having issues, look at the following official GitHub documentation:
|
||||||
|
* [Commit through WEB](https://docs.github.com/en/pull-requests/committing-changes-to-your-project/creating-and-editing-commits/about-commits)
|
||||||
|
* [Commit through GitHub Desktop](https://docs.github.com/en/desktop/making-changes-in-a-branch/committing-and-reviewing-changes-to-your-project-in-github-desktop#about-commits)
|
||||||
|
* [Create a Pull Request](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request)
|
||||||
|
|
||||||
|
|
||||||
|
### Overview
|
||||||
|
|
||||||
|
``` mermaid
|
||||||
|
%%{init: {"flowchart": {"curve": "cardinal"}} }%%
|
||||||
|
graph TD
|
||||||
|
A[Fork Project] --> B[Clone Repository];
|
||||||
|
B --> C[Create New Branch];
|
||||||
|
C --> D[Make Changes];
|
||||||
|
D --> G[Test Changes];
|
||||||
|
G --> H{Tests Passed?};
|
||||||
|
H -->|Yes| E[Commit Changes];
|
||||||
|
H -->|No| J[Fix Issues];
|
||||||
|
J --> G;
|
||||||
|
E --> F[Push Branch];
|
||||||
|
F --> K[Create Pull Request];
|
||||||
|
K --> L[Fill out PR template];
|
||||||
|
classDef default stroke:#333,stroke-width:4px,font-size:12pt;
|
||||||
|
```
|
||||||
|
> [!NOTE]
|
||||||
|
> This is a diagram to guide you through the process. It may vary depending on the type of change you're making.
|
||||||
|
|
||||||
|
### Fork the Repo
|
||||||
|
* Fork the Winutil Repository [here](https://github.com/ChrisTitusTech/Winutil) to create a copy that will be available in your repository list.
|
||||||
|
|
||||||
|
{{< image src="images/Fork-Button" alt="Fork Image" >}}
|
||||||
|
|
||||||
|
### Clone the Fork
|
||||||
|
|
||||||
|
> [!TIP]
|
||||||
|
> While you can make your changes directly through the Web, we recommend cloning the repo to your device using the application GitHub Desktop (available in Winutil) to test your fork easily.
|
||||||
|
|
||||||
|
* Install GitHub Desktop if it is not already installed.
|
||||||
|
* Log in using the same GitHub account you used to fork Winutil.
|
||||||
|
* Choose the fork under "Your Repositories" and press "clone {repo name}"
|
||||||
|
* Create a new branch and name it something relatable to your changes.
|
||||||
|
|
||||||
|
* Now you can modify Winutil to your liking using your preferred text editor.
|
||||||
|
|
||||||
|
|
||||||
|
### Testing your changes
|
||||||
|
|
||||||
|
* To test to see if your changes work as intended run following commands in a powershell 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`
|
||||||
|
|
||||||
|
{{< image src="images/Compile" alt="Compile" >}}
|
||||||
|
|
||||||
|
* After seeing that your changes work properly, feel free to commit the changes to the repository and make a PR. For help on that, follow the documentation below.
|
||||||
|
|
||||||
|
### Committing the changes
|
||||||
|
* Before committing your changes, please discard changes made to the `Winutil.ps1` file, like the following:
|
||||||
|
|
||||||
|
{{< image src="images/Discard-GHD" alt="Push Commit Image" >}}
|
||||||
|
|
||||||
|
* Now, commit your changes once you are happy with the result.
|
||||||
|
|
||||||
|
{{< image src="images/Commit-GHD" alt="Commit Image" >}}
|
||||||
|
|
||||||
|
* Push the changes to upload them to your fork on github.com.
|
||||||
|
|
||||||
|
{{< image src="images/Push-Commit" alt="Push Commit Image" >}}
|
||||||
|
|
||||||
|
### Making a PR
|
||||||
|
* To make a PR on your repo under a new branch linking to the main branch, a button will show and say Preview and Create pull request. Click that button and fill in all the information that is provided on the template. Once all the information is filled in correctly, check your PR to make sure there is not a Winutil.ps1 file attached to the PR. Once everything is good, make the PR and wait for Chris (the maintainer) to accept or deny your PR. Once it is accepted by Chris, you will be able to see your changes in the "/windev" build.
|
||||||
|
* If you do not see your feature in the main "/win" build, that is fine. All new changes go into the /windev build to make sure everything is working OK before going fully public.
|
||||||
|
* Congratulations! You just submitted your first PR. Thank you so much for contributing to Winutil.
|
||||||
213
docs/content/KnownIssues.md
Normal file
@@ -0,0 +1,213 @@
|
|||||||
|
---
|
||||||
|
title: Known Issues
|
||||||
|
toc: true
|
||||||
|
---
|
||||||
|
|
||||||
|
### Download not working
|
||||||
|
If `https://christitus.com/win` is not working, or you want to download the code from GitHub directly, you can use the direct download link:
|
||||||
|
|
||||||
|
```
|
||||||
|
irm https://github.com/ChrisTitusTech/Winutil/releases/latest/download/Winutil.ps1 | iex
|
||||||
|
```
|
||||||
|
|
||||||
|
If 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:
|
||||||
|
|
||||||
|
```
|
||||||
|
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
|
||||||
|
iex https://christitus.com/win | iex
|
||||||
|
```
|
||||||
|
|
||||||
|
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:
|
||||||
|
|
||||||
|
```
|
||||||
|
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:
|
||||||
|
|
||||||
|
```
|
||||||
|
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.
|
||||||
26
docs/content/_index.md
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
---
|
||||||
|
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.
|
||||||
|
|
||||||
|
## 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
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
> [!NOTE]
|
||||||
|
> 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.
|
||||||
108
docs/content/dev/_index.md
Normal file
@@ -0,0 +1,108 @@
|
|||||||
|
---
|
||||||
|
title: Developer Reference
|
||||||
|
weight: 3
|
||||||
|
---
|
||||||
|
|
||||||
|
> [!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
|
||||||
|
|
||||||
|
- [Create Restore Point](tweaks/essential-tweaks/restorepoint/)
|
||||||
|
- [Debloat Edge](tweaks/essential-tweaks/edgedebloat/)
|
||||||
|
- [Delete Temporary Files](tweaks/essential-tweaks/deletetempfiles/)
|
||||||
|
- [Disable Activity History](tweaks/essential-tweaks/activity/)
|
||||||
|
- [Disable ConsumerFeatures](tweaks/essential-tweaks/consumerfeatures/)
|
||||||
|
- [Disable GameDVR](tweaks/essential-tweaks/gamedvr/)
|
||||||
|
- [Disable Hibernation](tweaks/essential-tweaks/hibernation/)
|
||||||
|
- [Disable Location Tracking](tweaks/essential-tweaks/location/)
|
||||||
|
- [Disable Powershell 7 Telemetry](tweaks/essential-tweaks/powershell7tele/)
|
||||||
|
- [Disable Storage Sense](tweaks/essential-tweaks/storage/)
|
||||||
|
- [Disable Telemetry](tweaks/essential-tweaks/telemetry/)
|
||||||
|
- [Enable End Task With Right Click](tweaks/essential-tweaks/endtaskontaskbar/)
|
||||||
|
- [Prefer IPv4 over IPv6](tweaks/essential-tweaks/ipv46/)
|
||||||
|
- [Run Disk Cleanup](tweaks/essential-tweaks/diskcleanup/)
|
||||||
|
- [Set Hibernation as default (good for laptops)](tweaks/essential-tweaks/laptophibernation/)
|
||||||
|
- [Set Services to Manual](tweaks/essential-tweaks/services/)
|
||||||
|
|
||||||
|
### Advanced Tweaks (CAUTION)
|
||||||
|
|
||||||
|
- [Adobe Network Block](tweaks/z--advanced-tweaks---caution/blockadobenet/)
|
||||||
|
- [Disable Background Apps](tweaks/z--advanced-tweaks---caution/disablebgapps/)
|
||||||
|
- [Disable Fullscreen Optimizations](tweaks/z--advanced-tweaks---caution/disablefso/)
|
||||||
|
- [Disable IPv6](tweaks/z--advanced-tweaks---caution/disableipsix/)
|
||||||
|
- [Disable Microsoft Copilot](tweaks/z--advanced-tweaks---caution/removecopilot/)
|
||||||
|
- [Disable Notification Tray/Calendar](tweaks/z--advanced-tweaks---caution/disablenotifications/)
|
||||||
|
- [Disable Teredo](tweaks/z--advanced-tweaks---caution/teredo/)
|
||||||
|
- [DNS](tweaks/z--advanced-tweaks---caution/changedns/)
|
||||||
|
- [Remove ALL MS Store Apps - NOT RECOMMENDED](tweaks/z--advanced-tweaks---caution/debloat/)
|
||||||
|
- [Remove Home and Gallery from explorer](tweaks/z--advanced-tweaks---caution/removehomegallery/)
|
||||||
|
- [Make Edge Uninstallable](tweaks/z--advanced-tweaks---caution/edgeuninstall/)
|
||||||
|
- [Run OO Shutup 10](tweaks/z--advanced-tweaks---caution/oosubutton/)
|
||||||
|
- [Remove OneDrive](tweaks/z--advanced-tweaks---caution//removeonedrive)
|
||||||
|
- [Set Classic Right-Click Menu ](tweaks/z--advanced-tweaks---caution/rightclickmenu/)
|
||||||
|
- [Set Display for Performance](tweaks/z--advanced-tweaks---caution/display/)
|
||||||
|
- [Set Time to UTC (Dual Boot)](tweaks/z--advanced-tweaks---caution/utc/)
|
||||||
|
|
||||||
|
### Customize Preferences
|
||||||
|
|
||||||
|
- [Bing Search in Start Menu](tweaks/customize-preferences/bingsearch/)
|
||||||
|
- [Center Taskbar Items](tweaks/customize-preferences/taskbaralignment/)
|
||||||
|
- [Dark Theme for Windows](tweaks/customize-preferences/darkmode/)
|
||||||
|
- [Detailed BSoD](tweaks/customize-preferences/detailedbsod/)
|
||||||
|
- [Mouse Acceleration](tweaks/customize-preferences/mouseacceleration/)
|
||||||
|
- [NumLock on Startup](tweaks/customize-preferences/numlock/)
|
||||||
|
- [Search Button in Taskbar](tweaks/customize-preferences/taskbarsearch/)
|
||||||
|
- [Show File Extensions](tweaks/customize-preferences/showext/)
|
||||||
|
- [Show Hidden Files](tweaks/customize-preferences/hiddenfiles/)
|
||||||
|
- [Snap Assist Flyout](tweaks/customize-preferences/snapflyout/)
|
||||||
|
- [Snap Assist Suggestion](tweaks/customize-preferences/snapsuggestion/)
|
||||||
|
- [Snap Window](tweaks/customize-preferences/snapwindow/)
|
||||||
|
- [Sticky Keys](tweaks/customize-preferences/stickykeys/)
|
||||||
|
- [Task View Button in Taskbar](tweaks/customize-preferences/taskview/)
|
||||||
|
- [Verbose Messages During Logon](tweaks/customize-preferences/verboselogon/)
|
||||||
|
- [Widgets Button in Taskbar](tweaks/customize-preferences/taskbarwidgets/)
|
||||||
|
|
||||||
|
### Performance Plans
|
||||||
|
|
||||||
|
- [Add and Remove Ultimate Performance Profile](tweaks/performance-plans/profile/)
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
### Fixes
|
||||||
|
|
||||||
|
- [Remove Adobe Creative Cloud](features/fixes/RunAdobeCCCleanerTool/)
|
||||||
|
- [Reset Network](features/fixes/network/)
|
||||||
|
- [Reset Windows Update](features/fixes/update/)
|
||||||
|
- [Set Up Autologin](features/fixes/autologin/)
|
||||||
|
- [System Corruption Scan](features/fixes/corruptionscan/)
|
||||||
|
- [WinGet Reinstall](features/fixes/winget/)
|
||||||
|
|
||||||
|
### Legacy Windows Panels
|
||||||
|
|
||||||
|
- [Control Panel](features/legacy-windows-panels/control/)
|
||||||
|
- [Network Connections](features/legacy-windows-panels/network/)
|
||||||
|
- [Power Panel](features/legacy-windows-panels/power/)
|
||||||
|
- [Printer Settings](features/legacy-windows-panels/printer/)
|
||||||
|
- [Region](features/legacy-windows-panels/region/)
|
||||||
|
- [Sound Settings](features/legacy-windows-panels/sound/)
|
||||||
|
- [System Properties](features/legacy-windows-panels/system/)
|
||||||
|
- [User Accounts](features/legacy-windows-panels/user/)
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
- [All .Net Framework (2,3,4)](features/features/dotnet/)
|
||||||
|
- [Disable Legacy F8 Boot Recovery](features/features/disablelegacyrecovery/)
|
||||||
|
- [Enable Legacy F8 Boot Recovery](features/features/enablelegacyrecovery/)
|
||||||
|
- [Enable Daily Registry Backup Task 12.30am](features/features/regbackup/)
|
||||||
|
- [HyperV Virtualization](features/features/hyperv/)
|
||||||
|
- [Legacy Media (WMP, DirectPlay)](features/features/legacymedia/)
|
||||||
|
- [NFS - Network File System](features/features/nfs/)
|
||||||
|
- [Windows Sandbox](features/features/sandbox/)
|
||||||
|
- [Windows Subsystem for Linux](features/features/wsl/)
|
||||||
550
docs/content/dev/architecture.md
Normal file
@@ -0,0 +1,550 @@
|
|||||||
|
---
|
||||||
|
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
|
||||||
|
│ │ └── ...
|
||||||
|
│ └── microwin/ # MicroWin specific functions
|
||||||
|
│ ├── Invoke-Microwin.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**:
|
||||||
|
- TabControl for main tabs (Install, Tweaks, Config, MicroWin)
|
||||||
|
- Buttons with event handlers
|
||||||
|
- TextBoxes for input
|
||||||
|
- CheckBoxes for options
|
||||||
|
- ListBoxes for selections
|
||||||
|
|
||||||
|
## Data Flow
|
||||||
|
|
||||||
|
### Application Installation Flow
|
||||||
|
|
||||||
|
```
|
||||||
|
User clicks "Install"
|
||||||
|
↓
|
||||||
|
Get-WinUtilCheckBoxes → Retrieves selected apps
|
||||||
|
↓
|
||||||
|
For each selected app:
|
||||||
|
↓
|
||||||
|
Check if WinGet/Choco installed
|
||||||
|
↓
|
||||||
|
Install-WinUtilWinget/Choco (if needed)
|
||||||
|
↓
|
||||||
|
Install-WinUtilProgramWinget/Choco → Install app
|
||||||
|
↓
|
||||||
|
Update UI with progress
|
||||||
|
↓
|
||||||
|
Display completion message
|
||||||
|
```
|
||||||
|
|
||||||
|
### Tweak Application Flow
|
||||||
|
|
||||||
|
```
|
||||||
|
User selects tweaks and clicks "Run Tweaks"
|
||||||
|
↓
|
||||||
|
Get-WinUtilCheckBoxes → Get selected tweaks
|
||||||
|
↓
|
||||||
|
For each selected tweak:
|
||||||
|
↓
|
||||||
|
Load tweak definition from tweaks.json
|
||||||
|
↓
|
||||||
|
Invoke-WPFTweak → Apply registry/service changes
|
||||||
|
↓
|
||||||
|
Log changes
|
||||||
|
↓
|
||||||
|
Store original values (for undo)
|
||||||
|
↓
|
||||||
|
Update UI
|
||||||
|
↓
|
||||||
|
Display completion
|
||||||
|
```
|
||||||
|
|
||||||
|
### Undo Tweak Flow
|
||||||
|
|
||||||
|
```
|
||||||
|
User selects tweaks and clicks "Undo"
|
||||||
|
↓
|
||||||
|
Get-WinUtilCheckBoxes → Get selected tweaks
|
||||||
|
↓
|
||||||
|
For each tweak:
|
||||||
|
↓
|
||||||
|
Retrieve "OriginalState" from tweak definition
|
||||||
|
↓
|
||||||
|
Invoke-WPFUndoTweak → Restore original values
|
||||||
|
↓
|
||||||
|
Remove from applied tweaks log
|
||||||
|
↓
|
||||||
|
Update UI
|
||||||
|
```
|
||||||
|
|
||||||
|
## Configuration File Format
|
||||||
|
|
||||||
|
### applications.json Structure
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"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
|
||||||
|
{
|
||||||
|
"WPFTweaksTelemetry": {
|
||||||
|
"Content": "Disable Telemetry",
|
||||||
|
"Description": "Disables Microsoft Telemetry",
|
||||||
|
"category": "Essential Tweaks",
|
||||||
|
"panel": "1",
|
||||||
|
"Order": "a003_",
|
||||||
|
"registry": [
|
||||||
|
{
|
||||||
|
"Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\DataCollection",
|
||||||
|
"Name": "AllowTelemetry",
|
||||||
|
"Type": "DWord",
|
||||||
|
"Value": "0",
|
||||||
|
"OriginalValue": "1"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"ScheduledTask": [
|
||||||
|
{
|
||||||
|
"Name": "Microsoft\\Windows\\Autochk\\Proxy",
|
||||||
|
"State": "Disabled",
|
||||||
|
"OriginalState": "Enabled"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
**Fields**:
|
||||||
|
- `Content`: Display name
|
||||||
|
- `Description`: What it does
|
||||||
|
- `category`: Essential/Advanced/Customize
|
||||||
|
- `registry`: Registry changes to make
|
||||||
|
- `ScheduledTask`: Scheduled tasks to modify
|
||||||
|
- `service`: Services to change
|
||||||
|
- `OriginalValue/State`: For undo functionality
|
||||||
|
|
||||||
|
## PowerShell Runspace
|
||||||
|
|
||||||
|
Winutil uses PowerShell runspaces for the GUI to remain responsive:
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
# Create runspace
|
||||||
|
$sync.runspace = [runspacefactory]::CreateRunspace()
|
||||||
|
$sync.runspace.Open()
|
||||||
|
$sync.runspace.SessionStateProxy.SetVariable("sync", $sync)
|
||||||
|
|
||||||
|
# Run code in background
|
||||||
|
$powershell = [powershell]::Create().AddScript($scriptblock)
|
||||||
|
$powershell.Runspace = $sync.runspace
|
||||||
|
$handle = $powershell.BeginInvoke()
|
||||||
|
```
|
||||||
|
|
||||||
|
**Why**: Prevents UI freezing during long-running operations.
|
||||||
|
|
||||||
|
## WPF Event Handling
|
||||||
|
|
||||||
|
Events are wired up via XAML element names:
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
# Get all named elements
|
||||||
|
$sync.keys | ForEach-Object {
|
||||||
|
if($sync.$_.GetType().Name -eq "Button") {
|
||||||
|
$sync.$_.Add_Click({
|
||||||
|
$button = $sync.$($args[0].Name)
|
||||||
|
& "Invoke-$($args[0].Name)"
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
**Convention**: Button named `WPFInstallButton` calls function `Invoke-WPFInstallButton`.
|
||||||
|
|
||||||
|
## Package Manager Integration
|
||||||
|
|
||||||
|
### WinGet Integration
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
# Check if installed
|
||||||
|
if (!(Get-Command winget -ErrorAction SilentlyContinue)) {
|
||||||
|
Install-WinUtilWinget
|
||||||
|
}
|
||||||
|
|
||||||
|
# Install package
|
||||||
|
winget install --id $app.winget --silent --accept-source-agreements
|
||||||
|
```
|
||||||
|
|
||||||
|
### Chocolatey Integration
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
# Check if installed
|
||||||
|
if (!(Get-Command choco -ErrorAction SilentlyContinue)) {
|
||||||
|
Install-WinUtilChoco
|
||||||
|
}
|
||||||
|
|
||||||
|
# Install package
|
||||||
|
choco install $app.choco -y
|
||||||
|
```
|
||||||
|
|
||||||
|
## MicroWin Architecture
|
||||||
|
|
||||||
|
MicroWin operates in phases:
|
||||||
|
|
||||||
|
1. **Mount ISO**: Extract Windows image
|
||||||
|
2. **Modify Image**: Remove components, apply tweaks
|
||||||
|
3. **Inject Drivers**: Add custom drivers (optional)
|
||||||
|
4. **Create Unattend**: Generate automated install configuration
|
||||||
|
5. **Rebuild ISO**: Package modified image into new ISO
|
||||||
|
|
||||||
|
**Key Files**:
|
||||||
|
- `Invoke-Microwin.ps1`: Main orchestration
|
||||||
|
- `Microwin-RemovePackages.ps1`: Remove Windows packages
|
||||||
|
- `Microwin-RemoveFeatures.ps1`: Disable features
|
||||||
|
- `Microwin-NewUnattend.ps1`: Create unattend.xml
|
||||||
|
|
||||||
|
## 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
|
||||||
|
{
|
||||||
|
"WPFInstallNewApp": {
|
||||||
|
"category": "Utilities",
|
||||||
|
"content": "New App",
|
||||||
|
"description": "Description of new app",
|
||||||
|
"winget": "Publisher.AppName",
|
||||||
|
"choco": "appname"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
2. Recompile: `.\Compile.ps1`
|
||||||
|
3. The app appears automatically in Install tab
|
||||||
|
|
||||||
|
### Adding a New Tweak
|
||||||
|
|
||||||
|
1. Edit `config/tweaks.json`:
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"WPFTweaksNewTweak": {
|
||||||
|
"Content": "New Tweak",
|
||||||
|
"Description": "What it does",
|
||||||
|
"category": "Essential Tweaks",
|
||||||
|
"registry": [
|
||||||
|
{
|
||||||
|
"Path": "HKLM:\\Path\\To\\Key",
|
||||||
|
"Name": "ValueName",
|
||||||
|
"Type": "DWord",
|
||||||
|
"Value": "1",
|
||||||
|
"OriginalValue": "0"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
2. Recompile: `.\Compile.ps1`
|
||||||
|
3. Tweak appears in Tweaks tab
|
||||||
|
|
||||||
|
### Adding a New Function
|
||||||
|
|
||||||
|
1. Create file in `functions/public/` or `functions/private/`:
|
||||||
|
```powershell
|
||||||
|
# functions/public/Invoke-WPFNewFeature.ps1
|
||||||
|
function Invoke-WPFNewFeature {
|
||||||
|
<#
|
||||||
|
.SYNOPSIS
|
||||||
|
Does something new
|
||||||
|
#>
|
||||||
|
# Implementation
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
2. File naming must include "WPF" or "Winutil" to load
|
||||||
|
3. Recompile: `.\Compile.ps1`
|
||||||
|
|
||||||
|
## Testing
|
||||||
|
|
||||||
|
### Manual Testing
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
# Compile and run with -run flag
|
||||||
|
.\Compile.ps1 -run
|
||||||
|
```
|
||||||
|
|
||||||
|
### Automated Tests
|
||||||
|
|
||||||
|
Tests are in `/pester/`:
|
||||||
|
- `configs.Tests.ps1`: Validates JSON configurations
|
||||||
|
- `functions.Tests.ps1`: Tests PowerShell functions
|
||||||
|
|
||||||
|
Run tests:
|
||||||
|
```powershell
|
||||||
|
Invoke-Pester
|
||||||
|
```
|
||||||
|
|
||||||
|
## Build Process
|
||||||
|
|
||||||
|
### Development Build
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
.\Compile.ps1
|
||||||
|
```
|
||||||
|
|
||||||
|
Outputs `winutil.ps1` in the root directory.
|
||||||
|
|
||||||
|
### Production Release
|
||||||
|
|
||||||
|
1. Tag release in Git
|
||||||
|
2. GitHub Actions builds and uploads `winutil.ps1`
|
||||||
|
3. Release appears on GitHub Releases
|
||||||
|
4. Users download via `irm christitus.com/win`
|
||||||
|
|
||||||
|
## Dependencies
|
||||||
|
|
||||||
|
**Required**:
|
||||||
|
- PowerShell 5.1+
|
||||||
|
- .NET Framework 4.5+
|
||||||
|
- Windows 10 1809+
|
||||||
|
|
||||||
|
**Optional (auto-installed)**:
|
||||||
|
- WinGet (Windows Package Manager)
|
||||||
|
- Chocolatey
|
||||||
|
- oscdimg.exe (for MicroWin)
|
||||||
|
|
||||||
|
## 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
|
||||||
|
- [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
|
||||||
14
docs/content/dev/features/Features/DisableLegacyRecovery.md
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
# Disable Legacy F8 Boot Recovery
|
||||||
|
|
||||||
|
```json
|
||||||
|
"WPFFeatureEnableLegacyRecovery": {
|
||||||
|
"Content": "Enable Legacy F8 Boot Recovery",
|
||||||
|
"Description": "Enables Advanced Boot Options screen that lets you start Windows in advanced troubleshooting modes.",
|
||||||
|
"category": "Features",
|
||||||
|
"panel": "1",
|
||||||
|
"Order": "a018_",
|
||||||
|
"feature": [],
|
||||||
|
"InvokeScript": [
|
||||||
|
"bcdedit /set bootmenupolicy standard"
|
||||||
|
],
|
||||||
|
```
|
||||||
14
docs/content/dev/features/Features/EnableLegacyRecovery.md
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
# Enable Legacy F8 Boot Recovery
|
||||||
|
|
||||||
|
```json
|
||||||
|
"WPFFeatureEnableLegacyRecovery": {
|
||||||
|
"Content": "Enable Legacy F8 Boot Recovery",
|
||||||
|
"Description": "Enables Advanced Boot Options screen that lets you start Windows in advanced troubleshooting modes.",
|
||||||
|
"category": "Features",
|
||||||
|
"panel": "1",
|
||||||
|
"Order": "a018_",
|
||||||
|
"feature": [],
|
||||||
|
"InvokeScript": [
|
||||||
|
"bcdedit /set bootmenupolicy legacy"
|
||||||
|
],
|
||||||
|
```
|
||||||
20
docs/content/dev/features/Features/RegBackup.md
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
# Enable Daily Registry Backup Task 12.30am
|
||||||
|
|
||||||
|
```json
|
||||||
|
"WPFFeatureRegBackup": {
|
||||||
|
"Content": "Enable Daily Registry Backup Task 12.30am",
|
||||||
|
"Description": "Enables daily registry backup, previously disabled by Microsoft in Windows 10 1803.",
|
||||||
|
"category": "Features",
|
||||||
|
"panel": "1",
|
||||||
|
"Order": "a017_",
|
||||||
|
"feature": [],
|
||||||
|
"InvokeScript": [
|
||||||
|
"
|
||||||
|
New-ItemProperty -Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Configuration Manager' -Name 'EnablePeriodicBackup' -Type DWord -Value 1 -Force
|
||||||
|
New-ItemProperty -Path 'HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Configuration Manager' -Name 'BackupCount' -Type DWord -Value 2 -Force
|
||||||
|
$action = New-ScheduledTaskAction -Execute 'schtasks' -Argument '/run /i /tn \"\\Microsoft\\Windows\\Registry\\RegIdleBackup\"'
|
||||||
|
$trigger = New-ScheduledTaskTrigger -Daily -At 00:30
|
||||||
|
Register-ScheduledTask -Action $action -Trigger $trigger -TaskName 'AutoRegBackup' -Description 'Create System Registry Backups' -User 'System'
|
||||||
|
"
|
||||||
|
],
|
||||||
|
```
|
||||||
13
docs/content/dev/features/Features/Sandbox.md
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
# Windows Sandbox
|
||||||
|
|
||||||
|
```json
|
||||||
|
"WPFFeaturesSandbox": {
|
||||||
|
"Content": "Windows Sandbox",
|
||||||
|
"Description": "Windows Sandbox is a lightweight virtual machine that provides a temporary desktop environment to safely run applications and programs in isolation.",
|
||||||
|
"category": "Features",
|
||||||
|
"panel": "1",
|
||||||
|
"Order": "a021_",
|
||||||
|
"feature": [
|
||||||
|
"Containers-DisposableClientVM"
|
||||||
|
],
|
||||||
|
```
|
||||||
11
docs/content/dev/features/Features/_index.md
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
### Features
|
||||||
|
|
||||||
|
- [All .Net Framework (2,3,4)](https://github.com/ChrisTitusTech/winutil/blob/main/docs/content/dev/features/Features/dotnet.md)
|
||||||
|
- [Disable Legacy F8 Boot Recovery](https://github.com/ChrisTitusTech/winutil/blob/main/docs/content/dev/features/Features/DisableLegacyRecovery.md)
|
||||||
|
- [Enable Legacy F8 Boot Recovery](https://github.com/ChrisTitusTech/winutil/blob/main/docs/content/dev/features/Features/EnableLegacyRecovery.md)
|
||||||
|
- [Enable Daily Registry Backup Task 12.30am](https://github.com/ChrisTitusTech/winutil/blob/main/docs/content/dev/features/Features/RegBackup.md)
|
||||||
|
- [HyperV Virtualization](https://github.com/ChrisTitusTech/winutil/blob/main/docs/content/dev/features/Features/hyperv.md)
|
||||||
|
- [Legacy Media (WMP, DirectPlay)](https://github.com/ChrisTitusTech/winutil/blob/main/docs/content/dev/features/Features/legacymedia.md)
|
||||||
|
- [NFS - Network File System](https://github.com/ChrisTitusTech/winutil/blob/main/docs/content/dev/features/Features/nfs.md)
|
||||||
|
- [Windows Sandbox](https://github.com/ChrisTitusTech/winutil/blob/main/docs/content/dev/features/Features/Sandbox.md)
|
||||||
|
- [Windows Subsystem for Linux](https://github.com/ChrisTitusTech/winutil/blob/main/docs/content/dev/features/Features/wsl.md)
|
||||||
14
docs/content/dev/features/Features/dotnet.md
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
# All .Net Framework (2,3,4)
|
||||||
|
|
||||||
|
```json
|
||||||
|
"WPFFeaturesdotnet": {
|
||||||
|
"Content": "All .Net Framework (2,3,4)",
|
||||||
|
"Description": ".NET and .NET Framework is a developer platform made up of tools, programming languages, and libraries for building many different types of applications.",
|
||||||
|
"category": "Features",
|
||||||
|
"panel": "1",
|
||||||
|
"Order": "a010_",
|
||||||
|
"feature": [
|
||||||
|
"NetFx4-AdvSrvs",
|
||||||
|
"NetFx3"
|
||||||
|
],
|
||||||
|
```
|
||||||
16
docs/content/dev/features/Features/hyperv.md
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
# HyperV Virtualization
|
||||||
|
|
||||||
|
```json
|
||||||
|
"WPFFeatureshyperv": {
|
||||||
|
"Content": "HyperV Virtualization",
|
||||||
|
"Description": "Hyper-V is a hardware virtualization product developed by Microsoft that allows users to create and manage virtual machines.",
|
||||||
|
"category": "Features",
|
||||||
|
"panel": "1",
|
||||||
|
"Order": "a011_",
|
||||||
|
"feature": [
|
||||||
|
"Microsoft-Hyper-V-All"
|
||||||
|
],
|
||||||
|
"InvokeScript": [
|
||||||
|
"bcdedit /set hypervisorschedulertype classic"
|
||||||
|
],
|
||||||
|
```
|
||||||
16
docs/content/dev/features/Features/legacymedia.md
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
# Legacy Media (WMP, DirectPlay)
|
||||||
|
|
||||||
|
```json
|
||||||
|
"WPFFeatureslegacymedia": {
|
||||||
|
"Content": "Legacy Media (WMP, DirectPlay)",
|
||||||
|
"Description": "Enables legacy programs from previous versions of windows",
|
||||||
|
"category": "Features",
|
||||||
|
"panel": "1",
|
||||||
|
"Order": "a012_",
|
||||||
|
"feature": [
|
||||||
|
"WindowsMediaPlayer",
|
||||||
|
"MediaPlayback",
|
||||||
|
"DirectPlay",
|
||||||
|
"LegacyComponents"
|
||||||
|
],
|
||||||
|
```
|
||||||
22
docs/content/dev/features/Features/nfs.md
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
# NFS - Network File System
|
||||||
|
|
||||||
|
```json
|
||||||
|
"WPFFeaturenfs": {
|
||||||
|
"Content": "NFS - Network File System",
|
||||||
|
"Description": "Network File System (NFS) is a mechanism for storing files on a network.",
|
||||||
|
"category": "Features",
|
||||||
|
"panel": "1",
|
||||||
|
"Order": "a014_",
|
||||||
|
"feature": [
|
||||||
|
"ServicesForNFS-ClientOnly",
|
||||||
|
"ClientForNFS-Infrastructure",
|
||||||
|
"NFS-Administration"
|
||||||
|
],
|
||||||
|
"InvokeScript": [
|
||||||
|
"nfsadmin client stop",
|
||||||
|
"Set-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\ClientForNFS\\CurrentVersion\\Default' -Name 'AnonymousUID' -Type DWord -Value 0",
|
||||||
|
"Set-ItemProperty -Path 'HKLM:\\SOFTWARE\\Microsoft\\ClientForNFS\\CurrentVersion\\Default' -Name 'AnonymousGID' -Type DWord -Value 0",
|
||||||
|
"nfsadmin client start",
|
||||||
|
"nfsadmin client localhost config fileaccess=755 SecFlavors=+sys -krb5 -krb5i"
|
||||||
|
],
|
||||||
|
```
|
||||||
14
docs/content/dev/features/Features/wsl.md
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
# Windows Subsystem for Linux
|
||||||
|
|
||||||
|
```json
|
||||||
|
"WPFFeaturewsl": {
|
||||||
|
"Content": "Windows Subsystem for Linux",
|
||||||
|
"Description": "Windows Subsystem for Linux is an optional feature of Windows that allows Linux programs to run natively on Windows without the need for a separate virtual machine or dual booting.",
|
||||||
|
"category": "Features",
|
||||||
|
"panel": "1",
|
||||||
|
"Order": "a020_",
|
||||||
|
"feature": [
|
||||||
|
"VirtualMachinePlatform",
|
||||||
|
"Microsoft-Windows-Subsystem-Linux"
|
||||||
|
],
|
||||||
|
```
|
||||||
16
docs/content/dev/features/Fixes/Autologin.md
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
# Set Up Autologin
|
||||||
|
|
||||||
|
```json
|
||||||
|
function Invoke-WPFPanelAutologin {
|
||||||
|
<#
|
||||||
|
|
||||||
|
.SYNOPSIS
|
||||||
|
Enables autologin using Sysinternals Autologon.exe
|
||||||
|
|
||||||
|
#>
|
||||||
|
|
||||||
|
# Official Microsoft recommendation: https://learn.microsoft.com/en-us/sysinternals/downloads/autologon
|
||||||
|
Invoke-WebRequest -Uri "https://live.sysinternals.com/Autologon.exe" -OutFile "$env:temp\autologin.exe"
|
||||||
|
cmd /c "$env:temp\autologin.exe" /accepteula
|
||||||
|
}
|
||||||
|
```
|
||||||
141
docs/content/dev/features/Fixes/CorruptionScan.md
Normal file
@@ -0,0 +1,141 @@
|
|||||||
|
# System Corruption Scan
|
||||||
|
|
||||||
|
```json
|
||||||
|
function Invoke-WPFSystemRepair {
|
||||||
|
<#
|
||||||
|
.SYNOPSIS
|
||||||
|
Checks for system corruption using Chkdsk, SFC, and DISM
|
||||||
|
|
||||||
|
.DESCRIPTION
|
||||||
|
1. Chkdsk - Fixes disk and filesystem corruption
|
||||||
|
2. SFC Run 1 - Fixes system file corruption, and fixes DISM if it was corrupted
|
||||||
|
3. DISM - Fixes system image corruption, and fixes SFC's system image if it was corrupted
|
||||||
|
4. SFC Run 2 - Fixes system file corruption, this time with an almost guaranteed uncorrupted system image
|
||||||
|
#>
|
||||||
|
|
||||||
|
function Invoke-Chkdsk {
|
||||||
|
<#
|
||||||
|
.SYNOPSIS
|
||||||
|
Runs chkdsk on the system drive
|
||||||
|
.DESCRIPTION
|
||||||
|
Chkdsk /Scan - Runs an online scan on the system drive, attempts to fix any corruption, and queues other corruption for fixing on reboot
|
||||||
|
#>
|
||||||
|
param(
|
||||||
|
[int]$parentProgressId = 0
|
||||||
|
)
|
||||||
|
|
||||||
|
Write-Progress -Id 1 -ParentId $parentProgressId -Activity $childProgressBarActivity -Status "Running chkdsk..." -PercentComplete 0
|
||||||
|
$oldpercent = 0
|
||||||
|
# 2>&1 redirects stdout, allowing iteration over the output
|
||||||
|
chkdsk.exe /scan /perf 2>&1 | ForEach-Object {
|
||||||
|
Write-Debug $_
|
||||||
|
# Regex to match the total percentage regardless of windows locale (it's always the second percentage in the status output)
|
||||||
|
if ($_ -match "%.*?(\d+)%") {
|
||||||
|
[int]$percent = $matches[1]
|
||||||
|
if ($percent -gt $oldpercent) {
|
||||||
|
Write-Progress -Id 1 -Activity $childProgressBarActivity -Status "Running chkdsk... ($percent%)" -PercentComplete $percent
|
||||||
|
$oldpercent = $percent
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Write-Progress -Id 1 -Activity $childProgressBarActivity -Status "chkdsk Completed" -PercentComplete 100 -Completed
|
||||||
|
}
|
||||||
|
|
||||||
|
function Invoke-SFC {
|
||||||
|
<#
|
||||||
|
.SYNOPSIS
|
||||||
|
Runs sfc on the system drive
|
||||||
|
.DESCRIPTION
|
||||||
|
SFC /ScanNow - Performs a scan of the system files and fixes any corruption
|
||||||
|
.NOTES
|
||||||
|
ErrorActionPreference is set locally within a script block & {...} to isolate their effects.
|
||||||
|
ErrorActionPreference suppresses false errors caused by sfc.exe output redirection.
|
||||||
|
A bug in SFC output buffering causes progress updates to appear in chunks when redirecting output
|
||||||
|
#>
|
||||||
|
param(
|
||||||
|
[int]$parentProgressId = 0
|
||||||
|
)
|
||||||
|
& {
|
||||||
|
$ErrorActionPreference = "SilentlyContinue"
|
||||||
|
Write-Progress -Id 1 -ParentId $parentProgressId -Activity $childProgressBarActivity -Status "Running SFC..." -PercentComplete 0
|
||||||
|
$oldpercent = 0
|
||||||
|
sfc.exe /scannow 2>&1 | ForEach-Object {
|
||||||
|
Write-Debug $_
|
||||||
|
if ($_ -ne "") {
|
||||||
|
# sfc.exe /scannow outputs unicode characters, so we directly remove null characters for optimization
|
||||||
|
$utf8line = $_ -replace "`0", ""
|
||||||
|
if ($utf8line -match "(\d+)\s*%") {
|
||||||
|
[int]$percent = $matches[1]
|
||||||
|
if ($percent -gt $oldpercent) {
|
||||||
|
Write-Progress -Id 1 -Activity $childProgressBarActivity -Status "Running SFC... ($percent%)" -PercentComplete $percent
|
||||||
|
$oldpercent = $percent
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Write-Progress -Id 1 -Activity $childProgressBarActivity -Status "SFC Completed" -PercentComplete 100 -Completed
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function Invoke-DISM {
|
||||||
|
<#
|
||||||
|
.SYNOPSIS
|
||||||
|
Runs DISM on the system drive
|
||||||
|
.DESCRIPTION
|
||||||
|
DISM - Fixes system image corruption, and fixes SFC's system image if it was corrupted
|
||||||
|
/Online - Fixes the currently running system image
|
||||||
|
/Cleanup-Image - Performs cleanup operations on the image, could remove some unneeded temporary files
|
||||||
|
/Restorehealth - Performs a scan of the image and fixes any corruption
|
||||||
|
#>
|
||||||
|
param(
|
||||||
|
[int]$parentProgressId = 0
|
||||||
|
)
|
||||||
|
Write-Progress -Id 1 -ParentId $parentProgressId -Activity $childProgressBarActivity -Status "Running DISM..." -PercentComplete 0
|
||||||
|
$oldpercent = 0
|
||||||
|
DISM /Online /Cleanup-Image /RestoreHealth | ForEach-Object {
|
||||||
|
Write-Debug $_
|
||||||
|
# Filter for lines that contain a percentage that is greater than the previous one
|
||||||
|
if ($_ -match "(\d+)[.,]\d+%") {
|
||||||
|
[int]$percent = $matches[1]
|
||||||
|
if ($percent -gt $oldpercent) {
|
||||||
|
# Update the progress bar
|
||||||
|
Write-Progress -Id 1 -Activity $childProgressBarActivity -Status "Running DISM... ($percent%)" -PercentComplete $percent
|
||||||
|
$oldpercent = $percent
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Write-Progress -Id 1 -Activity $childProgressBarActivity -Status "DISM Completed" -PercentComplete 100 -Completed
|
||||||
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
Set-WinUtilTaskbaritem -state "Indeterminate" -overlay "logo"
|
||||||
|
|
||||||
|
$childProgressBarActivity = "Scanning for corruption"
|
||||||
|
Write-Progress -Id 0 -Activity "Repairing Windows" -PercentComplete 0
|
||||||
|
# Step 1: Run chkdsk to fix disk and filesystem corruption before proceeding with system file repairs
|
||||||
|
Invoke-Chkdsk
|
||||||
|
Write-Progress -Id 0 -Activity "Repairing Windows" -PercentComplete 25
|
||||||
|
|
||||||
|
# Step 2: Run SFC to fix system file corruption and ensure DISM can operate correctly
|
||||||
|
Invoke-SFC
|
||||||
|
Write-Progress -Id 0 -Activity "Repairing Windows" -PercentComplete 50
|
||||||
|
|
||||||
|
# Step 3: Run DISM to repair the system image, which SFC relies on for accurate repairs
|
||||||
|
Invoke-DISM
|
||||||
|
Write-Progress -Id 0 -Activity "Repairing Windows" -PercentComplete 75
|
||||||
|
|
||||||
|
# Step 4: Run SFC again to ensure system files are repaired using the now-fixed system image
|
||||||
|
Invoke-SFC
|
||||||
|
Write-Progress -Id 0 -Activity "Repairing Windows" -PercentComplete 100 -Completed
|
||||||
|
|
||||||
|
Set-WinUtilTaskbaritem -state "None" -overlay "checkmark"
|
||||||
|
} catch {
|
||||||
|
Write-Error "An error occurred while repairing the system: $_"
|
||||||
|
Set-WinUtilTaskbaritem -state "Error" -overlay "warning"
|
||||||
|
} finally {
|
||||||
|
Write-Host "==> Finished System Repair"
|
||||||
|
Set-WinUtilTaskbaritem -state "None" -overlay "checkmark"
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
```
|
||||||
40
docs/content/dev/features/Fixes/Network.md
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
# Reset Network
|
||||||
|
|
||||||
|
```json
|
||||||
|
function Invoke-WPFFixesNetwork {
|
||||||
|
<#
|
||||||
|
|
||||||
|
.SYNOPSIS
|
||||||
|
Resets various network configurations
|
||||||
|
|
||||||
|
#>
|
||||||
|
|
||||||
|
Write-Host "Resetting Network with netsh"
|
||||||
|
|
||||||
|
Set-WinUtilTaskbaritem -state "Normal" -value 0.01 -overlay "logo"
|
||||||
|
# Reset WinSock catalog to a clean state
|
||||||
|
Start-Process -NoNewWindow -FilePath "netsh" -ArgumentList "winsock", "reset"
|
||||||
|
|
||||||
|
Set-WinUtilTaskbaritem -state "Normal" -value 0.35 -overlay "logo"
|
||||||
|
# Resets WinHTTP proxy setting to DIRECT
|
||||||
|
Start-Process -NoNewWindow -FilePath "netsh" -ArgumentList "winhttp", "reset", "proxy"
|
||||||
|
|
||||||
|
Set-WinUtilTaskbaritem -state "Normal" -value 0.7 -overlay "logo"
|
||||||
|
# Removes all user configured IP settings
|
||||||
|
Start-Process -NoNewWindow -FilePath "netsh" -ArgumentList "int", "ip", "reset"
|
||||||
|
|
||||||
|
Set-WinUtilTaskbaritem -state "None" -overlay "checkmark"
|
||||||
|
|
||||||
|
Write-Host "Process complete. Please reboot your computer."
|
||||||
|
|
||||||
|
$ButtonType = [System.Windows.MessageBoxButton]::OK
|
||||||
|
$MessageboxTitle = "Network Reset "
|
||||||
|
$Messageboxbody = ("Stock settings loaded.`n Please reboot your computer")
|
||||||
|
$MessageIcon = [System.Windows.MessageBoxImage]::Information
|
||||||
|
|
||||||
|
[System.Windows.MessageBox]::Show($Messageboxbody, $MessageboxTitle, $ButtonType, $MessageIcon)
|
||||||
|
Write-Host "=========================================="
|
||||||
|
Write-Host "-- Network Configuration has been Reset --"
|
||||||
|
Write-Host "=========================================="
|
||||||
|
}
|
||||||
|
```
|
||||||
36
docs/content/dev/features/Fixes/RunAdobeCCCleanerTool.md
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
# Remove Adobe Creative Cloud
|
||||||
|
|
||||||
|
```json
|
||||||
|
function Invoke-WPFRunAdobeCCCleanerTool {
|
||||||
|
<#
|
||||||
|
.SYNOPSIS
|
||||||
|
It removes or fixes problem files and resolves permission issues in registry keys.
|
||||||
|
.DESCRIPTION
|
||||||
|
The Creative Cloud Cleaner tool is a utility for experienced users to clean up corrupted installations.
|
||||||
|
#>
|
||||||
|
|
||||||
|
[string]$url="https://swupmf.adobe.com/webfeed/CleanerTool/win/AdobeCreativeCloudCleanerTool.exe"
|
||||||
|
|
||||||
|
Write-Host "The Adobe Creative Cloud Cleaner tool is hosted at"
|
||||||
|
Write-Host "$url"
|
||||||
|
|
||||||
|
try {
|
||||||
|
# Don't show the progress because it will slow down the download speed
|
||||||
|
$ProgressPreference='SilentlyContinue'
|
||||||
|
|
||||||
|
Invoke-WebRequest -Uri $url -OutFile "$env:TEMP\AdobeCreativeCloudCleanerTool.exe" -UseBasicParsing -ErrorAction SilentlyContinue -Verbose
|
||||||
|
|
||||||
|
# Revert back the ProgressPreference variable to the default value since we got the file desired
|
||||||
|
$ProgressPreference='Continue'
|
||||||
|
|
||||||
|
Start-Process -FilePath "$env:TEMP\AdobeCreativeCloudCleanerTool.exe" -Wait -ErrorAction SilentlyContinue -Verbose
|
||||||
|
} catch {
|
||||||
|
Write-Error $_.Exception.Message
|
||||||
|
} finally {
|
||||||
|
if (Test-Path -Path "$env:TEMP\AdobeCreativeCloudCleanerTool.exe") {
|
||||||
|
Write-Host "Cleaning up..."
|
||||||
|
Remove-Item -Path "$env:TEMP\AdobeCreativeCloudCleanerTool.exe" -Verbose
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
231
docs/content/dev/features/Fixes/Update.md
Normal file
@@ -0,0 +1,231 @@
|
|||||||
|
# Reset Windows Update
|
||||||
|
|
||||||
|
```json
|
||||||
|
function Invoke-WPFFixesUpdate {
|
||||||
|
|
||||||
|
<#
|
||||||
|
|
||||||
|
.SYNOPSIS
|
||||||
|
Performs various tasks in an attempt to repair Windows Update
|
||||||
|
|
||||||
|
.DESCRIPTION
|
||||||
|
1. (Aggressive Only) Scans the system for corruption using the Invoke-WPFSystemRepair function
|
||||||
|
2. Stops Windows Update Services
|
||||||
|
3. Remove the QMGR Data file, which stores BITS jobs
|
||||||
|
4. (Aggressive Only) Renames the DataStore and CatRoot2 folders
|
||||||
|
DataStore - Contains the Windows Update History and Log Files
|
||||||
|
CatRoot2 - Contains the Signatures for Windows Update Packages
|
||||||
|
5. Renames the Windows Update Download Folder
|
||||||
|
6. Deletes the Windows Update Log
|
||||||
|
7. (Aggressive Only) Resets the Security Descriptors on the Windows Update Services
|
||||||
|
8. Reregisters the BITS and Windows Update DLLs
|
||||||
|
9. Removes the WSUS client settings
|
||||||
|
10. Resets WinSock
|
||||||
|
11. Gets and deletes all BITS jobs
|
||||||
|
12. Sets the startup type of the Windows Update Services then starts them
|
||||||
|
13. Forces Windows Update to check for updates
|
||||||
|
|
||||||
|
.PARAMETER Aggressive
|
||||||
|
If specified, the script will take additional steps to repair Windows Update that are more dangerous, take a significant amount of time, or are generally unnecessary
|
||||||
|
|
||||||
|
#>
|
||||||
|
|
||||||
|
param($Aggressive = $false)
|
||||||
|
|
||||||
|
Write-Progress -Id 0 -Activity "Repairing Windows Update" -PercentComplete 0
|
||||||
|
Set-WinUtilTaskbaritem -state "Indeterminate" -overlay "logo"
|
||||||
|
Write-Host "Starting Windows Update Repair..."
|
||||||
|
# Wait for the first progress bar to show, otherwise the second one won't show
|
||||||
|
Start-Sleep -Milliseconds 200
|
||||||
|
|
||||||
|
if ($Aggressive) {
|
||||||
|
Invoke-WPFSystemRepair
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Write-Progress -Id 0 -Activity "Repairing Windows Update" -Status "Stopping Windows Update Services..." -PercentComplete 10
|
||||||
|
# Stop the Windows Update Services
|
||||||
|
Write-Progress -Id 2 -ParentId 0 -Activity "Stopping Services" -Status "Stopping BITS..." -PercentComplete 0
|
||||||
|
Stop-Service -Name BITS -Force
|
||||||
|
Write-Progress -Id 2 -ParentId 0 -Activity "Stopping Services" -Status "Stopping wuauserv..." -PercentComplete 20
|
||||||
|
Stop-Service -Name wuauserv -Force
|
||||||
|
Write-Progress -Id 2 -ParentId 0 -Activity "Stopping Services" -Status "Stopping appidsvc..." -PercentComplete 40
|
||||||
|
Stop-Service -Name appidsvc -Force
|
||||||
|
Write-Progress -Id 2 -ParentId 0 -Activity "Stopping Services" -Status "Stopping cryptsvc..." -PercentComplete 60
|
||||||
|
Stop-Service -Name cryptsvc -Force
|
||||||
|
Write-Progress -Id 2 -ParentId 0 -Activity "Stopping Services" -Status "Completed" -PercentComplete 100
|
||||||
|
|
||||||
|
|
||||||
|
# Remove the QMGR Data file
|
||||||
|
Write-Progress -Id 0 -Activity "Repairing Windows Update" -Status "Renaming/Removing Files..." -PercentComplete 20
|
||||||
|
Write-Progress -Id 3 -ParentId 0 -Activity "Renaming/Removing Files" -Status "Removing QMGR Data files..." -PercentComplete 0
|
||||||
|
Remove-Item "$env:allusersprofile\Application Data\Microsoft\Network\Downloader\qmgr*.dat" -ErrorAction SilentlyContinue
|
||||||
|
|
||||||
|
|
||||||
|
if ($Aggressive) {
|
||||||
|
# Rename the Windows Update Log and Signature Folders
|
||||||
|
Write-Progress -Id 3 -ParentId 0 -Activity "Renaming/Removing Files" -Status "Renaming the Windows Update Log, Download, and Signature Folder..." -PercentComplete 20
|
||||||
|
Rename-Item $env:systemroot\SoftwareDistribution\DataStore DataStore.bak -ErrorAction SilentlyContinue
|
||||||
|
Rename-Item $env:systemroot\System32\Catroot2 catroot2.bak -ErrorAction SilentlyContinue
|
||||||
|
}
|
||||||
|
|
||||||
|
# Rename the Windows Update Download Folder
|
||||||
|
Write-Progress -Id 3 -ParentId 0 -Activity "Renaming/Removing Files" -Status "Renaming the Windows Update Download Folder..." -PercentComplete 20
|
||||||
|
Rename-Item $env:systemroot\SoftwareDistribution\Download Download.bak -ErrorAction SilentlyContinue
|
||||||
|
|
||||||
|
# Delete the legacy Windows Update Log
|
||||||
|
Write-Progress -Id 3 -ParentId 0 -Activity "Renaming/Removing Files" -Status "Removing the old Windows Update log..." -PercentComplete 80
|
||||||
|
Remove-Item $env:systemroot\WindowsUpdate.log -ErrorAction SilentlyContinue
|
||||||
|
Write-Progress -Id 3 -ParentId 0 -Activity "Renaming/Removing Files" -Status "Completed" -PercentComplete 100
|
||||||
|
|
||||||
|
|
||||||
|
if ($Aggressive) {
|
||||||
|
# Reset the Security Descriptors on the Windows Update Services
|
||||||
|
Write-Progress -Id 0 -Activity "Repairing Windows Update" -Status "Resetting the WU Service Security Descriptors..." -PercentComplete 25
|
||||||
|
Write-Progress -Id 4 -ParentId 0 -Activity "Resetting the WU Service Security Descriptors" -Status "Resetting the BITS Security Descriptor..." -PercentComplete 0
|
||||||
|
Start-Process -NoNewWindow -FilePath "sc.exe" -ArgumentList "sdset", "bits", "D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)" -Wait
|
||||||
|
Write-Progress -Id 4 -ParentId 0 -Activity "Resetting the WU Service Security Descriptors" -Status "Resetting the wuauserv Security Descriptor..." -PercentComplete 50
|
||||||
|
Start-Process -NoNewWindow -FilePath "sc.exe" -ArgumentList "sdset", "wuauserv", "D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)" -Wait
|
||||||
|
Write-Progress -Id 4 -ParentId 0 -Activity "Resetting the WU Service Security Descriptors" -Status "Completed" -PercentComplete 100
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
# Reregister the BITS and Windows Update DLLs
|
||||||
|
Write-Progress -Id 0 -Activity "Repairing Windows Update" -Status "Reregistering DLLs..." -PercentComplete 40
|
||||||
|
$oldLocation = Get-Location
|
||||||
|
Set-Location $env:systemroot\system32
|
||||||
|
$i = 0
|
||||||
|
$DLLs = @(
|
||||||
|
"atl.dll", "urlmon.dll", "mshtml.dll", "shdocvw.dll", "browseui.dll",
|
||||||
|
"jscript.dll", "vbscript.dll", "scrrun.dll", "msxml.dll", "msxml3.dll",
|
||||||
|
"msxml6.dll", "actxprxy.dll", "softpub.dll", "wintrust.dll", "dssenh.dll",
|
||||||
|
"rsaenh.dll", "gpkcsp.dll", "sccbase.dll", "slbcsp.dll", "cryptdlg.dll",
|
||||||
|
"oleaut32.dll", "ole32.dll", "shell32.dll", "initpki.dll", "wuapi.dll",
|
||||||
|
"wuaueng.dll", "wuaueng1.dll", "wucltui.dll", "wups.dll", "wups2.dll",
|
||||||
|
"wuweb.dll", "qmgr.dll", "qmgrprxy.dll", "wucltux.dll", "muweb.dll", "wuwebv.dll"
|
||||||
|
)
|
||||||
|
foreach ($dll in $DLLs) {
|
||||||
|
Write-Progress -Id 5 -ParentId 0 -Activity "Reregistering DLLs" -Status "Registering $dll..." -PercentComplete ($i / $DLLs.Count * 100)
|
||||||
|
$i++
|
||||||
|
Start-Process -NoNewWindow -FilePath "regsvr32.exe" -ArgumentList "/s", $dll
|
||||||
|
}
|
||||||
|
Set-Location $oldLocation
|
||||||
|
Write-Progress -Id 5 -ParentId 0 -Activity "Reregistering DLLs" -Status "Completed" -PercentComplete 100
|
||||||
|
|
||||||
|
|
||||||
|
# Remove the WSUS client settings
|
||||||
|
if (Test-Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate") {
|
||||||
|
Write-Progress -Id 0 -Activity "Repairing Windows Update" -Status "Removing WSUS client settings..." -PercentComplete 60
|
||||||
|
Write-Progress -Id 6 -ParentId 0 -Activity "Removing WSUS client settings" -PercentComplete 0
|
||||||
|
Start-Process -NoNewWindow -FilePath "REG" -ArgumentList "DELETE", "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate", "/v", "AccountDomainSid", "/f" -RedirectStandardError "NUL"
|
||||||
|
Start-Process -NoNewWindow -FilePath "REG" -ArgumentList "DELETE", "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate", "/v", "PingID", "/f" -RedirectStandardError "NUL"
|
||||||
|
Start-Process -NoNewWindow -FilePath "REG" -ArgumentList "DELETE", "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate", "/v", "SusClientId", "/f" -RedirectStandardError "NUL"
|
||||||
|
Write-Progress -Id 6 -ParentId 0 -Activity "Removing WSUS client settings" -Status "Completed" -PercentComplete 100
|
||||||
|
}
|
||||||
|
|
||||||
|
# Remove Group Policy Windows Update settings
|
||||||
|
Write-Progress -Id 0 -Activity "Repairing Windows Update" -Status "Removing Group Policy Windows Update settings..." -PercentComplete 60
|
||||||
|
Write-Progress -Id 7 -ParentId 0 -Activity "Removing Group Policy Windows Update settings" -PercentComplete 0
|
||||||
|
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" -Name "ExcludeWUDriversInQualityUpdate" -ErrorAction SilentlyContinue
|
||||||
|
Write-Host "Defaulting driver offering through Windows Update..."
|
||||||
|
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Device Metadata" -Name "PreventDeviceMetadataFromNetwork" -ErrorAction SilentlyContinue
|
||||||
|
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DriverSearching" -Name "DontPromptForWindowsUpdate" -ErrorAction SilentlyContinue
|
||||||
|
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DriverSearching" -Name "DontSearchWindowsUpdate" -ErrorAction SilentlyContinue
|
||||||
|
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DriverSearching" -Name "DriverUpdateWizardWuSearchEnabled" -ErrorAction SilentlyContinue
|
||||||
|
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" -Name "ExcludeWUDriversInQualityUpdate" -ErrorAction SilentlyContinue
|
||||||
|
Write-Host "Defaulting Windows Update automatic restart..."
|
||||||
|
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name "NoAutoRebootWithLoggedOnUsers" -ErrorAction SilentlyContinue
|
||||||
|
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name "AUPowerManagement" -ErrorAction SilentlyContinue
|
||||||
|
Write-Host "Clearing ANY Windows Update Policy settings..."
|
||||||
|
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" -Name "BranchReadinessLevel" -ErrorAction SilentlyContinue
|
||||||
|
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" -Name "DeferFeatureUpdatesPeriodInDays" -ErrorAction SilentlyContinue
|
||||||
|
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" -Name "DeferQualityUpdatesPeriodInDays" -ErrorAction SilentlyContinue
|
||||||
|
Remove-Item -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies" -Recurse -Force -ErrorAction SilentlyContinue
|
||||||
|
Remove-Item -Path "HKCU:\Software\Microsoft\WindowsSelfHost" -Recurse -Force -ErrorAction SilentlyContinue
|
||||||
|
Remove-Item -Path "HKCU:\Software\Policies" -Recurse -Force -ErrorAction SilentlyContinue
|
||||||
|
Remove-Item -Path "HKLM:\Software\Microsoft\Policies" -Recurse -Force -ErrorAction SilentlyContinue
|
||||||
|
Remove-Item -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies" -Recurse -Force -ErrorAction SilentlyContinue
|
||||||
|
Remove-Item -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\WindowsStore\WindowsUpdate" -Recurse -Force -ErrorAction SilentlyContinue
|
||||||
|
Remove-Item -Path "HKLM:\Software\Microsoft\WindowsSelfHost" -Recurse -Force -ErrorAction SilentlyContinue
|
||||||
|
Remove-Item -Path "HKLM:\Software\Policies" -Recurse -Force -ErrorAction SilentlyContinue
|
||||||
|
Remove-Item -Path "HKLM:\Software\WOW6432Node\Microsoft\Policies" -Recurse -Force -ErrorAction SilentlyContinue
|
||||||
|
Remove-Item -Path "HKLM:\Software\WOW6432Node\Microsoft\Windows\CurrentVersion\Policies" -Recurse -Force -ErrorAction SilentlyContinue
|
||||||
|
Remove-Item -Path "HKLM:\Software\WOW6432Node\Microsoft\Windows\CurrentVersion\WindowsStore\WindowsUpdate" -Recurse -Force -ErrorAction SilentlyContinue
|
||||||
|
Start-Process -NoNewWindow -FilePath "secedit" -ArgumentList "/configure", "/cfg", "$env:windir\inf\defltbase.inf", "/db", "defltbase.sdb", "/verbose" -Wait
|
||||||
|
Start-Process -NoNewWindow -FilePath "cmd.exe" -ArgumentList "/c RD /S /Q $env:WinDir\System32\GroupPolicyUsers" -Wait
|
||||||
|
Start-Process -NoNewWindow -FilePath "cmd.exe" -ArgumentList "/c RD /S /Q $env:WinDir\System32\GroupPolicy" -Wait
|
||||||
|
Start-Process -NoNewWindow -FilePath "gpupdate" -ArgumentList "/force" -Wait
|
||||||
|
Write-Progress -Id 7 -ParentId 0 -Activity "Removing Group Policy Windows Update settings" -Status "Completed" -PercentComplete 100
|
||||||
|
|
||||||
|
|
||||||
|
# Reset WinSock
|
||||||
|
Write-Progress -Id 0 -Activity "Repairing Windows Update" -Status "Resetting WinSock..." -PercentComplete 65
|
||||||
|
Write-Progress -Id 7 -ParentId 0 -Activity "Resetting WinSock" -Status "Resetting WinSock..." -PercentComplete 0
|
||||||
|
Start-Process -NoNewWindow -FilePath "netsh" -ArgumentList "winsock", "reset"
|
||||||
|
Start-Process -NoNewWindow -FilePath "netsh" -ArgumentList "winhttp", "reset", "proxy"
|
||||||
|
Start-Process -NoNewWindow -FilePath "netsh" -ArgumentList "int", "ip", "reset"
|
||||||
|
Write-Progress -Id 7 -ParentId 0 -Activity "Resetting WinSock" -Status "Completed" -PercentComplete 100
|
||||||
|
|
||||||
|
|
||||||
|
# Get and delete all BITS jobs
|
||||||
|
Write-Progress -Id 0 -Activity "Repairing Windows Update" -Status "Deleting BITS jobs..." -PercentComplete 75
|
||||||
|
Write-Progress -Id 8 -ParentId 0 -Activity "Deleting BITS jobs" -Status "Deleting BITS jobs..." -PercentComplete 0
|
||||||
|
Get-BitsTransfer | Remove-BitsTransfer
|
||||||
|
Write-Progress -Id 8 -ParentId 0 -Activity "Deleting BITS jobs" -Status "Completed" -PercentComplete 100
|
||||||
|
|
||||||
|
|
||||||
|
# Change the startup type of the Windows Update Services and start them
|
||||||
|
Write-Progress -Id 0 -Activity "Repairing Windows Update" -Status "Starting Windows Update Services..." -PercentComplete 90
|
||||||
|
Write-Progress -Id 9 -ParentId 0 -Activity "Starting Windows Update Services" -Status "Starting BITS..." -PercentComplete 0
|
||||||
|
Get-Service BITS | Set-Service -StartupType Manual -PassThru | Start-Service
|
||||||
|
Write-Progress -Id 9 -ParentId 0 -Activity "Starting Windows Update Services" -Status "Starting wuauserv..." -PercentComplete 25
|
||||||
|
Get-Service wuauserv | Set-Service -StartupType Manual -PassThru | Start-Service
|
||||||
|
Write-Progress -Id 9 -ParentId 0 -Activity "Starting Windows Update Services" -Status "Starting AppIDSvc..." -PercentComplete 50
|
||||||
|
# The AppIDSvc service is protected, so the startup type has to be changed in the registry
|
||||||
|
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\AppIDSvc" -Name "Start" -Value "3" # Manual
|
||||||
|
Start-Service AppIDSvc
|
||||||
|
Write-Progress -Id 9 -ParentId 0 -Activity "Starting Windows Update Services" -Status "Starting CryptSvc..." -PercentComplete 75
|
||||||
|
Get-Service CryptSvc | Set-Service -StartupType Manual -PassThru | Start-Service
|
||||||
|
Write-Progress -Id 9 -ParentId 0 -Activity "Starting Windows Update Services" -Status "Completed" -PercentComplete 100
|
||||||
|
|
||||||
|
|
||||||
|
# Force Windows Update to check for updates
|
||||||
|
Write-Progress -Id 0 -Activity "Repairing Windows Update" -Status "Forcing discovery..." -PercentComplete 95
|
||||||
|
Write-Progress -Id 10 -ParentId 0 -Activity "Forcing discovery" -Status "Forcing discovery..." -PercentComplete 0
|
||||||
|
try {
|
||||||
|
(New-Object -ComObject Microsoft.Update.AutoUpdate).DetectNow()
|
||||||
|
} catch {
|
||||||
|
Set-WinUtilTaskbaritem -state "Error" -overlay "warning"
|
||||||
|
Write-Warning "Failed to create Windows Update COM object: $_"
|
||||||
|
}
|
||||||
|
Start-Process -NoNewWindow -FilePath "wuauclt" -ArgumentList "/resetauthorization", "/detectnow"
|
||||||
|
Write-Progress -Id 10 -ParentId 0 -Activity "Forcing discovery" -Status "Completed" -PercentComplete 100
|
||||||
|
Write-Progress -Id 0 -Activity "Repairing Windows Update" -Status "Completed" -PercentComplete 100
|
||||||
|
|
||||||
|
Set-WinUtilTaskbaritem -state "None" -overlay "checkmark"
|
||||||
|
|
||||||
|
$ButtonType = [System.Windows.MessageBoxButton]::OK
|
||||||
|
$MessageboxTitle = "Reset Windows Update "
|
||||||
|
$Messageboxbody = ("Stock settings loaded.`n Please reboot your computer")
|
||||||
|
$MessageIcon = [System.Windows.MessageBoxImage]::Information
|
||||||
|
|
||||||
|
[System.Windows.MessageBox]::Show($Messageboxbody, $MessageboxTitle, $ButtonType, $MessageIcon)
|
||||||
|
Write-Host "==============================================="
|
||||||
|
Write-Host "-- Reset All Windows Update Settings to Stock -"
|
||||||
|
Write-Host "==============================================="
|
||||||
|
|
||||||
|
# Remove the progress bars
|
||||||
|
Write-Progress -Id 0 -Activity "Repairing Windows Update" -Completed
|
||||||
|
Write-Progress -Id 1 -Activity "Scanning for corruption" -Completed
|
||||||
|
Write-Progress -Id 2 -Activity "Stopping Services" -Completed
|
||||||
|
Write-Progress -Id 3 -Activity "Renaming/Removing Files" -Completed
|
||||||
|
Write-Progress -Id 4 -Activity "Resetting the WU Service Security Descriptors" -Completed
|
||||||
|
Write-Progress -Id 5 -Activity "Reregistering DLLs" -Completed
|
||||||
|
Write-Progress -Id 6 -Activity "Removing Group Policy Windows Update settings" -Completed
|
||||||
|
Write-Progress -Id 7 -Activity "Resetting WinSock" -Completed
|
||||||
|
Write-Progress -Id 8 -Activity "Deleting BITS jobs" -Completed
|
||||||
|
Write-Progress -Id 9 -Activity "Starting Windows Update Services" -Completed
|
||||||
|
Write-Progress -Id 10 -Activity "Forcing discovery" -Completed
|
||||||
|
}
|
||||||
|
|
||||||
|
```
|
||||||
27
docs/content/dev/features/Fixes/Winget.md
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
# WinGet Reinstall
|
||||||
|
|
||||||
|
```json
|
||||||
|
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 -Force
|
||||||
|
} 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"
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
```
|
||||||
8
docs/content/dev/features/Fixes/_index.md
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
### Fixes
|
||||||
|
|
||||||
|
- [Remove Adobe Creative Cloud](https://github.com/ChrisTitusTech/winutil/blob/main/docs/content/dev/features/Fixes/RunAdobeCCCleanerTool.md)
|
||||||
|
- [Reset Network](https://github.com/ChrisTitusTech/winutil/blob/main/docs/content/dev/features/Fixes/Network.md)
|
||||||
|
- [Reset Windows Update](https://github.com/ChrisTitusTech/winutil/blob/main/docs/content/dev/features/Fixes/Update.md)
|
||||||
|
- [Set Up Autologin](https://github.com/ChrisTitusTech/winutil/blob/main/docs/content/dev/features/Fixes/Autologin.md)
|
||||||
|
- [System Corruption Scan](https://github.com/ChrisTitusTech/winutil/blob/main/docs/content/dev/features/Fixes/CorruptionScan.md)
|
||||||
|
- [WinGet Reinstall](https://github.com/ChrisTitusTech/winutil/blob/main/docs/content/dev/features/Fixes/Winget.md)
|
||||||
10
docs/content/dev/features/Legacy-Windows-Panels/_index.md
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
### Legacy Windows Panels
|
||||||
|
|
||||||
|
- [Control Panel](https://github.com/ChrisTitusTech/winutil/blob/main/docs/content/dev/features/Legacy-Windows-Panels/control.md)
|
||||||
|
- [Network Connections](https://github.com/ChrisTitusTech/winutil/blob/main/docs/content/dev/features/Legacy-Windows-Panels/network.md)
|
||||||
|
- [Power Panel](https://github.com/ChrisTitusTech/winutil/blob/main/docs/content/dev/features/Legacy-Windows-Panels/power.md)
|
||||||
|
- [Printer Settings](https://github.com/ChrisTitusTech/winutil/blob/main/docs/content/dev/features/Legacy-Windows-Panels/printer.md)
|
||||||
|
- [Region](https://github.com/ChrisTitusTech/winutil/blob/main/docs/content/dev/features/Legacy-Windows-Panels/region.md)
|
||||||
|
- [Sound Settings](https://github.com/ChrisTitusTech/winutil/blob/main/docs/content/dev/features/Legacy-Windows-Panels/sound.md)
|
||||||
|
- [System Properties](https://github.com/ChrisTitusTech/winutil/blob/main/docs/content/dev/features/Legacy-Windows-Panels/system.md)
|
||||||
|
- [User Accounts](https://github.com/ChrisTitusTech/winutil/blob/main/docs/content/dev/features/Legacy-Windows-Panels/user.md)
|
||||||
30
docs/content/dev/features/Legacy-Windows-Panels/control.md
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
# Control Panel
|
||||||
|
|
||||||
|
```json
|
||||||
|
function Invoke-WPFControlPanel {
|
||||||
|
<#
|
||||||
|
|
||||||
|
.SYNOPSIS
|
||||||
|
Opens the requested legacy panel
|
||||||
|
|
||||||
|
.PARAMETER Panel
|
||||||
|
The panel to open
|
||||||
|
|
||||||
|
#>
|
||||||
|
param($Panel)
|
||||||
|
|
||||||
|
switch ($Panel) {
|
||||||
|
"WPFPanelControl" {control}
|
||||||
|
"WPFPanelComputer" {compmgmt.msc}
|
||||||
|
"WPFPanelNetwork" {ncpa.cpl}
|
||||||
|
"WPFPanelPower" {powercfg.cpl}
|
||||||
|
"WPFPanelPrinter" {Start-Process "shell:::{A8A91A66-3A7D-4424-8D24-04E180695C7A}"}
|
||||||
|
"WPFPanelRegion" {intl.cpl}
|
||||||
|
"WPFPanelRestore" {rstrui.exe}
|
||||||
|
"WPFPanelSound" {mmsys.cpl}
|
||||||
|
"WPFPanelSystem" {sysdm.cpl}
|
||||||
|
"WPFPanelTimedate" {timedate.cpl}
|
||||||
|
"WPFPanelUser" {control userpasswords2}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
30
docs/content/dev/features/Legacy-Windows-Panels/network.md
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
# Network Connections
|
||||||
|
|
||||||
|
```json
|
||||||
|
function Invoke-WPFControlPanel {
|
||||||
|
<#
|
||||||
|
|
||||||
|
.SYNOPSIS
|
||||||
|
Opens the requested legacy panel
|
||||||
|
|
||||||
|
.PARAMETER Panel
|
||||||
|
The panel to open
|
||||||
|
|
||||||
|
#>
|
||||||
|
param($Panel)
|
||||||
|
|
||||||
|
switch ($Panel) {
|
||||||
|
"WPFPanelControl" {control}
|
||||||
|
"WPFPanelComputer" {compmgmt.msc}
|
||||||
|
"WPFPanelNetwork" {ncpa.cpl}
|
||||||
|
"WPFPanelPower" {powercfg.cpl}
|
||||||
|
"WPFPanelPrinter" {Start-Process "shell:::{A8A91A66-3A7D-4424-8D24-04E180695C7A}"}
|
||||||
|
"WPFPanelRegion" {intl.cpl}
|
||||||
|
"WPFPanelRestore" {rstrui.exe}
|
||||||
|
"WPFPanelSound" {mmsys.cpl}
|
||||||
|
"WPFPanelSystem" {sysdm.cpl}
|
||||||
|
"WPFPanelTimedate" {timedate.cpl}
|
||||||
|
"WPFPanelUser" {control userpasswords2}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
30
docs/content/dev/features/Legacy-Windows-Panels/power.md
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
# Power Panel
|
||||||
|
|
||||||
|
```json
|
||||||
|
function Invoke-WPFControlPanel {
|
||||||
|
<#
|
||||||
|
|
||||||
|
.SYNOPSIS
|
||||||
|
Opens the requested legacy panel
|
||||||
|
|
||||||
|
.PARAMETER Panel
|
||||||
|
The panel to open
|
||||||
|
|
||||||
|
#>
|
||||||
|
param($Panel)
|
||||||
|
|
||||||
|
switch ($Panel) {
|
||||||
|
"WPFPanelControl" {control}
|
||||||
|
"WPFPanelComputer" {compmgmt.msc}
|
||||||
|
"WPFPanelNetwork" {ncpa.cpl}
|
||||||
|
"WPFPanelPower" {powercfg.cpl}
|
||||||
|
"WPFPanelPrinter" {Start-Process "shell:::{A8A91A66-3A7D-4424-8D24-04E180695C7A}"}
|
||||||
|
"WPFPanelRegion" {intl.cpl}
|
||||||
|
"WPFPanelRestore" {rstrui.exe}
|
||||||
|
"WPFPanelSound" {mmsys.cpl}
|
||||||
|
"WPFPanelSystem" {sysdm.cpl}
|
||||||
|
"WPFPanelTimedate" {timedate.cpl}
|
||||||
|
"WPFPanelUser" {control userpasswords2}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
30
docs/content/dev/features/Legacy-Windows-Panels/printer.md
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
# Printer Settings
|
||||||
|
|
||||||
|
```json
|
||||||
|
function Invoke-WPFControlPanel {
|
||||||
|
<#
|
||||||
|
|
||||||
|
.SYNOPSIS
|
||||||
|
Opens the requested legacy panel
|
||||||
|
|
||||||
|
.PARAMETER Panel
|
||||||
|
The panel to open
|
||||||
|
|
||||||
|
#>
|
||||||
|
param($Panel)
|
||||||
|
|
||||||
|
switch ($Panel) {
|
||||||
|
"WPFPanelControl" {control}
|
||||||
|
"WPFPanelComputer" {compmgmt.msc}
|
||||||
|
"WPFPanelNetwork" {ncpa.cpl}
|
||||||
|
"WPFPanelPower" {powercfg.cpl}
|
||||||
|
"WPFPanelPrinter" {Start-Process "shell:::{A8A91A66-3A7D-4424-8D24-04E180695C7A}"}
|
||||||
|
"WPFPanelRegion" {intl.cpl}
|
||||||
|
"WPFPanelRestore" {rstrui.exe}
|
||||||
|
"WPFPanelSound" {mmsys.cpl}
|
||||||
|
"WPFPanelSystem" {sysdm.cpl}
|
||||||
|
"WPFPanelTimedate" {timedate.cpl}
|
||||||
|
"WPFPanelUser" {control userpasswords2}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
30
docs/content/dev/features/Legacy-Windows-Panels/region.md
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
# Region
|
||||||
|
|
||||||
|
```json
|
||||||
|
function Invoke-WPFControlPanel {
|
||||||
|
<#
|
||||||
|
|
||||||
|
.SYNOPSIS
|
||||||
|
Opens the requested legacy panel
|
||||||
|
|
||||||
|
.PARAMETER Panel
|
||||||
|
The panel to open
|
||||||
|
|
||||||
|
#>
|
||||||
|
param($Panel)
|
||||||
|
|
||||||
|
switch ($Panel) {
|
||||||
|
"WPFPanelControl" {control}
|
||||||
|
"WPFPanelComputer" {compmgmt.msc}
|
||||||
|
"WPFPanelNetwork" {ncpa.cpl}
|
||||||
|
"WPFPanelPower" {powercfg.cpl}
|
||||||
|
"WPFPanelPrinter" {Start-Process "shell:::{A8A91A66-3A7D-4424-8D24-04E180695C7A}"}
|
||||||
|
"WPFPanelRegion" {intl.cpl}
|
||||||
|
"WPFPanelRestore" {rstrui.exe}
|
||||||
|
"WPFPanelSound" {mmsys.cpl}
|
||||||
|
"WPFPanelSystem" {sysdm.cpl}
|
||||||
|
"WPFPanelTimedate" {timedate.cpl}
|
||||||
|
"WPFPanelUser" {control userpasswords2}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
30
docs/content/dev/features/Legacy-Windows-Panels/sound.md
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
# Sound Settings
|
||||||
|
|
||||||
|
```json
|
||||||
|
function Invoke-WPFControlPanel {
|
||||||
|
<#
|
||||||
|
|
||||||
|
.SYNOPSIS
|
||||||
|
Opens the requested legacy panel
|
||||||
|
|
||||||
|
.PARAMETER Panel
|
||||||
|
The panel to open
|
||||||
|
|
||||||
|
#>
|
||||||
|
param($Panel)
|
||||||
|
|
||||||
|
switch ($Panel) {
|
||||||
|
"WPFPanelControl" {control}
|
||||||
|
"WPFPanelComputer" {compmgmt.msc}
|
||||||
|
"WPFPanelNetwork" {ncpa.cpl}
|
||||||
|
"WPFPanelPower" {powercfg.cpl}
|
||||||
|
"WPFPanelPrinter" {Start-Process "shell:::{A8A91A66-3A7D-4424-8D24-04E180695C7A}"}
|
||||||
|
"WPFPanelRegion" {intl.cpl}
|
||||||
|
"WPFPanelRestore" {rstrui.exe}
|
||||||
|
"WPFPanelSound" {mmsys.cpl}
|
||||||
|
"WPFPanelSystem" {sysdm.cpl}
|
||||||
|
"WPFPanelTimedate" {timedate.cpl}
|
||||||
|
"WPFPanelUser" {control userpasswords2}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
30
docs/content/dev/features/Legacy-Windows-Panels/system.md
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
# System Properties
|
||||||
|
|
||||||
|
```json
|
||||||
|
function Invoke-WPFControlPanel {
|
||||||
|
<#
|
||||||
|
|
||||||
|
.SYNOPSIS
|
||||||
|
Opens the requested legacy panel
|
||||||
|
|
||||||
|
.PARAMETER Panel
|
||||||
|
The panel to open
|
||||||
|
|
||||||
|
#>
|
||||||
|
param($Panel)
|
||||||
|
|
||||||
|
switch ($Panel) {
|
||||||
|
"WPFPanelControl" {control}
|
||||||
|
"WPFPanelComputer" {compmgmt.msc}
|
||||||
|
"WPFPanelNetwork" {ncpa.cpl}
|
||||||
|
"WPFPanelPower" {powercfg.cpl}
|
||||||
|
"WPFPanelPrinter" {Start-Process "shell:::{A8A91A66-3A7D-4424-8D24-04E180695C7A}"}
|
||||||
|
"WPFPanelRegion" {intl.cpl}
|
||||||
|
"WPFPanelRestore" {rstrui.exe}
|
||||||
|
"WPFPanelSound" {mmsys.cpl}
|
||||||
|
"WPFPanelSystem" {sysdm.cpl}
|
||||||
|
"WPFPanelTimedate" {timedate.cpl}
|
||||||
|
"WPFPanelUser" {control userpasswords2}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
30
docs/content/dev/features/Legacy-Windows-Panels/user.md
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
# User Accounts
|
||||||
|
|
||||||
|
```json
|
||||||
|
function Invoke-WPFControlPanel {
|
||||||
|
<#
|
||||||
|
|
||||||
|
.SYNOPSIS
|
||||||
|
Opens the requested legacy panel
|
||||||
|
|
||||||
|
.PARAMETER Panel
|
||||||
|
The panel to open
|
||||||
|
|
||||||
|
#>
|
||||||
|
param($Panel)
|
||||||
|
|
||||||
|
switch ($Panel) {
|
||||||
|
"WPFPanelControl" {control}
|
||||||
|
"WPFPanelComputer" {compmgmt.msc}
|
||||||
|
"WPFPanelNetwork" {ncpa.cpl}
|
||||||
|
"WPFPanelPower" {powercfg.cpl}
|
||||||
|
"WPFPanelPrinter" {Start-Process "shell:::{A8A91A66-3A7D-4424-8D24-04E180695C7A}"}
|
||||||
|
"WPFPanelRegion" {intl.cpl}
|
||||||
|
"WPFPanelRestore" {rstrui.exe}
|
||||||
|
"WPFPanelSound" {mmsys.cpl}
|
||||||
|
"WPFPanelSystem" {sysdm.cpl}
|
||||||
|
"WPFPanelTimedate" {timedate.cpl}
|
||||||
|
"WPFPanelUser" {control userpasswords2}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
31
docs/content/dev/features/_index.md
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
### Fixes
|
||||||
|
|
||||||
|
- [Remove Adobe Creative Cloud](https://github.com/ChrisTitusTech/winutil/blob/main/docs/content/dev/features/Fixes/RunAdobeCCCleanerTool.md)
|
||||||
|
- [Reset Network](https://github.com/ChrisTitusTech/winutil/blob/main/docs/content/dev/features/Fixes/Network.md)
|
||||||
|
- [Reset Windows Update](https://github.com/ChrisTitusTech/winutil/blob/main/docs/content/dev/features/Fixes/Update.md)
|
||||||
|
- [Set Up Autologin](https://github.com/ChrisTitusTech/winutil/blob/main/docs/content/dev/features/Fixes/Autologin.md)
|
||||||
|
- [System Corruption Scan](https://github.com/ChrisTitusTech/winutil/blob/main/docs/content/dev/features/Fixes/CorruptionScan.md)
|
||||||
|
- [WinGet Reinstall](https://github.com/ChrisTitusTech/winutil/blob/main/docs/content/dev/features/Fixes/Winget.md)
|
||||||
|
|
||||||
|
### Legacy Windows Panels
|
||||||
|
|
||||||
|
- [Control Panel](https://github.com/ChrisTitusTech/winutil/blob/main/docs/content/dev/features/Legacy-Windows-Panels/control.md/control.md)
|
||||||
|
- [Network Connections](https://github.com/ChrisTitusTech/winutil/blob/main/docs/content/dev/features/Legacy-Windows-Panels/network.md)
|
||||||
|
- [Power Panel](https://github.com/ChrisTitusTech/winutil/blob/main/docs/content/dev/features/Legacy-Windows-Panels/power.md)
|
||||||
|
- [Printer Settings](https://github.com/ChrisTitusTech/winutil/blob/main/docs/content/dev/features/Legacy-Windows-Panels/printer.md)
|
||||||
|
- [Region](https://github.com/ChrisTitusTech/winutil/blob/main/docs/content/dev/features/Legacy-Windows-Panels/region.md)
|
||||||
|
- [Sound Settings](https://github.com/ChrisTitusTech/winutil/blob/main/docs/content/dev/features/Legacy-Windows-Panels/sound.md)
|
||||||
|
- [System Properties](https://github.com/ChrisTitusTech/winutil/blob/main/docs/content/dev/features/Legacy-Windows-Panels/system.md)
|
||||||
|
- [User Accounts](https://github.com/ChrisTitusTech/winutil/blob/main/docs/content/dev/features/Legacy-Windows-Panels/user.md)
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
- [All .Net Framework (2,3,4)](https://github.com/ChrisTitusTech/winutil/blob/main/docs/content/dev/features/Features/dotnet.md)
|
||||||
|
- [Disable Legacy F8 Boot Recovery](https://github.com/ChrisTitusTech/winutil/blob/main/docs/content/dev/features/Features/DisableLegacyRecovery.md)
|
||||||
|
- [Enable Legacy F8 Boot Recovery](https://github.com/ChrisTitusTech/winutil/blob/main/docs/content/dev/features/Features/EnableLegacyRecovery.md)
|
||||||
|
- [Enable Daily Registry Backup Task 12.30am](https://github.com/ChrisTitusTech/winutil/blob/main/docs/content/dev/features/Features/RegBackup.md)
|
||||||
|
- [HyperV Virtualization](https://github.com/ChrisTitusTech/winutil/blob/main/docs/content/dev/features/Features/hyperv.md)
|
||||||
|
- [Legacy Media (WMP, DirectPlay)](https://github.com/ChrisTitusTech/winutil/blob/main/docs/content/dev/features/Features/legacymedia.md)
|
||||||
|
- [NFS - Network File System](https://github.com/ChrisTitusTech/winutil/blob/main/docs/content/dev/features/Features/nfs.md)
|
||||||
|
- [Windows Sandbox](https://github.com/ChrisTitusTech/winutil/blob/main/docs/content/dev/features/Features/Sandbox.md)
|
||||||
|
- [Windows Subsystem for Linux](https://github.com/ChrisTitusTech/winutil/blob/main/docs/content/dev/features/Features/wsl.md)
|
||||||
26
docs/content/dev/tweaks/Customize-Preferences/BingSearch.md
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
# Bing Search in Start Menu
|
||||||
|
|
||||||
|
```json
|
||||||
|
"WPFToggleBingSearch": {
|
||||||
|
"Content": "Bing Search in Start Menu",
|
||||||
|
"Description": "If enable then includes web search results from Bing in your Start Menu search.",
|
||||||
|
"category": "Customize Preferences",
|
||||||
|
"panel": "2",
|
||||||
|
"Order": "a101_",
|
||||||
|
"Type": "Toggle",
|
||||||
|
"registry": [
|
||||||
|
{
|
||||||
|
"Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Search",
|
||||||
|
"Name": "BingSearchEnabled",
|
||||||
|
"Value": "1",
|
||||||
|
"OriginalValue": "0",
|
||||||
|
"DefaultState": "true",
|
||||||
|
"Type": "DWord"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
```
|
||||||
|
|
||||||
|
## Registry Changes
|
||||||
|
Applications and System Components store and retrieve configuration data to modify windows settings, so we can use the registry to change many settings in one place.
|
||||||
|
|
||||||
|
You can find information about the registry on [Wikipedia](https://www.wikiwand.com/en/Windows_Registry) and [Microsoft's Website](https://learn.microsoft.com/en-us/windows/win32/sysinfo/registry).
|
||||||