Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Run a program when a user logs in

  • 30-06-2004 2:42pm
    #1
    Registered Users, Registered Users 2 Posts: 653 ✭✭✭


    Hi all,
    Hope this is simple to solve! How do you get a program to run automatically when a user logs into a Win 2000 pro environment?

    Duke


Comments

  • Closed Accounts Posts: 16,339 ✭✭✭✭tman


    c:\documents and settings\username\start menu\programs\startup

    just throw a shortcut to the required program into that folder


  • Registered Users, Registered Users 2 Posts: 653 ✭✭✭DukeDredd


    Thank you tman.

    Duke


  • Registered Users, Registered Users 2 Posts: 954 ✭✭✭ChipZilla


    Or you could be l33t and stick it in the

    HKEY_USERS\XXXXXXX\Software\Microsoft\Windows\CurrentVersion\Run

    |

    (Or HKEY_CURRENT_USER\....... if the user is logged in at the time)


    section of the registry if it's something you don't want the user to screw with...


  • Closed Accounts Posts: 545 ✭✭✭ColmOT [MSFT]


    The more acceptable method to achieve this is to use Group Policy.

    Click Start->Run->gpedit.msc

    Go to User Configuration\Windows Settings\Scripts\Logon
    and point this to your logon script.


  • Registered Users, Registered Users 2 Posts: 1,967 ✭✭✭Dun


    Originally posted by tman
    c:\documents and settings\username\start menu\programs\startup

    just throw a shortcut to the required program into that folder

    And c:\documents and settings\All Users\start menu\programs\startup if you want the program to start up for everyone that logs in.


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 653 ✭✭✭DukeDredd


    The more acceptable method to achieve this is to use Group Policy.

    That'll apply it to every user though. I just need it for the one - nice simple solution to put it in the startup folder.

    Duke


  • Moderators, Recreation & Hobbies Moderators, Science, Health & Environment Moderators, Technology & Internet Moderators Posts: 93,583 Mod ✭✭✭✭Capt'n Midnight


    a) anyone know how to make XP PRO run the login script from an NT4 domain on the first login after a reboot ?
    (the workaround of a shortcut works for XP HOME so we could be saving a lot of wonga on M$ licenses on new PC's)

    b) is there any way in XP of delaying the login prompt untill all drivers have loaded ?

    c) can't remember the name of the utility in the resource kit that allows you to start a program as a service - ie. the program runs BEFORE any user logs in.


  • Registered Users, Registered Users 2 Posts: 13,016 ✭✭✭✭vibe666


    you need instsrv.exe and srvany.exe from the resource kit to install any application as a service so it can be run pre-logon on an NT based machine.

    i don't know if it can be used to delay the logon script but we use wait.exe to put a delay before our logon script runs. there may be a way (possibly with the use of instsrv maybe) to use it to delay the logon screen.

    just as a side note, while doing a little bit of research on this and other things i came across www.labmice.net a handy site for NT/2K/XP tips and tricks type stuff.


Advertisement