[win7] How to get a program running automatically at login screen?


Recommended Posts

I want to get a couple of programs to load before or during the Windows 7 login screen (where you type a password).

One being an XBOX 360 Controller driver called JoyTokey and the other being the Windows OSK (on screen keyboard).

Is there a way to do this?

needed to know that myself but still hasn't got able to do it...

but you can make windows auto log in on startup and then lock after you logged in which would do the same ;)

I want to get a couple of programs to load before or during the Windows 7 login screen (where you type a password).

One way is group policy; computer configuration lets you set startup and shutdown scripts, and user config lets you set it for logon (which executes after you log on) and logoff.

Could always just make a service out of the thing and have it autostart too. Whatever works.

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run

He's looking to run something before a user logs in. HKCU/Run and HKLM/Run execute afterwards, HKLM's difference being that it applies to everybody, not just one account.

I think you can do this with Task Manager Task Scheduler (sorry :p). Under the triggers section, there is stuff like "run at startup" and "run at logon". It can also run an app with administrative privileges without invoking the UAC prompt.

you can btw edit some registery part which adds a keyboard button to the login screen* ;)

*it's shown by default on touchscreen devices

This happens system-wide when Windows detects a touch input device (be it a touchscreen, touchpad or a graphic tablet), if Tablet PC Components are enabled. Either way, IIRC you can access the on-screen keyboard by clicking the ease of access button somewhere in the corner.

I had no luck with the group policy method or scheduled task method - just doesn't seem to run the programs at all for some reason. The automatically log in and lock the computer method suggested is not attractive to me either.

EDIT: just did a little test and JoyToKey doesn't work when the computer is locked, so I guess it won't work during log on either.

I had no luck with the group policy method or scheduled task method - just doesn't seem to run the programs at all for some reason.

Permissions issue perhaps? Depending on your setup of course. Anything in your event log? Also keep in mind (if I remember right) that these scripts run under Local System, so it might not interact with your local session. The programs I typically do this with run on their own with zero interaction (server daemon sorts of things, various run-and-done things, etc), never tried it with something interactive.

I use Auto Logon & Lock it is a freeware program, and as long as you have items loading at windows start-up/logon then they will load, but the system will still be secure.

I guess Windows stopped you from running programs at login screen for security reasons.. keyloggers etc..

I can guarantee you it does let you launch software, if configured properly. I have multiple machines Win7 based (Some desktop, some 2008R2) that run startup tasks before you even log in via group policy.. some resident, some are simple once-and-done, but all execute and do their thing. None of them interact with the desktop in any way though, not even a console window.. not something I've ever needed so never tried something interactive, so this might be the wrong way to go. Not sure if a "run as a service" scenario under a user's credentials would get around it, again never had the need to bother looking it up.

  • 1 month later...

Um, can't you just copy a shortcut of the program(s) into the Startup folder?? (Start > All Programs > Startup)

shortcuts in there are run after the user logs in, i need this one to run before login. sorry if my original post didn't make that clear enough

How do I install a program as a service?

start > run > type: cmd

then type: sc create <path to app>

type: sc (with no parameters) to see other information about creating services.

cant remember if services run before logon, i imagine they do, because teamviewer does, on my machine at least.

I use Auto Logon & Lock it is a freeware program, and as long as you have items loading at windows start-up/logon then they will load, but the system will still be secure.

That application does not run at the logon screen. It runs after a user has been logged on.

As the user above me suggested, use Group Policy Editor to define startup scripts.

OK, the startup script doesn't run. NOTE: I am not on a domain, I am using the welcome screen with just one user and a password box underneath. The program I am trying to run is called xpadder (no longer using the JoyToKey app as stated earlier in this thread). XPadder allows me to control Windows mouse with XBOX 360 gamepad. At the moment I have to go over to my keyboard and mouse to login (when gaming I am not usually at the computer I am some distance away). If there was a way of getting Xpadder to function at login screen I could easily login by navigating to ease of access and typing password in with on screen keyboard.

you are applying it in the local group policy, correct? or are you putting it in the startup folder? These two are not one and the same.

start, run/search (depending on version of windows)

gpedit.msc

computer config\windows settings\scripts\startup

insert batchfile to run what you want (you will need to make a batchfile)

Scripts (Startup/Shutdown): Use this extension to specify the scripts that run when you start and shut down the computer. To configure the computer startup and shutdown scripts, start the Group Policy snap-in, expand Computer Configuration, expand Windows Settings, click Scripts (Startup/Shutdown), and then in the right pane, double-click the script that you want to configure. These scripts run on the Local System account.

You will need to reboot to take effect.

Yes that is exactly what I did. I created a VBS script to run the program:

Sub Run(ByVal sFile,sPar)

	Dim shell

	Set shell = CreateObject("WScript.Shell")
	shell.Run Chr(34) &amp; sFile &amp; Chr(34) &amp; " " &amp; sPar, 1, false
	Set shell = Nothing

End Sub

Run "C:\Program Files (x86)\XPadder\Xpadder.exe","/m"

When I execute this script from within Windows it runs ok. But when I have it configured as a startup script in gpedit it is doing nothing.

check your event logs.

someone also mentioned making it a service via the sc command

http://support.microsoft.com/kb/251192

there are utilities for that as well (none 100% free to my knowledge)

http://www.exetoservice.com/

You can also follow these instructions and make a similar service entry yourself like the hamachi example here

http://www.itsatechworld.com/2006/01/17/hamachi-vpn-solution/

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Save up to 87% on ChatPlayground AI lifetime subscriptions by Steven Parker Today's highlighted deal comes via our Apps + Software section of the Neowin Deals store, where for only a limited time, you can save up to 87% on ChatPlayground AI: lifetime subscriptions. ChatPlayground AI puts the world’s top AI models in one powerful interface, letting you enter a single prompt and instantly compare outputs from multiple models to choose the perfect response for your needs. Boost productivity and creativity with access to the latest AI giants like GPT-4o, Claude Sonnet 4, Gemini 1.5 Flash, DeepSeek V3, and dozens more — all in one window. Whether you’re chatting, coding, generating images, or refining prompts, ChatPlayground AI equips you with advanced tools like prompt engineering, image/PDF chat, saved conversations, and AI image creation, plus priority support to keep your workflow seamless. Access the world’s best AI models Side-by-Side Comparisons: Enter one prompt & instantly view results from multiple AI models to find the best output for your needs 40+ AI Models: Includes GPT-4o, Claude Sonnet 4, Gemini 1.5 Flash, DeepSeek V3, Llama, Perplexity, and many more Multi-Function Platform: Access AI for chat, image generation & coding all within a single interface Web Browser Extension: Offers a Chrome extension to seamlessly integrate the platform into your browsing workflow Boost productivity with powerful features ChatPlayground Interface: Designed for seamless AI model comparison in one window Prompt Engineering: Refine & optimize your prompts for better, more accurate responses Chat with Images & PDFs: Upload visuals and documents to get context-aware answers Saved Chat History: Keep track of past conversations for reference & ongoing projects AI Image Generation: Create high-quality visuals powered by top AI image models Priority Customer Support: Get faster assistance whenever you need it What you'll get with the Unlimited Plan Includes unlimited messages/month Built for prompt engineers, startups, and teams who run experiments nonstop Includes priority access to new features and future models Good to know Length of access: lifetime Redemption deadline: redeem your code within 30 days of purchase Access options: Desktop Max number of device(s): Unlimited Available to both NEW & Existing users Updates included A lifetime subscription to ChatPlayground AI (Unlimited Plan) normally costs $619, but you can pick it up for just $79 for a limited time - that represents a saving of $530 (87% off). Click the link below for more details, always check terms and specifications before making a purchase. Get this ChatPlayground AI (Unlimited) for $79 (was $619) There are also two other discounted plans to choose from. Although priced in U.S. dollars, this deal is available for digital purchase worldwide. Support queries If you have queries or need support for any of the Neowin Deals, please use the contact form here. Neowin Deals are managed and sold by StackCommerce who represent Neowin on an affiliate basis. Why we post these deals We post these because we earn commission on each sale so as not to rely solely on advertising, which many of our readers block. It all helps toward paying staff reporters, servers and hosting costs. So for those that keep moaning and complaining, be thankful we're still online for you to even do that. Other ways to support Neowin Whitelist Neowin by not blocking our ads Create a free member account to see fewer ads Make a donation to support our day to day running costs Subscribe to Neowin - for $14 a year, or $28 a year for an ad-free experience Disclosure: Neowin benefits from revenue of each sale made through our branded deals site powered by StackCommerce.
    • I like Tidal, but it still does not control devices from the mobile/app and still no surround support. And yeah re: above comment I still get a lot of network errors and I am on a 4/4 Gbit Fiber connection.
    • Aren`t "security features" and "AI model that can see your screen" a tad diametric!
    • Samsung, Amazon extend 990 PRO 2TB NVMe SSD deal beyond Prime Day 2026 by Sayan Sen Recently, we had Amazon's Prime Day 2026 sales wherein there were several great deals including on SSDs. One of those discounted components was the Samsung 990 PRO SSD as the 2TB variant of it was selling for $370, a very good price after a long time. Although that deal was supposed to expire today, Amazon has now extended that sale further (purchase link under the specs table down below). The 990 PRO is a PCIe Gen4 NVMe SSD and still one of the fastest drives available today for under $400. Speaking of fast, sequential reads and writes are rated at 7450 MB/s and 6900 MB/s, respectively. The random throughputs for reads and writes are 1400K IOPS and 1550K IOPS, respectively. The 990 PRO is based on Samsung's 7th Gen V-NAND flash, and it too is TLC. It packs 2 gigs of LPDDR4 DRAM cache, which helps the random performance. The endurance rating for this is 1200 TBW (terabytes written), which should be sufficient for most users. The Samsung 990 PRO is compatible with the PlayStation 5, but if you are going to use the 990 PRO on a PC, check out the Samsung Magician app that lets you track your drive's health, update its firmware, customize various settings, and more. The technical specs of the Samsung 990 PRO 2TB are given in the table below: Specification Value Form Factor M.2 2280 Interface PCIe Gen 4.0 x4, NVMe 2.0 NAND Flash Samsung V-NAND TLC Controller Samsung In-house Controller Cache Memory Samsung 2GB Low Power DDR4 SDRAM Sequential Read Speed Up to 7,450 MB/s Sequential Write Speed Up to 6,900 MB/s Random Read (4KB, QD32) Up to 1,400,000 IOPS Random Write (4KB, QD32) Up to 1,550,000 IOPS Random Read (4KB, QD1) Up to 22,000 IOPS Random Write (4KB, QD1) Up to 80,000 IOPS Operating Temperature 0°C to 70°C Reliability (MTBF) 1.5 Million Hours Endurance 1,200 TBW (Total Bytes Written) Get it at the link below: Samsung 990 PRO SSD 2TB NVMe SSD (MZ-V9P2T0B/AM): $369.99 (Sold and Shipped by Amazon US) Good to know This Amazon deal is U.S. specific, and not available in other regions unless specified. We only use first-party seller links (at the time of article publishing); ensure that you purchase from a first-party seller link only. Check out Today's Deals on Amazon | or our recent tech deals. Become a Prime member (for Students or SNAP) via Neowin Get Prime Access - Prime for half price (for qualifying Medicaid, EBT, SNAP) Subscribe to Prime Video, Audible Plus, Music Unlimited or Kindle Unlimited via Neowin As an Amazon Associate, we earn from qualifying purchases
  • Recent Achievements

    • Reacting Well
      NovaEdgeX earned a badge
      Reacting Well
    • Week One Done
      NovaEdgeX earned a badge
      Week One Done
    • One Year In
      BA the Curmudgeon earned a badge
      One Year In
    • Conversation Starter
      rosiecharles earned a badge
      Conversation Starter
    • First Post
      KMilenkoski1202 earned a badge
      First Post
  • Popular Contributors

    1. 1
      +primortal
      543
    2. 2
      +Edouard
      271
    3. 3
      PsYcHoKiLLa
      153
    4. 4
      Steven P.
      99
    5. 5
      macoman
      66
  • Tell a friend

    Love Neowin? Tell a friend!