# Jenkin Jobs are failing because it is not able to access the mapped n/w drive

**URL:** <https://forum.ansible.com/t/jenkin-jobs-are-failing-because-it-is-not-able-to-access-the-mapped-n-w-drive/29004>\
**Category:** Ansible Developer\
**Created:** [November 12, 2018, 3:49am UTC](https://forum.ansible.com/t/jenkin-jobs-are-failing-because-it-is-not-able-to-access-the-mapped-n-w-drive/29004 "2018-11-12T03:49:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kavya\_bhandari](https://avatars.discourse-cdn.com/v4/letter/k/ccd318/32.png) [@Kavya\_bhandari](https://forum.ansible.com/u/Kavya_bhandari)\
**Post date:** [November 12, 2018, 3:49am UTC](https://forum.ansible.com/t/jenkin-jobs-are-failing-because-it-is-not-able-to-access-the-mapped-n-w-drive/29004/1 "2018-11-12T03:49:52Z")

</div>

Hi

please help to resolve the following issue .

- hosts:   
become\_user:   
become\_method: runas  
tasks:
- name: to start bat file  
win\_scheduled\_task:  
name: task name here  
username: \<domain\user\>  
password:   
actions:
- path: cmd.exe  
arguments: /c cd /d D:\CI & start.bat  
triggers:
- type: boot  
logon\_type: password

with this i am able to start the batfile to connect jnlp in jenkins. and the bat file runs in background in the remote machine.  
problem is when i run the jenkins job it is fails to access the mapped network drive .  
i am not able find the solution foe this pls do suggest the solution .  
Some inform i got as since the bat is running in background it will not have the access to the network is tat so??

---

<div class="post-metadata">

**Author:** ![jborean](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/jborean/32/1525_2.png) [@jborean](https://forum.ansible.com/u/jborean)\
**Post date:** [November 12, 2018, 9:01am UTC](https://forum.ansible.com/t/jenkin-jobs-are-failing-because-it-is-not-able-to-access-the-mapped-n-w-drive/29004/2 "2018-11-12T09:01:54Z")

</div>

You won’t be able to access a mapped drive within an Ansible task or any other non-interactive logons in Windows. There is a fundamental security barrier between how WinRM processes or scheduled task jobs are started and where mapped drives are accessible to the user.

Thanks

Jordan
