Hello I need to start a task with the command shell from a skeduled task, the problem is that this task has to access to a network drive, when it is start manually it runs correctly but if I skedule it from domino server it doesn’t done anything. I suppose the problem is that Domino Service is run by System Account and this account hasn’t access to network drive…How I can solve this problem?
PS: I don’t want to star domino service with another account becouse I need the console.
Thanks
Subject: shell from skeduled agend
If it’s a Windows box you can issue a shell command to map a network drive using:
net use x: \server\share\ /user:domain:userid password
I would guess there are other OS like command that do the samething.
Where the items in blue need to be replaced with your values. Also don’t forget the agent will need to be signed by someone with unrestrited access. I have an agent where I write a file to a network drive and then ftp the file to a MVS system.
Subject: RE: shell from skeduled agend
Thanks but if i create a cmd with net use domino give me a “system error 1312” and if i try with an exe file with shellexecute command the exe enter in loop…
Subject: RE: shell from skeduled agend
Just did a google and error 1312 appears to mean the userId you’re using does not have a session.
Does the ID you’re trying have permission to access that machine?
You are including the Domain infomration?
I assume you’ve already tried to issue the command yourself at a cmd prompt on the box to make sure it works?
Right from my code:
returnvalue = Shell( “net use “+drive+”: “+serverName+” “+” “+userPwd+” /user:”+userName)
Where username: ourNetwork\myID