Windows 10: Task Schedule for network mapping reconnect after random disconnection

Discus and support Task Schedule for network mapping reconnect after random disconnection in Windows 10 Network and Sharing to solve the problem; Hi everyone, I have a challenge concerning a computer in a networt who randomly drops the network mappings so that the user cannot save his open docs... Discussion in 'Windows 10 Network and Sharing' started by TomFrankenbach, Jan 15, 2020 at 2:32 AM.

  1. Task Schedule for network mapping reconnect after random disconnection


    Hi everyone,


    I have a challenge concerning a computer in a networt who randomly drops the network mappings so that the user cannot save his open docs anymore and loses his work and a lot of time.


    Our It service is not using Group Policies because of some software conflicts for our personalized apps, therefore we cannot use the Group Policy Method update instead of recreate.


    I did also the Regedit Modifications suggested in some forums

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters // autodisconnect value ffffffff

    KEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanworkstation\parameters // KeepConn value 65535


    As well as the cmd commands

    net config server /autodisconnect:-1


    But after a while of working, the mapping drops again.


    The weird part - we map 2 folders from the same server with the letters w: and p:


    Mostly, only w: gets lost while p: is still available - and both point to the same server. only different subfolders


    So I wrote a basic .bat file that now runs every 5 minutes on the computer, as follows:


    net use w: \\server01\Data /persistent:yes
    net use p: \\server01\BEWShared /persistent:yes


    But, as the connection randomly drops, the risk is still that during the margins between the running task, the disconnect will happen.


    My question to you guys is:


    How if possible can i write a task schedule on Event : map disconnection - to launch the *.bat file ?


    That way, as soon as the event would be triggered, the task would be launched. This would be the most efficient way to "solve" the issue as long

    as we have not found the reason of the random disconnection.


    If anybody has another idea besides the task schedule - every suggestion is welcome except the group policy as the IT says we cannot switch because of our running software.... don't ask.


    Many thanks for your help & kind regards


    Tom

    :)
     
    TomFrankenbach, Jan 15, 2020 at 2:32 AM
    #1

  2. Task Scheduler Tasks copy file to mapped network drive fails

    JR, is it possible that when run via task scheduler you don't have task scheduler set to run the task as the currently signed in user? If the task is run under another account, then P: will not be already mapped for that account.

    Sample:


    Task Schedule for network mapping reconnect after random disconnection [​IMG]
     
  3. HoKe(2) Win User
    Task Scheduler run task on specific network connection.Hol

    this is not really about powershell.

    it is about the list in the screenshot.

    there are several tens of network connection names.

    where are they stored? how can they be listed? how to maintain the list (delete some old once)

    I can start a task only if I choose "Any connection".

    when I choose any other connection I get error 'Task scheduler service is not available task scheduler will attempt to reconnect to it'

    this looks to be an issue of MS

    Task Scheduler Service Is Not Available
     
  4. Task Schedule for network mapping reconnect after random disconnection

    Task Scheduler Tasks copy file to mapped network drive fails

    JR, the only other thing that springs to mind is to make sure that the scheduled task is being run as the user that is currently logged on. You note that you are doing this, but make sure that the user name is in the form of machine_name\user_name (assuming that you are in a workgroup and not a domain).

    For confirmation, open a command prompt and run the command "whoami". The user name that you specify should look exactly like the output of that command.

    If that user is not logged on when the scheduled task is run, then you may need to add the "net use" command as you noted earlier to establish the connection and map the P: drive.

    - - - Updated - - -

    Here is a sample of what my working task looks like (tested while I am logged on as PYROMANIA\hanness):


    Task Schedule for network mapping reconnect after random disconnection [​IMG]

    Task Schedule for network mapping reconnect after random disconnection [​IMG]

    Task Schedule for network mapping reconnect after random disconnection [​IMG]


    Here are the contents of the actual batch file:

    Code:
     
Thema:

Task Schedule for network mapping reconnect after random disconnection

Loading...
  1. Task Schedule for network mapping reconnect after random disconnection - Similar Threads - Task Schedule network

  2. Task Scheduler Tasks copy file to mapped network drive fails

    in Windows 10 Network and Sharing
    Task Scheduler Tasks copy file to mapped network drive fails: I've read a dozen or so of the posts regarding Task Scheduler issues - so far haven't seen my issue solved. Tasks which functioned more-or-less in W7 were saved, then imported to a new PC with a fresh install of W10. They seem to have imported intact. They all call batch...
  3. USB Ports disconnecting and reconnecting mouse randomly

    in Windows 10 Drivers and Hardware
    USB Ports disconnecting and reconnecting mouse randomly: Hi! I've had a problem with my USB ports for a few weeks now. Sometimes the mouse disconnects and then reconnects randomly. This usually happens inside games but has also happened while I'm browsing. A few times both my keyboard and mouse disconnects and reconnects but...
  4. Network usage as a codition for Task Scheduler

    in Windows 10 Performance & Maintenance
    Network usage as a codition for Task Scheduler: I'm trying to create a task in Task Scheduler to automatically Hibernate my PC when it is idle. To save power, cause it is staying powered on 24/7, I've set the power plan to never shutdown or sleep or hibernate after some time, because I often forget to disable this when I...
  5. wifi keeps dropping/disconnecting and reconnecting randomly

    in Windows 10 Network and Sharing
    wifi keeps dropping/disconnecting and reconnecting randomly: the Wifi on my laptop keeps dropping to just one bar and i can't connect to the internet, and then return to normal after a few seconds. sometimes after dropping to one bar the wifi disconnected or it says "no internet access", and then reconnects itself again (but sometimes...
  6. Random USB Disconnects-reconnects for unknown device.

    in Windows 10 Drivers and Hardware
    Random USB Disconnects-reconnects for unknown device.: Hi all, I have a clean install windows 10 home with the specs listed in my profile. Im getting continuous disconnect USB sounds, often multiple times in a row, and the occasional reconnect sound. Ive used a program call USBDeview, and can confidently say it is the top...
  7. How to reconnect disconnected network drives

    in Windows 10 Network and Sharing
    How to reconnect disconnected network drives: I have an Epson XP-850 printer which used to show 2 network drives in Explorer: USB storage (I think this is where it stores printing jobs) with drive letter Y, and the card reader with drive letter Z. The card reader is now missing entirely, and drive Y has a red cross in...
  8. Network Disconnect and Reconnect

    in Windows 10 Network and Sharing
    Network Disconnect and Reconnect: Hello Since upgrading to Windows 10 I been getting random network disconnects? in Event Viewer I get load of these errors Event 27 Intel(R) 82579V Gigabit Network Connection Network link is disconnected. Event 33 Intel(R) 82579V Gigabit Network Connection Network...
  9. Logitech g100s mouse disconnecting and reconnecting randomly

    in Windows 10 Drivers and Hardware
    Logitech g100s mouse disconnecting and reconnecting randomly: So my mouse recently started having this issue where it will disconnect and reconnect randomly for no apparent reason. I wasn't having this problem about a month ago and Windows 10 has been running flawlessly ever since my upgrade so it's weird that my mouse randomly decided...
  10. PC randomly disconnects (when on Youtube), can't reconnect

    in Windows 10 Network and Sharing
    PC randomly disconnects (when on Youtube), can't reconnect: Hello everyone, For about a month now, my pc randomly disconnects from the wi-fi network (my home network) I was connected to, mostly (actually almost exclusively) when I am on Youtube watching videos. Sometimes it happens after 10 min, sometimes after 2h. I can't...