task scheduler setting affects script RESULT


  1. Posts : 316
    Pro 20H2
       #1

    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".
      My Computer


  2. Posts : 21,421
    19044.1586 - 21H2 Pro x64
       #2

    In the Task's General tab, have you tried checking "Run with highest privileges"? No sure if that will fix it or not.
      My Computer


  3. Posts : 16,909
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #3

    Post the script & post the TS task definition.

    Denis
      My Computer


  4. Posts : 316
    Pro 20H2
    Thread Starter
       #4

    task scheduler setting affects script RESULT-tasksched2.jpg
    Last edited by thename; 07 Mar 2021 at 18:53.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 16:43.
Find Us




Windows 10 Forums