Task Manager Problem.

Page 1 of 2 12 LastLast

  1. Posts : 25
    7, 10
       #1

    Task Manager Problem.


    Hi,

    Running W10, fully patched.

    I have set a simple batch file to run in Task Manager to perform a copy of some files to a backup drive each night.

    Once set up I go into the task to change it to run when a user is not logged and use the highest privileges.

    Also, I add the administrator to the group so that it can run as that user.

    That then asks me for the admin password which I put in then press OK and the following error reported is 2147943731 .

    There is only myself listed on this PC so I am the administrator.

    Can anyone advise me why that error is occurring, please?

    Thanks,

    Martin
      My Computer


  2. Posts : 1,608
    Win 10 home 20H2 19042.1110
       #2
      My Computers


  3. Posts : 25
    7, 10
    Thread Starter
       #3

    Task Manager.


    H Jaycee,

    Thanks for the reply.8-))

    The error on stack overflow is a different number to mine if that makes any difference?

    I am using the correct password which I updated through Microsoft yesterday, so I don't see how it could be that but knowing Microsoft anything is possible.8-((

    Martin
      My Computer


  4. Posts : 1,608
    Win 10 home 20H2 19042.1110
       #4

    Well darn, I looked up your error number and got that page .... how silly!
      My Computers


  5. Posts : 25
    7, 10
    Thread Starter
       #5

    Task Manager


    Hi Jacee,

    That's Google for you.8-))

    I have done a bit of digging myself and noticed that when I use the Administrator group as the user then I checked the user accounts in Computer Management.

    The admin account is disabled, so that wouldn't work.

    The basic account is presumably the local one which I do not remember setting up and I assume that it does not have a password set either.

    This has gotten very confusing as when I check for user accounts in the normal way there is only myself which is the admin, which has the password set.

    Yet in the account in the Computer Management app I am not listed, just the local name.8-((

    Microsoft has really got me confused this time...

    Martin
      My Computer


  6. Posts : 22
    Windows 10 Enterprise 1909 version 10.0.18363 Build 18363 (Native-Boot VDisk (*.vhdx)
       #6

    Arnak, please provide screenshots of the settings for your scheduled task and the batch script you put into the batch file. It may be as simple as it's trying to copy certain subfiles that just can't be copied, maybe adding the /c parameter to your batch script will solve the problem. I know I had this issue when I was trying to copy the WindowsApps folder/subfolders/subfiles.

    Hope this helps,
    Yokiaza
      My Computer


  7. Posts : 25
    7, 10
    Thread Starter
       #7

    Task Manager


    Hi Yokiaza,

    Thanks for the reply.

    I doubt that is the problem as the batch file runs fine outside of the task manager but here it is :-

    net use M: /delete
    net use M: \\nsa320\public
    xcopy C:\pmail /e /v /I /y /h M:"Martins PC Backups"\Pmail
    pause

    What I will try is to move the batch file out of the program directory and put it into its own directory of c:\ and see if that works OK.

    Martin
      My Computer


  8. Posts : 22
    Windows 10 Enterprise 1909 version 10.0.18363 Build 18363 (Native-Boot VDisk (*.vhdx)
       #8

    Change M:"Martins PC Backups"\Pmail to M:"Martins PC Backups\Pmail"

    Regards,
    Yokiaza
      My Computer


  9. Posts : 25
    7, 10
    Thread Starter
       #9

    Evant Manager.


    Thanks, I'll try that.

    Martin
      My Computer


  10. Posts : 17,083
    Windows 10 Home x64 Version 22H2 Build 19045.4894
       #10

    Martin,

    - Please would you explain why you are trying to enforce admin permissions.
    - Please would you explain why you are trying to run it when no user is logged in.
    - You do know that running anything from Task scheduler when no user is logged in can only be done for tasks that have no user interface? Batch files have a user interface. You'd have to experiment with a simple batch file run under these conditions to test out each of your intended commands [net use and xcopy] to see if they will run - they shouldn't. Pause would definitely be a showstopper.

    If the intended batch file can run as a standard user whilst logged in then you can make some progress.
    - Above all, test out the operation of the batch file on its own before you try starting it from Task scheduler.
    - Oh and "M:\Martins PC Backups\Pmail" could be a valid path but the variations shown in the other posts cannot be.

    Denis
      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 10:52.
Find Us




Windows 10 Forums