John writes ..

>If the machines are not on the domain, you will have to log in 
>first. Let us assume there is no shares but you need access to 
>files in various directories. You need to tell the machine who 
>you are first by doing this:
>net use \\frank\c$ /User:frank\Administrator
>
>It will then ask you for the password of the local 
>administrator on frank. NOTE: I don't know how to respond to 
>passwords in a Win32 batch file but with perl it should be 
>quite easy.

Assuming the script is secure - you can supply the password in the net
use command and it will not prompt you.

  net use \\frank\c$ /USER:FRANK\Administrator admin_password

-- 
  Jason King
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to