Using UNC Paths or mapped network drives (printers) in Windows Jobs

Document ID : KB000088875
Last Modified Date : 14/04/2018
Show Technical Document Details
Issue:
Using UNC Paths or mapped network drives (printers) in Windows Jobs
Resolution:

Symptoms

A windows job does not work correctly using mapped network sources or a network drive or network printer

Possible Error messages: The system cannot find the path specified. Access is denied.


Cause

UsuallyWindows Agents (started with SMGR) are started with Win user "local systemaccount"

This canbecome a problem if you want to use UNC Paths or mapped network drives.Therefore the local system account has no privileges per default.

Even if your Loginobject contains an user withthe necessary credentials it can lead to the above mentioned Error messages


Resolution

There areseveral possible solutions for this:

 

  • A) Start the agent with userscredentials

 

 

The user who starts the agent and the user in login object needs the permissions to access the UNCPath or network drive

 

  • B) Use a net use command to map theuser within the Job Script

 

 

net use G: \\DOMAIN\SHARE  /user:DOMAIN\USER password /persistent:no

dir G:

 

  • C) Use a net use command to establish aconnection without a drive letter

 

 

net use \\DOMAIN\SHARE  /user:DOMAIN\USER password /persistent:no

dir \\DOMAIN\SHARE  

 

This alsoworks for Network Printers.