# Cannot access network folder

**URL:** https://forum.duplicati.com/t/cannot-access-network-folder/1436
**Category:** Support
**Created:** [November 15, 2017, 3:23pm UTC](https://forum.duplicati.com/t/cannot-access-network-folder/1436 "2017-11-15T15:23:02Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![JonMikelV](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/j/439d5e/32.png) [@JonMikelV](https://forum.duplicati.com/u/JonMikelV)
#### Post date: [November 16, 2017, 8:31pm UTC](https://forum.duplicati.com/t/cannot-access-network-folder/1436/7 "2017-11-16T20:31:18Z")

</div>

My apologies - you did explain it correctly the first time, I just didn’t read your post closely enough. But I think I understand now - the problem is with a mapped drive as the SOURCE, not as the destination.

I believe kees-z’s answer is correct - you need to either run Duplicati as the user who mapped the Z: drive or you need to add the Z: drive mapping to the user the Duplicati _IS_ running as.

* * *

## Change Service User

If Duplicati is running as a service, then the “Duplicati service Properties (Local Computer)” image in my previous post is where you can update “This account” to be the user for whom drive Z: was mapped.

* * *

## Add access to LOCALSYSTEM (hack)

I believe it is possible to give the LOCALSYSTEM account a mapped drive, but it will then be usable by everybody on the computer. So if you give LOCALSYSTEM a mapped Z: drive when you log in as your normal user you will have that Z: drive.

* * *

## Dynamic mapped pre/post script drive (hack)

1. Create a batch file with something like this:  
`net use V: "\\10.3.10.17\" "myPassword" /USER:"\\10.3.10.17\nas1_informatica" /PERSISTENT:YES`
2. Create a batch file with something like this:  
`net use V: /DELETE`
3. In your Duplicati job add a `--run-script-before` parameter that points to the first script and a `--run-script-after` parameter that points to the second script.

(Note that while the backup is running it’s **possible** other users on the machine will have access to the V: drive, I’m not sure.)

* * *

## Dynamic mapped drive batch file & Task Manager (hack)

Other options include not running Duplicati as a service and instead using the Windows Task manager to run a batch file which would:

1. map the drive (with something like `net use Z: "\\10.3.10.17\" [password] /USER:"\\10.3.10.17\nas1_informatica"`
2. run the Duplicati backup as a commandline call
3. remove the mapped drive (with something like `net use Z: /DELETE`

---

_[View the full topic](https://forum.duplicati.com/t/cannot-access-network-folder/1436)._
