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.
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
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
- C) Use a net use command to establish aconnection without a drive letter
net use \\DOMAIN\SHARE /user:DOMAIN\USER password /persistent:no
This alsoworks for Network Printers.