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  \\server2\NETLOGON\InstallSoftware.bat   
    Start in  \\server2\NETLOGON 
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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.