Task Scheduler To Run batch file windows server 2012Group Policy installation failed error 1274Scheduled job...

Magical attacks and overcoming damage resistance

Which big number is bigger?

Does a large simulator bay have standard public address announcements?

A ​Note ​on ​N!

What is the unit of time_lock_delta in LND?

Find the identical rows in a matrix

Why is the underscore command _ useful?

Why did C use the -> operator instead of reusing the . operator?

Should the Product Owner dictate what info the UI needs to display?

I preordered a game on my Xbox while on the home screen of my friend's account. Which of us owns the game?

"My boss was furious with me and I have been fired" vs. "My boss was furious with me and I was fired"

Unknown code in script

Why do games have consumables?

Why doesn't the standard consider a template constructor as a copy constructor?

Is there really no use for MD5 anymore?

How to not starve gigantic beasts

A Paper Record is What I Hamper

How to have a sharp product image?

What does "function" actually mean in music?

Combinatorics problem, right solution?

"The cow" OR "a cow" OR "cows" in this context

Why didn't the Space Shuttle bounce back into space as many times as possible so as to lose a lot of kinetic energy up there?

How bug prioritization works in agile projects vs non agile

All ASCII characters with a given bit count



Task Scheduler To Run batch file windows server 2012


Group Policy installation failed error 1274Scheduled job not running to completion; event logged with return code 3762504530Windows Server R2 Task Scheduler - Open Programs On Startup.cmd in Windows Server 2008 task scheduler w/o highest privilegesPoor Task Scheduler Performance on Windows 8 and Windows Server 2012Server 2012 R2 Run Program from Task Scheduler not running programNeed help using SCHTASKS on Windows Server 2008/2012Batch/Powershell file wont run via Task Scheduler during logoffTask Scheduler “On disconnect from user session” trigger not workingWindows Task Scheduler Not Running On Some Machines When Locked






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







0















Hi I have been struggling with this for a while and I don't know what the problem is.
I need to Deploy software to 100 computer on the domain. My domain has windows server 2012.
I created a Group Policy to Deploy the software. With .MSI software The group policy works well. But most of the installer is .exe file. For this purpose, I create a batch file and setup Scheduler to run it for every user in the domain.



the following shows the info of the task I created:
the Trigger is at logon of any user
Action is to start a program



    Name  Install Software   
Author ****
Description
Run only when the user is logged on InteractiveToken
UserId ****
Run with highest privileges HighestAvailable
Hidden No
Run at user logon
Activate 23/04/2019 3:57:22 PM Synchronize across time zones No
Enabled Yes
Name Install Software
Author ****
Description
Run only when the user is logged on InteractiveToken
UserId ****
Run with highest privileges HighestAvailable
Hidden No
Run at user logon
Activate 23/04/2019 3:57:22 PM Synchronize across time zones No
Enabled YesActions
Configure for 1.2
Enabled Yes
Start a program
Program/script \server2NETLOGONInstallSoftware.bat
Start in \server2NETLOGON
Settings
Stop if the computer ceases to be idle No
Restart if the idle state resumes No
Start the task only if the computer is on AC power No
Stop if the computer switches to battery power No
Allow task to be run on demand No
Run task as soon as possible after a scheduled start is missed Yes
If the task fails, restart every 1 minute
Attempt to restart up to 3
Stop task if it runs longer than Immediately
If the running task does not end when requested, force it to stop No
If the task is already running, then the following rule applies IgnoreNew
Options
Stop processing items on this extension if an error occurs on this item No
Remove this item when it is no longer applied No
Apply once and do not reapply No


I have tried the following which didn't work.




  1. put the script at user configuration(don't work as the user need to have admin privileges to setup file)

  2. Put the script at computer configuration/ startup (didnt worked)


One more time, The group policy works well as it installs all MSI packages.









share







New contributor




Ehsan Aliverdi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



























    0















    Hi I have been struggling with this for a while and I don't know what the problem is.
    I need to Deploy software to 100 computer on the domain. My domain has windows server 2012.
    I created a Group Policy to Deploy the software. With .MSI software The group policy works well. But most of the installer is .exe file. For this purpose, I create a batch file and setup Scheduler to run it for every user in the domain.



    the following shows the info of the task I created:
    the Trigger is at logon of any user
    Action is to start a program



        Name  Install Software   
    Author ****
    Description
    Run only when the user is logged on InteractiveToken
    UserId ****
    Run with highest privileges HighestAvailable
    Hidden No
    Run at user logon
    Activate 23/04/2019 3:57:22 PM Synchronize across time zones No
    Enabled Yes
    Name Install Software
    Author ****
    Description
    Run only when the user is logged on InteractiveToken
    UserId ****
    Run with highest privileges HighestAvailable
    Hidden No
    Run at user logon
    Activate 23/04/2019 3:57:22 PM Synchronize across time zones No
    Enabled YesActions
    Configure for 1.2
    Enabled Yes
    Start a program
    Program/script \server2NETLOGONInstallSoftware.bat
    Start in \server2NETLOGON
    Settings
    Stop if the computer ceases to be idle No
    Restart if the idle state resumes No
    Start the task only if the computer is on AC power No
    Stop if the computer switches to battery power No
    Allow task to be run on demand No
    Run task as soon as possible after a scheduled start is missed Yes
    If the task fails, restart every 1 minute
    Attempt to restart up to 3
    Stop task if it runs longer than Immediately
    If the running task does not end when requested, force it to stop No
    If the task is already running, then the following rule applies IgnoreNew
    Options
    Stop processing items on this extension if an error occurs on this item No
    Remove this item when it is no longer applied No
    Apply once and do not reapply No


    I have tried the following which didn't work.




    1. put the script at user configuration(don't work as the user need to have admin privileges to setup file)

    2. Put the script at computer configuration/ startup (didnt worked)


    One more time, The group policy works well as it installs all MSI packages.









    share







    New contributor




    Ehsan Aliverdi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      0












      0








      0








      Hi I have been struggling with this for a while and I don't know what the problem is.
      I need to Deploy software to 100 computer on the domain. My domain has windows server 2012.
      I created a Group Policy to Deploy the software. With .MSI software The group policy works well. But most of the installer is .exe file. For this purpose, I create a batch file and setup Scheduler to run it for every user in the domain.



      the following shows the info of the task I created:
      the Trigger is at logon of any user
      Action is to start a program



          Name  Install Software   
      Author ****
      Description
      Run only when the user is logged on InteractiveToken
      UserId ****
      Run with highest privileges HighestAvailable
      Hidden No
      Run at user logon
      Activate 23/04/2019 3:57:22 PM Synchronize across time zones No
      Enabled Yes
      Name Install Software
      Author ****
      Description
      Run only when the user is logged on InteractiveToken
      UserId ****
      Run with highest privileges HighestAvailable
      Hidden No
      Run at user logon
      Activate 23/04/2019 3:57:22 PM Synchronize across time zones No
      Enabled YesActions
      Configure for 1.2
      Enabled Yes
      Start a program
      Program/script \server2NETLOGONInstallSoftware.bat
      Start in \server2NETLOGON
      Settings
      Stop if the computer ceases to be idle No
      Restart if the idle state resumes No
      Start the task only if the computer is on AC power No
      Stop if the computer switches to battery power No
      Allow task to be run on demand No
      Run task as soon as possible after a scheduled start is missed Yes
      If the task fails, restart every 1 minute
      Attempt to restart up to 3
      Stop task if it runs longer than Immediately
      If the running task does not end when requested, force it to stop No
      If the task is already running, then the following rule applies IgnoreNew
      Options
      Stop processing items on this extension if an error occurs on this item No
      Remove this item when it is no longer applied No
      Apply once and do not reapply No


      I have tried the following which didn't work.




      1. put the script at user configuration(don't work as the user need to have admin privileges to setup file)

      2. Put the script at computer configuration/ startup (didnt worked)


      One more time, The group policy works well as it installs all MSI packages.









      share







      New contributor




      Ehsan Aliverdi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      Hi I have been struggling with this for a while and I don't know what the problem is.
      I need to Deploy software to 100 computer on the domain. My domain has windows server 2012.
      I created a Group Policy to Deploy the software. With .MSI software The group policy works well. But most of the installer is .exe file. For this purpose, I create a batch file and setup Scheduler to run it for every user in the domain.



      the following shows the info of the task I created:
      the Trigger is at logon of any user
      Action is to start a program



          Name  Install Software   
      Author ****
      Description
      Run only when the user is logged on InteractiveToken
      UserId ****
      Run with highest privileges HighestAvailable
      Hidden No
      Run at user logon
      Activate 23/04/2019 3:57:22 PM Synchronize across time zones No
      Enabled Yes
      Name Install Software
      Author ****
      Description
      Run only when the user is logged on InteractiveToken
      UserId ****
      Run with highest privileges HighestAvailable
      Hidden No
      Run at user logon
      Activate 23/04/2019 3:57:22 PM Synchronize across time zones No
      Enabled YesActions
      Configure for 1.2
      Enabled Yes
      Start a program
      Program/script \server2NETLOGONInstallSoftware.bat
      Start in \server2NETLOGON
      Settings
      Stop if the computer ceases to be idle No
      Restart if the idle state resumes No
      Start the task only if the computer is on AC power No
      Stop if the computer switches to battery power No
      Allow task to be run on demand No
      Run task as soon as possible after a scheduled start is missed Yes
      If the task fails, restart every 1 minute
      Attempt to restart up to 3
      Stop task if it runs longer than Immediately
      If the running task does not end when requested, force it to stop No
      If the task is already running, then the following rule applies IgnoreNew
      Options
      Stop processing items on this extension if an error occurs on this item No
      Remove this item when it is no longer applied No
      Apply once and do not reapply No


      I have tried the following which didn't work.




      1. put the script at user configuration(don't work as the user need to have admin privileges to setup file)

      2. Put the script at computer configuration/ startup (didnt worked)


      One more time, The group policy works well as it installs all MSI packages.







      windows-server-2012-r2 group-policy scripting task-scheduler





      share







      New contributor




      Ehsan Aliverdi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.










      share







      New contributor




      Ehsan Aliverdi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      share



      share






      New contributor




      Ehsan Aliverdi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 3 mins ago









      Ehsan AliverdiEhsan Aliverdi

      11




      11




      New contributor




      Ehsan Aliverdi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Ehsan Aliverdi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Ehsan Aliverdi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          0






          active

          oldest

          votes












          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "2"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });






          Ehsan Aliverdi is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f964662%2ftask-scheduler-to-run-batch-file-windows-server-2012%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          Ehsan Aliverdi is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          Ehsan Aliverdi is a new contributor. Be nice, and check out our Code of Conduct.













          Ehsan Aliverdi is a new contributor. Be nice, and check out our Code of Conduct.












          Ehsan Aliverdi is a new contributor. Be nice, and check out our Code of Conduct.
















          Thanks for contributing an answer to Server Fault!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f964662%2ftask-scheduler-to-run-batch-file-windows-server-2012%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown