# Map network share with user credentials

**URL:** <https://forum.inductiveautomation.com/t/map-network-share-with-user-credentials/15014>\
**Category:** Ignition\
**Created:** [August 8, 2017, 7:55pm UTC](https://forum.inductiveautomation.com/t/map-network-share-with-user-credentials/15014 "2017-08-08T19:55:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jerry101](https://avatars.discourse-cdn.com/v4/letter/j/ecb155/32.png) [@jerry101](https://forum.inductiveautomation.com/u/jerry101)\
**Post date:** [August 8, 2017, 7:55pm UTC](https://forum.inductiveautomation.com/t/map-network-share-with-user-credentials/15014/1 "2017-08-08T19:55:37Z")

</div>

I am trying to figure out how to map a network share, pass the same credentials that the user used to login to the client, and set this share as the path for File Explorer component. I posted a similar question a while back and someone suggested a “subprocess.call” but i am not sure how to get the user password used to login to the client and setup the subprocess correctly. Any help would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![MMaynard](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mmaynard/32/3366_2.png) [@MMaynard](https://forum.inductiveautomation.com/u/MMaynard)\
**Post date:** [August 8, 2017, 9:35pm UTC](https://forum.inductiveautomation.com/t/map-network-share-with-user-credentials/15014/2 "2017-08-08T21:35:20Z")

</div>

Have you tried the code from the docs?

[https://docs.inductiveautomation.com/display/DOC79/Mapping+a+Network+Drive](https://docs.inductiveautomation.com/display/DOC79/Mapping+a+Network+Drive)

---

<div class="post-metadata">

**Author:** ![Kyle\_Chase](https://avatars.discourse-cdn.com/v4/letter/k/9de0a6/32.png) [@Kyle\_Chase](https://forum.inductiveautomation.com/u/Kyle_Chase)\
**Post date:** [August 17, 2017, 6:28pm UTC](https://forum.inductiveautomation.com/t/map-network-share-with-user-credentials/15014/3 "2017-08-17T18:28:10Z")

</div>

Kymera has as utility script module that allows you to interact with WIndows shares. It can be found on this page:

> **[Ignition Modules | Ignition Software | Kymera Systems | Alberta](http://www.kymerasystems.com/modules/)**
>
> Kymera Systems’ Ignition Modules can help you simplifying development and maintenance, enhancing existing Ignition functionality, expanding...

Enclosed is some example code:

```auto
#example smb://1.2.3.4/share3/folder2/file5.txt
#user=kymera\user4
system.net.writeFile(server="1.2.3.4",share="share3",filePath="folder2/file5.txt",domain="kymera",username="user4",password="super secret password",bytes="Text for my file",append=False)
text = system.net.readFileAsString(server="1.2.3.4",share="share3",filePath="folder2/file5.txt",domain="kymera",username="user4",password="super secret password")

```

Let me know what you think.
