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

  1.    23 Jan 2018 #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) :

    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 ComputerSystem Spec

  2. Barman58's Avatar
    Posts : 2,861
    Windows 10 Pro x64 1809 - 17763.134 XP/Vista/Win7/Win8.1 in VM for testing
       24 Jan 2018 #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 ComputerSystem Spec

  3.    24 Jan 2018 #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 ComputerSystem Spec


Related Threads
Why does windows schtasks for logon schedule not work if run on laptop with unplugged AC power i.e. when using battery power supply. Works only if laptop is being powered plugged in with AC supply. How to solve this issue ?
So in a nutshell what I am trying to do is change the icon of an executable, sounds simple right? Here is what I have done: 1) Open the EXE in Resource Hacker 2) Replace the Icon with the Icon I want. My icon has all the sizes including the...
hai so im a normal guy with normal desktop icons arrangements. but everytime i boot up my windows, doesn't matter from complete power off or a restart. it's a minor problem but i'd like to get it fixed. http://i.imgur.com/5PBfc5E.png it...
I've been using a free wallpaper changer for months and it's been working just fine, but only a few days ago an error came up (I didn't keep it unfortunately as I didn't think it would affect Windows changing wallpapers itself!) and now changing...
Hi guys. I have a strange issue that i couldnt solve by searching the web: after installing a replacement GPU, RDP now only connects to the home server when i have "use all my monitors" enabled. If i have it unticked the session will try to open...
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 13:32.
Find Us