News, tips, advice, support for Windows, Office, PCs & more. Tech help. No bull. We're community supported by donations from our Plus Members, and proud of it
Home icon Home icon Home icon Email icon RSS icon
  • Making BATch file start faster at logon

    Posted on BATcher Comment on the AskWoody Lounge

    Home Forums AskWoody support Windows Windows 10 Questions: Win10 Making BATch file start faster at logon

    Viewing 5 reply threads
    • Author
      • #1997903 Reply

        I have a BATch file which runs from

        C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup

        to map network drives for the just-logged-on user, and this is starting more slowly on Windows 10 than it does in Windows 7.  This is causing problems for the impatient user who is trying to Do Things before the network drives are mapped!

        Does anyone have any suggestions about how to make the BATch file start more rapidly?  (V1903, not that it matters….)  Thanks!


        Data is not the plural of anecdote...

        • This topic was modified 6 months, 4 weeks ago by BATcher.
      • #1997936 Reply

        Wonder if running as a scheduled task on startup would be faster???

      • #1998157 Reply
        Paul T
        AskWoody MVP

        Are the mappings persistent? Does that cause the connection to be slow?
        Is it the batch file run that’s slow of the commands therein? Can you run something else as well that put a timestamp somewhere?

        cheers, Paul

      • #1998190 Reply

        Thanks for the suggestion and questions.

        @anonymous: a BATch file as a scheduled task might well start faster. but there’s a lot of overhead involved in setting a task up on 70 PCs, as opposed to copying a single BATch file to each PC.  It’s certainly worth a look, though.

        @PaulT: the problem is not the time taken to execute the BATch file, but to get it to  start quickly.  Windows 7 started the BATch file 5-10 seconds more quickly than does Windows 10 – even though the Windows 10 boxes have SSDs instead of hard drives, and faster CPUs!



        Data is not the plural of anecdote...

      • #1998286 Reply
        AskWoody Lounger

        If you have Win10 Pro and above you can run it from Run->gpedit.msc (Group Policy) never ran or timed a batch file from the Start but I would imagine its a bit quicker than Task Sched. without out too much affect on the start times, depending on the size and complexity of Task the Batch file is performing.
        Reboot and you should be good

      • #1998353 Reply
        AskWoody MVP


        Using the PowerShell tab in the GPO you can use this command.

        New-PSDrive –Name “Drive Letter Here no colon!” –PSProvider FileSystem –Root “your network path here” –Persist

        Of course you probably want to ditch the -Persist argument.

        HTH 😎

        May the Forces of good computing be with you!


        PowerShell & VBA Rule!
        Computer Specs

        • This reply was modified 6 months, 3 weeks ago by RetiredGeek.
    Viewing 5 reply threads

    Please follow the -Lounge Rules- no personal attacks, no swearing, and politics/religion are relegated to the Rants forum.

    Reply To: Making BATch file start faster at logon

    You can use BBCodes to format your content.
    Your account can't use Advanced BBCodes, they will be stripped before saving.