search cancel

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

book

Article ID: 88875

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

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

Environment

Release: AOATAM99000-9.0-Automic-One Automation Tools-Application Manager
Component:

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.