MYHOSPITALNOW.COM

Find Trusted Doctors & Hospitals

Discover healthcare providers, compare hospitals, and explore treatment options worldwide.

Free Treatment Quotes • Doctor Search • Hospital Comparison

Find Healthcare Options

www.myhospitalnow.com

To check if your Windows machine has any scripts (or programs) running at boot/startup

To check if your Windows machine has any scripts (or programs) running at boot/startup, you need to look in several locations. Windows supports multiple mechanisms for startup scripts, both for user logins and for system boot. Hereโ€™s a complete, step-by-step guide to check all major places.


1. Task Manager โ€“ Startup Tab

  • Right-click the Taskbar โ†’ choose Task Manager (or press Ctrl + Shift + Esc).
  • Go to the Startup tab.
  • Here youโ€™ll see all enabled/disabled startup apps for your user account.
  • This wonโ€™t show Group Policy/system scripts, but itโ€™s a quick check for user-level startup items.

2. Startup Folders

  • User Startup folder:
    C:\Users\<YourUsername>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
  • All Users Startup folder:
    C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup
  • Any scripts (.bat, .cmd, .vbs, .ps1, shortcuts, etc.) here will run at user login.

3. Windows Registry โ€“ Run Keys

  • Press Win + R, type regedit, and open the Registry Editor.
  • Check these keys: User-specific: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnce System-wide: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce
  • Any entries here pointing to scripts or executables will run at user login or system startup.

4. Group Policy Startup Scripts

For corporate or domain-joined PCs (less common at home):

  • Press Win + R, type gpedit.msc, and open the Local Group Policy Editor.
  • Go to:
    Computer Configuration โ†’ Windows Settings โ†’ Scripts (Startup/Shutdown)
  • Check for entries under Startup (runs at boot for all users) and Shutdown.
  • Also check:
    User Configuration โ†’ Windows Settings โ†’ Scripts (Logon/Logoff)

Note: On Home editions, gpedit.msc may not be available, but you can still check the folders:

  • C:\Windows\System32\GroupPolicy\Machine\Scripts\Startup
  • C:\Windows\System32\GroupPolicy\User\Scripts\Logon

5. Task Scheduler

Many scripts and programs are set to run at boot/logon via Task Scheduler.

  • Open Task Scheduler (taskschd.msc).
  • In the left pane, expand Task Scheduler Library.
  • Look through:
    • Task Scheduler Library
    • Microsoft โ†’ Windows (and all subfolders)
  • Look for tasks with Triggers set to โ€œAt startupโ€ or โ€œAt log onโ€.
    The Actions tab will show the script or program that runs.

6. Services

Some scripts may be run as Windows Services.

  • Open Services (services.msc).
  • Look for any custom or suspicious services, especially with “Manual” or “Automatic” startup.
  • Check the Path to executable for each serviceโ€”sometimes it points to a script.

7. Autoruns (Sysinternals Tool โ€“ Advanced)

For a comprehensive view, use Microsoftโ€™s Autoruns tool (free, official):


Summary Table of Places to Check

LocationMethodScript Types Supported
Task Manager โ†’ Startup TabGUIExecutables, script shortcuts
Startup FoldersFile ExplorerShortcuts, .bat, .cmd, .vbs, .ps1
Registry Run/RunOnce KeysregeditAny file path
Group Policy Scriptsgpedit.msc.bat, .cmd, .ps1, etc.
Task Schedulertaskschd.mscAny script or program
Servicesservices.mscExecutables, some scripts
Autoruns (Sysinternals)Autoruns.exeAll

Tips

  • If you find an unknown or suspicious script, search its name/path online to verify its legitimacy.
  • Always be careful before disabling/deleting startup entries, especially on work machines.

Hereโ€™s a PowerShell script that will enumerate the most common startup locations and list out any startup itemsโ€”including scripts (.bat, .cmd, .ps1, .vbs), executables, and shortcuts.
This script checks:

  • Startup folders (user and all users)
  • Registry Run/RunOnce keys (user and system)
  • Scheduled Tasks with โ€œAt startupโ€ or โ€œAt logonโ€ triggers

PowerShell Script: List All Windows Startup Items

Write-Host "====== WINDOWS STARTUP ITEMS ======" -ForegroundColor Cyan

# 1. Startup Folders
$startupFolders = @(
    "$env:APPDATA\Microsoft\Windows\Start Menu\Programs\Startup",
    "$env:PROGRAMDATA\Microsoft\Windows\Start Menu\Programs\Startup"
)

Write-Host "`n-- Startup Folders --" -ForegroundColor Yellow
foreach ($folder in $startupFolders) {
    if (Test-Path $folder) {
        Get-ChildItem -Path $folder -File | ForEach-Object {
            Write-Host "$($folder)\$($_.Name)"
        }
    }
}

# 2. Registry Run/RunOnce Keys
$runKeys = @(
    "HKCU:\Software\Microsoft\Windows\CurrentVersion\Run",
    "HKCU:\Software\Microsoft\Windows\CurrentVersion\RunOnce",
    "HKLM:\Software\Microsoft\Windows\CurrentVersion\Run",
    "HKLM:\Software\Microsoft\Windows\CurrentVersion\RunOnce"
)

Write-Host "`n-- Registry Run/RunOnce Keys --" -ForegroundColor Yellow
foreach ($key in $runKeys) {
    if (Test-Path $key) {
        Get-ItemProperty -Path $key | ForEach-Object {
            $_.PSObject.Properties | Where-Object { $_.Name -ne "PSPath" -and $_.Name -ne "PSParentPath" -and $_.Name -ne "PSChildName" -and $_.Name -ne "PSDrive" -and $_.Name -ne "PSProvider" } | ForEach-Object {
                Write-Host "$key -> $($_.Name): $($_.Value)"
            }
        }
    }
}

# 3. Scheduled Tasks: At startup / At logon
Write-Host "`n-- Scheduled Tasks (At startup/logon) --" -ForegroundColor Yellow
$tasks = Get-ScheduledTask | Where-Object {
    $_.Triggers | Where-Object { $_.TriggerType -eq 'AtStartup' -or $_.TriggerType -eq 'AtLogon' }
}
foreach ($task in $tasks) {
    foreach ($action in $task.Actions) {
        Write-Host "Task: $($task.TaskName) -> $($action.Execute) $($action.Arguments)"
    }
}

Write-Host "`n====== END OF LIST ======" -ForegroundColor Cyan
Code language: PHP (php)

How to Run

  1. Open PowerShell as Administrator (for full results).
  2. Copy and paste the above script into the console (or save as List-StartupItems.ps1 and run it).
  3. Review the outputโ€”it will print all startup scripts and programs.

What Does This Script Cover?

  • Items in Startup folders (user & all users)
  • Entries in Registry Run/RunOnce keys (user & system)
  • Scheduled Tasks with triggers set to At startup or At logon

Extra: To Export to File

If you want to save the output:

.\List-StartupItems.ps1 | Out-File "startup-items.txt"
Code language: PHP (php)

Want to Check for Group Policy/Service scripts as well?

Let me know! I can expand the script for advanced/enterprise scenarios.


Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services โ€” all in one place.

Explore Hospitals
I'm Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms. I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.

Related Posts

Datadog Tutorials: How to Monitor Apache using Datadog in Windows

To monitor Apache on Windows with Datadog, you expose Apache's mod_status page on localhost, then point the Datadog Agent's built-in Apache check at http://localhost/server-status?auto. The steps above…

Read More

How to install Kapitan in Windows using wsl?

Kapitan is a Python-based configuration management tool, and on Windows it runs best inside the Windows Subsystem for Linux (WSL). This guide fills in the commands the…

Read More

Windows Troubleshooting: Administrator Guide

To find which ports are in use on Windows, use netstat -ano in Command Prompt, Get-NetTCPConnection and Get-NetUDPEndpoint in PowerShell, or the graphical tools Resource Monitor and…

Read More

Openshift: How to update openshift with authentication of registry.redhat.io

An OpenShift cluster can only pull images from registry.redhat.io when its global pull secret, pull-secret in the openshift-config namespace, holds valid Red Hat credentials. The screenshots above…

Read More

Kubernetes: Pull an Image from a Private Registry using Yaml and Helm File

Kubernetes pulls images from a private registry using a kubernetes.io/dockerconfigjson Secret. A Pod references that Secret through imagePullSecrets, either directly or through its ServiceAccount. This page shows…

Read More

How to Install and Configure pre-commit on macOS, Windows, and Linux: Complete Step-by-Step Guide

SEO Title: How to Install and Configure pre-commit on Mac, Windows & Linux (2026) Meta Description: Learn how to install and configure pre-commit Git hooks on macOS,…

Read More
Subscribe
Notify of
guest
1 Comment
Newest
Oldest Most Voted
Jason Mitchell
Jason Mitchell
8 months ago

Very useful guide! The step-by-step explanation on how to check scripts or programs running at Windows startup is clear and practical. Itโ€™s a helpful reference for anyone who wants to troubleshoot or monitor startup processes on their system.

1
0
Would love your thoughts, please comment.x
()
x