• Register
0 votes
233 views

Problem :

I have scheduled the task to run the SSIS job using my Task Scheduler (TS). It is configured to run as the User who belongs to the Admin group.

The security is to "Run whether user is logged on or not" is checked and  "Dont store password" is checked and  "Run with highest preveilage" is unchecked

Now the scheduled task is run ONLY when my user is logged in but when my user logs out the task does not seem to run. I just figured that "Run whether user is logged on or not" must run my task when my user is not logged on.

Am I missing something? Any clues ?

6 5 3
7,540 points

Please log in or register to answer this question.

2 Answers

0 votes

Solution :

Generally when I setup any tasks to "run whether user is logged on or not", I take below approach:

I start with creating the user on that computer that he should be the member of no groups. This user is my designated task scheduler user. Now open your Local Security Policy and grant that new user the "Log on as batch job" permission. If you do not then you will get this error: "This task requires that the user account specified has Log on as batch job rights."

So create your task in the Task Scheduler. After that select the "Run whether user is logged on or not" radio button. Then check the "Do not store password" checkbox. You should check the "Run with highest privileges" checkbox. Finally assign your task to run under your new user account.

9 7 4
38,600 points
0 votes

Solution:

At the time you make a SCHEDULED TASK that requires to run automatically you will seclude a service account for the job.  That service account should have permissions to run batches, so Windows will popup “This Task Requires That The User Account Specified Has Log On As Batch Job Rights” as shown on the right.

How to assign a user “Batch Job Rights” Locally

On the local server exercise Local Security Policy manager:

  1. Click On START and type secpol.msc then press Enter

  2. Expand Security Settings > Local Policies > User Rights Assignment node

  3. Double click OnLog on as a batch job

  4. Click On the include User or Group button and include your service account user

  5. Click On OK

  6. Have a nice day, you are done

In case you traced the include button greyed out it is likely since that policy is controlled by a Group Policy:

How to assign a user “Batch Job Rights” through GPO

On a Domain Controller (or anything with the RSAT tools installed) employ Group Policy Management Editor:

  1. Click On START and type Group Policy then click on Group Policy Management

  2. Either edit the subsisting GPO that comprises subsisting USER RIGHTS ASSIGNMENT (likely Default Domain Policy) or right click and CREATE AND EDIT a new policy

  3. Expand Computer Configuration > Windows Settings > Security Settings > Local Policies > User Rights Assignment node

  4. Double click Log on as a batch job

  5. Click On the Add User or Group button and include your service account user

  6. Click On OK

  7. Have a nice day, you are done

10 6 4
31,120 points

Related questions

0 votes
1 answer 58 views
58 views
Problem : I am very new to ASP.Net. I have created my first ASP.Net application which impersonates the user in order to create the AD group, and after that it launches the powershell process as the user saperately. But because of some reason the group ... I would rather not compromise with the security policy with the server ideally, and this application will be used by around 100+ users.
asked Dec 5, 2019 alecxe 7.5k points
0 votes
2 answers 303 views
303 views
Problem : I was trying to install an application in Windows it produces the following message: error opening installation log file. verify that the specified location exists and is writable
asked Nov 14, 2019 peterlaw 6.9k points
0 votes
2 answers 25 views
25 views
Problem: Can anyone give the right solution? Why is the DNS service included in Windows Server 2012 R2 integrated with DHCP service? To allow a DNS server to inform DHCP clients with updated information. To update both DNS and DHCP clients with information from the Active ... to request a DNS server to update or create a record. DNS and DHCP services are not integrated in Windows Server 2012 R2.
asked Feb 22, 2020 maddi86 5.4k points
1 vote
1 answer 356 views
356 views
Problem : We are now running the 32-bit Windows server 2008 with the IIS version of 7. We are trying to publish the asp.net 4.0 webapp but so far our attempts have failed and only yielded the few warnings in our serverlog without even the stopping our 4.0 application ... very badly after that we ran out of the ideas on what to do on our issue so any form of the input would be greatly appreciated.
asked Dec 30, 2019 alecxe 7.5k points
0 votes
2 answers 23 views
23 views
Problem: A user is trying to log into Windows on her notebook computer. She enters the correct password for her user account, but the system won;t let her authenticate, claiming the wrong password has been entered. What's causing the problem?
asked Apr 18, 2020 ArifulIslam 5.6k points
1 vote
1 answer 504 views
504 views
Problem : When I call a blank layout and afterwards call my layout it gives me the following error: the specified child already has a parent. you must call removeview() on the child's parent first.
asked Nov 11, 2019 peterlaw 6.9k points
0 votes
1 answer 431 views
431 views
Problem : I want to install the Xampp win32-1.8.2 on Windows 8.1. But I get below message saying " Because an activated user account User Account on your system some functions of XAMPP are possibly restricted." I have already tried to change my user account control settings but ... . And my APACHE does not start. I have also disabled the IIS but still, it is not at all working. What can I do?
asked Feb 4, 2020 jwilliam 3.9k points
0 votes
1 answer 9 views
9 views
Problem: A user of a database such as that pictured in the accompanying figure refers to a file as what?
asked Aug 4, 2020 LizzyM 6.1k points
1 vote
1 answer 132 views
132 views
Problem: Can anyone provide me an expression that executes the loop body as long as the user enters a non-negative number. Thanks in advance.
asked Apr 9, 2020 LizzyM 6.1k points
0 votes
1 answer 52 views
52 views
Problem: Can any one please tell me the place in linux where user have full control? This is the one place in Linux where an ordinary user has full control?
asked Feb 21, 2020 maddi86 5.4k points