• Making BATch file start faster at logon

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

    Author
    Topic
    #1997903

    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!

    BATcher

    Plethora means a lot to me.

    • This topic was modified 5 years, 6 months ago by BATcher.
    Viewing 4 reply threads
    Author
    Replies
    • #1997936

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

    • #1998157

      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

      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!

       

      BATcher

      Plethora means a lot to me.

    • #1998286

      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.
      Screenshot-37
      Reboot and you should be good

    • #1998353

      BATcher,

      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!

      RG

      PowerShell & VBA Rule!
      Computer Specs

      • This reply was modified 5 years, 5 months ago by RetiredGeek.
    Viewing 4 reply threads
    Reply To: Making BATch file start faster at logon

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

    Your information: