Ask Experts Questions for FREE Help !
Ask
    aru7730's Avatar
    aru7730 Posts: 3, Reputation: 1
    New Member
     
    #1

    Feb 17, 2011, 02:41 AM
    I need to automate my batch file , passing the username and password in the batch fil
    I need to automate my batch file , passing the username and password in the batch file itself so that, user doesn't have to put in the authentication every time for windows.
    Curlyben's Avatar
    Curlyben Posts: 18,514, Reputation: 1860
    BossMan
     
    #2

    Feb 17, 2011, 02:44 AM
    Add this line:
    Code:
    PASSWORD /user:DOMAIN\USERNAME
    For example drive mapping

    Code:
    net use z: \\PATH PASSWORD /user:DOMAIN\USERNAME /persistent:no
    aru7730's Avatar
    aru7730 Posts: 3, Reputation: 1
    New Member
     
    #3

    Feb 18, 2011, 01:05 AM
    How to transfer file between two machine using schedule task in windows 7
    How to transfer file between two machine using schedule task in windows 7
    Curlyben's Avatar
    Curlyben Posts: 18,514, Reputation: 1860
    BossMan
     
    #4

    Feb 18, 2011, 01:11 AM
    Same way as you would do it on earlier windows.

    Write your batch file, then follow the create basic task wiz.
    Then simply point it at the batch you have already written.
    aru7730's Avatar
    aru7730 Posts: 3, Reputation: 1
    New Member
     
    #5

    Feb 18, 2011, 02:11 AM
    Hii
    I am running windows 7 and I have batch file copy from 1 computer to another .it runs fine, but when I set it up to run in task scheduler it shows as completed successfully but nothing happens. No files are copied and the command box doesn't appear... any idea?
    Curlyben's Avatar
    Curlyben Posts: 18,514, Reputation: 1860
    BossMan
     
    #6

    Feb 18, 2011, 02:13 AM
    Check the permissions used.

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

Creating batch file [ 5 Answers ]

Hi, I have created batch file and saved with .bat from notepad. And I wanted to run that file on startup of my computer but I don't want to see that black DOS window while batch file is running on startup. Is there any other keyword or statements that I can put in batch file that will hide...

Automate batch file to accept username & Password [ 1 Answers ]

Hello experts I am conneting to my ftp server through batch file. But every time it is asking me for username & password So how do I pass the authentification (username & Password) parameters through the batch file itself. (I need to automate my batch file , passing the username and...

How to pass username & password through batch file [ 1 Answers ]

Hello experts I am conneting to my ftp server through batch file. But every time it is asking me for username & password So how do I pass the authentification (username & Password) parameters through the batch file itself. (I need to automate my batch file , passing the username and...

Batch file over LAN [ 2 Answers ]

I want to install bat file over lan

Batch File In Dos [ 2 Answers ]

How do I make a batch file in dos that will open a program. I need to name the file S The file is acct\prog\solomon\solomon I have this in one PC but forgot how it create the command.


View more questions Search