├── GOS.ico ├── README.md ├── Services list.txt ├── GOS.ps1 └── LICENSE /GOS.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ltx0101/GOS/HEAD/GOS.ico -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |
2 | 3 | # GOS // Gaming Optimization Script 4 | 5 | 6 | 7 | 8 | 9 | GOS is a comprehensive PowerShell script created for Windows users to streamline their gaming setup, enhance network performance, repair the Windows environment, and revert changes to default settings when needed. 10 | 11 | ![image](https://github.com/user-attachments/assets/6dcb4394-bf31-480d-a34a-b3e93cf9ef23) 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | # How to Run: 28 | 29 | ### Open PowerShell and paste the command below: 30 | ```ps1 31 | iwr "https://raw.githubusercontent.com/ltx0101/GOS/refs/heads/main/GOS.ps1" -OutFile "GOS.ps1"; .\GOS.ps1 32 | ``` 33 | 34 | --- 35 | 36 | ### Error "Running Scripts is Disabled on this System" 37 |
38 | Click Here 39 | 40 | ### Run this command in PowerShell: 41 | 42 | ```ps1 43 | Set-ExecutionPolicy -ExecutionPolicy RemoteSigned 44 | ``` 45 |
46 | 47 | --- 48 | 49 | ## Features 50 | 51 | The script provides a range of optimization and maintenance options: 52 | 53 | 1. **Enable Game Mode** 54 | Activates settings to boost gaming performance by reducing background processes and optimizing system resources. 55 | 56 | 57 | 2. **Clean Windows** 58 | Cleans unnecessary temp files, DirectX Cache, old Windows update files, etc. 59 | 60 | 61 | 3. **Optimize Network** 62 | Optimizes network settings by modifying registry keys, disabling unnecessary and potentially performance-impacting features, tweaking TCP/IP configurations, disabling network adapter offload features and flushing the DNS cache. A system restart is required afterwards 63 | 64 | 65 | 4. **Repair Windows** 66 | Runs a series of maintenance commands to repair the system environment, restore health, and clear unnecessary files. A system restart is recommended after this option to finalize repairs. 67 | 68 | 69 | 5. **Restore Default** 70 | Re-enables any services or settings disabled during optimization, restoring the system to its default state. A restart is recommended afterward. 71 | 72 | 73 | 6. **Shortcut** 74 | Creates a Desktop GOS Shortcut. 75 | 76 | 77 | ## Requirements 78 | 79 | - Windows 10/11 operating system with Command Prompt (cmd) support. 80 | - Administrator privileges are required to run certain commands effectively, such as system repairs and network modifications. 81 | 82 | --- 83 |
84 | 85 | [![PayPal Donate](https://img.shields.io/badge/PayPal_Donate-s?style=for-the-badge&logo=paypal&logoColor=black)](https://paypal.me/AggelosMeta) 86 | 87 |
88 | 89 |
90 | 91 | Made with ❤️ and PowerShell 92 | 93 |
94 | -------------------------------------------------------------------------------- /Services list.txt: -------------------------------------------------------------------------------- 1 | "AJRouter", 2 | "StartupType""Disabled", 3 | "OriginalType""Manual" 4 | 5 | 6 | "ALG", 7 | "StartupType""Manual", 8 | "OriginalType""Manual" 9 | 10 | 11 | "AppIDSvc", 12 | "StartupType""Manual", 13 | "OriginalType""Manual" 14 | 15 | 16 | "AppMgmt", 17 | "StartupType""Manual", 18 | "OriginalType""Manual" 19 | 20 | 21 | "AppReadiness", 22 | "StartupType""Manual", 23 | "OriginalType""Manual" 24 | 25 | 26 | "AppVClient", 27 | "StartupType""Disabled", 28 | "OriginalType""Disabled" 29 | 30 | 31 | "AppXSvc", 32 | "StartupType""Manual", 33 | "OriginalType""Manual" 34 | 35 | 36 | "Appinfo", 37 | "StartupType""Manual", 38 | "OriginalType""Manual" 39 | 40 | 41 | "AssignedAccessManagerSvc", 42 | "StartupType""Disabled", 43 | "OriginalType""Manual" 44 | 45 | 46 | "AudioEndpointBuilder", 47 | "StartupType""Automatic", 48 | "OriginalType""Automatic" 49 | 50 | 51 | "AudioSrv", 52 | "StartupType""Automatic", 53 | "OriginalType""Automatic" 54 | 55 | 56 | "Audiosrv", 57 | "StartupType""Automatic", 58 | "OriginalType""Automatic" 59 | 60 | 61 | "AxInstSV", 62 | "StartupType""Manual", 63 | "OriginalType""Manual" 64 | 65 | 66 | "BDESVC", 67 | "StartupType""Manual", 68 | "OriginalType""Manual" 69 | 70 | 71 | "BFE", 72 | "StartupType""Automatic", 73 | "OriginalType""Automatic" 74 | 75 | 76 | "BITS", 77 | "StartupType""AutomaticDelayedStart", 78 | "OriginalType""Automatic" 79 | 80 | 81 | "BTAGService", 82 | "StartupType""Manual", 83 | "OriginalType""Manual" 84 | 85 | 86 | "BcastDVRUserService_*", 87 | "StartupType""Manual", 88 | "OriginalType""Manual" 89 | 90 | 91 | "BluetoothUserService_*", 92 | "StartupType""Manual", 93 | "OriginalType""Manual" 94 | 95 | 96 | "BrokerInfrastructure", 97 | "StartupType""Automatic", 98 | "OriginalType""Automatic" 99 | 100 | 101 | "Browser", 102 | "StartupType""Manual", 103 | "OriginalType""Manual" 104 | 105 | 106 | "BthAvctpSvc", 107 | "StartupType""Automatic", 108 | "OriginalType""Automatic" 109 | 110 | 111 | "BthHFSrv", 112 | "StartupType""Automatic", 113 | "OriginalType""Automatic" 114 | 115 | 116 | "CDPSvc", 117 | "StartupType""Manual", 118 | "OriginalType""Automatic" 119 | 120 | 121 | "CDPUserSvc_*", 122 | "StartupType""Automatic", 123 | "OriginalType""Automatic" 124 | 125 | 126 | "COMSysApp", 127 | "StartupType""Manual", 128 | "OriginalType""Manual" 129 | 130 | 131 | "CaptureService_*", 132 | "StartupType""Manual", 133 | "OriginalType""Manual" 134 | 135 | 136 | "CertPropSvc", 137 | "StartupType""Manual", 138 | "OriginalType""Manual" 139 | 140 | 141 | "ClipSVC", 142 | "StartupType""Manual", 143 | "OriginalType""Manual" 144 | 145 | 146 | "ConsentUxUserSvc_*", 147 | "StartupType""Manual", 148 | "OriginalType""Manual" 149 | 150 | 151 | "CoreMessagingRegistrar", 152 | "StartupType""Automatic", 153 | "OriginalType""Automatic" 154 | 155 | 156 | "CredentialEnrollmentManagerUserSvc_*", 157 | "StartupType""Manual", 158 | "OriginalType""Manual" 159 | 160 | 161 | "CryptSvc", 162 | "StartupType""Automatic", 163 | "OriginalType""Automatic" 164 | 165 | 166 | "CscService", 167 | "StartupType""Manual", 168 | "OriginalType""Manual" 169 | 170 | 171 | "DPS", 172 | "StartupType""Automatic", 173 | "OriginalType""Automatic" 174 | 175 | 176 | "DcomLaunch", 177 | "StartupType""Automatic", 178 | "OriginalType""Automatic" 179 | 180 | 181 | "DcpSvc", 182 | "StartupType""Manual", 183 | "OriginalType""Manual" 184 | 185 | 186 | "DevQueryBroker", 187 | "StartupType""Manual", 188 | "OriginalType""Manual" 189 | 190 | 191 | "DeviceAssociationBrokerSvc_*", 192 | "StartupType""Manual", 193 | "OriginalType""Manual" 194 | 195 | 196 | "DeviceAssociationService", 197 | "StartupType""Manual", 198 | "OriginalType""Manual" 199 | 200 | 201 | "DeviceInstall", 202 | "StartupType""Manual", 203 | "OriginalType""Manual" 204 | 205 | 206 | "DevicePickerUserSvc_*", 207 | "StartupType""Manual", 208 | "OriginalType""Manual" 209 | 210 | 211 | "DevicesFlowUserSvc_*", 212 | "StartupType""Manual", 213 | "OriginalType""Manual" 214 | 215 | 216 | "Dhcp", 217 | "StartupType""Automatic", 218 | "OriginalType""Automatic" 219 | 220 | 221 | "DiagTrack", 222 | "StartupType""Disabled", 223 | "OriginalType""Automatic" 224 | 225 | 226 | "DialogBlockingService", 227 | "StartupType""Disabled", 228 | "OriginalType""Disabled" 229 | 230 | 231 | "DispBrokerDesktopSvc", 232 | "StartupType""Automatic", 233 | "OriginalType""Automatic" 234 | 235 | 236 | "DisplayEnhancementService", 237 | "StartupType""Manual", 238 | "OriginalType""Manual" 239 | 240 | 241 | "DmEnrollmentSvc", 242 | "StartupType""Manual", 243 | "OriginalType""Manual" 244 | 245 | 246 | "Dnscache", 247 | "StartupType""Automatic", 248 | "OriginalType""Automatic" 249 | 250 | 251 | "DoSvc", 252 | "StartupType""AutomaticDelayedStart", 253 | "OriginalType""Automatic" 254 | 255 | 256 | "DsSvc", 257 | "StartupType""Manual", 258 | "OriginalType""Manual" 259 | 260 | 261 | "DsmSvc", 262 | "StartupType""Manual", 263 | "OriginalType""Manual" 264 | 265 | 266 | "DusmSvc", 267 | "StartupType""Automatic", 268 | "OriginalType""Automatic" 269 | 270 | 271 | "EFS", 272 | "StartupType""Manual", 273 | "OriginalType""Manual" 274 | 275 | 276 | "EapHost", 277 | "StartupType""Manual", 278 | "OriginalType""Manual" 279 | 280 | 281 | "EntAppSvc", 282 | "StartupType""Manual", 283 | "OriginalType""Manual" 284 | 285 | 286 | "EventLog", 287 | "StartupType""Automatic", 288 | "OriginalType""Automatic" 289 | 290 | 291 | "EventSystem", 292 | "StartupType""Automatic", 293 | "OriginalType""Automatic" 294 | 295 | 296 | "FDResPub", 297 | "StartupType""Manual", 298 | "OriginalType""Manual" 299 | 300 | 301 | "Fax", 302 | "StartupType""Manual", 303 | "OriginalType""Manual" 304 | 305 | 306 | "FontCache", 307 | "StartupType""Automatic", 308 | "OriginalType""Automatic" 309 | 310 | 311 | "FrameServer", 312 | "StartupType""Manual", 313 | "OriginalType""Manual" 314 | 315 | 316 | "FrameServerMonitor", 317 | "StartupType""Manual", 318 | "OriginalType""Manual" 319 | 320 | 321 | "GraphicsPerfSvc", 322 | "StartupType""Manual", 323 | "OriginalType""Manual" 324 | 325 | 326 | "HomeGroupListener", 327 | "StartupType""Manual", 328 | "OriginalType""Manual" 329 | 330 | 331 | "HomeGroupProvider", 332 | "StartupType""Manual", 333 | "OriginalType""Manual" 334 | 335 | 336 | "HvHost", 337 | "StartupType""Manual", 338 | "OriginalType""Manual" 339 | 340 | 341 | "IEEtwCollectorService", 342 | "StartupType""Manual", 343 | "OriginalType""Manual" 344 | 345 | 346 | "IKEEXT", 347 | "StartupType""Manual", 348 | "OriginalType""Manual" 349 | 350 | 351 | "InstallService", 352 | "StartupType""Manual", 353 | "OriginalType""Manual" 354 | 355 | 356 | "InventorySvc", 357 | "StartupType""Manual", 358 | "OriginalType""Manual" 359 | 360 | 361 | "IpxlatCfgSvc", 362 | "StartupType""Manual", 363 | "OriginalType""Manual" 364 | 365 | 366 | "KeyIso", 367 | "StartupType""Automatic", 368 | "OriginalType""Automatic" 369 | 370 | 371 | "KtmRm", 372 | "StartupType""Manual", 373 | "OriginalType""Manual" 374 | 375 | 376 | "LSM", 377 | "StartupType""Automatic", 378 | "OriginalType""Automatic" 379 | 380 | 381 | "LanmanServer", 382 | "StartupType""Automatic", 383 | "OriginalType""Automatic" 384 | 385 | 386 | "LanmanWorkstation", 387 | "StartupType""Automatic", 388 | "OriginalType""Automatic" 389 | 390 | 391 | "LicenseManager", 392 | "StartupType""Manual", 393 | "OriginalType""Manual" 394 | 395 | 396 | "LxpSvc", 397 | "StartupType""Manual", 398 | "OriginalType""Manual" 399 | 400 | 401 | "MSDTC", 402 | "StartupType""Manual", 403 | "OriginalType""Manual" 404 | 405 | 406 | "MSiSCSI", 407 | "StartupType""Manual", 408 | "OriginalType""Manual" 409 | 410 | 411 | "MapsBroker", 412 | "StartupType""AutomaticDelayedStart", 413 | "OriginalType""Automatic" 414 | 415 | 416 | "McpManagementService", 417 | "StartupType""Manual", 418 | "OriginalType""Manual" 419 | 420 | 421 | "MessagingService_*", 422 | "StartupType""Manual", 423 | "OriginalType""Manual" 424 | 425 | 426 | "MicrosoftEdgeElevationService", 427 | "StartupType""Manual", 428 | "OriginalType""Manual" 429 | 430 | 431 | "MixedRealityOpenXRSvc", 432 | "StartupType""Manual", 433 | "OriginalType""Manual" 434 | 435 | 436 | "MpsSvc", 437 | "StartupType""Automatic", 438 | "OriginalType""Automatic" 439 | 440 | 441 | "MsKeyboardFilter", 442 | "StartupType""Manual", 443 | "OriginalType""Disabled" 444 | 445 | 446 | "NPSMSvc_*", 447 | "StartupType""Manual", 448 | "OriginalType""Manual" 449 | 450 | 451 | "NaturalAuthentication", 452 | "StartupType""Manual", 453 | "OriginalType""Manual" 454 | 455 | 456 | "NcaSvc", 457 | "StartupType""Manual", 458 | "OriginalType""Manual" 459 | 460 | 461 | "NcbService", 462 | "StartupType""Manual", 463 | "OriginalType""Manual" 464 | 465 | 466 | "NcdAutoSetup", 467 | "StartupType""Manual", 468 | "OriginalType""Manual" 469 | 470 | 471 | "NetSetupSvc", 472 | "StartupType""Manual", 473 | "OriginalType""Manual" 474 | 475 | 476 | "NetTcpPortSharing", 477 | "StartupType""Disabled", 478 | "OriginalType""Disabled" 479 | 480 | 481 | "Netlogon", 482 | "StartupType""Automatic", 483 | "OriginalType""Automatic" 484 | 485 | 486 | "Netman", 487 | "StartupType""Manual", 488 | "OriginalType""Manual" 489 | 490 | 491 | "NgcCtnrSvc", 492 | "StartupType""Manual", 493 | "OriginalType""Manual" 494 | 495 | 496 | "NgcSvc", 497 | "StartupType""Manual", 498 | "OriginalType""Manual" 499 | 500 | 501 | "NlaSvc", 502 | "StartupType""Manual", 503 | "OriginalType""Manual" 504 | 505 | 506 | "OneSyncSvc_*", 507 | "StartupType""Automatic", 508 | "OriginalType""Automatic" 509 | 510 | 511 | "P9RdrService_*", 512 | "StartupType""Manual", 513 | "OriginalType""Manual" 514 | 515 | 516 | "PNRPAutoReg", 517 | "StartupType""Manual", 518 | "OriginalType""Manual" 519 | 520 | 521 | "PNRPsvc", 522 | "StartupType""Manual", 523 | "OriginalType""Manual" 524 | 525 | 526 | "PcaSvc", 527 | "StartupType""Manual", 528 | "OriginalType""Automatic" 529 | 530 | 531 | "PeerDistSvc", 532 | "StartupType""Manual", 533 | "OriginalType""Manual" 534 | 535 | 536 | "PenService_*", 537 | "StartupType""Manual", 538 | "OriginalType""Manual" 539 | 540 | 541 | "PerfHost", 542 | "StartupType""Manual", 543 | "OriginalType""Manual" 544 | 545 | 546 | "PhoneSvc", 547 | "StartupType""Manual", 548 | "OriginalType""Manual" 549 | 550 | 551 | "PimIndexMaintenanceSvc_*", 552 | "StartupType""Manual", 553 | "OriginalType""Manual" 554 | 555 | 556 | "PlugPlay", 557 | "StartupType""Manual", 558 | "OriginalType""Manual" 559 | 560 | 561 | "PolicyAgent", 562 | "StartupType""Manual", 563 | "OriginalType""Manual" 564 | 565 | 566 | "Power", 567 | "StartupType""Automatic", 568 | "OriginalType""Automatic" 569 | 570 | 571 | "PrintNotify", 572 | "StartupType""Manual", 573 | "OriginalType""Manual" 574 | 575 | 576 | "PrintWorkflowUserSvc_*", 577 | "StartupType""Manual", 578 | "OriginalType""Manual" 579 | 580 | 581 | "ProfSvc", 582 | "StartupType""Automatic", 583 | "OriginalType""Automatic" 584 | 585 | 586 | "PushToInstall", 587 | "StartupType""Manual", 588 | "OriginalType""Manual" 589 | 590 | 591 | "QWAVE", 592 | "StartupType""Manual", 593 | "OriginalType""Manual" 594 | 595 | 596 | "RasAuto", 597 | "StartupType""Manual", 598 | "OriginalType""Manual" 599 | 600 | 601 | "RasMan", 602 | "StartupType""Manual", 603 | "OriginalType""Manual" 604 | 605 | 606 | "RemoteAccess", 607 | "StartupType""Disabled", 608 | "OriginalType""Disabled" 609 | 610 | 611 | "RemoteRegistry", 612 | "StartupType""Disabled", 613 | "OriginalType""Disabled" 614 | 615 | 616 | "RetailDemo", 617 | "StartupType""Manual", 618 | "OriginalType""Manual" 619 | 620 | 621 | "RmSvc", 622 | "StartupType""Manual", 623 | "OriginalType""Manual" 624 | 625 | 626 | "RpcEptMapper", 627 | "StartupType""Automatic", 628 | "OriginalType""Automatic" 629 | 630 | 631 | "RpcLocator", 632 | "StartupType""Manual", 633 | "OriginalType""Manual" 634 | 635 | 636 | "RpcSs", 637 | "StartupType""Automatic", 638 | "OriginalType""Automatic" 639 | 640 | 641 | "SCPolicySvc", 642 | "StartupType""Manual", 643 | "OriginalType""Manual" 644 | 645 | 646 | "SCardSvr", 647 | "StartupType""Manual", 648 | "OriginalType""Manual" 649 | 650 | 651 | "SDRSVC", 652 | "StartupType""Manual", 653 | "OriginalType""Manual" 654 | 655 | 656 | "SEMgrSvc", 657 | "StartupType""Manual", 658 | "OriginalType""Manual" 659 | 660 | 661 | "SENS", 662 | "StartupType""Automatic", 663 | "OriginalType""Automatic" 664 | 665 | 666 | "SNMPTRAP", 667 | "StartupType""Manual", 668 | "OriginalType""Manual" 669 | 670 | 671 | "SNMPTrap", 672 | "StartupType""Manual", 673 | "OriginalType""Manual" 674 | 675 | 676 | "SSDPSRV", 677 | "StartupType""Manual", 678 | "OriginalType""Manual" 679 | 680 | 681 | "SamSs", 682 | "StartupType""Automatic", 683 | "OriginalType""Automatic" 684 | 685 | 686 | "ScDeviceEnum", 687 | "StartupType""Manual", 688 | "OriginalType""Manual" 689 | 690 | 691 | "Schedule", 692 | "StartupType""Automatic", 693 | "OriginalType""Automatic" 694 | 695 | 696 | "SecurityHealthService", 697 | "StartupType""Manual", 698 | "OriginalType""Manual" 699 | 700 | 701 | "Sense", 702 | "StartupType""Manual", 703 | "OriginalType""Manual" 704 | 705 | 706 | "SensorDataService", 707 | "StartupType""Manual", 708 | "OriginalType""Manual" 709 | 710 | 711 | "SensorService", 712 | "StartupType""Manual", 713 | "OriginalType""Manual" 714 | 715 | 716 | "SensrSvc", 717 | "StartupType""Manual", 718 | "OriginalType""Manual" 719 | 720 | 721 | "SessionEnv", 722 | "StartupType""Manual", 723 | "OriginalType""Manual" 724 | 725 | 726 | "SgrmBroker", 727 | "StartupType""Automatic", 728 | "OriginalType""Automatic" 729 | 730 | 731 | "SharedAccess", 732 | "StartupType""Manual", 733 | "OriginalType""Manual" 734 | 735 | 736 | "SharedRealitySvc", 737 | "StartupType""Manual", 738 | "OriginalType""Manual" 739 | 740 | 741 | "ShellHWDetection", 742 | "StartupType""Automatic", 743 | "OriginalType""Automatic" 744 | 745 | 746 | "SmsRouter", 747 | "StartupType""Manual", 748 | "OriginalType""Manual" 749 | 750 | 751 | "Spooler", 752 | "StartupType""Automatic", 753 | "OriginalType""Automatic" 754 | 755 | 756 | "SstpSvc", 757 | "StartupType""Manual", 758 | "OriginalType""Manual" 759 | 760 | 761 | "StateRepository", 762 | "StartupType""Manual", 763 | "OriginalType""Automatic" 764 | 765 | 766 | "StiSvc", 767 | "StartupType""Manual", 768 | "OriginalType""Manual" 769 | 770 | 771 | "StorSvc", 772 | "StartupType""Manual", 773 | "OriginalType""Automatic" 774 | 775 | 776 | "SysMain", 777 | "StartupType""Automatic", 778 | "OriginalType""Automatic" 779 | 780 | 781 | "SystemEventsBroker", 782 | "StartupType""Automatic", 783 | "OriginalType""Automatic" 784 | 785 | 786 | "TabletInputService", 787 | "StartupType""Manual", 788 | "OriginalType""Manual" 789 | 790 | 791 | "TapiSrv", 792 | "StartupType""Manual", 793 | "OriginalType""Manual" 794 | 795 | 796 | "TermService", 797 | "StartupType""Automatic", 798 | "OriginalType""Automatic" 799 | 800 | 801 | "TextInputManagementService", 802 | "StartupType""Manual", 803 | "OriginalType""Automatic" 804 | 805 | 806 | "Themes", 807 | "StartupType""Automatic", 808 | "OriginalType""Automatic" 809 | 810 | 811 | "TieringEngineService", 812 | "StartupType""Manual", 813 | "OriginalType""Manual" 814 | 815 | 816 | "TimeBroker", 817 | "StartupType""Manual", 818 | "OriginalType""Manual" 819 | 820 | 821 | "TimeBrokerSvc", 822 | "StartupType""Manual", 823 | "OriginalType""Manual" 824 | 825 | 826 | "TokenBroker", 827 | "StartupType""Manual", 828 | "OriginalType""Manual" 829 | 830 | 831 | "TrkWks", 832 | "StartupType""Automatic", 833 | "OriginalType""Automatic" 834 | 835 | 836 | "TroubleshootingSvc", 837 | "StartupType""Manual", 838 | "OriginalType""Manual" 839 | 840 | 841 | "TrustedInstaller", 842 | "StartupType""Manual", 843 | "OriginalType""Manual" 844 | 845 | 846 | "UI0Detect", 847 | "StartupType""Manual", 848 | "OriginalType""Manual" 849 | 850 | 851 | "UdkUserSvc_*", 852 | "StartupType""Manual", 853 | "OriginalType""Manual" 854 | 855 | 856 | "UevAgentService", 857 | "StartupType""Disabled", 858 | "OriginalType""Disabled" 859 | 860 | 861 | "UmRdpService", 862 | "StartupType""Manual", 863 | "OriginalType""Manual" 864 | 865 | 866 | "UnistoreSvc_*", 867 | "StartupType""Manual", 868 | "OriginalType""Manual" 869 | 870 | 871 | "UserDataSvc_*", 872 | "StartupType""Manual", 873 | "OriginalType""Manual" 874 | 875 | 876 | "UserManager", 877 | "StartupType""Automatic", 878 | "OriginalType""Automatic" 879 | 880 | 881 | "UsoSvc", 882 | "StartupType""Manual", 883 | "OriginalType""Automatic" 884 | 885 | 886 | "VGAuthService", 887 | "StartupType""Automatic", 888 | "OriginalType""Automatic" 889 | 890 | 891 | "VMTools", 892 | "StartupType""Automatic", 893 | "OriginalType""Automatic" 894 | 895 | 896 | "VSS", 897 | "StartupType""Manual", 898 | "OriginalType""Manual" 899 | 900 | 901 | "VacSvc", 902 | "StartupType""Manual", 903 | "OriginalType""Manual" 904 | 905 | 906 | "VaultSvc", 907 | "StartupType""Automatic", 908 | "OriginalType""Automatic" 909 | 910 | 911 | "W32Time", 912 | "StartupType""Manual", 913 | "OriginalType""Manual" 914 | 915 | 916 | "WEPHOSTSVC", 917 | "StartupType""Manual", 918 | "OriginalType""Manual" 919 | 920 | 921 | "WFDSConMgrSvc", 922 | "StartupType""Manual", 923 | "OriginalType""Manual" 924 | 925 | 926 | "WMPNetworkSvc", 927 | "StartupType""Manual", 928 | "OriginalType""Manual" 929 | 930 | 931 | "WManSvc", 932 | "StartupType""Manual", 933 | "OriginalType""Manual" 934 | 935 | 936 | "WPDBusEnum", 937 | "StartupType""Manual", 938 | "OriginalType""Manual" 939 | 940 | 941 | "WSService", 942 | "StartupType""Manual", 943 | "OriginalType""Manual" 944 | 945 | 946 | "WSearch", 947 | "StartupType""AutomaticDelayedStart", 948 | "OriginalType""Automatic" 949 | 950 | 951 | "WaaSMedicSvc", 952 | "StartupType""Manual", 953 | "OriginalType""Manual" 954 | 955 | 956 | "WalletService", 957 | "StartupType""Manual", 958 | "OriginalType""Manual" 959 | 960 | 961 | "WarpJITSvc", 962 | "StartupType""Manual", 963 | "OriginalType""Manual" 964 | 965 | 966 | "WbioSrvc", 967 | "StartupType""Manual", 968 | "OriginalType""Manual" 969 | 970 | 971 | "Wcmsvc", 972 | "StartupType""Automatic", 973 | "OriginalType""Automatic" 974 | 975 | 976 | "WcsPlugInService", 977 | "StartupType""Manual", 978 | "OriginalType""Manual" 979 | 980 | 981 | "WdNisSvc", 982 | "StartupType""Manual", 983 | "OriginalType""Manual" 984 | 985 | 986 | "WdiServiceHost", 987 | "StartupType""Manual", 988 | "OriginalType""Manual" 989 | 990 | 991 | "WdiSystemHost", 992 | "StartupType""Manual", 993 | "OriginalType""Manual" 994 | 995 | 996 | "WebClient", 997 | "StartupType""Manual", 998 | "OriginalType""Manual" 999 | 1000 | 1001 | "Wecsvc", 1002 | "StartupType""Manual", 1003 | "OriginalType""Manual" 1004 | 1005 | 1006 | "WerSvc", 1007 | "StartupType""Manual", 1008 | "OriginalType""Manual" 1009 | 1010 | 1011 | "WiaRpc", 1012 | "StartupType""Manual", 1013 | "OriginalType""Manual" 1014 | 1015 | 1016 | "WinDefend", 1017 | "StartupType""Automatic", 1018 | "OriginalType""Automatic" 1019 | 1020 | 1021 | "WinHttpAutoProxySvc", 1022 | "StartupType""Manual", 1023 | "OriginalType""Manual" 1024 | 1025 | 1026 | "WinRM", 1027 | "StartupType""Manual", 1028 | "OriginalType""Manual" 1029 | 1030 | 1031 | "Winmgmt", 1032 | "StartupType""Automatic", 1033 | "OriginalType""Automatic" 1034 | 1035 | 1036 | "WlanSvc", 1037 | "StartupType""Automatic", 1038 | "OriginalType""Automatic" 1039 | 1040 | 1041 | "WpcMonSvc", 1042 | "StartupType""Manual", 1043 | "OriginalType""Manual" 1044 | 1045 | 1046 | "WpnService", 1047 | "StartupType""Manual", 1048 | "OriginalType""Automatic" 1049 | 1050 | 1051 | "WpnUserService_*", 1052 | "StartupType""Automatic", 1053 | "OriginalType""Automatic" 1054 | 1055 | 1056 | "XblAuthManager", 1057 | "StartupType""Manual", 1058 | "OriginalType""Manual" 1059 | 1060 | 1061 | "XblGameSave", 1062 | "StartupType""Manual", 1063 | "OriginalType""Manual" 1064 | 1065 | 1066 | "XboxGipSvc", 1067 | "StartupType""Manual", 1068 | "OriginalType""Manual" 1069 | 1070 | 1071 | "XboxNetApiSvc", 1072 | "StartupType""Manual", 1073 | "OriginalType""Manual" 1074 | 1075 | 1076 | "autotimesvc", 1077 | "StartupType""Manual", 1078 | "OriginalType""Manual" 1079 | 1080 | 1081 | "bthserv", 1082 | "StartupType""Manual", 1083 | "OriginalType""Manual" 1084 | 1085 | 1086 | "camsvc", 1087 | "StartupType""Manual", 1088 | "OriginalType""Manual" 1089 | 1090 | 1091 | "cbdhsvc_*", 1092 | "StartupType""Manual", 1093 | "OriginalType""Automatic" 1094 | 1095 | 1096 | "cloudidsvc", 1097 | "StartupType""Manual", 1098 | "OriginalType""Manual" 1099 | 1100 | 1101 | "dcsvc", 1102 | "StartupType""Manual", 1103 | "OriginalType""Manual" 1104 | 1105 | 1106 | "defragsvc", 1107 | "StartupType""Manual", 1108 | "OriginalType""Manual" 1109 | 1110 | 1111 | "diagnosticshub.standardcollector.service", 1112 | "StartupType""Manual", 1113 | "OriginalType""Manual" 1114 | 1115 | 1116 | "diagsvc", 1117 | "StartupType""Manual", 1118 | "OriginalType""Manual" 1119 | 1120 | 1121 | "dmwappushservice", 1122 | "StartupType""Manual", 1123 | "OriginalType""Manual" 1124 | 1125 | 1126 | "dot3svc", 1127 | "StartupType""Manual", 1128 | "OriginalType""Manual" 1129 | 1130 | 1131 | "edgeupdate", 1132 | "StartupType""Manual", 1133 | "OriginalType""Automatic" 1134 | 1135 | 1136 | "edgeupdatem", 1137 | "StartupType""Manual", 1138 | "OriginalType""Manual" 1139 | 1140 | 1141 | "embeddedmode", 1142 | "StartupType""Manual", 1143 | "OriginalType""Manual" 1144 | 1145 | 1146 | "fdPHost", 1147 | "StartupType""Manual", 1148 | "OriginalType""Manual" 1149 | 1150 | 1151 | "fhsvc", 1152 | "StartupType""Manual", 1153 | "OriginalType""Manual" 1154 | 1155 | 1156 | "gpsvc", 1157 | "StartupType""Automatic", 1158 | "OriginalType""Automatic" 1159 | 1160 | 1161 | "hidserv", 1162 | "StartupType""Manual", 1163 | "OriginalType""Manual" 1164 | 1165 | 1166 | "icssvc", 1167 | "StartupType""Manual", 1168 | "OriginalType""Manual" 1169 | 1170 | 1171 | "iphlpsvc", 1172 | "StartupType""Automatic", 1173 | "OriginalType""Automatic" 1174 | 1175 | 1176 | "lfsvc", 1177 | "StartupType""Manual", 1178 | "OriginalType""Manual" 1179 | 1180 | 1181 | "lltdsvc", 1182 | "StartupType""Manual", 1183 | "OriginalType""Manual" 1184 | 1185 | 1186 | "lmhosts", 1187 | "StartupType""Manual", 1188 | "OriginalType""Manual" 1189 | 1190 | 1191 | "mpssvc", 1192 | "StartupType""Automatic", 1193 | "OriginalType""Automatic" 1194 | 1195 | 1196 | "msiserver", 1197 | "StartupType""Manual", 1198 | "OriginalType""Manual" 1199 | 1200 | 1201 | "netprofm", 1202 | "StartupType""Manual", 1203 | "OriginalType""Manual" 1204 | 1205 | 1206 | "nsi", 1207 | "StartupType""Automatic", 1208 | "OriginalType""Automatic" 1209 | 1210 | 1211 | "p2pimsvc", 1212 | "StartupType""Manual", 1213 | "OriginalType""Manual" 1214 | 1215 | 1216 | "p2psvc", 1217 | "StartupType""Manual", 1218 | "OriginalType""Manual" 1219 | 1220 | 1221 | "perceptionsimulation", 1222 | "StartupType""Manual", 1223 | "OriginalType""Manual" 1224 | 1225 | 1226 | "pla", 1227 | "StartupType""Manual", 1228 | "OriginalType""Manual" 1229 | 1230 | 1231 | "seclogon", 1232 | "StartupType""Manual", 1233 | "OriginalType""Manual" 1234 | 1235 | 1236 | "shpamsvc", 1237 | "StartupType""Disabled", 1238 | "OriginalType""Disabled" 1239 | 1240 | 1241 | "smphost", 1242 | "StartupType""Manual", 1243 | "OriginalType""Manual" 1244 | 1245 | 1246 | "spectrum", 1247 | "StartupType""Manual", 1248 | "OriginalType""Manual" 1249 | 1250 | 1251 | "sppsvc", 1252 | "StartupType""AutomaticDelayedStart", 1253 | "OriginalType""Automatic" 1254 | 1255 | 1256 | "ssh-agent", 1257 | "StartupType""Disabled", 1258 | "OriginalType""Disabled" 1259 | 1260 | 1261 | "svsvc", 1262 | "StartupType""Manual", 1263 | "OriginalType""Manual" 1264 | 1265 | 1266 | "swprv", 1267 | "StartupType""Manual", 1268 | "OriginalType""Manual" 1269 | 1270 | 1271 | "tiledatamodelsvc", 1272 | "StartupType""Automatic", 1273 | "OriginalType""Automatic" 1274 | 1275 | 1276 | "tzautoupdate", 1277 | "StartupType""Disabled", 1278 | "OriginalType""Disabled" 1279 | 1280 | 1281 | "uhssvc", 1282 | "StartupType""Disabled", 1283 | "OriginalType""Disabled" 1284 | 1285 | 1286 | "upnphost", 1287 | "StartupType""Manual", 1288 | "OriginalType""Manual" 1289 | 1290 | 1291 | "vds", 1292 | "StartupType""Manual", 1293 | "OriginalType""Manual" 1294 | 1295 | 1296 | "vm3dservice", 1297 | "StartupType""Manual", 1298 | "OriginalType""Automatic" 1299 | 1300 | 1301 | "vmicguestinterface", 1302 | "StartupType""Manual", 1303 | "OriginalType""Manual" 1304 | 1305 | 1306 | "vmicheartbeat", 1307 | "StartupType""Manual", 1308 | "OriginalType""Manual" 1309 | 1310 | 1311 | "vmickvpexchange", 1312 | "StartupType""Manual", 1313 | "OriginalType""Manual" 1314 | 1315 | 1316 | "vmicrdv", 1317 | "StartupType""Manual", 1318 | "OriginalType""Manual" 1319 | 1320 | 1321 | "vmicshutdown", 1322 | "StartupType""Manual", 1323 | "OriginalType""Manual" 1324 | 1325 | 1326 | "vmictimesync", 1327 | "StartupType""Manual", 1328 | "OriginalType""Manual" 1329 | 1330 | 1331 | "vmicvmsession", 1332 | "StartupType""Manual", 1333 | "OriginalType""Manual" 1334 | 1335 | 1336 | "vmicvss", 1337 | "StartupType""Manual", 1338 | "OriginalType""Manual" 1339 | 1340 | 1341 | "vmvss", 1342 | "StartupType""Manual", 1343 | "OriginalType""Manual" 1344 | 1345 | 1346 | "wbengine", 1347 | "StartupType""Manual", 1348 | "OriginalType""Manual" 1349 | 1350 | 1351 | "wcncsvc", 1352 | "StartupType""Manual", 1353 | "OriginalType""Manual" 1354 | 1355 | 1356 | "webthreatdefsvc", 1357 | "StartupType""Manual", 1358 | "OriginalType""Manual" 1359 | 1360 | 1361 | "webthreatdefusersvc_*", 1362 | "StartupType""Automatic", 1363 | "OriginalType""Automatic" 1364 | 1365 | 1366 | "wercplsupport", 1367 | "StartupType""Manual", 1368 | "OriginalType""Manual" 1369 | 1370 | 1371 | "wisvc", 1372 | "StartupType""Manual", 1373 | "OriginalType""Manual" 1374 | 1375 | 1376 | "wlidsvc", 1377 | "StartupType""Manual", 1378 | "OriginalType""Manual" 1379 | 1380 | 1381 | "wlpasvc", 1382 | "StartupType""Manual", 1383 | "OriginalType""Manual" 1384 | 1385 | 1386 | "wmiApSrv", 1387 | "StartupType""Manual", 1388 | "OriginalType""Manual" 1389 | 1390 | 1391 | "workfolderssvc", 1392 | "StartupType""Manual", 1393 | "OriginalType""Manual" 1394 | 1395 | 1396 | "wscsvc", 1397 | "StartupType""AutomaticDelayedStart", 1398 | "OriginalType""Automatic" 1399 | 1400 | 1401 | "wuauserv", 1402 | "StartupType""Manual", 1403 | "OriginalType""Manual" 1404 | 1405 | 1406 | "wudfsvc", 1407 | "StartupType""Manual", 1408 | "OriginalType""Manual" -------------------------------------------------------------------------------- /GOS.ps1: -------------------------------------------------------------------------------- 1 | if (-not ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) { 2 | Start-Process powershell -ArgumentList "-File `"$($MyInvocation.MyCommand.Path)`"" -Verb RunAs 3 | exit 4 | } 5 | 6 | $Host.UI.RawUI.ForegroundColor = "White" 7 | $Host.UI.RawUI.BackgroundColor = "Black" 8 | cls 9 | $ComputerName = $env:COMPUTERNAME 10 | $OS = Get-CimInstance Win32_OperatingSystem 11 | $CPU = Get-CimInstance Win32_Processor 12 | $RAM = Get-CimInstance Win32_ComputerSystem 13 | $Disk = Get-CimInstance Win32_LogicalDisk -Filter "DeviceID='C:'" 14 | $IP = Get-NetIPAddress -AddressFamily IPv4 | Where-Object {$_.InterfaceAlias -notlike "Loopback*"} 15 | $GPU = Get-CimInstance Win32_VideoController 16 | $BIOS = Get-CimInstance Win32_BIOS 17 | $Motherboard = Get-CimInstance Win32_BaseBoard 18 | $MemoryDevices = Get-CimInstance Win32_PhysicalMemory 19 | $Battery = Get-CimInstance Win32_Battery 20 | $SoundDevices = Get-CimInstance Win32_SoundDevice 21 | 22 | Write-Host "System Information for: $ComputerName" -ForegroundColor Green 23 | Write-Host "----------------------------------------" 24 | Write-Host "Operating System: $($OS.Caption) ($($OS.Version))" 25 | Write-Host " " 26 | Write-Host "CPU:" -ForegroundColor Yellow 27 | Write-Host "$($CPU.Name)" 28 | Write-Host " " 29 | Write-Host "Total RAM: $([math]::Round($RAM.TotalPhysicalMemory / 1GB, 2)) GB" -ForegroundColor Yellow 30 | foreach ($mem in $MemoryDevices) { 31 | Write-Host "Memory Stick: $([math]::Round($mem.Capacity / 1GB, 2)) GB - Speed: $($mem.Speed) MHz" 32 | } 33 | Write-Host " " 34 | Write-Host "Graphics processing unit:" -ForegroundColor Yellow 35 | Write-Host "$($GPU.Name)" 36 | Write-Host " " 37 | Write-Host "Disk Space:" -ForegroundColor Yellow 38 | Write-Host "$([math]::Round($Disk.Size / 1GB, 2)) GB (Free: $([math]::Round($Disk.FreeSpace / 1GB, 2)) GB)" 39 | Write-Host " " 40 | Write-Host "Motherboard: $($Motherboard.Manufacturer) $($Motherboard.Product)" -ForegroundColor Yellow 41 | Write-Host "BIOS Version: $($BIOS.SMBIOSBIOSVersion)" 42 | Write-Host " " 43 | Write-Host "Battery Information:" -ForegroundColor Yellow 44 | if ($Battery) { 45 | Write-Host "Battery Status: $($Battery.BatteryStatus) - Estimated Charge Remaining: $($Battery.EstimatedChargeRemaining)%" 46 | } else { 47 | Write-Host "No battery detected." 48 | } 49 | Write-Host " " 50 | Write-Host "Sound Devices:" -ForegroundColor Yellow 51 | foreach ($sound in $SoundDevices) { 52 | Write-Host "$($sound.Name)" 53 | } 54 | Write-Host " " 55 | Write-Host "Network Adapters:" -ForegroundColor Cyan 56 | foreach ($adapter in $IP) { 57 | Write-Host "$($adapter.InterfaceAlias): $($adapter.IPAddress)" 58 | } 59 | 60 | Add-Type -AssemblyName System.Windows.Forms 61 | Add-Type -AssemblyName System.Drawing 62 | 63 | $form = New-Object System.Windows.Forms.Form 64 | $form.Text = " GOS" 65 | $form.ForeColor = [System.Drawing.Color]::White 66 | $form.Size = New-Object System.Drawing.Size(370, 300) 67 | $form.StartPosition = "CenterScreen" 68 | $form.BackColor = [System.Drawing.Color]::FromArgb(25, 25, 25) 69 | $form.MaximizeBox = $false 70 | $form.MinimizeBox = $false 71 | $form.FormBorderStyle = [System.Windows.Forms.FormBorderStyle]::FixedDialog 72 | $form.Icon = [System.Drawing.Icon]::ExtractAssociatedIcon("https://github.com/ltx0101/GOS/blob/main/GOS.ico") 73 | $iconUrl = "https://github.com/ltx0101/GOS/raw/main/GOS.ico" 74 | $iconPath = "$env:Temp\GOS.ico" 75 | Invoke-WebRequest -Uri $iconUrl -OutFile $iconPath 76 | $form.Icon = New-Object System.Drawing.Icon($iconPath) 77 | 78 | function Show-Message($message) { 79 | [System.Windows.Forms.MessageBox]::Show($message, "GOS", [System.Windows.Forms.MessageBoxButtons]::OK, [System.Windows.Forms.MessageBoxIcon]::Information) 80 | } 81 | 82 | function Enable-GameMode { 83 | 84 | $services = @( 85 | "AllJoyn Router Service", "BITS", "BitLocker Drive Encryption Service", "Bluetooth Support Service", 86 | "BthAvctpSvc", "CertPropSvc", "Connected Devices Platform Service", "CscService", "DiagTrack", 87 | "Diagnostic Policy Service", "Distributed Link Tracking Client", "Downloaded Maps Manager", "DPS", 88 | "DusmSvc", "Fax", "Function Discovery Resource Publication", 89 | "Geolocation Service", "icssvc", "LanmanServer", "lmhosts", "MapsBroker", "Microsoft iSCSI Initiator Service", 90 | "Netlogon", "Offline Files", "Parental Controls", "Payments and NFC/SE Manager", "Phone Service", 91 | "PhoneSvc", "Print Spooler", "Program Compatibility Assistant Service", "RemoteRegistry", "Retail Demo Service", 92 | "RmSvc", "SCardSvr", "Secondary Logon", "SessionEnv", "SENS", "Smart Card", "Smart Card Device Enumeration Service", 93 | "Spooler", "SSDPSRV", "stisvc", "Superfetch", "SysMain", "TabletInputService", "TermService", 94 | "Touch Keyboard and Handwriting Panel Service", "UmRdpService", "UPnP Device Host", "UsoSvc", 95 | "wercplsupport", "WerSvc", "WbioSrvc", "Windows Biometric Service", "Windows Camera Frame Server", 96 | "Windows Error Reporting Service", "Windows Image Acquisition (WIA)", "Windows Insider Service", 97 | "Windows Media Player Network Sharing Service", "Windows Search", "Windows Update", "WpcMonSvc", 98 | "wuauserv", "Xbox Live Auth Manager", 99 | "Xbox Live Game Save", "Xbox Live Networking Service", "Themes", "TrkWks", "FontCache", "DoSvc", "SENS", 100 | "xboxgip", "xbgm", "XblGameSave", "XblAuthManager", "seclogon", "WSearch", "Tablet PC Input Service", 101 | "WaaSMedicSvc", "TextInputManagementService", "WebBrowserInfrastructureService", "WpnService", "InstallService", "UsoSvc", 102 | "ActiveX Installer", "AxInstSV", "Application Layer Gateway Service", "Auto Time Zone Updater", "Bluetooth Audio Gateway Service", "Bluetooth Support Service", "BranchCache", 103 | "Capability Access Manager Service", "Cloud Backup and Restore Service", "Delivery Optimization", "Function Discovery Provider Host", 104 | "Function Discovery Resource Publication", "Geolocation Service", "GraphicsPerfSvc", "Hyper-V Services", "Internet Connection Sharing (ICS)", 105 | "Language Experience Service", "Microsoft Store Install Service", "Offline Files", "Performance Logs & Alerts", "Print Spooler", "Remote Access Auto Connection Manager", "QWAVE" 106 | "vmickvpexchange", "vmicguestinterface", "vmicshutdown", "vmicheartbeat", "vmicvmsession", "vmicrdv", "vmictimesync", "vmicvss", "AppXSvc", "BDESVC", "Fax", "WaaSMedicSvc" 107 | "wlidsvc", "LicenseManager", "AppXSvc" , "FontCache", "WpnService" 108 | ) 109 | 110 | foreach ($service in $services) { 111 | try { 112 | Stop-Service -Name $service -ErrorAction Stop 113 | Write-Output \"Stopped service: $service\" 114 | } catch { 115 | Write-Output \"Could not stop service: $service\" 116 | } 117 | } 118 | 119 | $servicesd = @( 120 | "BITS","SysMain","SSDPSRV","WbioSrvc","RemoteRegistry", 121 | "wercplsupport","DPS","TermService","WpcMonSvc","DiagTrack","MapsBroker","wisvc", 122 | "icssvc","CertPropSvc","PhoneSvc","BthAvctpSvc","lmhosts","WerSvc","RmSvc", 123 | "DusmSvc","TabletInputService","RetailDemo","wuauserv" 124 | ) 125 | 126 | foreach ($serviced in $servicesd) { 127 | try { 128 | Set-Service -Name $serviced -StartupType Disabled -ErrorAction Stop 129 | } catch { 130 | Write-Output "Failed to disable service: $serviced" 131 | } 132 | } 133 | New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces" -Name "TcpAckFrequency" -Value 1 -PropertyType DWord -Force 134 | New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces" -Name "TCPNoDelay" -Value 1 -PropertyType DWord -Force 135 | cls 136 | Write-Host "Game Mode enabled!" -ForegroundColor Green 137 | } 138 | 139 | 140 | function Clean-Windows { 141 | $nvCachePath = "$env:temp\NVIDIA Corporation\NV_Cache" 142 | if (Test-Path -Path $nvCachePath) { 143 | Remove-Item -Path "$nvCachePath\*" -Force -Recurse -ErrorAction SilentlyContinue 144 | Get-ChildItem -Path $nvCachePath -Directory | ForEach-Object { 145 | Remove-Item $_.FullName -Force -Recurse -ErrorAction SilentlyContinue 146 | } 147 | } 148 | 149 | $d3dCachePath = "$env:LOCALAPPDATA\D3DSCache" 150 | if (Test-Path -Path $d3dCachePath) { 151 | Remove-Item -Path $d3dCachePath -Force -Recurse -ErrorAction SilentlyContinue 152 | } 153 | 154 | $tempPaths = @("$env:temp\*", "C:\Windows\temp\*", "C:\Windows\Prefetch\*") 155 | foreach ($path in $tempPaths) { 156 | if (Test-Path -Path $path) { 157 | Remove-Item -Path $path -Force -Recurse -ErrorAction SilentlyContinue 158 | } 159 | } 160 | 161 | $thumbCachePath = "$env:USERPROFILE\AppData\Local\Microsoft\Windows\Explorer\ThumbCacheToDelete" 162 | if (Test-Path -Path $thumbCachePath) { 163 | Remove-Item -Path "$thumbCachePath\*" -Force -Recurse -ErrorAction SilentlyContinue 164 | Remove-Item -Path $thumbCachePath -Force -Recurse -ErrorAction SilentlyContinue 165 | } 166 | 167 | $windowsUpdatePath = "C:\Windows\SoftwareDistribution\Download\*" 168 | if (Test-Path -Path $windowsUpdatePath) { 169 | Remove-Item -Path $windowsUpdatePath -Force -Recurse -ErrorAction SilentlyContinue 170 | } 171 | cleanmgr /verylowdisk 172 | } 173 | 174 | 175 | function Optimize-Network { 176 | 177 | Stop-Service -Name "winnat" -Force -ErrorAction SilentlyContinue 178 | Start-Process -FilePath "reg.exe" -ArgumentList "add HKLM\Software\Microsoft\Windows NT\CurrentVersion\NetworkList\DefaultMediaCost /v Ethernet /t REG_DWORD /d 2 /f" -Verb RunAs 179 | Start-Process -FilePath "reg.exe" -ArgumentList "add HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings /v EnableHttp2 /t REG_DWORD /d 1 /f" -Verb RunAs 180 | Start-Service -Name "winnat" -ErrorAction SilentlyContinue 181 | 182 | ipconfig /release 183 | ipconfig /renew 184 | ipconfig /flushdns 185 | netsh int ip reset 186 | netsh winsock reset 187 | 188 | Remove-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces" -Name "TcpAckFrequency" -ErrorAction SilentlyContinue 189 | Remove-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces" -Name "TCPNoDelay" -ErrorAction SilentlyContinue 190 | cls 191 | Write-Host "Network optimization applied!" -ForegroundColor Green 192 | } 193 | 194 | 195 | function Repair-Windows { 196 | Start-Process cmd.exe -ArgumentList "/K", "powershell.exe -Command ""taskkill /f /im explorer.exe; chkdsk /scan; DISM /Online /Cleanup-Image /RestoreHealth; sfc /scannow; shutdown /r /t 5; exit""" 197 | cls 198 | Write-Host "Your computer will automatically restart, this might take a while." -ForegroundColor Green 199 | } 200 | 201 | 202 | function Restore-Defaults { 203 | $servicesToStart = @( 204 | "AllJoyn Router Service", "BITS", "BitLocker Drive Encryption Service", "Bluetooth Support Service", 205 | "BthAvctpSvc", "CertPropSvc", "Connected Devices Platform Service", "CscService", "DiagTrack", 206 | "Diagnostic Policy Service", "Distributed Link Tracking Client", "Downloaded Maps Manager", "DPS", 207 | "DusmSvc", "Fax", "Function Discovery Resource Publication", 208 | "Geolocation Service", "icssvc", "LanmanServer", "lmhosts", "MapsBroker", "Microsoft iSCSI Initiator Service", 209 | "Netlogon", "Offline Files", "Parental Controls", "Payments and NFC/SE Manager", "Phone Service", 210 | "PhoneSvc", "Print Spooler", "Program Compatibility Assistant Service", "RemoteRegistry", "Retail Demo Service", 211 | "RmSvc", "SCardSvr", "Secondary Logon", "SessionEnv", "SENS", "Smart Card", "Smart Card Device Enumeration Service", 212 | "Spooler", "SSDPSRV", "stisvc", "Superfetch", "SysMain", "TabletInputService", "TermService", 213 | "Touch Keyboard and Handwriting Panel Service", "UmRdpService", "UPnP Device Host", "UsoSvc", 214 | "wercplsupport", "WerSvc", "WbioSrvc", "Windows Biometric Service", "Windows Camera Frame Server", 215 | "Windows Error Reporting Service", "Windows Image Acquisition (WIA)", "Windows Insider Service", 216 | "Windows Media Player Network Sharing Service", "Windows Search", "Windows Update", "WpcMonSvc", 217 | "wuauserv", "Xbox Live Auth Manager", 218 | "Xbox Live Game Save", "Xbox Live Networking Service", "Themes", "TrkWks", "FontCache", "DoSvc", "SENS", 219 | "xboxgip", "xbgm", "XblGameSave", "XblAuthManager", "seclogon", "WSearch", "Tablet PC Input Service", 220 | "WaaSMedicSvc", "TextInputManagementService", "WebBrowserInfrastructureService", "WpnService", "InstallService", "UsoSvc", 221 | "ActiveX Installer", "AxInstSV", "Application Layer Gateway Service", "Auto Time Zone Updater", "Bluetooth Audio Gateway Service", "Bluetooth Support Service", "BranchCache", 222 | "Capability Access Manager Service", "Cloud Backup and Restore Service", "Delivery Optimization", "Function Discovery Provider Host", 223 | "Function Discovery Resource Publication", "Geolocation Service", "GraphicsPerfSvc", "Hyper-V Services", "Internet Connection Sharing (ICS)", 224 | "Language Experience Service", "Microsoft Store Install Service", "Offline Files", "Performance Logs & Alerts", "Print Spooler", "Remote Access Auto Connection Manager", "QWAVE" 225 | "vmickvpexchange", "vmicguestinterface", "vmicshutdown", "vmicheartbeat", "vmicvmsession", "vmicrdv", "vmictimesync", "vmicvss", "AppXSvc", "BDESVC", "Fax", "WaaSMedicSvc" 226 | "wlidsvc", "LicenseManager", "AppXSvc" , "FontCache", "WpnService" 227 | ) 228 | foreach ($service in $servicesToStart) { 229 | try { 230 | Start-Service -Name $service -ErrorAction Stop 231 | Write-Host "Started service: $service" 232 | } catch { 233 | Write-Warning "Failed to start service: $service" 234 | } 235 | } 236 | 237 | $servicesToConfigure = @( 238 | "BITS", "SysMain", "SSDPSRV", "WSearch", "WbioSrvc", "Spooler", "RemoteRegistry", 239 | "wercplsupport", "DPS", "TermService", "WpcMonSvc", "DiagTrack", "MapsBroker", "wisvc", 240 | "icssvc", "CertPropSvc", "PhoneSvc", "BthAvctpSvc", "lmhosts", "WerSvc", "RmSvc", 241 | "DusmSvc", "TabletInputService", "UsoSvc", "InstallService" 242 | ) 243 | 244 | foreach ($service in $servicesToConfigure) { 245 | try { 246 | Set-Service -Name $service -StartupType Manual -ErrorAction Stop 247 | Write-Host "Configured service to manual start: $service" 248 | } catch { 249 | Write-Warning "Failed to configure service: $service" 250 | } 251 | } 252 | 253 | $restart = Read-Host "Would you like to restart your PC now? (Y/N)" 254 | if ($restart -eq "Y" -or $restart -eq "y") { 255 | Write-Host "Restarting the computer..." 256 | Restart-Computer -Force 257 | } else { 258 | Write-Host "You can restart the PC later manually." 259 | } 260 | 261 | } 262 | 263 | function Shortcut { 264 | 265 | $ShortcutName = "GOS" 266 | $TargetCmd = "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" 267 | 268 | $Arguments = @" 269 | -ExecutionPolicy Bypass -Command "Start-Process powershell.exe -Verb RunAs -ArgumentList 'iwr `"https://raw.githubusercontent.com/ltx0101/GOS/refs/heads/main/GOS.ps1`" -OutFile `"GOS.ps1`"; .\GOS.ps1'" 270 | "@ 271 | 272 | $ShortcutPath = "$([environment]::GetFolderPath('Desktop'))\$ShortcutName.lnk" 273 | $IconUrl = "https://raw.githubusercontent.com/ltx0101/GOS/main/GOS.ico" 274 | $IconPath = "$([environment]::GetFolderPath('MyDocuments'))\GOS.ico" 275 | Invoke-WebRequest -Uri $IconUrl -OutFile $IconPath -ErrorAction Stop 276 | $WshShell = New-Object -ComObject WScript.Shell 277 | $Shortcut = $WshShell.CreateShortcut($ShortcutPath) 278 | $Shortcut.TargetPath = $TargetCmd 279 | $Shortcut.Arguments = $Arguments 280 | $Shortcut.WorkingDirectory = $([environment]::GetFolderPath('UserProfile')) 281 | $Shortcut.WindowStyle = 1 282 | $Shortcut.Description = "Shortcut to execute GOS script" 283 | $Shortcut.IconLocation = $IconPath 284 | $Shortcut.Save() 285 | cls 286 | Write-Host "Shortcut GOS created on Desktop." -ForegroundColor Green 287 | } 288 | 289 | function Debloat { 290 | cls 291 | $appsToRemove = @( 292 | "Microsoft.3DBuilder", "Microsoft.Microsoft3DViewer", "Microsoft.AppConnector", "Microsoft.BingFinance", "Microsoft.BingNews", "Microsoft.BingSports", "Microsoft.BingTranslator", "Microsoft.BingWeather", "Microsoft.BingFoodAndDrink", 293 | "Microsoft.BingHealthAndFitness", "Microsoft.BingTravel", "Microsoft.MinecraftUWP", "Microsoft.GetHelp", "Microsoft.Getstarted", "Microsoft.MicrosoftSolitaireCollection", "Microsoft.NetworkSpeedTest", "Microsoft.News", "Microsoft.Office.Lens", 294 | "Microsoft.Office.Sway", "Microsoft.Office.OneNote", "Microsoft.OneConnect", "Microsoft.Office.Desktop", "Microsoft.Print3D", "Microsoft.SkypeApp", "Microsoft.Whiteboard", "Microsoft.WindowsFeedbackHub", "Microsoft.WindowsMaps", 295 | "Microsoft.MicrosoftOfficeHub", "Microsoft.XboxGameOverlay", "Microsoft.Xbox.TCUI", "Microsoft.XboxSpeechToTextOverlay", "Microsoft.XboxIdentityProvider", "Microsoft.XboxGameCallableUI", "Microsoft.MixedReality.Portal", "Microsoft.People", 296 | "Microsoft.WindowsAlarms", "Microsoft.WindowsSoundRecorder", "Microsoft.YourPhone", "Microsoft.ZuneMusic", "Microsoft.ZuneVideo", "Microsoft.WindowsStickyNotes", "*EclipseManager*", "*ActiproSoftwareLLC*", "*AdobeSystemsIncorporated.AdobePhotoshopExpress*", 297 | "*Duolingo-LearnLanguagesforFree*", "*PandoraMediaInc*", "*CandyCrush*", "*BubbleWitch3Saga*", "*Wunderlist*", "*Flipboard*", "*Twitter*", "*Facebook*", "*Royal Revolt*", "*Sway*", "*Speed Test*", "*Dolby*", "*Viber*", "*ACGMediaPlayer*", "*Netflix*", 298 | "*Roblox*", "*BytedancePte.Ltd.TikTok*", "*AmazonVideo.PrimeVideo*", "*MarchOfEmpires*", "*LinkedInforWindows*", "*HiddenCityMysteryofShadows*", "*Hulu*", "*HiddenCity*", "*SpotifyAB.SpotifyMusic*", "*AdobePhotoshopExpress*", 299 | "Microsoft.549981C3F5F10", "Disney.37853FC22B2CE", "MicrosoftTeams", "Microsoft.Todos", "Microsoft.GamingApp", "Microsoft.XboxGamingOverlay", "microsoft.windowscommunicationsapps" 300 | 301 | ) 302 | 303 | foreach ($app in $appsToRemove) { 304 | $processes = Get-Process | Where-Object { $_.ProcessName -like "*$app*" } 305 | if ($processes) { 306 | Write-Host "Stopping process: $app" 307 | $processes | Stop-Process -Force -ErrorAction SilentlyContinue 308 | } 309 | } 310 | 311 | foreach ($app in $appsToRemove) { 312 | Write-Host "Removing AppxPackage: $app" 313 | Get-AppxPackage -AllUsers | Where-Object { $_.Name -Like $app } | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue 314 | } 315 | 316 | foreach ($app in $appsToRemove) { 317 | Write-Host "Removing provisioned package: $app" 318 | Get-AppxProvisionedPackage -Online | Where-Object { $_.DisplayName -Like $app } | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue 319 | } 320 | cls 321 | 322 | $hostsPath = "C:\Windows\System32\drivers\etc\hosts" 323 | $tempHostsPath = "$env:TEMP\hosts.tmp" 324 | 325 | Copy-Item -Path $hostsPath -Destination $tempHostsPath -Force 326 | $telemetryHosts = @( 327 | "vortex.data.microsoft.com", 328 | "settings-win.data.microsoft.com", 329 | "watson.telemetry.microsoft.com", 330 | "telemetry.microsoft.com", 331 | "oca.telemetry.microsoft.com", 332 | "sqm.telemetry.microsoft.com" 333 | ) 334 | foreach ($telemetryHost in $telemetryHosts) { 335 | Add-Content -Path $tempHostsPath -Value "127.0.0.1 $telemetryHost" 336 | } 337 | Copy-Item -Path $tempHostsPath -Destination $hostsPath -Force 338 | Remove-Item -Path $tempHostsPath -Force 339 | 340 | 341 | New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" -Force | Out-Null 342 | Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" -Name "DoNotConnectToWindowsUpdateInternetLocations" -Type DWord -Value 1 343 | Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" -Name "DisableWindowsUpdateAccess" -Type DWord -Value 1 344 | 345 | 346 | $tasksToDisable = @( 347 | "\Microsoft\Windows\Customer Experience Improvement Program\Consolidator", 348 | "\Microsoft\Windows\Customer Experience Improvement Program\UsbCeip", 349 | "\Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser", 350 | "\Microsoft\Windows\Application Experience\ProgramDataUpdater" 351 | ) 352 | foreach ($task in $tasksToDisable) { 353 | if (Get-ScheduledTask -TaskPath $task -ErrorAction SilentlyContinue) { 354 | Disable-ScheduledTask -TaskPath $task -ErrorAction SilentlyContinue 355 | } 356 | } 357 | 358 | Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\Windows Error Reporting" -Name "Disabled" -Type DWord -Value 1 359 | 360 | 361 | $servicesFileUrl = "https://raw.githubusercontent.com/ltx0101/GOS/main/Services%20list.txt" 362 | 363 | 364 | try { 365 | $servicesContent = (Invoke-WebRequest -Uri $servicesFileUrl).Content -split "`r`n" 366 | } catch { 367 | Write-Host "Failed to fetch service list: $($_.Exception.Message)" 368 | exit 369 | } 370 | 371 | 372 | $serviceName = $null 373 | $startupType = $null 374 | 375 | 376 | foreach ($line in $servicesContent) { 377 | 378 | $line = $line.Trim() 379 | 380 | if ($line -match '^"([^"]+)",$') { 381 | $serviceName = $matches[1] 382 | } 383 | 384 | elseif ($line -match '^"StartupType""([^"]+)",?$') { 385 | $startupType = $matches[1] 386 | 387 | 388 | if ($serviceName -and $startupType) { 389 | try { 390 | 391 | Set-Service -Name $serviceName -StartupType $startupType 392 | Write-Host "Successfully set $serviceName to $startupType" 393 | } catch { 394 | Write-Host ("Failed to set {0} to {1}: {2}" -f $serviceName, $startupType, $_.Exception.Message) 395 | } 396 | 397 | 398 | $serviceName = $null 399 | $startupType = $null 400 | } 401 | } 402 | } 403 | 404 | Stop-Process -Name explorer -Force -ErrorAction SilentlyContinue 405 | Start-Process explorer 406 | cls 407 | Write-Host " " 408 | Write-Host " " 409 | Write-Host "Windows Update has been optimized" 410 | Write-Host "Bloatware has been removed." 411 | Write-Host "Telemetry has been disabled." 412 | Write-Host "Debloat complete!" -ForegroundColor Green 413 | } 414 | 415 | # Game Mode Button 416 | $btnGameMode = New-Object System.Windows.Forms.Button 417 | $btnGameMode.Text = "Enable Game Mode " + [System.Text.Encoding]::UTF8.GetString([byte[]]@(0xE2,0x9A,0xA1)) 418 | $btnGameMode.Size = New-Object System.Drawing.Size(230, 40) 419 | $btnGameMode.Location = New-Object System.Drawing.Point(65, 20) 420 | $btnGameMode.Add_Click({ Enable-GameMode }) 421 | $btnGameMode.FlatStyle = [System.Windows.Forms.FlatStyle]::Flat 422 | $btnGameMode.FlatAppearance.BorderColor = [System.Drawing.Color]::Black 423 | $btnGameMode.FlatAppearance.BorderSize = 0 424 | $tooltipGameMode = New-Object System.Windows.Forms.ToolTip 425 | $tooltipGameMode.SetToolTip($btnGameMode, "Click to enable Game Mode for better performance.") 426 | $btnGameMode.Font = New-Object System.Drawing.Font("Segoe UI Emoji", 15, [System.Drawing.FontStyle]::Regular) 427 | 428 | # Clean Windows Button 429 | $btnClean = New-Object System.Windows.Forms.Button 430 | $btnClean.Text = "Clean Windows " + [System.Text.Encoding]::UTF8.GetString([byte[]]@(0xF0,0x9F,0x97,0x91)) 431 | $btnClean.Size = New-Object System.Drawing.Size(150, 40) 432 | $btnClean.Location = New-Object System.Drawing.Point(10, 80) 433 | $btnClean.Add_Click({ Clean-Windows }) 434 | $btnClean.FlatStyle = [System.Windows.Forms.FlatStyle]::Flat 435 | $btnClean.FlatAppearance.BorderColor = [System.Drawing.Color]::Black 436 | $btnClean.FlatAppearance.BorderSize = 0 437 | $tooltipClean = New-Object System.Windows.Forms.ToolTip 438 | $tooltipClean.SetToolTip($btnClean, "Click to clean Windows.") 439 | $btnClean.Font = New-Object System.Drawing.Font("Segoe UI Emoji", 10, [System.Drawing.FontStyle]::Regular) 440 | 441 | # Network Optimization Button 442 | $btnNetwork = New-Object System.Windows.Forms.Button 443 | $btnNetwork.Text = "Optimize Network " + [System.Text.Encoding]::UTF8.GetString([byte[]]@(0xF0,0x9F,0x8C,0x90)) 444 | $btnNetwork.Size = New-Object System.Drawing.Size(150, 40) 445 | $btnNetwork.Location = New-Object System.Drawing.Point(10, 130) 446 | $btnNetwork.Add_Click({ Optimize-Network }) 447 | $btnNetwork.FlatStyle = [System.Windows.Forms.FlatStyle]::Flat 448 | $btnNetwork.FlatAppearance.BorderColor = [System.Drawing.Color]::Black 449 | $btnNetwork.FlatAppearance.BorderSize = 0 450 | $tooltipNetwork = New-Object System.Windows.Forms.ToolTip 451 | $tooltipNetwork.SetToolTip($btnNetwork, "Click to optimize network settings.") 452 | $btnNetwork.Font = New-Object System.Drawing.Font("Segoe UI Emoji", 10, [System.Drawing.FontStyle]::Regular) 453 | 454 | # Repair Windows Button 455 | $btnRepair = New-Object System.Windows.Forms.Button 456 | $btnRepair.Text = "Repair Windows " + [System.Text.Encoding]::UTF8.GetString([byte[]]@(0xF0,0x9F,0x94,0xA7)) 457 | $btnRepair.Size = New-Object System.Drawing.Size(150, 40) 458 | $btnRepair.Location = New-Object System.Drawing.Point(195, 130) 459 | $btnRepair.Add_Click({ Repair-Windows }) 460 | $btnRepair.FlatStyle = [System.Windows.Forms.FlatStyle]::Flat 461 | $btnRepair.FlatAppearance.BorderColor = [System.Drawing.Color]::Black 462 | $btnRepair.FlatAppearance.BorderSize = 0 463 | $tooltipRepair = New-Object System.Windows.Forms.ToolTip 464 | $tooltipRepair.SetToolTip($btnRepair, "Click to repair Windows system files.") 465 | $btnRepair.Font = New-Object System.Drawing.Font("Segoe UI Emoji", 10, [System.Drawing.FontStyle]::Regular) 466 | 467 | # Restore Defaults Button 468 | $btnRestore = New-Object System.Windows.Forms.Button 469 | $btnRestore.Text = "Restore Defaults " + [System.Text.Encoding]::UTF8.GetString([byte[]]@(0xE2,0x9A,0x99, 0xEF,0xB8,0x8F)) 470 | $btnRestore.Size = New-Object System.Drawing.Size(150, 40) 471 | $btnRestore.Location = New-Object System.Drawing.Point(195, 80) 472 | $btnRestore.Add_Click({ Restore-Defaults }) 473 | $btnRestore.FlatStyle = [System.Windows.Forms.FlatStyle]::Flat 474 | $btnRestore.FlatAppearance.BorderColor = [System.Drawing.Color]::Black 475 | $btnRestore.FlatAppearance.BorderSize = 0 476 | $tooltipRestore = New-Object System.Windows.Forms.ToolTip 477 | $tooltipRestore.SetToolTip($btnRestore, "Click to restore default settings.") 478 | $btnRestore.Font = New-Object System.Drawing.Font("Segoe UI Emoji", 10, [System.Drawing.FontStyle]::Regular) 479 | 480 | # Shortcut Button 481 | $btnShortcut = New-Object System.Windows.Forms.Button 482 | $btnShortcut.Text = "Shortcut " + [System.Text.Encoding]::UTF8.GetString([byte[]]@(0xE2,0x86,0xAA, 0xEF,0xB8,0x8F)) 483 | $btnShortcut.Size = New-Object System.Drawing.Size(150, 40) 484 | $btnShortcut.Location = New-Object System.Drawing.Point(195, 180) 485 | $btnShortcut.Add_Click({ Shortcut }) 486 | $btnShortcut.FlatStyle = [System.Windows.Forms.FlatStyle]::Flat 487 | $btnShortcut.FlatAppearance.BorderColor = [System.Drawing.Color]::Black 488 | $btnShortcut.FlatAppearance.BorderSize = 0 489 | $tooltipShortcut = New-Object System.Windows.Forms.ToolTip 490 | $tooltipShortcut.SetToolTip($btnShortcut, "Click to create a shortcut.") 491 | $btnShortcut.Font = New-Object System.Drawing.Font("Segoe UI Emoji", 10, [System.Drawing.FontStyle]::Regular) 492 | 493 | # Debloat Button 494 | $btnDebloat = New-Object System.Windows.Forms.Button 495 | $btnDebloat.Text = "Debloat " + [System.Text.Encoding]::UTF8.GetString([byte[]]@(0xF0,0x9F,0xA7,0xB9)) 496 | $btnDebloat.Size = New-Object System.Drawing.Size(150, 40) 497 | $btnDebloat.Location = New-Object System.Drawing.Point(10, 180) 498 | $btnDebloat.Add_Click({ Debloat }) 499 | $btnDebloat.FlatStyle = [System.Windows.Forms.FlatStyle]::Flat 500 | $btnDebloat.FlatAppearance.BorderColor = [System.Drawing.Color]::Black 501 | $btnDebloat.FlatAppearance.BorderSize = 0 502 | $tooltipDebloat = New-Object System.Windows.Forms.ToolTip 503 | $tooltipDebloat.SetToolTip($btnDebloat, "Click to remove any Microsoft pre-installed Bloatware.") 504 | $btnDebloat.Font = New-Object System.Drawing.Font("Segoe UI Emoji", 10, [System.Drawing.FontStyle]::Regular) 505 | 506 | # Processes Counter 507 | $proc = New-Object System.Windows.Forms.Label 508 | $proc.Text = "Processes Running:" 509 | $proc.AutoSize = $true 510 | $proc.Font = New-Object System.Drawing.Font("Segoe UI Emoji", 8,[System.Drawing.FontStyle]::Regular) 511 | $proc.Location = New-Object System.Drawing.Point(120, 240) 512 | $Timer = New-Object System.Windows.Forms.Timer 513 | $Timer.Interval = 1000 514 | $Timer.Add_Tick({ 515 | $ProcessCount = (Get-Process | Measure-Object | Select-Object -ExpandProperty Count) 516 | $proc.Text = "Processes Running: $ProcessCount" 517 | }) 518 | $Timer.Start() 519 | 520 | # Add buttons to the form 521 | $form.Controls.Add($btnGameMode) 522 | $form.Controls.Add($btnClean) 523 | $form.Controls.Add($btnNetwork) 524 | $form.Controls.Add($btnRepair) 525 | $form.Controls.Add($btnRestore) 526 | $form.Controls.Add($btnShortcut) 527 | $form.Controls.Add($btnDebloat) 528 | $form.Controls.Add($proc) 529 | 530 | # Run the form 531 | [void]$form.ShowDialog() 532 | -------------------------------------------------------------------------------- /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 | . 675 | --------------------------------------------------------------------------------