Windows 10: dir command from Task Scheduler returns entire registry

Discus and support dir command from Task Scheduler returns entire registry in Windows 10 Network and Sharing to solve the problem; A batch file contains the line:dir c:\ /s /a-h-s >listing.txtas part of an indexing routine. This line of the batch takes about two minutes and returns... Discussion in 'Windows 10 Network and Sharing' started by 88m88, Aug 30, 2021.

  1. 88m88 Win User

    dir command from Task Scheduler returns entire registry


    A batch file contains the line:dir c:\ /s /a-h-s >listing.txtas part of an indexing routine. This line of the batch takes about two minutes and returns a textfile of about 150 mb. After I was satisfied that the routine was ready to go, I created a task in Task Scheduler to run the batch file, only to find the next morning that the output text file was about 2.7 gb, most of which were registry entries, not normal files, and it had taken about three and a half hours to run.The dir command is not complicated, what am I doing wrong?

    :)
     
    88m88, Aug 30, 2021
    #1
  2. Carlo Fer Win User

    Task Scheduler error

    Hello Banjopolo,

    GeForce Experience updates may fail due to Windows Task Scheduler errors. I suggest that you follow these steps to resolve the issue.

    Disclaimer: The steps below includes system registry modification. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection,
    back up the registry before you modify it. Then, you can restore the registry if a problem occurs.

    Make sure to backup registry first, please refer to this support article:
    How to back up the registry in Windows. Please follow the steps below:

    1. Click on Start > type regedit and press
      Enter.
    2. Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Schedule
    3. Find the DWORD called start, change its value to 2.
    4. Save the changes and then exit out of the registry editor. Reboot you PC.

    If the issue still persists, I recommend that you follow the steps in this
    thread
    we found answered by
    xyllis about fixing issues with Task Scheduler which helped a lot of community members.

    Please respond to this thread to let me know how the issue progresses. Similarly, if you have more questions, please inform me by replying to this post.
     
    Carlo Fer, Aug 30, 2021
    #2
  3. Unable to run Task Scheduler

    Hello Varun,

    Let's determine the cause of the issue. To get started, I'd like to get the following information:

    • Is this your first time to encounter this issue? If so, did you make any changes to your computer's configuration prior to this?
    • Are you getting any error messages?
    • Can you also please confirm the current build of your Windows 10?

      (Type winver into the Cortana search box, then hit
      Enter
      .)

    Meanwhile, I suggest that you try starting the Task Scheduler through command line. To do so, please follow these steps:

    • Open Command Prompt (Admin).
    • Type this net start task scheduler and hit Enter.

    We're looking forward to your response.
     
    Antoneth Ber, Aug 30, 2021
    #3
  4. Nick Dich Win User

    dir command from Task Scheduler returns entire registry

    Tasks Scheduler is Missing Windows Defender Tasks

    Hi,

    It is possible that there are corrupted system files or incorrect registry keys that causes items not to show up under task scheduler. Regarding this, we suggest that you do the following diagnostic and repair scans to check your computer for any system
    errors and rid of them. Kindly follow the steps provided below:

    SFC Scan and DISM Tool

    Method 1:

    System file checker is a utility in Windows that allows users to scan for corruptions in Windows system files and restore corrupted files.

    Run system file checker (SFC) and see if it helps. Please follow these steps:

    • Press Windows + X keys and click command prompt (admin).
    • Type the following command in command prompt and press Enter.

    sfc /scannow

    If it does not help, use method 2.

    Method 2:

    Run DISM tool and check the issue. Please follow these steps:

    • Press Windows + X keys and click command prompt (admin).
    • Type the following command in command prompt and press Enter.

    DISM.exe /Online /Cleanup-image /Scanhealth

    DISM.exe /Online /Cleanup-image /Restorehealth

    Kindly keep us updated regarding the results.
     
    Nick Dich, Aug 30, 2021
    #4
Thema:

dir command from Task Scheduler returns entire registry

Loading...
  1. dir command from Task Scheduler returns entire registry - Similar Threads - dir command Task

  2. DIR Command

    in Windows 10 Gaming
    DIR Command: dir /A:D /B /S > FolderList.txt produces a list of all directories and subdirectories of a directory. I would like to modify this line to have the date included for all directories and subdirectories of a directory too....
  3. DIR Command

    in Windows 10 Software and Apps
    DIR Command: dir /A:D /B /S > FolderList.txt produces a list of all directories and subdirectories of a directory. I would like to modify this line to have the date included for all directories and subdirectories of a directory too....
  4. dir command from Task Manager returns entire registry

    in Windows 10 Network and Sharing
    dir command from Task Manager returns entire registry: A batch file contains the line:dir c:\ /s /a-h-s >listing.txtas part of an indexing routine. This line of the batch takes about two minutes and returns a textfile of about 150 mb. After I was satisfied that the routine was ready to go, I created a task in Task Scheduler to...
  5. blocking task scheduler with registry or GPO

    in Windows 10 Support
    blocking task scheduler with registry or GPO: hello. i have a very important task that i added to the task scheduler. i want to protect the task from delete it or disable it - but i don't found the right way to do it. so, i ask if somebody know way and how to do it, and if no, how i can to block the TS whole with the...
  6. blocking task scheduler with registry or GPO

    in Windows 10 Software and Apps
    blocking task scheduler with registry or GPO: hello. i have a very important task that i added to the task scheduler. i want to protect the task from delete it or disable it - but i don't found the right way to do it. so, i ask if somebody know way and how to do it, and if no, how i can to block the TS whole with the...
  7. DIR commands

    in Windows 10 Ask Insider
    DIR commands: So recently I used the DIR commands to be able to see hidden and Invisible files, is there any way to revert this? submitted by /u/Creeper_King_558 [link] [comments] https://www.reddit.com/r/Windows10/comments/inyfq2/dir_commands/
  8. Why does Task Scheduler task return 0x1 error but work fine from command line?

    in Windows 10 Ask Insider
    Why does Task Scheduler task return 0x1 error but work fine from command line?: I have a script that runs fine from the command line. When it runs from Task Scheduler using the same user account it returns a 0x1 error. I've been trying to debug it for several days now to no avail. What are some reasons it might be doing this? Screen captures submitted...
  9. Create an advanced Scheduled Task from the Command Line

    in Windows 10 BSOD Crashes and Debugging
    Create an advanced Scheduled Task from the Command Line: Hello. I'm trying to create a scheduled task to run a batch file on Windows 10 using either the command prompt or Powershell. When I create the task with the Task Scheduler GUI, it works perfectly. However, when I try to re-create that same task with the command line, there...
  10. "Mode" info returned by Windows 10 dir command

    in Windows 10 Support
    "Mode" info returned by Windows 10 dir command: Windows 10 seems to have a new set of info returned by the "dir" Powershell command. This appears under the "Mode" heading, e.g. -a---- or d----- , but nowhere have I found what these entries mean or how to interpret the individual characters. I get that they have to do with...