├── .github ├── FUNDING.yml ├── ISSUE_TEMPLATE │ ├── bug_report.yaml │ ├── doc_issue.yaml │ └── feature_request.yaml ├── banner.png ├── logo.ico └── stale.yml ├── .gitignore ├── LICENSE ├── README.md ├── WinRice.ps1 ├── doc ├── App-uninstallation.md ├── CONTRIBUTING.md ├── Frequently-answered-questions.md ├── Main-brief.md ├── README.md ├── Reverting-changes.md ├── Settings.md ├── Supported-winver.md └── winget │ ├── import.md │ ├── winget.md │ └── winstall.md └── scripts ├── DisableVBS.ps1 ├── EnableVBS.ps1 ├── EnableWSL.ps1 ├── README.md ├── ResetWU.ps1 ├── SetupFlowLauncher.ps1 ├── SetupWU.ps1 ├── WingetImport.ps1 └── Winstall.ps1 /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | ko_fi: pratyakshm 2 | github: pratyakshm -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.yaml: -------------------------------------------------------------------------------- 1 | name: 🐛 Bug report 2 | description: Report a bug 3 | labels: Bug report 4 | assignees: 5 | - pratyakshm 6 | body: 7 | - type: markdown 8 | attributes: 9 | value: | 10 | Thanks for taking your time to file this report. 11 | - type: dropdown 12 | id: winver 13 | attributes: 14 | label: Windows version 15 | description: "Check all that apply." 16 | multiple: true 17 | options: 18 | - "Windows 11, version 24H2 (2024 Update)" 19 | - "Windows 11, version 23H2 (2023 Update)" 20 | - "Windows 10, version 22H2 (2022 Update)" 21 | validations: 22 | required: true 23 | - type: input 24 | id: expected 25 | attributes: 26 | label: Expected behavior 27 | validations: 28 | required: true 29 | - type: input 30 | id: actual 31 | attributes: 32 | label: Actual behavior 33 | validations: 34 | required: true 35 | - type: textarea 36 | id: output 37 | attributes: 38 | label: WinRice output 39 | description: Copy paste or drag and drop below the transcript files logged by WinRice in C:\WinRice. Paste only the file(s), not their content. 40 | validations: 41 | required: true 42 | - type: textarea 43 | id: notes 44 | attributes: 45 | label: Anything else I should know? 46 | description: Additional stuff you think I should know. 47 | validations: 48 | required: false 49 | 50 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/doc_issue.yaml: -------------------------------------------------------------------------------- 1 | name: 📃 Documentation issue 2 | description: File an issue with documentation 3 | labels: Documentation issue 4 | assignees: 5 | - pratyakshm 6 | body: 7 | - type: markdown 8 | attributes: 9 | value: | 10 | Thanks for taking your time to file this report. 11 | - type: input 12 | id: location 13 | attributes: 14 | label: Concerned document 15 | description: Provide link to the concerned document. 16 | validations: 17 | required: true 18 | - type: textarea 19 | id: explaintheissue 20 | attributes: 21 | label: Explain the issue 22 | description: Explain the issue with proper details. 23 | validations: 24 | required: true 25 | - type: textarea 26 | id: proposedchanges 27 | attributes: 28 | label: Proposed changes 29 | description: What changes do you propose for the document? 30 | validations: 31 | required: true -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.yaml: -------------------------------------------------------------------------------- 1 | name: 🚀 Feature request 2 | description: Request a feature 3 | labels: Feature request 4 | assignees: 5 | - pratyakshm 6 | body: 7 | - type: markdown 8 | attributes: 9 | value: | 10 | Thanks for taking your time to file this feature request. 11 | - type: checkboxes 12 | id: principles 13 | attributes: 14 | label: WinRice principles 15 | description: https://github.com/pratyakshm/WinRice/blob/main/doc/CONTRIBUTING.md#principles 16 | options: 17 | - label: "I have read the WinRice principles and I believe that this feature request abides by the WinRice principles to my truest sense." 18 | required: true 19 | - type: textarea 20 | id: explain1 21 | attributes: 22 | label: Explain the feature. 23 | description: Please explain the feature in as much detail as you can. Providing screenshots, if helpful, is highly appreciated. 24 | validations: 25 | required: true 26 | - type: dropdown 27 | id: question2 28 | attributes: 29 | label: Does your feature request involve usage of third party software? 30 | description: Know that feature requests which suggest usage of third party software are often low prioritized. Exceptions apply. 31 | multiple: false 32 | options: 33 | - "Yes" 34 | - "No" 35 | validations: 36 | required: true -------------------------------------------------------------------------------- /.github/banner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pratyakshm/WinRice/5152e0295439d8deb3f04c0c74af17679e3f553d/.github/banner.png -------------------------------------------------------------------------------- /.github/logo.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pratyakshm/WinRice/5152e0295439d8deb3f04c0c74af17679e3f553d/.github/logo.ico -------------------------------------------------------------------------------- /.github/stale.yml: -------------------------------------------------------------------------------- 1 | # Number of days of inactivity before an issue becomes stale 2 | daysUntilStale: 30 3 | # Number of days of inactivity before a stale issue is closed 4 | daysUntilClose: 90 5 | # Label to use when marking an issue as stale 6 | staleLabel: Stale 7 | # Comment to post when marking an issue as stale. Set to `false` to disable 8 | markComment: > 9 | Hi, is this issue still relevant? If so, what makes it relevant? And if its relevant, why is this issue stale? 10 | 11 | This issue has been automatically marked as stale because it has not had 12 | recent activity. It will be automatically closed in 90 days if no further activity occurs. 13 | # Comment to post when closing a stale issue. Set to `false` to disable 14 | closeComment: false -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .vscode 2 | BIT2146.tmp 3 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |

2 | Files Logo 3 | 4 |

5 | 6 |

7 | No. of downloads GitHub issues Platform support Platform support 8 |

9 | 10 |

11 | Features • 12 | Documentation • 13 | FAQ • 14 | License • 15 | Contribution 16 |

17 | 18 | ## About 19 | 20 | WinRice is a PowerShell script designed to automate setting up a new Windows device. It automates a few of the useful things that people generally do in a fresh Windows installation or a new Windows device. 21 | 22 | [Download Button](https://github.com/pratyakshm/WinRice/releases/download/v0.5.04112021/WinRice.exe) 23 | 24 | 25 | ## Feature Highlight 26 | 27 | - Batch installs apps and features automatically 28 | - Configures Windows UI 29 | - Configures Windows Update policies 30 | - Enhances privacy 31 | - Disables non-essential tasks 32 | - Disables silent installation of apps from Microsoft Store 33 | - Disables suggestions and tips 34 | - Exposes hidden power options 35 | - Hardens security 36 | - Removes non-essential apps 37 | - Removes non-essential features 38 | 39 | ## Pre-requisites 40 | 41 | - You've read the documentation. If you're running WinRice for the first time, take a look at [`Main-brief.md`](https://github.com/pratyakshm/WinRice/blob/main/doc/Main-brief.md). The directory that contains all documents is available [here](https://github.com/pratyakshm/WinRice/tree/main/doc). 42 | - Your device must: 43 | - Be connected to the Internet. 44 | - Be powered by an [in-service Windows version](https://github.com/pratyakshm/WinRice/blob/main/doc/Supported-winver.md). 45 | - Not have any pending restarts. 46 | - Be up to date. \* 47 | 48 | \* If you've just installed Windows, please ensure that all updates from Microsoft Store and Windows Update are installed. This is because WinRice uses some components that are only available in the latest updates. This is to ensure that WinRice works seamlessly on your device. 49 | 50 | ## Testimonials 51 | > ![based AF](https://i.imgur.com/CbI97e3.png) 52 | > \- KenHV ([@KenHV](https://github.com/KenHV)) (July 11th, 2021) 53 | 54 | WinRice is fully free and open source. If you wish to support my work, you may [pledge via PayPal](https://paypal.me/pratyakshm). 55 | 56 | Made with 🩷 on 🌍. 57 | 58 | Thank you for using WinRice. 59 | 60 | 73 | -------------------------------------------------------------------------------- /doc/App-uninstallation.md: -------------------------------------------------------------------------------- 1 | # App Uninstallation 2 | 3 | WinRice can uninstall non-essential apps that come bundled with Windows. 4 | The user is asked if they want to uninstall such apps. If they choose to do so, they are presented with an option to choose which apps to uninstall. 5 | If the user chooses to uninstall apps but doesn't specify which apps to uninstall, the following apps will be uninstalled: 6 | 7 | - Calendar 8 | - Clipchamp 9 | - Cortana 10 | - Camera (if no camera is detected) 11 | - Mail 12 | - Maps 13 | - Microsoft OneDrive 14 | - Microsoft News 15 | - Microsoft Solitaire Collection 16 | - Microsoft Teams 17 | - Mixed Reality Portal 18 | - OneNote for Windows 10 19 | - Office 20 | - Paint 3D 21 | - Power Automate Desktop 22 | - Tips 23 | - Whiteboard 24 | - Weather 25 | 26 | ## Uninstall Apps From a Text File 27 | 28 | WinRice supports uninstalling a list of apps from a text file. 29 | The text file must be formatted as follows: 30 | 31 | - There must be one app name per line. 32 | - Absolute package name shall be used. Example: `Microsoft.WindowsMaps` 33 | - The filename must be `uninstallapps.txt`. 34 | - List must be saved in the same folder as WinRice. 35 | 36 | If an `uninstallapps.txt` file is detected, WinRice won't ask if the user wants to select which apps to uninstall. The list will be used automatically. 37 | 38 | **Note:** To get package name of an app, use `Get-AppxPackage *app*`. 39 | 40 | --- 41 | 42 | ## Feedback 43 | 44 | If you have observed an issue with docs or if there are accessibility issues, please consider [filing an issue](https://github.com/pratyakshm/WinRice/issues/new?assignees=pratyakshm&labels=Issue-Docs&template=doc_issue.yaml&title=Docs+issue%3A+). 45 | -------------------------------------------------------------------------------- /doc/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contribution 2 | 3 | WinRice accepts all kinds of contributions such as finding bugs, fixing bugs, adding features, removal of deprecated features and/or values, improving documentation, etc. I'm excited to work with the users and fellow PowerShell enthusiasts to further improve this project. 4 | 5 | I ask that **before you start your work on a feature that you would like to request or contribute**, please read the WinRice principles below. I will be happy to work with you to figure out good approaches and provide guidance throughout feature development, and help avoid any wasted or duplicated effort. 6 | 7 | ## Principles 8 | 9 | 1. Prefer usage of first party software over third party software (instance: WinGet over Chocolatey, etc.). 10 | 2. Avoid removing software which is tied to the operating system (e.g. Microsoft Edge). 11 | 3. Avoid removing unrecoverable software. 12 | 4. Avoid removing developer category inbox apps (e.g. Windows Terminal). 13 | 5. Avoid removing media playback apps (e.g. Media Player, Movies & TV, Photos, etc.). 14 | 6. Avoid removing Xbox sister apps (e.g. Xbox Game bar, etc.). 15 | 7. Avoid removing software that can result in reduced crucial OS and app functionality 16 | 8. Avoid modifying settings or files that may conflict with OS updates. 17 | 9. Avoid making changes that might result in a degraded OS security and/or stability. 18 | 10. Avoid adding registry edits that no longer take effect in [currently serviced Windows 11/10 versions](https://docs.microsoft.com/en-us/windows/release-health/release-information). 19 | 20 | # Credits and acknowledgements 21 |

• WinRice logo and banner is created by Vancel

22 |

• Documentation and UX are contributed to by Ken

-------------------------------------------------------------------------------- /doc/Frequently-answered-questions.md: -------------------------------------------------------------------------------- 1 | # Frequently Asked Questions 2 | 3 | **Q:** **Is it safe to use WinRice?** 4 | **A:** Yes, given that you've _read the documentation_. 5 | 6 | **Q:** **Where can I read the detailed documentation for WinRice?** 7 | **A:** If you are a user and you want to learn what WinRice does, refer to [`Main-brief.md`](https://github.com/WinRice/WinRice/blob/main/doc/Main-brief.md). 8 | All documentation for this program is contained in the [doc](https://github.com/pratyakshm/WinRice/tree/main/doc) folder. 9 | 10 | **Q:** **How do I revert a change?** 11 | **A:** Read [`Reverting-changes.md`](https://github.com/pratyakshm/WinRice/blob/main/doc/Reverting-changes.md). 12 | 13 | **Q:** **I've run WinRice and I observed an issue.** 14 | **A:** [Open a ticket](https://github.com/pratyakshm/WinRice/issues/new/choose). 15 | 16 | **Q:** **Please add <feature> to WinRice** 17 | **A:** Submit a [Pull request](https://github.com/pratyakshm/WinRice/pulls) with your code or [open a ticket](https://github.com/pratyakshm/WinRice/issues). As long as it follows the WinRice [principles](https://github.com/pratyakshm/WinRice/blob/main/doc/CONTRIBUTING.md#principles) and adds value, I will most likely make it happen. 18 | 19 | **Q:** **Which OS versions does WinRice support?** 20 | **A:** Refer to [doc/Supported-winver.md](https://github.com/pratyakshm/WinRice/blob/main/doc/Supported-winver.md). 21 | 22 | **Q:** **I opted to turn off automatic Windows updates, but they're not turned off. Why?** 23 | **A:** Windows Update policies are only applied to Windows editions that support Group policies. These are Education, Enterprise, Enterprise LTSC and Professional editions. Windows editions that are derivates of Windows Core edition (for instance, Windows 11/10 Home) do not support Group policies, hence Windows Update policies cannot be applied to them. 24 | If WinRice has not set up group policies despite your edition of Windows supporting it, please consider filing a [bug report](https://github.com/pratyakshm/WinRice/issues/new?assignees=pratyakshm&labels=Issue-Bug&template=bug_report.yaml&title=Bug%3A+). 25 | 26 | --- 27 | 28 | ## Feedback 29 | 30 | If you have observed an issue with docs or if there are accessibility issues, please consider [filing an issue](https://github.com/pratyakshm/WinRice/issues/new?assignees=pratyakshm&labels=Issue-Docs&template=doc_issue.yaml&title=Docs+issue%3A+). 31 | -------------------------------------------------------------------------------- /doc/Main-brief.md: -------------------------------------------------------------------------------- 1 | # Main brief document 2 | 3 | 💡 Your WinRice experience can be customized. Please read [`Settings.md`](https://github.com/pratyakshm/WinRice/blob/main/doc/Settings.md) to learn more. 4 | 5 | ## Contents of this page 6 | 7 | | Category | Link | 8 | | ---------------- | ------------------------------------------------------------------------------------------------ | 9 | | Apps | [Click here](https://github.com/pratyakshm/WinRice/blob/main/doc/Main-brief.md#apps) | 10 | | Features | [Click here](https://github.com/pratyakshm/WinRice/blob/main/doc/Main-brief.md#features) | 11 | | Privacy | [Click here](https://github.com/pratyakshm/WinRice/blob/main/doc/Main-brief.md#privacy) | 12 | | Security | [Click here](https://github.com/pratyakshm/WinRice/blob/main/doc/Main-brief.md#security) | 13 | | OS | [Click here](https://github.com/pratyakshm/WinRice/blob/main/doc/Main-brief.md#os) | 14 | | Windows Explorer | [Click here](https://github.com/pratyakshm/WinRice/blob/main/doc/Main-brief.md#windows-explorer) | 15 | 16 | ## Legend 17 | 18 | | Symbol | Significance | 19 | | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | 20 | | 🎛️ | Tasks prefixed with 🎛️ "control knob" emoji are such tasks which are only run when they are configured. You may learn more by visiting [`Settings.md`](https://github.com/pratyakshm/WinRice/blob/main/doc/Settings.md). | 21 | | 🧪 | Tasks prefixed with 🧪 "test tube" emoji behave differently when device is detected to be flighting in the Windows Insider Program. | 22 | 23 | # Apps 24 | 25 | ### Things Installed: 26 | 27 | - HEVC Video Extensions 28 | 29 | - Visual C++ Libraries 30 | 31 | - Windows Package Manager ([GitHub](https://github.com/microsoft/winget-cli/)) 32 | 33 | #### 🎛️ Leveraging WinGet to Install Apps 34 | 35 | - [`winget.md`](https://github.com/pratyakshm/WinRice/blob/main/doc/winget/winget.md) 36 | 37 | - [`import.md`](https://github.com/pratyakshm/WinRice/blob/main/doc/winget/import.md) 38 | 39 | - [`winstall.md`](https://github.com/pratyakshm/WinRice/blob/main/doc/winget/winstall.md) 40 | 41 | ### 🎛️ Apps Uninstalled: 42 | 43 | Refer to [`App-uninstallation.md`](https://github.com/pratyakshm/WinRice/blob/main/doc/App-uninstallation.md) 44 | 45 | ### Apps Unpinned From Taskbar: 46 | 47 | - Mail 48 | - Microsoft Store 49 | - Office 50 | - Xbox 51 | 52 | ## 🔚 End of Apps section 53 | 54 | --- 55 | 56 | # Features 57 | 58 | ### 🎛️ Features Installed: 59 | 60 | - .NET 3.5 61 | - Windows Sandbox 62 | - Windows Subsystem for Linux 63 | 64 | ### 🎛️ Features Uninstalled: 65 | 66 | - DirectPlay 67 | - Legacy Components 68 | - Math Recognizer 69 | - SMB 1 Protocol 70 | - SMB Direct 71 | - Snipping Tool (Windows 10) 72 | - Windows Fax & Scan 73 | - Windows Hello Face (if no Camera is connected to device) 74 | - Windows PowerShell ISE 75 | - Windows PowerShell v2 76 | - Windows XPS Features 77 | - XPS Document Writer 78 | - WordPad 79 | - Work Folders Client 80 | 81 | ## 🔚 End of Features section 82 | 83 | --- 84 | 85 | # Privacy 86 | 87 | ## Turn Off the Following: 88 | 89 | - Advertising ID 90 | - App suggestions 91 | - Error reporting 92 | - Inking & typing personalization 93 | - Online speech recognition 94 | - Tailored Experiences 95 | - Websites' access to language list to provide locally relevant content 96 | 97 | ## Limit The Following: 98 | 99 | - 🧪 Diagnostic data 100 | - 🧪 Feedback notifications 101 | 102 | #### 🔔 Check [notes](https://github.com/pratyakshm/WinRice/blob/main/doc/Main-brief.md#notes) 103 | 104 | ## Turn On the Following: 105 | 106 | - Clipboard history 107 | 108 | 109 | ## 🔚 End of Privacy section 110 | 111 | --- 112 | 113 | # Security 114 | 115 | ### Stay on lock screen post a Windows Update restart 116 | 117 | After a device restarts after applying a Windows Update, it stays on the lock screen and awaits manual login from a user. 118 | 119 | 128 | 129 | ### Windows WDigest Credential Caching 130 | 131 | Digest Authentication is a challenge/response protocol that was primarily used in Windows Server 2003 for LDAP and web-based authentication. It utilizes Hypertext Transfer Protocol (HTTP) and Simple Authentication Security Layer (SASL) exchanges to authenticate. 132 | 133 | This is where WDigest comes into play, something to be concerned with related to WDigest is that it stores passwords in clear-text, in memory. If a malicious user has access to an endpoint and is able to run a tool like Mimikatz, not only would they get the hashes currently stored in memory, but they’d also be able to get the clear-text password for the accounts as well. 134 | 135 | WinRice disables WDigest Credential Caching on all devices. 136 | 137 | See more at [What is Digest Authentication?: Logon and Authentication - docs.microsoft.com](). 138 | 139 | ### Link-Local Multicast Name Resolution 140 | 141 | LLMNR was (is) a protocol used that allowed name resolution without the requirement of a DNS server. It was (is) able to provide a hostname-to-IP based off a multicast packet sent across the network asking all listening Network-Interfaces to reply if they are authoritatively known as the hostname in the query. 142 | Windows will use LLMNR in certain circumstances to identify certain machines on the network, such as file-servers. If Windows attempts to use LLMNR to identify the server of a file-share and it receives a reply, it will send the current user’s credentials directly to that server assuming it wouldn’t have replied if it wasn’t the authoritative file-server. If that LLMNR received response was actually an impersonator, Windows just disclosed that user’s credential hash to a third-party. What’s worse? The impersonator may forward that packet to the actual file-server, so the user never realizes anything is amiss. 143 | 144 | WinRice disables LLMNR on all devices. 145 | 146 | See more at [How to Disable LLMNR & Why You Want To - Black Hills Information Security - blackhillsinfosec.com](https://www.blackhillsinfosec.com/how-to-disable-llmnr-why-you-want-to/). 147 | 148 | ### Structured Exception Handling Overwrite Protection 149 | 150 | This feature is designed to block exploits that use the Structured Exception Handler (SEH) overwrite technique. This protection mechanism is provided at run-time. Therefore, it helps protect your device. 151 | 152 | WinRice enables Structured Exception Handling Overwrite Protection on all devices. 153 | 154 | See more at [How to enable Structured Exception Handling Overwrite Protection (SEHOP) in Windows operating systems - support.microsoft.com](https://support.microsoft.com/en-us/topic/how-to-enable-structured-exception-handling-overwrite-protection-sehop-in-windows-operating-systems-8d4595f7-827f-72ee-8c34-fa8e0fe7b915). 155 | 156 | ### Web Proxy Auto-Discovery 157 | 158 | WPAD is a protocol, developed in 1999 by people from Microsoft and other technology companies, that allows computers to automatically discover which web proxy they should use. The proxy is defined in a JavaScript file called a proxy auto-config (PAC) file. 159 | 160 | The location of PAC files can be discovered through WPAD in several ways: through a special Dynamic Host Configuration Protocol (DHCP) option, through local Domain Name System (DNS) lookups, or through Link-Local Multicast Name Resolution (LLMNR). 161 | 162 | Attackers can abuse these options to supply computers on a local network with a PAC file that specifies a rogue web proxy under their control. This can be done on an open wireless network or if the attackers compromise a router or access point. 163 | 164 | WinRice disables Web Proxy Auto-Discovery or WPAD on all devices. 165 | 166 | See more at [Disable WPAD now or have your accounts and private data compromised - csoonline.com](https://www.csoonline.com/article/3106076/disable-wpad-now-or-have-your-accounts-and-private-data-compromised.html). 167 | 168 | Also read: [Disable WPAD on Your PC So Your HTTPS Traffic Won't Be Vulnerable to the Latest SSL Attack -null-byte.wonderhowto.com](https://null-byte.wonderhowto.com/how-to/disable-wpad-your-pc-so-your-https-traffic-wont-be-vulnerable-latest-ssl-attack-0172499). 169 | 170 | ### Local Security Authority (LSA) Protection 171 | 172 | The LSA, which includes the Local Security Authority Server Service (LSASS) process, validates users for local and remote sign-ins and enforces local security policies. The Windows 8.1 operating system provides additional protection for the LSA to prevent reading memory and code injection by non-protected processes. This provides added security for the credentials that the LSA stores and manages. 173 | 174 | WinRice enables LSA Protection on all devices. 175 | 176 | See more at [Configuring Additional LSA Protection](https://docs.microsoft.com/en-us/windows-server/security/credentials-protection-and-management/configuring-additional-lsa-protection). 177 | 178 | ### Windows Script Host 179 | 180 | Numerous spam campaigns are pushing various crypto-ransomware families (and backdoors) via ZIP file attachments. And such ZIP files typically contain a JScript (.js/.jse) file which, if clicked, will be run via Windows Script Host. 181 | 182 | Since Windows Script Host is also not used by personal PC users, WinRice disables this feature. 183 | 184 | See more at [How-To Disable Windows Script Host - blog.f-secure.com](https://blog.f-secure.com/how-to-disable-windows-script-host/). 185 | 186 | ### Office OLE 187 | 188 | OLE allows an editing application to export part of a document to another editing application and then import it with additional content. For example, a desktop publishing system might send some text to a word processor or a picture to a bitmap editor using OLE. 189 | OLE is misused by malware and is often treated by some as an exploit. 190 | 191 | WinRice disables Office OLE. 192 | 193 | See more at [111 Attacking EvilCorp Anatomy of a Corporate Hack Sean Metcalf Will Schroeder - youtube.com](https://youtu.be/nJSMJyRNvlM?). 194 | 195 | ## 🔚 End of Security section 196 | 197 | --- 198 | 199 | # OS 200 | 201 | ## Disables the following tasks: 202 | 203 | - Consolidator 204 | - DmClient 205 | - DmClientOnScenarioDownload 206 | - Disk Diagnostics Data Collector 207 | - Feedback Notifications task 208 | - Microsoft Compatibility Appraiser 209 | - ProgramDataUpdater 210 | - QueueReporting 211 | - UsbCeip 212 | 213 | ### Disables these additional tasks if your device is powered by an AMD processor: 214 | 215 | - AMDLinkUpdate 216 | - AMDRyzenMasterSDKTask 217 | - ModifyLinkUpdate 218 | - StartCN 219 | - StartDVR 220 | 221 | ## Restores Power options 222 | 223 | This is useful for OEM devices which ship with a lot of power options hidden by default. WinRice restores them to the user. 224 | 225 |
Screen shot of Advanced power settings applet 226 | 227 | ![image](https://user-images.githubusercontent.com/54220235/149530018-d71f56a5-f1f2-4365-af8b-92a16e28aae3.png) 228 | 229 |
230 | 231 | ### More OS Level Changes That Are Made: 232 | 233 | Things disabled: 234 | 235 | - Autoplay & Autorun. 236 | - Hibernation (desktop only). 237 | - Windows welcome experience after an update which shows what's new. 238 | - Tips and suggestions when using Windows. 239 | 240 | Things enabled: 241 | 242 | - 🎛️ OS may be enabled to follow UTC if its set to follow BIOS time. 243 | - Num lock on startup. 244 | - Long path support. 245 | 246 | ## 🧪🎛️ Windows Update 247 | 248 | ### Setup Windows Update 249 | 250 | Setup the following policies to Windows Update: 251 | 252 | - Turn off automatic updates 253 | - Do not auto restart PC if users are signed in 254 | - Delay feature updates by 20 days 255 | - Delay quality updates by 4 days 256 | - Turn off re-installation of bloatware after feature updates 257 | - Turn off Delivery Optimization 258 | 259 | ### Reset Windows Update 260 | 261 | - Reset Windows Update is available for users who want to switch back to stock Windows Update settings. 262 | 263 | ## 🔚 End of OS section 264 | 265 | --- 266 | 267 | # Windows Explorer 268 | 269 | ## Turn Off the Following: 270 | 271 | | Item | Area Affected | OS | 272 | | ------------------ | ----------------------- | ----------------- | 273 | | Widgets icon | Taskbar | Windows 11 | 274 | | Chat icon | Taskbar | Windows 11 | 275 | | Search icon | Taskbar | Windows 11 and 10 | 276 | | Task view | Taskbar | Windows 11 and 10 | 277 | | Cortana | Taskbar | Windows 10 | 278 | | 3D Objects | File Explorer sidebar | Windows 10 | 279 | | Meet now | Other system tray icons | Windows 10 | 280 | | News and interests | Other system tray icons | Windows 10 | 281 | 282 | 283 | 284 | ## More Changes: 285 | 286 | - Set File Explorer to open This PC by default. 287 | - Turn off Keyboard shortcut for Sticky keys. 288 | - If ShareX is installed, WinRice disables the Print Screen key behavior of launching the Snipping Tool. 289 | - If the taskbar is detected to have incorrect window preview behavior for opened apps, an attempt is made to fix it. 290 | 291 | 292 | ## 🔚 End of Windows Explorer section 293 | 294 | --- 295 | 296 | ## Notes 297 | 298 | - WinRice sets your Diagnostic data to Required level. On devices running Windows pre-release software, Diagnostic data is set to Optional level. 299 | 300 | - Error reporting is not disabled in Windows pre-release software. 301 | 302 | - Feedback notifications are not disabled in Windows pre-release software. 303 | 304 | - Windows Update policies are not applied in Windows pre-release software. 305 | 306 | - Windows Update policies are only applied to Windows editions that support Group policies. These are Education, Enterprise, Enterprise LTSC and Professional editions. Windows editions that are derivates of Windows Core edition (for instance, Windows 11 / 10 Home) do not support Group policies, and as a result Windows Update policies cannot be applied to them. 307 | 308 | --- 309 | 310 | ## Feedback 311 | 312 | If you have observed an issue with docs or if there are accessibility issues, please consider [filing an issue](https://github.com/pratyakshm/WinRice/issues/new?assignees=pratyakshm&labels=Issue-Docs&template=doc_issue.yaml&title=Docs+issue%3A+). 313 | -------------------------------------------------------------------------------- /doc/README.md: -------------------------------------------------------------------------------- 1 | # Notes 2 | 3 | This folder contains documentation for users. 4 | 5 | If you are going to start using WinRice, [`main-brief.md`](https://github.com/pratyakshm/WinRice/blob/main/doc/Main-brief.md) is the document you need to read. 6 | 7 | For additional info and technical details, check out the [Wiki](https://github.com/pratyakshm/WinRice/wiki). 8 | 9 | ## Found an Issue With Docs? 10 | 11 | Report them. Report any issues you face while reading the documentation. Be it spelling mistakes, grammatical errors, or just unclear language. 12 | [Submit an issue](https://github.com/pratyakshm/WinRice/issues/new?assignees=pratyakshm&labels=Issue-Docs&template=doc_issue.yaml&title=Docs+issue%3A+), make it as detailed as possible. 13 | 14 | ## Refrain From Using WinRice if You Have NOT Read the Documentation 15 | 16 | WinRice might cause unwanted changes to your device if you have not read the docs. 17 | 18 | -------------------------------------------------------------------------------- /doc/Reverting-changes.md: -------------------------------------------------------------------------------- 1 | # Reverting Changes 2 | 3 | ## System Restore Point 4 | 5 | WinRice provides the option for creating a System restore point before modifying the system. Restoring to the restore point will revert all settings changes performed by WinRice. However, if you configured WinRice to not create a System restore point, you may continue reading below to learn how to configure WinRice to revert its changes. 6 | 7 | --- 8 | 9 | ## Revert Changes Using WinRice Itself 10 | 11 | WinRice has a revert function for almost every function it has. For example, since WinRice has a function to disable Advertising ID, it also has a function to enable Advertising ID. Read below to learn how to make these functions work for you to revert your device to default settings. 12 | 13 | 1. [Tap here](https://github.com/pratyakshm/WinRice/archive/refs/heads/main.zip) to download the latest WinRice code from main branch. 14 | 15 | 2. Extract the ZIP file and locate `WinRice.ps1`. 16 | 17 | 3. Open this file in your desired text editor of choice. 18 | 19 | 4. Edit the function calls section by commenting functions that you do not want to run and vice-versa. 20 | 21 | For example, if you don't want the DisableAdvertisingID function to run, comment it by placing a # (pound) before the function name. 22 | 23 | On the contrary, say if you want the EnableAdvertisingID function to run, uncomment it by removing the pound before its name. 24 | 25 | 5. Save the file. 26 | 27 | 6. Open PowerShell as administrator. 28 | 29 | 7. In PowerShell, navigate to WinRice's folder (typically `~\Downloads\WinRice-main`). 30 | 31 | 8. Use command Set-ExecutionPolicy Unrestricted -Force -Scope Process to force set your ExecutionPolicy for current PSSession to Unrestricted. 32 | 33 | 9. Use ./WinRice.ps1 to execute the script. 34 | 35 | ## Re-Install Apps and Features 36 | 37 | If WinRice removed an app that you want to use, you may use the below links to re-install those app(s): 38 | 39 |
Tap me to expand list 40 | 41 | - [Clipchamp](https://www.microsoft.com/store/productId/9P1J8S7CCWWT) 42 | 43 | - [Cortana](https://www.microsoft.com/store/productId/9NFFX4SZZ23L) 44 | 45 | - [Get Help](https://www.microsoft.com/store/productId/9PKDZBMV1H3T) 46 | 47 | - [Weather](https://www.microsoft.com/store/productId/9WZDNCRFJ3Q2) 48 | 49 | - [Maps](https://www.microsoft.com/store/productId/9WZDNCRDTBVB) 50 | 51 | - [Microsoft Solitaire Collection](https://www.microsoft.com/store/productId/9WZDNCRFHWD2) 52 | 53 | - [Mixed Reality Portal](https://www.microsoft.com/store/productId/9NG1H8B3ZC7M) 54 | 55 | - [Microsoft Whiteboard](https://www.microsoft.com/store/productId/9MSPC6MP8FM4) 56 | 57 | - [Mail & Calendar](https://www.microsoft.com/store/productId/9WZDNCRFHVQM) 58 | 59 | - [News](https://www.microsoft.com/store/productId/9WZDNCRFHVFW) 60 | 61 | - [Office](https://www.microsoft.com/store/productId/9WZDNCRD29V9) 62 | 63 | - [OneNote for Windows 10](https://www.microsoft.com/store/productId/9WZDNCRFHVJL) 64 | 65 | - [Paint 3D](https://www.microsoft.com/store/productId/9NBLGGH5FV99) 66 | 67 | - [Power Automate](https://www.microsoft.com/store/productId/9NFTCH6J7FHV) 68 | 69 | - [Tips](https://www.microsoft.com/store/productId/9WZDNCRDTBJJ) 70 | 71 | - [Widgets](https://www.microsoft.com/store/productId/9MSSGKG348SP) 72 | 73 |
74 | 75 | ### Notes 76 | 77 | - WinRice cannot re-pin apps that it unpinned from the Taskbar and Start menu. 78 | 79 | - WinRice cannot uninstall apps that it installed using `winget import` feature. 80 | 81 | - WinRice may uninstall apps that it installed using the Winstall feature only if you still have the original Winstall text file which contained the list of apps. 82 | 83 | --- 84 | 85 | ## Feedback 86 | 87 | If you have observed an issue with docs or if there are accessibility issues, please consider [filing an issue](https://github.com/pratyakshm/WinRice/issues/new?assignees=pratyakshm&labels=Issue-Docs&template=doc_issue.yaml&title=Docs+issue%3A+). 88 | -------------------------------------------------------------------------------- /doc/Settings.md: -------------------------------------------------------------------------------- 1 | # Express Settings 2 | 3 | WinRice presents user with default settings that can be reconfigured by the user. These are called "Express Settings". 4 | 5 | There are a few configurable settings in WinRice that have a broader sense of impact on the device usage. 6 | 7 | # Uninstallation 8 | 9 | ## App Uninstallation 10 | 11 | A set of non-essential apps [listed in this document](https://github.com/pratyakshm/WinRice/blob/main/doc/App-uninstallation.md) are uninstalled from the device. 12 | 13 | ## Feature Uninstallation 14 | 15 | A set of non-essential features [listed in this part of this document](https://github.com/pratyakshm/WinRice/blob/main/doc/Main-brief.md#features-uninstalled-optional) are disabled and/or uninstalled from the device. 16 | 17 | # Installation 18 | 19 | ## App Installation 20 | 21 | No apps except HEVC Video Extensions are installed. Apps can only be installed if the user opts to use Custom Settings instead of Express Settings. 22 | 23 | ## Feature Installation 24 | 25 | No features are installed. 26 | 27 | # Windows Update 28 | 29 | Automatic Windows update is disabled. 30 | 31 | Windows quality updates are delayed by 4 days. 32 | 33 | Windows feature updates are delayed by up to 20 days. 34 | 35 | --- 36 | 37 |   38 | 39 | # Custom Settings 40 | 41 | Users can customize their WinRice experience using these Custom Settings if they do not like Express Settings. 42 | 43 | ## App Installation 44 | 45 | WinRice asks if you want to install apps. If you choose to do so, you will be presented with two methods of app installation, which are [Winstall](https://github.com/pratyakshm/WinRice/blob/main/doc/winget/winstall.md) and [WinGet import](https://github.com/pratyakshm/WinRice/blob/main/doc/winget/import.md). 46 | 47 | ## App Uninstallation 48 | 49 | WinRice asks if you want to uninstall some built-in apps that are generally left unused. To learn more, see [App-uninstallation.md](https://github.com/pratyakshm/WinRice/blob/main/doc/App-uninstallation.md). 50 | 51 | ### Microsoft OneDrive - Uninstallation 52 | 53 | WinRice asks if you want to uninstall OneDrive. 54 | 55 | ## Feature Installation 56 | 57 | ### .NET 3.5 58 | 59 | .NET 3.5 is a legacy runtime which is used to support running legacy applications and programs. While this may prove useful in corporate environments, with some exceptions, this feature is not too important in consumer devices. 60 | 61 | By default, this feature is not installed, hence WinRice asks if you want to install it. 62 | 63 | ### Windows Subsystem for Linux 64 | 65 | The Windows Subsystem for Linux lets developers run a GNU/Linux environment -- including most command-line tools, utilities, and applications -- directly on Windows, unmodified, without the overhead of a traditional virtual machine or dualboot setup. Read more at [What is the Windows Subsystem for Linux? - docs.microsoft.com](https://docs.microsoft.com/en-us/windows/wsl/about). 66 | 67 | By default, this feature is not installed, hence WinRice asks if you want to install it. 68 | 69 | ### Windows Sandbox 70 | 71 | Windows Sandbox provides a lightweight desktop environment to safely run applications in isolation. Software installed inside the Windows Sandbox environment remains "sandboxed" and runs separately from the host machine. Read more at [Windows Sandbox - docs.microsoft.com](https://docs.microsoft.com/en-us/windows/security/threat-protection/windows-sandbox/windows-sandbox-overview). 72 | 73 | By default, this feature is not installed, hence WinRice asks if you want to install it. 74 | 75 | ## Feature Uninstallation 76 | 77 | Windows, by default, ships with optional features, some of which are no longer broadbly used in most consumer devices. Here's a list of the features: [Link](https://github.com/pratyakshm/WinRice/blob/main/doc/Main-brief.md#features-uninstalled-optional). If none of these features are useful to you, I suggest you to opt into removing them from your device. 78 | 79 | WinRice asks if you want to uninstall these features. 80 | 81 | ### Widgets - Windows 11 only 82 | 83 | Widgets at a glance is a new experience which ships with Windows 11. Learn more about them: [Stay up to date with widgets - support.microsoft.com](https://support.microsoft.com/en-us/windows/stay-up-to-date-with-widgets-7ba79aaa-dac6-4687-b460-ad16a06be6e4). 84 | 85 | Widgets is an optional experience and it can be removed. Hence, WinRice asks if you want to remove Widgets. 86 | 87 | ## Windows Update 88 | 89 | Windows Update, at least in the media, is reputed to cause more problems than offer solutions. Since 2019, however, Microsoft has begun to leverage Microsoft Cloud to use and train ML models that offer intelligent Windows Update rollouts - and it is working. Windows Update experience has globally improved for millions of devices, and there are far less adverse post update scenarios that users face at present day compared to circa 2017. 90 | 91 | While Microsoft's ML performs quite a good job in itself, WinRice still applies policies to Windows Update, if the user asks it to do so. 92 | 93 | ### List of Windows Update policies: 94 | 95 | - Disabling of automatic updates 96 | - Delaying of quality updates by 4 days and feature upgrades by 20 days 97 | - Disabling updating of Microsoft products via Windows Update 98 | - Disabling Delivery Optimization (i.e. WU will download updates only from MSFT CDN) 99 | 100 | ## System 101 | 102 | ### UTC Time 103 | 104 | If your device has Windows and Linux dual booted, its recommended to make Windows OS use UTC time when following BIOS time in order to avoid time differences with Linux. 105 | 106 | However, some reports have shown that this modification might (unintentionally) make the device not display the correct time. 107 | 108 | WinRice asks if you want to make this change. 109 | 110 | ### System Restore 111 | 112 | System Restore is a useful utility to restore your device to a previous timestamp. 113 | 114 | Since WinRice performs a good number of registry modifications to a vast amount of devices from notebooks to PCs, across different OS editions, OS versions and hardware, it might sometimes cause something unexpected to occur with your device. 115 | 116 | WinRice asks if you want to create a System restore point. 117 | 118 | ### Device-wide policies 119 | 120 | Some changes need to be applied device-wide for them to take effect. These changes apply to all current and future user accounts that will be created on your device. It is strongly recommended to agree to apply device-wide policies as well, since these policies make up much of the security hardening that WinRice performs to your device. 121 | 122 | WinRice asks if you want to apply these device-wide changes. 123 | 124 | --- 125 | 126 | #### ⚠️ Notes regarding Windows Update policies: 127 | 128 | - Windows Update policies are not applied in Windows pre-release software. 129 | 130 | - Windows Update policies are only applied to Windows editions that support Group policies. These are Education, Enterprise, Enterprise LTSC and Professional editions. Windows editions that are derivates of Windows Core edition (for instance, Windows 11/10 Home) do not support Group policies, hence Windows Update policies cannot be applied to them. 131 | 132 | --- 133 | 134 | ## Feedback 135 | 136 | If you have observed an issue with docs or if there are accessibility issues, please consider [filing an issue](https://github.com/pratyakshm/WinRice/issues/new?assignees=pratyakshm&labels=Issue-Docs&template=doc_issue.yaml&title=Docs+issue%3A+). 137 | -------------------------------------------------------------------------------- /doc/Supported-winver.md: -------------------------------------------------------------------------------- 1 | # Supported Windows OS Versions 2 | 3 | WinRice supports the latest in-service versions of Windows. However, bug reports are only accepted for the two most recent in-service versions of Windows 11 and the most recent version of Windows 10. 4 | 5 | ## Check compatibility 6 | 7 | 1. Open Start menu, type "About your PC" and open the first search result. 8 | 9 | 2. Take a note of the **Version** under Windows specifications. 10 | 11 | 3. Check if the Version you have is mentioned in the **Servicing channels** table of the release information document for either [Windows 11](https://docs.microsoft.com/en-us/windows/release-health/windows11-release-information) or [Windows 10](https://docs.microsoft.com/en-us/windows/release-health/release-information), depending on which one you're using. 12 | 13 | ## Notes 14 | 15 | - When a Windows version stops receiving updates for consumer editions, WinRice also stops supporting it. 16 | 17 | - If you do not see your Version listed under the Servicing channels category for your respective OS, it means that it has likely reached end of servicing and [requires an update](https://support.microsoft.com/en-us/windows/update-windows-3c5ae7fc-9fb6-9af1-1984-b5e0412c556a). 18 | 19 | - If you wish to re-image your device (which is strongly recommended if you're on an older version or if you want the full WinRice experience), please [refer to this document](https://github.com/pratyakshm/WinRice/wiki/Fresh-installation-of-Windows). 20 | 21 | --- 22 | 23 | ## Feedback 24 | 25 | If you have observed an issue with docs or if there are accessibility issues, please consider [filing an issue](https://github.com/pratyakshm/WinRice/issues/new?assignees=pratyakshm&labels=Issue-Docs&template=doc_issue.yaml&title=Docs+issue%3A+). 26 | -------------------------------------------------------------------------------- /doc/winget/import.md: -------------------------------------------------------------------------------- 1 | # WinGet Import Command 2 | 3 | Together with [`winget export`](https://docs.microsoft.com/en-us/windows/package-manager/winget/export), `winget import` can batch install apps from an exported JSON file. 4 | 5 | Dependency: [`winget`](https://github.com/pratyakshm/WinRice/blob/main/doc/winget/winget.md) 6 | 7 | ## Exporting App List to JSON Using `Winget Export` Command 8 | 9 | To use `winget import`, you must use the `winget export` command first to export a JSON file consisting of apps currently installed on your device. 10 | 11 | Use the following command to export list of apps to a JSON with file name `apps.json` in `D:`: 12 | `winget export -o D:\apps.json` 13 | 14 | The partition letter, file location and file name can be changed according to user preference. 15 | 16 | ## Using `winget import` in WinRice 17 | 18 | If configured during pre-execution environment, WinRice will ask user to select the exported JSON file using File Explorer picker UI. 19 | 20 | If a **valid** JSON file is selected, WinRice will use `winget import` to batch install the apps. 21 | If an **invalid** JSON file is selected, `winget` will throw an error and WinRice will skip to the next job. 22 | If **no** JSON file is selected, WinRice will skip to the next job. 23 | 24 | ## Related Docs 25 | 26 | - [winget docs](https://docs.microsoft.com/en-us/windows/package-manager/winget/) 27 | - [winget export](https://docs.microsoft.com/en-us/windows/package-manager/winget/export) 28 | - [winget import](https://docs.microsoft.com/en-us/windows/package-manager/winget/import) 29 | 30 | --- 31 | 32 | ## Feedback 33 | 34 | If you have observed an issue with docs or if there are accessibility issues, please consider [filing an issue](https://github.com/pratyakshm/WinRice/issues/new?assignees=pratyakshm&labels=Issue-Docs&template=doc_issue.yaml&title=Docs+issue%3A+). 35 | -------------------------------------------------------------------------------- /doc/winget/winget.md: -------------------------------------------------------------------------------- 1 | # Windows Package Manager CLI Client 2 | 3 | ## What is Windows Package Manager (a.k.a WinGet)? 4 | 5 | Windows Package Manager, or simply `winget`, is the official package manager client for Windows. Package managers allow you to deploy and manage apps using the command line. 6 | 7 | ## WinRice x WinGet 8 | 9 | A lot of features in WinRice are powered by WinGet. 10 | 11 | | Feature | Documentation | 12 | | ------------------------- | --------------------------------------------------------------------------------------- | 13 | | Winstall | [`winstall.md`](https://github.com/pratyakshm/WinRice/blob/main/doc/winget/winstall.md) | 14 | | winget import | [`import.md`](https://github.com/pratyakshm/WinRice/blob/main/doc/winget/import.md) | 15 | | Deploy Microsoft OneDrive | [`Features.md`](https://github.com/pratyakshm/WinRice/blob/main/doc/Features.md) | 16 | 17 | # Installing WinGet 18 | 19 | If you have used WinRice, chances are you have WinGet installed. 20 | 21 | Run `winget.exe` in Windows Terminal to check if it's present. 22 | 23 | You can install WinGet by the following methods: 24 | 25 | - Get the latest release from [WinGet's GitHub repository](https://github.com/microsoft/winget-cli/releases/latest). 26 | - Use WinRice's own winget install script [paste in Windows Terminal (Admin)]: `Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://git.io/JWMKj'))` 27 | - Join [WinGet Insider Program](http://aka.ms/winget-InsiderProgram). 28 | - Join [Windows Insider Program](https://insider.windows.com/). 29 | 30 | Once installed through any of the above methods, verify it by running `winget.exe` in Windows Terminal. 31 | 32 | # Basic Usage 33 | 34 | ## Searching Apps 35 | 36 | **Command:** `winget search` 37 | | Command with options | Use | 38 | |-------|--------| 39 | | `winget search app` | Searches for app | 40 | | `winget search "an app"` | Searches for "an app" | 41 | | `winget search publisher.app` | Searches for publisher.app | 42 | 43 | ## Installing Apps 44 | 45 | **Command:** `winget install` 46 | | Command with options | Use | 47 | |-------|--------| 48 | | `winget install app` | Installs the given app | 49 | | `winget install "an app"` | Installs "an app" | 50 | | `winget install publisher.app` | Installs publisher.app | 51 | 52 | ## Upgrading Apps 53 | 54 | **Command:** `winget upgrade` 55 | | Command with options | Use | 56 | |-------|--------| 57 | | `winget upgrade` | Checks for app updates | 58 | | `winget upgrade -all` | Updates all apps | 59 | 60 | ## Uninstalling Apps 61 | 62 | **Command:** `winget uninstall` 63 | | Command with options | Use | 64 | |-------|--------| 65 | | `winget uninstall app` | Uninstalls the given app | 66 | | `winget uninstall "an app"` | Uninstalls "an app" | 67 | | `winget uninstall publisher.app` | Uninstalls publisher.app | 68 | 69 | # Advanced Usage 70 | 71 | ## More Commands 72 | 73 | Use `winget` in Windows Terminal to list all commands and their usage. 74 | 75 | ## Related Links 76 | 77 | [Source Repo](https://github.com/microsoft/winget-cli/) 78 | [Packages Repo](https://github.com/microsoft/winget-pkgs/) 79 | [Documentation](https://docs.microsoft.com/en-us/windows/package-manager/winget/) 80 | 81 | --- 82 | 83 | ## Feedback 84 | 85 | If you have observed an issue with docs or if there are accessibility issues, please consider [filing an issue](https://github.com/pratyakshm/WinRice/issues/new?assignees=pratyakshm&labels=Issue-Docs&template=doc_issue.yaml&title=Docs+issue%3A+). 86 | -------------------------------------------------------------------------------- /doc/winget/winstall.md: -------------------------------------------------------------------------------- 1 | # Winstall 2 | 3 | Winstall is a powerful feature that enables you to effortlessly batch install applications. It simplifies the process of setting up your system by automating the installation of multiple apps in one go. 4 | 5 | **Dependency**: [`winget`](https://github.com/pratyakshm/WinRice/blob/main/doc/winget/winget.md) must installed on your system. 6 | 7 | ## Creating your Winstall 8 | 9 | During the setup process, WinRice scans the current directory for the presence of the `Winstall.txt` file. If the file is found, WinRice will not nudge you. However, if the file is not found, WinRice will create one for you and open it in Notepad for you to populate. 10 | 11 | Adhere to the following format when populating the `Winstall.txt` file: 12 | 13 | ``` 14 | app 1 15 | app 2 16 | ``` 17 | 18 | ## Examples 19 | 20 | Here's an example of the syntax used in the `Winstall.txt` file to install popular applications: 21 | 22 | ``` 23 | Firefox 24 | Visual Studio Code 25 | Windows Terminal 26 | Obsidian 27 | ``` 28 | 29 | By simply specifying the names of the desired applications in the `Winstall.txt` file, you can effortlessly install them using Winstall. 30 | 31 | ⚠️ **Note:** Kindly ensure that each app name is accurately listed on a separate line. Failure to comply will result in unexpected behavior. 32 | 33 | ## Related Documentation 34 | 35 | Explore the following documentation to further enhance your understanding of Winstall: 36 | 37 | - [WinGet Docs](https://docs.microsoft.com/en-us/windows/package-manager/winget/) 38 | - [WinGet Install](https://docs.microsoft.com/en-us/windows/package-manager/winget/install) 39 | 40 | --- 41 | 42 | ## Feedback 43 | 44 | Your feedback is highly valued! If you encounter any issues with the documentation or come across accessibility concerns, please don't hesitate to [file an issue](https://github.com/pratyakshm/WinRice/issues/new?assignees=pratyakshm&labels=Issue-Docs&template=doc_issue.yaml&title=Docs+issue%3A+). We appreciate your contribution in making our documentation better. 45 | -------------------------------------------------------------------------------- /scripts/DisableVBS.ps1: -------------------------------------------------------------------------------- 1 | # This file is a part of the WinRice software 2 | # Copyright (c) 2020-2024 Pratyaksh Mehrotra 3 | # All rights reserved. 4 | 5 | Write-Host "Disabling Virtualization-based security..." 6 | New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\DeviceGuard" -Name "HyperVVirtualizationBasedSecurityOptOut" -Type DWord -Value 1 | Out-Null # Undocumented reg to opt out from Hyper-V based VBS 7 | New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\DeviceGuard" -Name "EnableVirtualizationBasedSecurity" -Type DWord -Value 0 | Out-Null # Disables VBS 8 | New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\DeviceGuard\Scenarios\HypervisorEnforcedCodeIntegrity" -Name "Enabled" -Type DWord -Value 0 | Out-Null # Core isolation switch 9 | Write-Host "Disabled Virtualization-based security." -------------------------------------------------------------------------------- /scripts/EnableVBS.ps1: -------------------------------------------------------------------------------- 1 | # This file is a part of the WinRice software 2 | # Copyright (c) 2020-2024 Pratyaksh Mehrotra 3 | # All rights reserved. 4 | 5 | Write-Host "Enabling Virtualization-based security..." 6 | Remove-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\DeviceGuard" -Name "HyperVVirtualizationBasedSecurityOptOut" 7 | Remove-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\DeviceGuard" -Name "EnableVirtualizationBasedSecurity" 8 | Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\DeviceGuard\Scenarios\HypervisorEnforcedCodeIntegrity" -Name "Enabled" -Type DWord -Value 1 9 | Write-Host "Enabled Virtualization-based security." -------------------------------------------------------------------------------- /scripts/EnableWSL.ps1: -------------------------------------------------------------------------------- 1 | # This file is a part of the WinRice software 2 | # Copyright (c) 2020-2024 Pratyaksh Mehrotra 3 | # All rights reserved. 4 | 5 | if ($CurrentBuild -lt 22000) { 6 | Write-Host "Enabling Windows Subsystem for Linux..." 7 | Enable-WindowsOptionalFeature -FeatureName "Microsoft-Windows-Subsystem-Linux" -Online -All -NoRestart -WarningAction Ignore | Out-Null 8 | Enable-WindowsOptionalFeature -FeatureName "VirtualMachinePlatform" -Online -All -NoRestart -WarningAction Ignore | Out-Null 9 | if (Get-WindowsEdition -Online | Where-Object -FilterScript {$_.Edition -like "Enterprise*" -or $_.Edition -eq "Education" -or $_.Edition -eq "Professional"}) { 10 | Enable-WindowsOptionalFeature -FeatureName "Microsoft-Hyper-V" -Online -All -NoRestart -WarningAction Ignore | Out-Null 11 | } 12 | else { 13 | $ProductName = Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion" -Name ProductName 14 | Write-Host "Could not enable Hyper-V since $ProductName does not support it." 15 | } 16 | Write-Host "Enabled Windows Subsystem for Linux." 17 | } 18 | elseif ($CurrentBuild -ge 22000) { 19 | Write-Host "Enabling Windows Subsystem for Linux version 2 along with GUI App support..." 20 | wsl --install | Out-Null 21 | Write-Host "Enabled Windows Subsystem for Linux." 22 | } -------------------------------------------------------------------------------- /scripts/README.md: -------------------------------------------------------------------------------- 1 | #Scripts 2 | 3 | Scripts for popular functions so that you can run them without having to go through the entire WinRice experience. 4 | 5 | To run any script, copy and paste the command into Windows Terminal (Admin). 6 | 7 | ## Winstall 8 | 9 | Installs apps you pre-list in a text file. [Learn more](https://github.com/pratyakshm/WinRice/blob/main/doc/winget/winstall.md). 10 | 11 | 12 | ```powershell 13 | Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/pratyakshm/WinRice/main/scripts/Winstall.ps1')) 14 | ``` 15 | 16 | 17 | ## Winget Import 18 | 19 | Imports apps from a pre-populated JSON file generated using `winget export` in your older device or previous installation of Windows. [Learn more](https://github.com/pratyakshm/WinRice/blob/main/doc/winget/import.md). 20 | 21 | ```powershell 22 | Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/pratyakshm/WinRice/main/scripts/WingetImport.ps1')) 23 | ``` 24 | 25 | 26 | ## Flow Launcher 27 | 28 | Installs [Flow Launcher](https://flowlauncher.com), configures core plugins and installs onsetGlaze acrylic theme. 29 | 30 | ```powershell 31 | Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/pratyakshm/WinRice/main/scripts/SetupFlowLauncher.ps1')) 32 | ``` 33 | 34 | 35 | ## Windows Subsystem for Linux 36 | 37 | ### Enable 38 | 39 | ```powershell 40 | Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/pratyakshm/WinRice/main/scripts/EnableWSL.ps1')) 41 | ``` 42 | 43 | 44 | ## Virtualization-based security 45 | 46 | ### Enable 47 | 48 | ```powershell 49 | Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/pratyakshm/WinRice/main/scripts/EnableVBS.ps1')) 50 | ``` 51 | 52 | ### Disable 53 | 54 | ```powershell 55 | Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/pratyakshm/WinRice/main/scripts/DisableVBS.ps1')) 56 | ``` 57 | 58 | 59 | ## Windows Update 60 | 61 | ### Setup Policies ([see policies](https://github.com/pratyakshm/WinRice/blob/main/doc/Main-brief.md#%EF%B8%8F-windows-update)) 62 | 63 | ```powershell 64 | Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/pratyakshm/WinRice/main/scripts/SetupWU.ps1')) 65 | 66 | ``` 67 | 68 | ### Restore Default Policies 69 | 70 | ```powershell 71 | Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/pratyakshm/WinRice/main/scripts/ResetWU.ps1')) 72 | ``` 73 | 74 | 75 | --- 76 | 77 | 78 | ## Feedback 79 | 80 | If you have observed an issue with docs or if there are accessibility issues, please consider [filing an issue](https://github.com/pratyakshm/WinRice/issues/new?assignees=pratyakshm&labels=Issue-Docs&template=doc_issue.yaml&title=Docs+issue%3A+). 81 | -------------------------------------------------------------------------------- /scripts/ResetWU.ps1: -------------------------------------------------------------------------------- 1 | # This file is a part of the WinRice software 2 | # Copyright (c) 2020-2024 Pratyaksh Mehrotra 3 | # All rights reserved. 4 | 5 | Remove-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" -Recurse 6 | Write-Host "Windows Update settings have been reset." -------------------------------------------------------------------------------- /scripts/SetupFlowLauncher.ps1: -------------------------------------------------------------------------------- 1 | # This file is a part of the WinRice software 2 | # Copyright (c) 2020-2024 Pratyaksh Mehrotra 3 | # All rights reserved. 4 | 5 | Write-Host "Installing Flow Launcher..." 6 | winget install Flow-Launcher.Flow-Launcher | Out-Null 7 | 8 | # Check if Flow Launcher is successfully installed. 9 | $packageId = "Flow-Launcher.Flow-Launcher" 10 | $installedPackages = winget list 11 | if ($installedPackages -match $packageId) { 12 | Write-Host "Flow Launcher is installed." 13 | } else { 14 | Write-Host "Failed to install Flow Launcher." 15 | return 16 | } 17 | 18 | Write-Host "Customizing Flow Launcher..." 19 | 20 | # Stop Flow Launcher running processes and remove Settings backup to ensure no unintended overwrite 21 | Stop-Process -Name "flow.launcher" -Force 22 | 23 | # Declare settings files locations 24 | $settingsFolderPath = "$env:APPDATA\FlowLauncher\Settings" 25 | $settingsPath = Join-Path -Path $settingsFolderPath -ChildPath "Settings.json" 26 | $backupPath = Join-Path -Path $settingsFolderPath -ChildPath "Settings.json.bak" 27 | 28 | # Delete the backup file to avoid unintended overwrite 29 | Remove-Item -Path $backupPath -Force -ErrorAction SilentlyContinue 30 | 31 | # Download the onsetGlaze theme for Flow 32 | $url = "https://raw.githubusercontent.com/abhidahal/onsetGlaze.flow/main/OnsetGlaze.xaml" 33 | $outputPath = "$env:APPDATA\FlowLauncher\Themes\OnsetGlaze.xaml" 34 | Invoke-WebRequest -Uri $url -OutFile $outputPath 35 | 36 | # Update to OnsetGlaze Theme 37 | $newThemeValue = "OnsetGlaze" 38 | $jsonContent = Get-Content -Path $settingsPath | ConvertFrom-Json 39 | $jsonContent.Theme = $newThemeValue 40 | $jsonContent | ConvertTo-Json -Depth 100 | Set-Content -Path $settingsPath 41 | 42 | # Disable unnecessary plugins 43 | $pluginsToDisable = @( 44 | "CEA0FDFC6D3B4085823D60DC76F28855", 45 | "572be03c74c642baae319fc283e561a8", 46 | "6A122269676E40EB86EB543B945932B9", 47 | "9f8f9b14-2518-4907-b211-35ab6290dee7", 48 | "D409510CD0D2481F853690A07E6DC426", 49 | "0308FD86DE0A4DEE8D62B9B535370992", 50 | "565B73353DBF4806919830B9202EE3BF", 51 | "5043CETYU6A748679OPA02D27D99677A" 52 | ) 53 | function DisablePlugins { 54 | param( 55 | [Parameter(Mandatory=$true)] 56 | [System.Management.Automation.PSObject]$Object 57 | ) 58 | 59 | $Object.PSObject.Properties | ForEach-Object { 60 | if ($_.Value -is [System.Management.Automation.PSObject]) { 61 | DisablePlugins -Object $_.Value 62 | } 63 | elseif ($_.Name -eq "ID" -and $pluginsToDisable -contains $_.Value) { 64 | $Object.Disabled = $true 65 | } 66 | } 67 | } 68 | 69 | $jsonContent = Get-Content -Path $settingsPath | ConvertFrom-Json 70 | DisablePlugins -Object $jsonContent.PluginSettings.Plugins 71 | $jsonContent | ConvertTo-Json -Depth 100 | Set-Content -Path $settingsPath 72 | Write-Host "Customization performed: " 73 | Write-Host " – Set Theme to OnsetGlaze." 74 | Write-Host " – Disabled the following plugins:" 75 | Write-Host " – Browser Bookmarks" 76 | Write-Host " – Calculator" 77 | Write-Host " – Explorer" 78 | Write-Host " – Plugin Indicator" 79 | Write-Host " – Plugins Manager" 80 | Write-Host " – Shell" 81 | Write-Host " – URL" 82 | Write-Host " – Web Searches" 83 | Write-Host " – Windows Settings" 84 | Write-Host "You may change these preferences later in Flow Launcher Settings." -------------------------------------------------------------------------------- /scripts/SetupWU.ps1: -------------------------------------------------------------------------------- 1 | # This file is a part of the WinRice software 2 | # Copyright (c) 2020-2024 Pratyaksh Mehrotra 3 | # All rights reserved. 4 | 5 | $CurrentVersionPath = 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion' 6 | $CurrentBuild = Get-ItemPropertyValue $CurrentVersionPath -Name CurrentBuild 7 | $ProductName = Get-ItemPropertyValue $CurrentVersionPath -Name ProductName 8 | 9 | if ($CurrentBuild -ge 22000) { 10 | print "WinRice currently cannot set up Windows Update policies on Windows 11." 11 | exit 12 | } 13 | 14 | # Get Windows Edition, if its Professional, Education, or Enterprise. 15 | if (!(Get-WindowsEdition -Online | Where-Object -FilterScript {$_.Edition -like "Enterprise*" -or $_.Edition -eq "Education" -or $_.Edition -eq "Professional"})) { 16 | print "$ProductName does not support setting up Windows Update policies." 17 | return 18 | } 19 | print "Setting up Windows Update policies..." 20 | 21 | # Declare registry keys locations. 22 | $Update1 = "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" 23 | $Update2 = "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" 24 | if (!(Test-Path $Update1)) { 25 | New-Item -Path $Update1 | Out-Null 26 | New-Item -Path $Update2 | Out-Null 27 | } 28 | 29 | # Write registry values. 30 | Set-ItemProperty -Path $Update1 -Name DeferQualityUpdates -Type DWord -Value 1 31 | Set-ItemProperty -Path $Update1 -Name DeferQualityUpdatesPeriodInDays -Type DWord -Value 4 32 | Set-ItemProperty -Path $Update1 -Name DeferFeatureUpdates -Type DWord -Value 1 33 | Set-ItemProperty -Path $Update1 -Name DeferFeatureUpdatesPeriodInDays -Type DWord -Value 20 34 | Set-ItemProperty -Path $Update2 -Name NoAutoUpdate -Type DWord -Value 1 35 | Set-ItemProperty -Path $Update2 -Name NoAutoRebootWithLoggedOnUsers -Type Dword -Value 1 36 | 37 | # print user message; policies applied. 38 | $WinUpdatePolicies =@( 39 | "Turned off automatic updates" 40 | "Device will no longer auto restart if users are signed in" 41 | "Turned off re-installation of apps after Windows Updates" 42 | "Delayed quality updates by 4 days" 43 | "Delayed feature updates by 20 days" 44 | ) 45 | ForEach ($WinUpdatePolicy in $WinUpdatePolicies) { 46 | print " - $WinUpdatePolicy" 47 | } 48 | 49 | print "Set up Windows Update policies." -------------------------------------------------------------------------------- /scripts/WingetImport.ps1: -------------------------------------------------------------------------------- 1 | # This file is a part of the WinRice software 2 | # Copyright (c) 2020-2024 Pratyaksh Mehrotra 3 | # All rights reserved. 4 | 5 | if (!(Get-Command winget)) { 6 | Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://git.io/JurY1')) 7 | } 8 | 9 | [System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms") | Out-Null 10 | Write-Host "Select the exported JSON from File Picker UI" 11 | $OpenFileDialog = New-Object System.Windows.Forms.OpenFileDialog 12 | $OpenFileDialog.InitialDirectory = $initialDirectory 13 | $OpenFileDialog.Filter = "JSON (*.json)| *.json" 14 | $OpenFileDialog.ShowDialog() | Out-Null 15 | if ($OpenFileDialog.FileName) { 16 | Write-Host "Initializing JSON file..." 17 | Start-Sleep -Milliseconds 200 18 | winget import $OpenFileDialog.FileName 19 | } 20 | elseif (!($OpenFileDialog.FileName)) { 21 | Write-Host "No JSON selected." 22 | } -------------------------------------------------------------------------------- /scripts/Winstall.ps1: -------------------------------------------------------------------------------- 1 | # This file is a part of the WinRice software 2 | # Copyright (c) 2020-2024 Pratyaksh Mehrotra 3 | # All rights reserved. 4 | 5 | Function print($text) { 6 | Write-Host $text 7 | } 8 | 9 | 10 | if (!(Get-Command winget)) { 11 | Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://git.io/JurY1')) 12 | } 13 | 14 | # Try Winstall.txt 15 | if (Test-Path Winstall.txt) { 16 | print "Starting Winstall..." 17 | # Get each line from the text file and use winget install command on it. 18 | Get-Content 'Winstall.txt' | ForEach-Object { 19 | $App = $_.Split('=') 20 | print " Installing $App..." 21 | winget install "$App" --silent | Out-Null 22 | } 23 | print "Winstall has successfully installed the app(s)." 24 | } 25 | 26 | # Try winstall.txt 27 | elseif (Test-Path winstall.txt) { 28 | print "Starting Winstall..." 29 | # Get each line from the text file and use winget install command on it. 30 | Get-Content 'winstall.txt' | ForEach-Object { 31 | $App = $_.Split('=') 32 | print " Installing $App..." 33 | winget install "$App" --silent | Out-Null 34 | } 35 | print "Winstall has successfully installed the app(s)." 36 | } 37 | else { 38 | [System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms") | Out-Null 39 | print "Select Winstall text file from File Picker UI" 40 | $OpenFileDialog = New-Object System.Windows.Forms.OpenFileDialog 41 | $OpenFileDialog.InitialDirectory = $initialDirectory 42 | $OpenFileDialog.Filter = "Text file (*.txt)| *.txt" 43 | $OpenFileDialog.ShowDialog() | Out-Null 44 | if ($OpenFileDialog.FileName) { 45 | print "Starting Winstall..." 46 | Get-Content $OpenFileDialog.FileName | ForEach-Object { 47 | $App = $_.Split('=') 48 | print " Installing $App..." 49 | winget install "$App" --silent | Out-Null 50 | } 51 | print "Winstall has successfully installed the app(s)." 52 | } 53 | else { 54 | print "No text file was picked." 55 | } 56 | } --------------------------------------------------------------------------------