Skip to content

A collection of Windows scripts to help cleanup and secure your Windows 10 or 11 installation.

License

Notifications You must be signed in to change notification settings

hasanakcakoca/Windows-Tools

 
 

Repository files navigation

Windows-Tools:

This repository contains batch files used to automate computer cleanup using built in Windows utilities. Made for Windows 10, will also probably work on Windows 8, 8.1, and 11. All scripts Must be run as Administrator. If you need help running these scripts scroll down to the directions.

Scripts:

Admin-AutoLogin

  • Adds registry keys to allow an admin account with a password to autologin on startup.
  • This is a .ps1 file, run PowerShell as Admin or follow the directions below.

Cleanup-Script

  • Designed for Windows 10
  • Cleanup script to help optimize Windows performance
  • This is a .bat file, right click and run as administrator

Disable-Windows-Auto-Update

  • Enables/Disables Windows Auto-Update through the registry

Fully-Disable-Cortana

  • This is designed for Windows 10
  • Disables Cortana through the registry
  • This is a .ps1 file, run PowerShell as Admin or follow the directions below.

Registry-Hardening

  • This script changes registry values to harden a Windows installation.
  • This is a .ps1 file, run PowerShell as Admin or follow the directions below.

Remove-Bloatware

  • Automatically removes Windows bloatware using levels listed on the Remove-Bloatware README
  • Optional one-by-one removal of bloatware for better customization

Windows-Update-Cache-Cleanup

  • Stops Windows services and deletes the Windows update cache to fix issues with Windows update
  • This is a .bat file, right click and run as administrator

Windows-Options

  • Widgets
    • Disables the widgets panel and removes it from the taskbar
  • Cortana
    • Uninstalls Cortana for all users or just the current user
  • Taskbar Alignment
    • Allows user to toggle taskbar alignment from Center to Left and back. (Windows 11)
  • Disable Auto Update
    • Allows user to disable Windows update from auto-updating.
  • Disable Bing in the start menu
    • Allows user to disable Bing results in the start menu.
  • Disable lock screen
    • Allows user to disable the lock screen (the screen that shows the time and a picture, sign in is still required.)
  • Enable verbose mode
    • Allows user to enable verbose mode (shows more detailed status of what the computer is doing when shutting down or starting up)
  • Enable last active tab
    • If you have grouped tabs on the task bar, when you click on the icon it shows the open window.
    • This tweak changes it so when you click on the grouped tabs it opens the last open tab instead of the window selector.
  • Disable shake to minimize
    • Disables shaking a window to minimize all others behind it.

Other:

Components:

  • A bunch of smaller functions and scripts used to make the other scripts, they may be helpful for scripts you write yourself

Screenshots:

  • Screenshots for README.md tutorials.

Running the .exe file

  • Right click the .exe file and click "Run as Administrator"
  • A CMD window should pop up, follow the on screen directions.

Running PowerShell Scripts

  • This is just one of many ways PowerShell scripts can be run as Admin. One of the least efficient but its easy for those unfamiliar with CLI.
  1. Search for "PowerShell" and click "Run ISE as Administrator"
    • PSInstructions1
  2. Allow Admin access for PowerShell ISE
    • PSInstructions2
  3. Run the command Set-ExecutionPolicy Unrestricted in the terminal below
    • PSInstructions3
  4. Click "Yes to All"
    • PSInstructions4
  5. Click the folder icon in the top left
    • PSInstructions5
  6. Navigate to the PowerShell script you are running and click "Open"
    • PSInstructions6
  7. Click the play button at the top to run the script
    • PSInstructions7
  8. Follow the directions that pop up in the terminal window on the bottom.
    • PSInstructions8
  9. Once you're done run the command Set-ExecutionPolicy RemoteSigned to disable running PowerShell scripts from the internet

Git Command

git clone https://github.com/trevorslong/Windows-Tools

  • Clones entire repository
  • add ~/FOLDER/SUBFOLDER after PROGRAM.m to clone to specific folder
    • Ex: git clone https://github.com/trevorslong/Windows-Tools ~/Windows-Tools
    • to clone repository to a folder in home named Windows-Tools

About

A collection of Windows scripts to help cleanup and secure your Windows 10 or 11 installation.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PowerShell 94.3%
  • Batchfile 5.7%