Why is changing to Schtasks onstart in place of onlogon not working


  1. Posts : 55
    windows 10
       #1

    Why is changing to Schtasks onstart in place of onlogon not working


    Why is changing to Schtasks onstart in place of onlogon not working. The schtasks is copying some folders and files from D:\APP to Z:\
    (tcc.exe just a better duplicate of cmd.exe and put in z: drive) :

    Code:
    schtasks /create /sc onlogon /tn Desktop/tr "cmd /c cd/d D:\APP&copy/y TCC z:&tcc/c 'copy/u/s TCC z:\&copy/s/y Notepp z:\Notepp&copy/md/y RegWorks z:\RegWorks\&c:\windows\ explorer d:'"/f
    I'm sure others will not work too.. Thanks in advance
    Last edited by budi; 24 Jan 2018 at 04:58.
      My Computer


  2. Posts : 4,201
    Windows 10 Pro x64 Latest RP
       #2

    Not done any scheduled task management for "a While", so cannot help with specifics but for this scenario I would suspect that either some process or resource that is needed is not there until a user is logged on.

    Is Z: a network drive? is it mapped by a specific user?

    Another could be permissions based where the permissions are heavily "tied down" but assuming that Scheduled tasks onStart runs with System credentials should not be a problem, unless Z: is remote and System is not given any permissions
      My Computers


  3. Posts : 55
    windows 10
    Thread Starter
       #3

    Z: just a RAM disk
    I get it , i already suspected too the phase is to earlier to perform FS operation eg. copying..
      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 17:00.
Find Us




Windows 10 Forums