# Perspective Mapping a Network Drive

**URL:** <https://forum.inductiveautomation.com/t/perspective-mapping-a-network-drive/83731>\
**Category:** Ignition\
**Tags:** perspective, ignition81\
**Created:** [January 3, 2024, 9:34am UTC](https://forum.inductiveautomation.com/t/perspective-mapping-a-network-drive/83731 "2024-01-03T09:34:21Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pat\_Cunningham](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pat_cunningham/32/57710_2.png) [@Pat\_Cunningham](https://forum.inductiveautomation.com/u/Pat_Cunningham)\
**Post date:** [January 3, 2024, 9:34am UTC](https://forum.inductiveautomation.com/t/perspective-mapping-a-network-drive/83731/1 "2024-01-03T09:34:21Z")

</div>

I am trying to map a network drive in Perspective.

I went over the following page and I think I did everything  
[https://docs.inductiveautomation.com/display/DOC81/Mapping+a+Network+Drive](https://docs.inductiveautomation.com/display/DOC81/Mapping+a+Network+Drive)

I think I have tried every possible combination of the path. I also turned on the wrapper.debug and down see anything useful there.

ignition.conf  
 ![1](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/0/80ad737345e52c21c4f533a37fb3d9edddd8759b.png)

script  
 ![2](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/6/76319a7047dc4442fad3a2d074e903a6063d5ebe.png)

error  
 ![3](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/6/366753ebe3671e5e74ab1b9512b3e48b518064ef.png)

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [January 3, 2024, 1:55pm UTC](https://forum.inductiveautomation.com/t/perspective-mapping-a-network-drive/83731/2 "2024-01-03T13:55:40Z")

</div>

Even if you solve your problem (probably network rights in the service account), you are setting yourself up for grief. When the target server reboots or is briefly unavailable, or is unavailable when Ignition starts, this breaks. Ignition won't reconnect without a (another) gateway restart.

Use UNC paths for all network resources. Run the gateway service with a domain account that has privileges to all the needed network resources. This is the only robust way to do this.

---

<div class="post-metadata">

**Author:** ![Pat\_Cunningham](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pat_cunningham/32/57710_2.png) [@Pat\_Cunningham](https://forum.inductiveautomation.com/u/Pat_Cunningham)\
**Post date:** [January 3, 2024, 3:10pm UTC](https://forum.inductiveautomation.com/t/perspective-mapping-a-network-drive/83731/3 "2024-01-03T15:10:15Z")

</div>

I am currently running this on my box and I have access to all of those resources but I cannot access those files. I can if I use the script console. I went through a bunch of posts on this on thought this was the way to go.

How do I define the account that runs the gateway service?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [January 3, 2024, 3:35pm UTC](https://forum.inductiveautomation.com/t/perspective-mapping-a-network-drive/83731/4 "2024-01-03T15:35:21Z")

</div>

> [@Pat\_Cunningham](#):
>
> unning this on my box and I have access to all of those resources

The gateway runs as a service. It is totally separate from whatever you do on the desktop on that box. Go to computer management, find services, find the Ignition service, and alter it to run with a suitably privileged account. (You might have to dig around--I avoid Windows like the plague, myself.)

Keep in mind that whatever you do in your own box will have to be set up similarly in a production environment. That might be much more trouble.

Consider not _ **using** _ an external network resource, but instead _ **expose** _ a network resource (named share) from the gateway. Then Ignition needs no dedicated user account for privileges, just read/write access to the folder you expose. Then you grant privileges as appropriate to the external consumers of the data.

---

<div class="post-metadata">

**Author:** ![Pat\_Cunningham](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pat_cunningham/32/57710_2.png) [@Pat\_Cunningham](https://forum.inductiveautomation.com/u/Pat_Cunningham)\
**Post date:** [January 3, 2024, 3:44pm UTC](https://forum.inductiveautomation.com/t/perspective-mapping-a-network-drive/83731/5 "2024-01-03T15:44:14Z")

</div>

> [@pturmel](#):
>
> Consider not _ **using** _ an external network resource, but instead _ **expose** _ a network resource (named share) from the gateway. Then Ignition needs no dedicated user account for privileges, just read/write access to the folder you expose. Then you grant privileges as appropriate to the external consumers of the data.

I am sorry but you lost me here. Is there some documentation you could point me to. Thank you very much for this.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [January 3, 2024, 3:49pm UTC](https://forum.inductiveautomation.com/t/perspective-mapping-a-network-drive/83731/6 "2024-01-03T15:49:24Z")

</div>

> [@Pat\_Cunningham](#):
>
> some documentation

No, I avoid the plague that is Windows. Others here can chime in if they please.

However, if you right-click on any arbitrary folder on a local disk in Windows, and open "Properties", one of the tabs available is "Sharing". Setting that up makes that folder reachable from other Windows machines just like mapping to any other file server.

---

<div class="post-metadata">

**Author:** ![Pat\_Cunningham](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pat_cunningham/32/57710_2.png) [@Pat\_Cunningham](https://forum.inductiveautomation.com/u/Pat_Cunningham)\
**Post date:** [January 3, 2024, 6:44pm UTC](https://forum.inductiveautomation.com/t/perspective-mapping-a-network-drive/83731/7 "2024-01-03T18:44:39Z")

</div>

> [@pturmel](#):
>
> Use UNC paths for all network resources. Run the gateway service with a domain account that has privileges to all the needed network resources. This is the only robust way to do this.

So I tried this and now the gateway will not start. I tried going back and running the installation and nothing. Service will not start

---

<div class="post-metadata">

**Author:** ![Pat\_Cunningham](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pat_cunningham/32/57710_2.png) [@Pat\_Cunningham](https://forum.inductiveautomation.com/u/Pat_Cunningham)\
**Post date:** [January 3, 2024, 6:50pm UTC](https://forum.inductiveautomation.com/t/perspective-mapping-a-network-drive/83731/8 "2024-01-03T18:50:49Z")

</div>

Never mind, I forgot that I tried

wrapper.share.1.startup.failure=SHUTDOWN

Apparently that works and drive was not mapping

---

<div class="post-metadata">

**Author:** ![Pat\_Cunningham](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pat_cunningham/32/57710_2.png) [@Pat\_Cunningham](https://forum.inductiveautomation.com/u/Pat_Cunningham)\
**Post date:** [January 3, 2024, 7:03pm UTC](https://forum.inductiveautomation.com/t/perspective-mapping-a-network-drive/83731/9 "2024-01-03T19:03:02Z")

</div>

So I was able to get the firs thing working.

On our drives we have network drives that are mapped and I was trying to map a folder on one of those drives. I tried to map the root drive that we map to our network drives and that worked.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [January 3, 2024, 7:30pm UTC](https://forum.inductiveautomation.com/t/perspective-mapping-a-network-drive/83731/10 "2024-01-03T19:30:21Z")

</div>

> [@Pat\_Cunningham](#):
>
> get the firs thing working.

Just so you know that it will break if the mapped drive is ever not available when Ignition starts. And if it ever becomes unavailable after Ignition is started, you have to restart Ignition to make it work again.

Just because IA documents this drive mapping option doesn't make it a good idea.

---

<div class="post-metadata">

**Author:** ![weixionglichina](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/weixionglichina/32/10650_2.png) [@weixionglichina](https://forum.inductiveautomation.com/u/weixionglichina)\
**Post date:** [January 25, 2024, 10:37am UTC](https://forum.inductiveautomation.com/t/perspective-mapping-a-network-drive/83731/11 "2024-01-25T10:37:14Z")

</div>

> [@Pat\_Cunningham](#):
>
> On our drives we have network drives that are mapped and I was trying to map a folder on one of those drives. I tried to map the root drive that we map to our network drives and that worked.

Would you please show us details? How do you tie your local folder and a network folder?

---

<div class="post-metadata">

**Author:** ![Pat\_Cunningham](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pat_cunningham/32/57710_2.png) [@Pat\_Cunningham](https://forum.inductiveautomation.com/u/Pat_Cunningham)\
**Post date:** [April 26, 2024, 11:57am UTC](https://forum.inductiveautomation.com/t/perspective-mapping-a-network-drive/83731/12 "2024-04-26T11:57:31Z")

</div>

I have circled back to this and would like to get this working properly,

As a test,  
I am logged into my dev box with an account that has access to the network drive in question and I starting the service with the same account.

If I use os.path.exists in the Script Console I get true. If I use os.path.exists in a view I get false.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [April 26, 2024, 12:28pm UTC](https://forum.inductiveautomation.com/t/perspective-mapping-a-network-drive/83731/13 "2024-04-26T12:28:45Z")

</div>

> [@Pat\_Cunningham](#):
>
> If I use os.path.exists in the Script Console I get true. If I use os.path.exists in a view I get false.

Using a drive letter? Completely expected.

Test using a UNC path instead of a drive letter.

---

<div class="post-metadata">

**Author:** ![Pat\_Cunningham](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pat_cunningham/32/57710_2.png) [@Pat\_Cunningham](https://forum.inductiveautomation.com/u/Pat_Cunningham)\
**Post date:** [April 26, 2024, 12:32pm UTC](https://forum.inductiveautomation.com/t/perspective-mapping-a-network-drive/83731/14 "2024-04-26T12:32:46Z")

</div>

I am using UNC in both places

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [April 26, 2024, 12:34pm UTC](https://forum.inductiveautomation.com/t/perspective-mapping-a-network-drive/83731/15 "2024-04-26T12:34:47Z")

</div>

Well, you've exhausted my experience with Windows. UNC paths work where I've done this, where the service user account's name and password were acceptable to the network share.

---

<div class="post-metadata">

**Author:** ![Pat\_Cunningham](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pat_cunningham/32/57710_2.png) [@Pat\_Cunningham](https://forum.inductiveautomation.com/u/Pat_Cunningham)\
**Post date:** [April 26, 2024, 12:39pm UTC](https://forum.inductiveautomation.com/t/perspective-mapping-a-network-drive/83731/16 "2024-04-26T12:39:22Z")

</div>

That's the rub. I have access to the drive but I am not able to share it.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [April 26, 2024, 12:42pm UTC](https://forum.inductiveautomation.com/t/perspective-mapping-a-network-drive/83731/17 "2024-04-26T12:42:25Z")

</div>

I don't think you will succeed until IT allows your network share to trust the gateway service's user (in a domain environment) or user/password (non-domain).

---

<div class="post-metadata">

**Author:** ![Pat\_Cunningham](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pat_cunningham/32/57710_2.png) [@Pat\_Cunningham](https://forum.inductiveautomation.com/u/Pat_Cunningham)\
**Post date:** [April 26, 2024, 3:16pm UTC](https://forum.inductiveautomation.com/t/perspective-mapping-a-network-drive/83731/18 "2024-04-26T15:16:11Z")

</div>

I am back to this. It is not working and I am not getting any debug entries in the wrapper log.

wrapper.debug = TRUE

wrapper.share.1.location=\fileserver\folder  
wrapper.share.1.target=Z:  
wrapper.share.1.type=DISK

wrapper.ntservice.account=user  
wrapper.ntservice.password=password  
wrapper.share.1.account=domain\user  
wrapper.share.1.password=password

wrapper.share.1.shutdown.unmap=TRUE  
wrapper.share.1.startup.max\_retries=2  
wrapper.share.1.startup.retry\_interval=10  
wrapper.share.1.startup.failure=SHUTDOWN

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [April 26, 2024, 3:23pm UTC](https://forum.inductiveautomation.com/t/perspective-mapping-a-network-drive/83731/19 "2024-04-26T15:23:38Z")

</div>

Let me repeat: I strongly recommend against using mapped drives. If you get mapped drives working with any credentials in the wrapper, you can use those credentials to run the service to make UNC paths work reliably. 🤷‍♂️

I got nothing more for you. Get your IT group to fix this.
