[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 271
  • Last Modified:

Run a program on boot before logon


I am trying to setup a .bat file to run each time Windows runs but before someone logs in. Is that possible? I tried to add it to the registry but you have to login in order for the program to execute.

Thank you very much!
2 Solutions
Batuhan CetinCommented:
Yes, add the bat file as a startup script with group policy editor
Depends mainly on what that program does. Is it just about executing it, and the program then ends, or will the program continue to run?
You can use a local or group policy to define a startup(!) script in Computer Configuration\Windows Settings.
Another possibility is to use scheduled task to run it at system startup (only available once the wizard finishes and you open the properties of the task).
infodiggerAuthor Commented:
Thank you!

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now