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

How to Assign Computer Startup Scripts with Group Policy (Local and Domain GPO)

Computer startup scripts let administrators run tasks automatically when Windows boots, before users begin normal work. This guide is for IT and DevOps teams managing Windows endpoints and explains how to assign startup scripts in both local and domain Group Policy, with verification steps you can use immediately.

Originally published on 2013-09-25; fully revised and updated.

This article expands the original note at devopsschool.com.

Group Policy startup scripts configuration

Choose the right Group Policy scope first

You can assign startup scripts either in Local Group Policy (single machine) or in a Domain Group Policy Object (GPO) (many machines). The configuration area is conceptually the same: Computer Configuration > Windows Settings > Scripts (Startup/Shutdown).

ScopeConsole pathLaunch commandBest for
Local Group PolicyLocal Computer Policy > Computer Configuration > Windows Settings > Scripts (Startup/Shutdown)gpedit.mscOne machine, testing, break-fix changes
Domain GPOGPO > Computer Configuration > Windows Settings > Scripts (Startup/Shutdown)gpmc.mscCentralized rollout to many domain-joined computers

Assign a computer startup script step by step

  1. Open the Group Policy editor for your target scope.
  2. In the console tree, go to Scripts (Startup/Shutdown) under Computer Configuration > Windows Settings.
  3. In the details pane, open Startup.
  4. In Startup Properties, click Add.
  5. In Add a Script, set Script Name (path to the script, or browse for it) and optional Script Parameters.
  6. Use Up and Down to control execution order when multiple scripts are assigned, then click OK.
gpedit.msc
gpmc.mscCode language: CSS (css)

From the original procedure: you can browse for scripts in the domain controller Netlogon share, and pass parameters exactly as you would on the command line (example: //logo //I).

Startup Properties optionWhat it does
AddAssigns another startup script to the GPO
EditUpdates selected script name or parameters
RemoveUnassigns selected script
Show FilesOpens the storage location for scripts tied to the selected GPO
Up / DownChanges execution order for multiple startup scripts

Workflow from assignment to execution

flowchart TD
    A[Open policy editor] --> B[Go to Scripts Startup Shutdown]
    B --> C[Open Startup Properties]
    C --> D[Add script path and parameters]
    D --> E[Set script order]
    E --> F[Apply policy]
    F --> G[Restart computer]
    G --> H{Script ran as expected}
    H -- no --> I[Check script path and permissions]
    H -- yes --> J[Keep policy documented]

Example startup script and validation commands

A simple startup script can write a timestamp so you can confirm it executed at boot.

@echo off
echo Startup script ran on %COMPUTERNAME% at %DATE% %TIME% >> C:\Windows\Temp\startup-script.logCode language: CSS (css)

After assigning the script, force policy refresh and reboot for a quick test cycle.

gpupdate /force
shutdown /r /t 0

Common pitfalls and best practices

  • Use clear naming for scripts and keep parameter usage documented in the GPO description.
  • When multiple scripts are assigned, verify execution order with Up/Down before rollout.
  • Keep script paths stable and accessible from target computers.
  • Test on a small OU or pilot system before broad deployment.
  • After changes, always validate with a policy refresh and reboot test.

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

Windows Administrator: Role Blueprint, Responsibilities, Skills, KPIs, and Career Path

The Windows Administrator is a hands-on infrastructure practitioner responsible for the availability, security, and lifecycle management of Windows-based enterprise services—typically including Active Directory, Group Policy, Windows Server platforms, endpoint and server patching, identity integrations, and core on-prem/hybrid operational controls. This role ensures that Windows systems are hardened, patched, monitored, recoverable, and operated to agreed service levels, while enabling employee productivity and application hosting needs.

Read More

Senior Windows Administrator: Role Blueprint, Responsibilities, Skills, KPIs, and Career Path

The Senior Windows Administrator is accountable for the reliability, security, and operational excellence of the organization’s Windows-based infrastructure, including core identity services, server platforms, endpoint management integrations, and Windows-adjacent enterprise services. This role ensures that Windows environments are standardized, patched, monitored, recoverable, and compliant—while progressively automating operations to reduce toil and improve service quality.

Read More

Principal Windows Administrator: Role Blueprint, Responsibilities, Skills, KPIs, and Career Path

The Principal Windows Administrator is the senior-most individual contributor responsible for the reliability, security, and operability of the enterprise Windows ecosystem—spanning Windows Server, Active Directory/identity services, endpoint management, patching, and core Microsoft infrastructure services. This role sets technical direction and standards, designs and improves operating practices, and resolves the most complex incidents and systemic issues affecting Windows platforms.

Read More

Lead Windows Administrator: Role Blueprint, Responsibilities, Skills, KPIs, and Career Path

The Lead Windows Administrator is the senior hands-on owner of Windows-based enterprise infrastructure, responsible for the reliability, security, and operational excellence of core Microsoft platforms (e.g., Windows Server, Active Directory, identity integrations, patching, endpoint/device management, and automation). This role exists in software companies and IT organizations because Windows and Microsoft identity services remain foundational for workforce access, enterprise applications, and hybrid infrastructure—even as application workloads move to cloud-native platforms.

Read More

Junior Windows Administrator: Role Blueprint, Responsibilities, Skills, KPIs, and Career Path

The Junior Windows Administrator supports the stability, security, and day-to-day operation of Windows-based infrastructure across an enterprise IT environment. The role focuses on executing standard operational tasks (user and server administration, patching, monitoring, and ticket resolution) under established processes, with increasing ownership of routine changes and small improvements over time.

Read More

Top 10 Group Policy Management Tools in 2026: Features, Pros, Cons & Comparison

Introduction Group Policy Management (GPM) is an integral part of Windows-based network environments, providing administrators with the ability to control user permissions, system configurations, and security settings…

Read More
Subscribe
Notify of
guest
1 Comment
Newest
Oldest Most Voted
Puja kushwaha
Puja kushwaha
30 days ago

Computer startup scripts can help keep system settings consistent across multiple machines. Before assigning a script widely, test it on a small group of computers and confirm it runs with the right permissions. Add logging so administrators can see whether each step succeeds or fails. It is also important to make scripts safe to run more than once. These checks help prevent startup delays and make troubleshooting easier.

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