Windows 10: task scheduler setting affects script RESULT

Discus and support task scheduler setting affects script RESULT in Windows 10 Support to solve the problem; Pro 20H2 Script always performs without problem. Every line in script is solid and happy. I, an Administrator, own script file. Administrators and... Discussion in 'Windows 10 Support' started by thename, Mar 7, 2021.

  1. thename Win User

    task scheduler setting affects script RESULT


    Pro 20H2

    Script always performs without problem.
    Every line in script is solid and happy.

    I, an Administrator, own script file.
    Administrators and System have full control of it. No inheritance.

    Task does nothing more than to run the script.
    Testing of task: I manually Run it in Task Scheduler.

    Script does nothing more than to report existence of N:\ . IF EXIST....
    N: (mapped letter) exists, permanently; and its resource always is visible and
    accessible and responsive to user (myself).

    The following is what hurts my head :
    Report is yes when task is configured to "Run only when user is logged on";
    report is no when task is configured to "Run whether user is logged on or not".

    :)
     
    thename, Mar 7, 2021
    #1
  2. Peer_Sam Win User

    Task Scheduler doesn't run script

    Hi,

    Thank you for writing to Microsoft Community Forums.

    Are you able to run the script manually? If yes, does it do what it is intended to?

    Disable the UAC temporarily.

    Make sure that the Task scheduler
    service is running.

    Press ‘Win+R’.

    Type Services.msc.

    Locate the service Task scheduler
    and make sure that it is in running state.

    Go to the Conditions
    tab in task scheduler and make sure that no such condition is set which could block the task from running.

    Enable All Tasks History in Task scheduler and run the scheduled task.

    Refresh the task scheduler and check if you find any error message/code for any step in the task run.

    Also try with disabling Run whether the user is logged on or not
    option and see if the script runs.

    Hope it helps.

    Peer Samie

    Microsoft Community-Moderator
     
    Peer_Sam, Mar 7, 2021
    #2
  3. S-278 Win User
    Task Scheduler doesn't run script

    Hey Microsoft Community,

    I'm trying to create a task in Task Scheduler that runs a specific script. The issue is that when the task runs (whether I do it manually or if it's scheduled), the script doesn't actually get executed. I know that the script works, and I have tried using
    both .EXE and .BAT scripts. I have set the task to run whether I'm logged in or not, using Highest Privileges, from my Administrator account; I have Full Access to the script file and the directory it's in; I have tried putting the directory it's in into the
    "Start in" field; I have tried opening Task Scheduler as an Administrator. Every time the task runs successfully, but the thing my script is supposed to do isn't done, from which I am inferring that the script doesn't get executed. The script isn't using any
    network connections. It's also not being blocked by my antivirus, I checked by temporarily turning it off.

    System info:

    Windows 10 x64 version 1803

    Thanks in advance!
     
    S-278, Mar 7, 2021
    #3
  4. task scheduler setting affects script RESULT

    Cannot schedule a task with Task Scheduler - error 2147942403

    Hi,

    I suggest you to check the below settings and check fi it helps.

    • In task scheduler, click on the scheduled job properties > then settings.
    • In the last listed option: "If the task is already running, the following rule applies:"
    • Select "Stop the existing instance" from the drop down list.
    • Save and Exit. Then check whether the task is running or not.

    Please get back to us with an update on this issue, we will be happy to assist you further.

    Thank you.
     
    Karthicka_R, Mar 7, 2021
    #4
Thema:

task scheduler setting affects script RESULT

Loading...
  1. task scheduler setting affects script RESULT - Similar Threads - task scheduler setting

  2. Running a script on file deletion with task scheduler.

    in Windows 10 Ask Insider
    Running a script on file deletion with task scheduler.: I'm trying to figure out how to run a (python) script whenever any file is deleted with task scheduler. I tried googling but with no success, all I found out was that the event ID for file deletion is 4660 I think, and it's probably under security logs. The problem is that...
  3. Script and task Scheduler

    in Windows 10 BSOD Crashes and Debugging
    Script and task Scheduler: Hello I work for a company with a number of powerful graphic computers on which Windows 10 is installed These computers work 24/7 with 2 engine programs that run intermittently 24/7 but not in parallel. I want to know if it is possible to create a script and use it...
  4. How to schedule PowerShell script using Task Scheduler in Windows 10

    in Windows 10 News
    How to schedule PowerShell script using Task Scheduler in Windows 10: [ATTACH]PowerShell scripts reduce the effort in running repetitive tasks. If you are frequently executing scripts at pre-defined times or specified time intervals, you may want […] This article How to schedule PowerShell script using Task Scheduler in Windows 10 first...
  5. Powershell script does not run via Task Scheduler

    in Windows 10 Customization
    Powershell script does not run via Task Scheduler: PowerShell script runs fine manually, but doesn't run in Task scheduler. The script: [ATTACH] I tried another command$env:COMPUTERNAME and works fine both manually and via PowerShell....
  6. Task Scheduler python script - task starts and completes, but script doesn't run

    in Windows 10 Ask Insider
    Task Scheduler python script - task starts and completes, but script doesn't run: I have a simple script to change my wallpaper that I want to run every 24 hours (separate script that runs fine to download APOD daily). I'm on Windows 10. The script is a .pyw python file. If I run the script using IDLE or simply manually running it by double clicking, it...
  7. Task scheduler simply refuses to run a batch script

    in Windows 10 Customization
    Task scheduler simply refuses to run a batch script: I know that there have been many different solutions to this problem posted on the internet and various forums, but I have scoured Google for a solution to my problem to no avail. My problem appears to be unique (something that at this rate I do not want). Now, onto my...
  8. Task Scheduler doesn't run script

    in Windows 10 Software and Apps
    Task Scheduler doesn't run script: Hey Microsoft Community, I'm trying to create a task in Task Scheduler that runs a specific script. The issue is that when the task runs (whether I do it manually or if it's scheduled), the script doesn't actually get executed. I know that the script works, and I have tried...
  9. Task Scheduler is running script On workstation unlock and At log on..

    in Windows 10 Support
    Task Scheduler is running script On workstation unlock and At log on..: I have a task scheduled to play a sound when I unlock my computer, but after a restart or boot it also plays at log on. How do I make Task Scheduler stop running this script 'at log on'? 114049
  10. Task Scheduler Script

    in Windows 10 Network and Sharing
    Task Scheduler Script: I want to enable and disable my Ethernet connection at specific times each day. Task Scheduler prompts me for the script identifying the action of enabling or disabling the Ethernet connection. How do I identify these two specific scripts? 75194