Announcement

Collapse
No announcement yet.

Automatic share mounting at startup

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Automatic share mounting at startup

    Folks,

    I was looking around but still have not found an answer to my delema. I have my WNDR3800 file share a drive. Each night I have a job which backs up to that drive from my Win2k3 server. Interestingly enough, I'm getting errors which show that the server cannot find the path specified. When I log in, the "Reconnect at logon" seems to work fine and I am connected to the share. However, should I log out or restart the server without logging in, I don't think this activity happens.
    Does anyone know how to mount a share at startup without logging in?

    Perhaps someone can confirm this behaviour... this should be easy right?

    Thanks

    Robert


    edit... wrong keywords. Found AutoExnt as part of the resource kit will do it!
    Last edited by langenet; April 3, 2012, 12:26 PM.
    HS3PRO 3.0.0.500 as a Fire Daemon service, Windows 2016 Server Std Intel Core i5 PC HTPC Slim SFF 4GB, 120GB SSD drive, WLG800, RFXCom, TI103,NetCam, UltraNetcam3, BLBackup, CurrentCost 3P Rain8Net, MCsSprinker, HSTouch, Ademco Security plugin/AD2USB, JowiHue, various Oregon Scientific temp/humidity sensors, Z-Net, Zsmoke, Aeron Labs micro switches, Amazon Echo Dots, WS+, WD+ ... on and on.

    #2
    Just use "net use" in the batch file:

    The syntax of this command is:

    NET USE
    [devicename | *] [\\computername\sharename[\volume] [password | *]]
    [/USER:[domainname\]username]
    [/USER:[dotted domain name\]username]
    [/USER:[username@dotted domain name]
    [/SMARTCARD]
    [/SAVECRED]
    [[/DELETE] | [/PERSISTENT:{YES | NO}]]


    ~Bill

    Comment


      #3
      Yes thanks Bill. But you need to use AutoExnt as the service that will execute the batch file AutoExnt.bat. Much like the old days in Windows 3.11 when you put those commands in Autoexec.bat. Remember?

      Rob
      HS3PRO 3.0.0.500 as a Fire Daemon service, Windows 2016 Server Std Intel Core i5 PC HTPC Slim SFF 4GB, 120GB SSD drive, WLG800, RFXCom, TI103,NetCam, UltraNetcam3, BLBackup, CurrentCost 3P Rain8Net, MCsSprinker, HSTouch, Ademco Security plugin/AD2USB, JowiHue, various Oregon Scientific temp/humidity sensors, Z-Net, Zsmoke, Aeron Labs micro switches, Amazon Echo Dots, WS+, WD+ ... on and on.

      Comment


        #4
        why can't you just use Bill's example and put that in a .bat that ends up in the startup folder?

        Or are you not auto logging in?

        --Dan
        Tasker, to a person who does Homeautomation...is like walking up to a Crack Treatment facility with a truck full of 3lb bags of crack. Then for each person that walks in and out smack them in the face with an open bag.

        Comment


          #5
          I don't log in... locally. I do using RDP - which would mount the share. However, when I log out, it drops it as well.

          There have been a few occasions where I had to reboot the server remotely and would still like the share mounted.

          Rob
          Last edited by langenet; April 4, 2012, 01:14 PM.
          HS3PRO 3.0.0.500 as a Fire Daemon service, Windows 2016 Server Std Intel Core i5 PC HTPC Slim SFF 4GB, 120GB SSD drive, WLG800, RFXCom, TI103,NetCam, UltraNetcam3, BLBackup, CurrentCost 3P Rain8Net, MCsSprinker, HSTouch, Ademco Security plugin/AD2USB, JowiHue, various Oregon Scientific temp/humidity sensors, Z-Net, Zsmoke, Aeron Labs micro switches, Amazon Echo Dots, WS+, WD+ ... on and on.

          Comment


            #6
            Rob,

            You need to logout by reconnecting the session to console, instead of using the disconnect button.

            If you can't find Rupp's example batch, I can try to remember to log in and get it from my server. Works VERY well.

            --Dan
            Tasker, to a person who does Homeautomation...is like walking up to a Crack Treatment facility with a truck full of 3lb bags of crack. Then for each person that walks in and out smack them in the face with an open bag.

            Comment


              #7
              Thanks again Dan. That still doesn't resolve the issue particulary when my server goes down as a result of a drained UPS and automatically restarts when power is back on ... all the while I could be out of the country.
              HS3PRO 3.0.0.500 as a Fire Daemon service, Windows 2016 Server Std Intel Core i5 PC HTPC Slim SFF 4GB, 120GB SSD drive, WLG800, RFXCom, TI103,NetCam, UltraNetcam3, BLBackup, CurrentCost 3P Rain8Net, MCsSprinker, HSTouch, Ademco Security plugin/AD2USB, JowiHue, various Oregon Scientific temp/humidity sensors, Z-Net, Zsmoke, Aeron Labs micro switches, Amazon Echo Dots, WS+, WD+ ... on and on.

              Comment


                #8
                hmm...that is true.

                Well, I tried! :-)

                --Dan
                Tasker, to a person who does Homeautomation...is like walking up to a Crack Treatment facility with a truck full of 3lb bags of crack. Then for each person that walks in and out smack them in the face with an open bag.

                Comment


                  #9
                  Thanks just the same.

                  In any case, AutoExnt is on the Win2k3 resource kit and can also be used for XP should anyone else have this requirement.
                  HS3PRO 3.0.0.500 as a Fire Daemon service, Windows 2016 Server Std Intel Core i5 PC HTPC Slim SFF 4GB, 120GB SSD drive, WLG800, RFXCom, TI103,NetCam, UltraNetcam3, BLBackup, CurrentCost 3P Rain8Net, MCsSprinker, HSTouch, Ademco Security plugin/AD2USB, JowiHue, various Oregon Scientific temp/humidity sensors, Z-Net, Zsmoke, Aeron Labs micro switches, Amazon Echo Dots, WS+, WD+ ... on and on.

                  Comment

                  Working...
                  X