Results 1 to 5 of 5

How to run the batch file using GPO in Windows Server 2003?

This is a discussion on How to run the batch file using GPO in Windows Server 2003? within the Windows server/NT/Work Station forums, part of the Microsoft Support category; I am running Windows 2003 Server. I have one batch file which copies the files and adds the registry keys ...

  1. #1
    Member
    Join Date
    Jan 2009
    Posts
    70

    Post How to run the batch file using GPO in Windows Server 2003?

    I am running Windows 2003 Server. I have one batch file which copies the files and adds the registry keys to HKLM. I want to run that batch file using GPO. Is it possible to run? How to run it?

  2. #2
    Administrator prashant's Avatar
    Join Date
    Aug 2008
    Posts
    1,517

    Default

    Yes. It is possible to run. You can run the batch file using any one of the method:

    1) Click on Start and then click on Run. In the Run dialog box, type gpedit.msc and hit Enter or click on OK. It will open Group Policy Editor. Then, click on Computer Configuration and then Windows Settings and then Scripts (Startup/Shutdown).

    Or

    2) Click on Start and then click on Run. In the Run dialog box, type gpedit.msc and hit Enter or click on OK. It will open Group Policy Editor. Then, click on User Configuration and then Windows Settings and then Scripts (Logon/Logoff).

    It will use the System account to run the file which has administrator privileges. And, this will run everytime you start the computer. You can also restrict the script from running using condition if it is already completed its job.

  3. #3
    ejs
    ejs is offline
    Junior Member
    Join Date
    Jun 2009
    Posts
    1

    Default

    what are the condition parameters

  4. #4
    Administrator prashant's Avatar
    Join Date
    Aug 2008
    Posts
    1,517

    Default

    Quote Originally Posted by ejs View Post
    what are the condition parameters
    Means, if you want the script to run only once a day, then you can restrict it by using the conditions. For example, you have a script which you want to run during Startup. You will be rebooting the system twice a day. But, you donít want it to run twice. Only once a day you want to run. At that time, you can use the conditions to restrict the script from running if it is already completed its job.

  5. #5
    Junior Member
    Join Date
    Jan 2013
    Posts
    1

    Default

    Hi there, server is not possible to restart even once in a day. So how to run a batch file ( may be just once ) in the Live/production server? So, commands like add a user a/c to local admin group can execute without restart. Cheers,

Similar Threads

  1. File Server Resource Manager Options
    By Creative in forum Operating systems
    Replies: 0
    Last Post: 11-06-2008, 08:46 AM
  2. Replies: 0
    Last Post: 11-03-2008, 10:01 AM
  3. File Names and File Objects
    By developer in forum Programming
    Replies: 0
    Last Post: 11-03-2008, 09:46 AM
  4. Replies: 0
    Last Post: 10-06-2008, 11:32 AM
  5. Replies: 0
    Last Post: 08-15-2008, 08:42 AM

Tags for this Thread

Bookmarks

Posting Permissions

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