#1 17 Nov 2006 13:04

Blisset
Member
Registered: 16 Nov 2006
Posts: 2

Log in remote system before launch a batch file

I have a batch file that update some folders from a remote computer to a local computer.
I need to log in remote computer (by dialog window) before the batch files can work.
How can I put "log-in commands" inside the batch file?
Thank you very much

Offline

#2 17 Nov 2006 16:50

Simon Sheppard
Super Administrator
Registered: 27 Aug 2005
Posts: 1,031
Website

Re: Log in remote system before launch a batch file

Join a password protected file share (Drive MAP)
NET USE [driveletter:] \\ComputerName\ShareName[\volume] [password | *]
[/USER:[domainname\]username] [/PERSISTENT:No]

That said, think carefully about putting plain text passwords into a script!

Offline

#3 01 Feb 2007 14:42

Richard Geenberg
Member
Registered: 31 Jan 2007
Posts: 1

Re: Log in remote system before launch a batch file

Or you can do that automatically using some commercial tools like Scriptlogic's Desktop Authority. It can map drives making decision on whom they should be mapped to based on properties contained within the Active Directory. That's secure because of use of standard Kerberos authentication and no need to pass value and names as a plain text. Rule assignment implemented in very handy way here as I can say after using series of similar utilities.

Offline

Board footer

Powered by FluxBB