LaurentFough/Win11-Service-Optimizer

Professional Windows Service Management Tool - Safely disable unnecessary background services in Windows 11. Features intelligent service detection, safety checks, and comprehensive reporting for optimal system performance.

โ˜… 0Forks 0BatchfileGitHub โ†—Compare

Project website โ†—

README

๐Ÿงน Windows 11 Service Optimizer

License: MIT PowerShell Platform GitHub Repo

๐Ÿ”ฅ Professional Windows Service Management Tool - Safely disable unnecessary background services in Windows 11. Features intelligent service detection, safety checks, and comprehensive reporting for optimal system performance.

๐Ÿ“ฅ Download โ€ข ๐Ÿ“– Usage Guide โ€ข โญ Features โ€ข ๐Ÿ› Report Issues


๐Ÿ” SEO Keywords

windows optimizer, service optimizer, windows 11 optimization, disable services, performance optimization, privacy enhancement, startup optimization, background services, telemetry removal, system tuning

โœจ Key Features & Benefits

๐Ÿš€ Intelligent Service Management

  • Smart service detection - Automatically identifies and targets only unnecessary services
  • Safety-first approach - Preserves all critical system services and functionality
  • Comprehensive coverage - Disables telemetry, background apps, and resource-heavy services

๐Ÿ”ง Advanced Optimization Features

  • Privacy protection - Removes Microsoft telemetry and data collection services
  • Performance boost - Disables resource-intensive background services
  • Startup acceleration - Reduces system boot time by disabling unnecessary auto-start services

๐ŸŽจ Enhanced User Experience

  • Rich formatted output - Beautiful CLI interface with colors and progress indicators
  • Detailed reporting - Shows exactly which services were disabled and their impact
  • Error handling - Gracefully handles missing services without breaking execution

๐Ÿ“ฆ Easy Deployment & Usage

  • Single-script solution - No installation required, just run and optimize
  • Administrator-friendly - Includes execution policy bypass for easy deployment
  • Reversible changes - All modifications can be easily undone if needed

๐Ÿ“‹ Prerequisites

  • Windows 10/11 operating system
  • PowerShell 5.1 or higher
  • Administrator privileges for full functionality

๐Ÿš€ Quick Start

๐ŸŽฏ ONE-CLICK OPTIMIZATION (Recommended)

๐Ÿ–ฑ๏ธ Double-click the desktop shortcut after setup!

Automated Setup (First Time Only)

  1. Right-click win11-service-optimizer-setup.bat and select "Run as Administrator"
  2. Follow the setup wizard - it configures everything automatically
  3. Desktop shortcut is created for future use

Daily Usage

  1. Double-click "Windows 11 Optimizer" on your desktop
  2. Watch the colorful optimization process
  3. Restart your computer when prompted

๐Ÿ› ๏ธ Manual Methods (Advanced Users)

Method 1: One-Click Launcher

# Right-click and "Run as Administrator"
win11-service-optimize-now.bat

Method 2: PowerShell (Traditional)

# Run PowerShell as Administrator
Set-ExecutionPolicy Bypass -Scope Process -Force
.\win11-service-disable.ps1

Method 3: Direct Execution

# Navigate to project folder and run:
PowerShell -ExecutionPolicy Bypass -File "win11-service-disable.ps1"

โœ… Verification

After running the script, verify the changes:

Get-Service | Where-Object {$_.StartType -eq "Disabled"}

๐Ÿ’ป Detailed Usage

Script Execution Options

Standard Optimization (Recommended):

.\win11-service-disable.ps1

With Custom Execution Policy:

Set-ExecutionPolicy Bypass -Scope Process -Force
.\win11-service-disable.ps1

What Gets Optimized

The script intelligently disables the following service categories:

๐Ÿ”’ Privacy & Telemetry Services

  • Connected User Experiences and Telemetry
  • Diagnostic Tracking
  • Windows Error Reporting
  • Customer Experience Improvement Program tasks

โšก Performance Services

  • Windows Search (SearchIndexer)
  • Superfetch/SysMain
  • Background Intelligent Transfer Service (BITS)
  • Windows Update Medic Service

๐ŸŽฎ Gaming & Entertainment Services

  • Xbox Live Auth Manager
  • Xbox Game Save Service
  • Xbox Accessory Management Service

๐ŸŒ Network & Communication Services

  • Remote Desktop Services
  • Bluetooth Support Service
  • Windows Connect Now

๐Ÿ“ฑ Device & Sensor Services

  • Windows Biometric Service
  • Sensor Monitoring Service
  • Geolocation Service

Safety Features

โœ… Critical System Services Preserved:

  • Windows Defender/Antivirus services
  • Core Windows authentication
  • Network connectivity services
  • Hardware driver services
  • System security services

๐Ÿ› ๏ธ Manual Service Management

Check Service Status

# View all disabled services
Get-Service | Where-Object {$_.StartType -eq "Disabled"}

# Check specific service status
Get-Service "DiagTrack"

Re-enable Services (if needed)

# Re-enable a specific service
Set-Service "ServiceName" -StartupType Automatic
Start-Service "ServiceName"

# Example: Re-enable telemetry (not recommended)
Set-Service "DiagTrack" -StartupType Automatic
Start-Service "DiagTrack"

Force Stop Services

# Stop a running service
Stop-Service "ServiceName" -Force

# Stop multiple services
$services = @("Service1", "Service2", "Service3")
foreach ($service in $services) {
    Stop-Service $service -Force -ErrorAction SilentlyContinue
}

๐Ÿ“Š Expected Results

Performance Improvements

  • Faster boot times - Reduced startup service load
  • Lower memory usage - Disabled background services free up RAM
  • Improved responsiveness - Less CPU usage from unnecessary services
  • Better battery life - Reduced background activity on laptops

Privacy Benefits

  • Reduced data collection - Microsoft telemetry services disabled
  • Fewer background connections - Less network activity to Microsoft servers
  • Enhanced privacy control - More control over what Windows collects

๐Ÿ”ง Troubleshooting

Common Issues

"Execution Policy" Error:

Set-ExecutionPolicy Bypass -Scope Process -Force

"Access Denied" Error:

  • Ensure PowerShell is running as Administrator
  • Right-click PowerShell โ†’ "Run as Administrator"

Service Not Found:

  • Some services may not exist on all Windows installations
  • The script handles missing services gracefully

No Visible Changes:

  • Restart the computer for all changes to take effect
  • Some services only activate during specific conditions

Rollback Procedures

Complete Rollback:

# Create rollback script
$services = @("DiagTrack", "dmwappushservice", "SysMain", "WSearch")
foreach ($service in $services) {
    Set-Service $service -StartupType Automatic -ErrorAction SilentlyContinue
    Start-Service $service -ErrorAction SilentlyContinue
}

Selective Rollback:

# Re-enable specific services only
Set-Service "DiagTrack" -StartupType Automatic
Start-Service "DiagTrack"

๐Ÿ“ Project Structure

windows11-service-optimizer/
โ”œโ”€โ”€ ๐Ÿ“‹ README.md                          # This comprehensive documentation
โ”œโ”€โ”€ ๐Ÿ“„ LICENSE                            # MIT license file
โ”œโ”€โ”€ ๐Ÿ”’ SECURITY.md                        # Security policy & vulnerability reporting
โ”œโ”€โ”€ ๐Ÿ‘ฅ CODE_OF_CONDUCT.md                 # Community guidelines
โ”œโ”€โ”€ ๐Ÿค CONTRIBUTING.md                    # Contribution guidelines
โ”œโ”€โ”€ ๐Ÿ“œ win11-service-disable.ps1          # Main optimization script (colorful!)
โ”œโ”€โ”€ ๐Ÿš€ win11-service-optimize-now.bat     # One-click launcher
โ”œโ”€โ”€ โš™๏ธ win11-service-optimizer-setup.bat  # Automated setup script
โ”œโ”€โ”€ ๐Ÿ“‹ win11-service-quick-start.bat      # Quick start guide
โ””โ”€โ”€ ๐Ÿ“œ win11-service-undo-last-run.ps1    # Undo Last (#'d) Run of Service Disable Script

๐ŸŽฏ One-Click Ready Features

๐Ÿ–ฑ๏ธ Desktop Shortcut Creation

  • win11-service-optimizer-setup.bat creates a desktop shortcut automatically
  • Double-click optimization after initial setup

๐Ÿš€ Automated Launchers

  • win11-service-optimize-now.bat - Checks admin privileges and runs optimization
  • win11-service-quick-start.bat - Interactive guide showing all usage methods

โš™๏ธ Smart Setup

  • win11-service-optimizer-setup.bat configures PowerShell execution policy
  • Creates desktop shortcuts and tests functionality
  • Provides clear setup completion feedback

๐Ÿงช Testing & Validation

Before Optimization

# Check current service status
Get-Service | Where-Object {$_.Status -eq "Running"} | Measure-Object

# Check startup impact
Get-Service | Where-Object {$_.StartType -eq "Automatic"} | Measure-Object

After Optimization

# Verify disabled services
Get-Service | Where-Object {$_.StartType -eq "Disabled"} | Select-Object DisplayName

# Check system performance
Get-Process | Where-Object {$_.CPU -gt 0} | Sort-Object CPU -Descending | Select-Object -First 10

๐Ÿ”ง Advanced Configuration

Custom Service List

You can modify the script to include/exclude specific services:

# Edit the $services array in win11-service-disable.ps1
$services = @(
    "DiagTrack",        # Connected User Experiences and Telemetry
    "dmwappushservice", # Device Management Wireless Application Protocol
    "SysMain",          # Superfetch/SysMain
    "WSearch"           # Windows Search
    # Add or remove services as needed
)

Scheduled Task Management

The script also disables telemetry-related scheduled tasks:

# View telemetry tasks before running script
Get-ScheduledTask | Where-Object {$_.TaskName -match "Telemetry|CEIP|Customer"}

# After running script, verify tasks are disabled
Get-ScheduledTask | Where-Object {$_.TaskName -match "Telemetry|CEIP|Customer"} | Select-Object TaskName, State

๐Ÿ“ Version History

  • v1.0.0 - Initial release with comprehensive service optimization
  • v1.1.0 - Added scheduled task management and improved error handling
  • v1.2.0 - Enhanced safety checks and detailed reporting

๐Ÿ“„ License

MIT License - see LICENSE file for details.

๐Ÿค Author

Rezaul Karim Email: [email protected] Powered By: REZ LAB


โญ If you find this tool helpful, please consider giving it a star on GitHub!

Contributors

LaurentFoughrezaworks

Issues