SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
net use command

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
net use command
Author Message
Jason Hoskins



Joined: 12 Mar 2004
Posts: 68

Post net use command Reply with quote
I need to connect to a share on a separate domain with different credentials which does not have the trust allowing the service user to connect. I am trying to run the command using RunAndWait:

net use \\servername.domain.com\share password /USER:domain\userid

This works if I run it from the command prompt but if I run it from 24x7 (even through the GUI), the connection is not produced. Is there any way of connecting to a share use crednetials within a job?

Thanks for the assistance.
Mon Apr 30, 2007 8:28 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7970

Post Reply with quote
Do you run it as a program type job or from a script job? If you do it from a JAL script, do you rember about special ASCII characters?
Mon Apr 30, 2007 9:28 am View user's profile Send private message
Jason Hoskins



Joined: 12 Mar 2004
Posts: 68

Post Reply with quote
I am doing it from a script job. Which ASCII characters are special besides the quotes? Should I put the command in a variable instead?
Mon Apr 30, 2007 9:36 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7970

Post Reply with quote
Back-slash is an escape character indicating that the following character is special, e.g. \n, \r, \t, \\. Run your script in debugger or use the tracing feature to see what happens during the execution. Please see "Special ASCII characters" topic in the online help for more details.
Mon Apr 30, 2007 9:45 am View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.