none
Run batch file on Windows Server 2016

    שאלה

  • I would like to run a batch file with Task Sceduler on two different computers. Both machines are in the the same domain, and both users are simple domain user. One of the machines is a WINDOWS10 1709 workstation and the other Windows is a 2016 Server Standard that was installed two weeks ago, without any Domain policy settings.

    On the workstation the bach file run successfully on behalf of the user who is logged on, when I manually right click/run on the task. For the running, it is necessary to do the following in the secpol.msc before run: Local Policies / User Rights Assignment/ "Log on as batch job " policy. Click "Add User or Group" button and add the user who want to run the batch file. It works fine!

    On the 2016 server I would like to set the same setting in the "Log on as batch job" policy, but the "Add User or Group" is grayed. In the following Windows forum they have written:

    https://social.technet.microsoft.com/Forums/windowsserver/en-US/760ee186-8074-40a5-95b0-35d17c2bdfab/log-on-as-batch-job-right?forum=winserverGP
    "This policy is grayed out because is overwritten by some particular domain policy. You should find that policy and edit it. Let Group Policy Management console -> Group Policy Results help you."

    On the 2016 server I verified the Group Policy Results section, but it is completely empty. This is not surprising, because no extra settings have been made in the GPM. It is interesting that I was able to add a domain user in "Log on as batch job" policy on the workstation by a local administrator, but this same setting can not be done on the 2016 server by a domain administrator.

    My question would be how to achieve on the 2016 server that "Add User or Group" button don't be gray? Which default domain policy setting causes the gray button? There are no Group Policy settings in the company, everything is set to default.

    Or is there any solution in order to run the bach file?

    Many thanks in advance,
    Alex

    • נערך על-ידי Foley80 יום שישי 18 מאי 2018 14:22 better understand
    יום שישי 18 מאי 2018 12:15

כל התגובות