Skip to content

1.0.2

Latest
Compare
Choose a tag to compare
@simeononsecurity simeononsecurity released this 13 Aug 07:30
· 11 commits to main since this release
4375263

What's Changed

  • Remove /f /q is incorrect in powershell by @Acenl12 in #5

New Contributors

Full Changelog: https://github.com/simeononsecurity/Windows-Optimize-Debloat/commits/1.0.2


How to run the script:

Automated Install:

The script may be launched from the extracted GitHub download like this:

iwr -useb 'https://simeononsecurity.ch/scripts/windowsoptimizeanddebloat.ps1'|iex

Manual Install:

If manually downloaded, the script must be launched from an administrative powershell in the directory containing all the files from the GitHub Repository

The script "sos-optimize-windows.ps1" includes several parameters that allow for customization of the optimization process. Each parameter is a boolean value that defaults to true if not specified.

  • $cleargpos: Clears Group Policy Objects settings.
  • $installupdates: Installs updates to the system.
  • $removebloatware: Removes unnecessary programs and features from the system.
  • $disabletelemetry: Disables data collection and telemetry.
  • $privacy: Makes changes to improve privacy.
  • $imagecleanup: Cleans up unneeded files from the system.
  • $diskcompression: Compresses the system disk.
  • $updatemanagement: Changes the way updates are managed and improved on the system.
  • $sosbrowsers: Optimizes the system's web browsers.

An example of how to launch the script with specific parameters would be:

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Force
Get-ChildItem -Recurse *.ps1 | Unblock-File
powershell.exe -ExecutionPolicy ByPass -File .\sos-optimize-windows.ps1 -cleargpos:$false -installupdates:$false

Learn more about Debloating Windows 10 and Windows 11

Explore the World of Cybersecurity

SimeonOnSecurity Logo

Links: