Skip to main content

Timeline for answer to Map a network drive to be used by a service by larry

Current License: CC BY-SA 3.0

Post Revisions

11 events
when toggle format what by license comment
Oct 10, 2017 at 15:11 comment added Eternal21 @ScottStafford No /persistent:yes is not enough on Win7 and later. The mapping gets removed after reboot regardless of that switch.
Sep 4, 2017 at 13:35 comment added davidfrancis This worked well on a Windows laptop running a Windows VM. The Vm maps a drive onto some of the host's disk space, and also wishes to use symbolic link on the VM's C: drive to point to the shared drive and therefore point to the correct place on the host's disk space. The VM needs to access this disk space from a Windows service so I needed this workaround with a scheduled job running as System. Thanks
May 1, 2016 at 22:52 comment added NMC @TechJerk Did you ever find a fix for the logon failure ?
Feb 5, 2015 at 18:49 comment added Scott Stafford Why does it need to be a scheduled task? It is /persistent:yes, isn't that enough to keep it around?
Jun 20, 2014 at 14:31 comment added spankmaster79 @TechJerk did you solve your problem? I'm having the same trouble and can't get it to work
Oct 27, 2013 at 1:19 comment added Jim Hunziker This the only method that worked for me on Windows 8.1. I had to do it to back up my NAS to Crashplan, and the trigger was set to happen when any user logged in.
Sep 25, 2013 at 10:41 comment added Edd @Thomas it doesn't matter which starts first providing the task has been run at least once because of the /persistent:yes
Jul 18, 2013 at 7:32 comment added Gopi I tried this on 2008 R2, it creates a Disconnected Mapped Drive and when I try to open the same it says "z:\ is not accessible. Logon Failure:unknown user name or bad password." But I was able to create mapped drive successfully by running the same bat file manually. Ny insights?
Jan 10, 2013 at 14:02 history edited bluish CC BY-SA 3.0
added 8 characters in body
Dec 20, 2011 at 14:26 comment added Thomas what starts first? a windows service or this scheduled task? our service dies at start if the path is unavailable. We'd have to rebuild this if the service starts last.
Oct 23, 2011 at 15:28 history answered larry CC BY-SA 3.0