Logon On Scripts???
Results 1 to 6 of 6

Thread: Logon On Scripts???

  1. #1
    Junior Member
    Join Date
    Apr 2005
    Posts
    4

    Question Logon On Scripts???

    Hi

    Can anybody tell me how to write scripts to run a program or file when we log on to windows(XP).

    Thanks

  2. #2
    Word of warning, read the FAQ more thouroughly before you start threads. A thread already exists on this issue:

    http://www.antionline.com/showthread...hreadid=259117

    But for future reference if you want to create logon scripts you should look at Microsoft's script center:

    http://www.microsoft.com/technet/scr...r/default.mspx


    Also remember that Google is thy friend:

    http://www.google.com/search?sourcei...ogin+script+XP
    And so at last the beast fell and the unbelievers rejoiced. But all was not lost, for from the ash rose a great bird. The bird gazed down upon the unbelievers and cast fire and thunder upon them. For the beast had been reborn with its strength renewed, and the followers of Mammon cowered in horror. -from The Book of Mozilla, 7:15

  3. #3
    Senior Member
    Join Date
    Apr 2004
    Posts
    157
    Just make a batch file that calls for your specifc program. Open notpad and save your file for example as: Startup.bat

    In Notepad, write what ever line, to run the program, for example:

    C:\Windows\Notepad.exe

    Save the file.

    Then drag&drop this file to START - ALL PROGRAMS - STARTUP, and now Notepad will start every time you login.

    Depending on what you need to start, you may not even need a batch/script file, you could just drag&drop a shortcut from what ever program, directly in to the STARTUP folder.

    If this is a DOMAIN wide implementation, use Active Directory Users and Computers, and go to the OU's Group Policy, go to Computer/User Configuration-Windows Settings-Scripts. There you have options for adding scripts for both logons and logoffs.


  4. #4
    Banned
    Join Date
    Apr 2005
    Posts
    31
    Batch files are antiquated, and cumbersom. Use a VBScript / WSH combo punch, and you can do just about anything you want at a users logon.

  5. #5
    Member
    Join Date
    Mar 2004
    Posts
    81
    batch files are not cumbersom at all. They are usually very small and run very efficiently. They are great for simple repetative tasks and can be used for complex tasks if one is willing to put in the time and effort needed.

    ~halv

  6. #6
    Senior Member
    Join Date
    Jul 2004
    Posts
    469

    Re: Logon On Scripts???

    Originally posted here by guruofall
    Hi

    Can anybody tell me how to write scripts to run a program or file when we log on to windows(XP).
    If all you're looking to do is run a program at logon, you can do that through local policy if you want it for all users, or you can just drag a shortcut to the program to the startup group. No need to write any scripts or even use a .bat file if thats all you want to do.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

 Security News

     Patches

       Security Trends

         How-To

           Buying Guides