Skip to content
  • Home
  • About
  • No Access
  • Privacy Policy
Bits of .NET
Bits of .NET
  • Asp.Net Core
  • C#
  • SQL
  • JavaScript
  • CSS
  • About
  • ErcanOPAK.com
  • No Access
  • Privacy Policy

Bits of .NET

Daily micro-tips for C#, SQL, performance, and scalable backend engineering.

  • Asp.Net Core
  • C#
  • SQL
  • JavaScript
  • CSS
  • About
  • ErcanOPAK.com
  • No Access
  • Privacy Policy
Windows

Fix Windows 11 Slow Boot by Cleaning Up Startup Items (PowerShell Method)

- 01.02.26 | 01.02.26 - ErcanOPAK

Windows taking 2-3 minutes to reach the desktop? Your startup folder is probably cluttered with apps you don’t need launching immediately.

See What’s Slowing Your Boot:

# PowerShell command to list all startup programs with delay impact
Get-CimInstance -ClassName Win32_StartupCommand | 
    Select-Object Name, Command, Location, User | 
    Format-Table -AutoSize

This shows every program that auto-starts, including hidden ones not visible in Task Manager.

Disable the Worst Offenders:

# Disable specific startup items
$itemsToDisable = @(
    "OneDrive",
    "Teams",
    "Skype",
    "Adobe Creative Cloud",
    "Spotify",
    "Discord"
)

foreach ($item in $itemsToDisable) {
    Get-ScheduledTask -TaskName $item -ErrorAction SilentlyContinue | 
        Disable-ScheduledTask
}

Why This Works Better Than Task Manager:
Task Manager’s Startup tab only shows apps registered in certain registry keys. Many programs use:
• Scheduled Tasks (triggered at logon)
• Services (start before you even log in)
• Shell extensions (load with Explorer)

PowerShell catches ALL of these. Here’s proof:

# Find hidden startup tasks
Get-ScheduledTask | Where-Object {
    $_.Triggers.CimClass.CimClassName -eq "MSFT_TaskLogonTrigger"
} | Select TaskName, State | Format-Table

You’ll see dozens of tasks set to run at login that Task Manager never showed you.

Nuclear Option – Disable Everything Non-Essential:

# Keep only critical Windows components
Get-ScheduledTask | Where-Object {
    $_.TaskName -notlike "*Windows*" -and
    $_.TaskName -notlike "*Microsoft*" -and
    $_.State -eq "Ready"
} | Disable-ScheduledTask

Write-Host "Non-Windows startup tasks disabled. Re-enable what you need manually." -ForegroundColor Yellow

Measure the Impact:
Before disabling anything:

# Check last boot time
(Get-CimInstance -ClassName Win32_OperatingSystem).LastBootUpTime

# System uptime
(Get-Date) - (Get-CimInstance Win32_OperatingSystem).LastBootUpTime

Restart your PC, then run the same command. Typical results:
• Before: 90-120 seconds to desktop
• After: 25-35 seconds to desktop

Re-Enable What You Actually Need:

# Example: Re-enable OneDrive if you use it
Get-ScheduledTask -TaskName "OneDrive*" | Enable-ScheduledTask

Pro Tip – Delayed Start for Nice-to-Haves:
Some apps you want eventually, just not immediately at boot:

# Create a scheduled task that starts apps 2 minutes after login
$action = New-ScheduledTaskAction -Execute "C:\\Program Files\\Spotify\\Spotify.exe"
$trigger = New-ScheduledTaskTrigger -AtLogon
$trigger.Delay = "PT2M"  # 2 minute delay
Register-ScheduledTask -TaskName "Spotify-Delayed" -Action $action -Trigger $trigger

Windows boots fast, then Spotify launches when you’re already working.

Related posts:

Windows 11: Fix a Virtual Desktop Switch That Silently Resets Every Open Window Back to Its Default ...

Windows 11: Fix a Virtual Desktop Switch That Silently Resets Every Open Window Back to Its Default ...

Windows 11: Fix Clipboard History Silently Losing Every Pinned Item Because a Display Driver Crash R...

Windows 11: Fix Clipboard History Silently Losing Every Pinned Item Because a Display Driver Crash R...

Windows 11: Customize Taskbar for Productivity

Windows 11: Customize Taskbar for Productivity

Views: 54

Post navigation

Disable Windows 11 Bloatware and Telemetry with PowerShell (Takes 2 Minutes)
Create Smooth Page Transitions with CSS View Transitions API (No JavaScript)

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

November 2026
M T W T F S S
 1
2345678
9101112131415
16171819202122
23242526272829
30  
« Oct    

Most Viewed Posts

  • How to make theater mode the default for Youtube (1,055)
  • Get the User Name and Domain Name from an Email Address in SQL (980)
  • How to add default value for Entity Framework migrations for DateTime and Bool (976)
  • Get the First and Last Word from a String or Sentence in SQL (857)
  • How to select distinct rows in a datatable in C# (852)
  • How to enable, disable and check if Service Broker is enabled on a database in SQL Server (653)
  • Add Constraint to SQL Table to ensure email contains @ (607)
  • Average of all values in a column that are not zero in SQL (569)
  • How to use Map Mode for Vertical Scroll Mode in Visual Studio (546)
  • Find numbers with more than two decimal places in SQL (475)

Recent Posts

  • C#: Fix a ConditionalWeakTable Entry Vanishing Too Soon
  • Docker: Fix a Stale COPY Layer After Editing .dockerignore
  • Photoshop: Fix a Pattern Overlay Scaling Wrong on a High-DPI File
  • SQL Server: Fix a Computed Column Index Skipped by Implicit Cast
  • HTML5: Fix a required Input Inside a Hidden Tab Blocking Submit
  • SQL Server: Fix ROW_NUMBER Ties Reordering Between Identical Runs
  • C#: Fix an Enum HasFlag Returning True for the Zero Value
  • WordPress: Fix Featured Images Vanishing After a CDN Migration
  • Photoshop: Fix Content-Aware Fill Smearing a Repeating Pattern
  • Asp.Net Core: Fix Antiforgery Tokens Rejected Behind a Reverse Proxy

Most Viewed Posts

  • How to make theater mode the default for Youtube (1,055)
  • Get the User Name and Domain Name from an Email Address in SQL (980)
  • How to add default value for Entity Framework migrations for DateTime and Bool (976)
  • Get the First and Last Word from a String or Sentence in SQL (857)
  • How to select distinct rows in a datatable in C# (852)

Recent Posts

  • C#: Fix a ConditionalWeakTable Entry Vanishing Too Soon
  • Docker: Fix a Stale COPY Layer After Editing .dockerignore
  • Photoshop: Fix a Pattern Overlay Scaling Wrong on a High-DPI File
  • SQL Server: Fix a Computed Column Index Skipped by Implicit Cast
  • HTML5: Fix a required Input Inside a Hidden Tab Blocking Submit

Social

  • ErcanOPAK.com
  • GoodReads
  • LetterBoxD
  • Linkedin
  • The Blog
  • Twitter
© 2026 Bits of .NET | Built with Xblog Plus free WordPress theme by wpthemespace.com