Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Batch file to include user name and password 1

Status
Not open for further replies.

Ger2111

IS-IT--Management
Jan 16, 2003
178
GB
Folks,
I want to map a network drive to an AS400 using a logon script. However the AS400 uses different log on credentials to NT so I need to put the user name and password into the logon script.
How do I do this?
Thanks,
Ger


MCP
 
\\computer\sharename password /USER:username /persistent:yes
for example i have a share called ryan on temp. The login to get to that should be hootie and the password is yo the line in the script would look like:
\\temp\ryan yo /USER:hootie /persistent:yes

Hope this helps.
 
Wonderful!!! Thanks a lot.

MCP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top