# Shared folder on another PC

**URL:** <https://forum.inductiveautomation.com/t/shared-folder-on-another-pc/91949>\
**Category:** Ignition\
**Created:** [June 17, 2024, 1:31pm UTC](https://forum.inductiveautomation.com/t/shared-folder-on-another-pc/91949 "2024-06-17T13:31:15Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![lps](https://avatars.discourse-cdn.com/v4/letter/l/8797f3/32.png) [@lps](https://forum.inductiveautomation.com/u/lps)\
**Post date:** [June 17, 2024, 1:31pm UTC](https://forum.inductiveautomation.com/t/shared-folder-on-another-pc/91949/1 "2024-06-17T13:31:15Z")

</div>

Hello everyone, I have a problem. I want to retrieve a shared folder on another PC.  
When I run the script on with the console script it works fine but with the script that runs in the project.library it doesn't work.  
Here is the syntax that I use //IP address//Folder name//Subfolder name.  
Should I use a different syntax in the project Library?  
Thank you for your feedback.  
Best regards

---

<div class="post-metadata">

**Author:** ![bschroeder](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bschroeder/32/13260_2.png) [@bschroeder](https://forum.inductiveautomation.com/u/bschroeder)\
**Post date:** [June 17, 2024, 1:39pm UTC](https://forum.inductiveautomation.com/t/shared-folder-on-another-pc/91949/2 "2024-06-17T13:39:19Z")

</div>

What OS are you running Ignition on?

If Windows, what _service user_ is running the Ignition Gateway?

---

<div class="post-metadata">

**Author:** ![lps](https://avatars.discourse-cdn.com/v4/letter/l/8797f3/32.png) [@lps](https://forum.inductiveautomation.com/u/lps)\
**Post date:** [June 17, 2024, 1:41pm UTC](https://forum.inductiveautomation.com/t/shared-folder-on-another-pc/91949/3 "2024-06-17T13:41:49Z")

</div>

It's Windows 7. I use a virtual Machine on Vmware for my test .

---

<div class="post-metadata">

**Author:** ![bschroeder](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bschroeder/32/13260_2.png) [@bschroeder](https://forum.inductiveautomation.com/u/bschroeder)\
**Post date:** [June 17, 2024, 1:45pm UTC](https://forum.inductiveautomation.com/t/shared-folder-on-another-pc/91949/4 "2024-06-17T13:45:37Z")

</div>

So you are running the Ignition gateway on Windows 7?

In the Windows Services, what user is configured as the _Log On As_ user?

---

<div class="post-metadata">

**Author:** ![lps](https://avatars.discourse-cdn.com/v4/letter/l/8797f3/32.png) [@lps](https://forum.inductiveautomation.com/u/lps)\
**Post date:** [June 17, 2024, 2:03pm UTC](https://forum.inductiveautomation.com/t/shared-folder-on-another-pc/91949/5 "2024-06-17T14:03:16Z")

</div>

Yes for Windows 7  
I'm just starting out, I don't know where I should look at the service.  
Here is a photo of my script and my problem.  
As you see my result is true but my "test\_alarme" variable remains at 1 instead of going to 0

---

<div class="post-metadata">

**Author:** ![lps](https://avatars.discourse-cdn.com/v4/letter/l/8797f3/32.png) [@lps](https://forum.inductiveautomation.com/u/lps)\
**Post date:** [June 17, 2024, 2:04pm UTC](https://forum.inductiveautomation.com/t/shared-folder-on-another-pc/91949/6 "2024-06-17T14:04:53Z")

</div>

![Capture](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/5/e51a3e364919ca958f2cbe1e5026397d81fe2956.png)

---

<div class="post-metadata">

**Author:** ![bschroeder](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bschroeder/32/13260_2.png) [@bschroeder](https://forum.inductiveautomation.com/u/bschroeder)\
**Post date:** [June 17, 2024, 2:39pm UTC](https://forum.inductiveautomation.com/t/shared-folder-on-another-pc/91949/7 "2024-06-17T14:39:56Z")

</div>

Open up Windows 7 services and look. That's going to be the first place to look. It doesn't matter what your scrip is if the Log On As user doesn't have access to the netowork.

The problem is, the default account that Ignition uses does not have rights to access the network. So whatever script is running in the gateway context, which is tag change scripts, gateway events etc... will be run as that user. So if that user does not have access to the network, then neither will the script.

Alternatively, when you run the script in the console, the active logged on user is the one that is used for the script.
