passing login credentials

Discussion in 'Scripting' started by andespoint, Sep 9, 2003.

  1. andespoint

    andespoint Guest

    Hi Guy's . . . just wondering when running a script how do I pass
    administrator login credentials to the device I am trying to connect to.

    Basically I am logged in locally with one account, and want to run my script
    against a server which is logged in with a different account. . .


    Any help would be great.

    Thanks
     
    andespoint, Sep 9, 2003
    #1
    1. Advertisements

  2. andespoint

    Guest Guest

    runas /noprofile /user:DOMAIN\user "cscript c:\script.vbs"
    will connect you to a remote machine with whatever rights
    the aformentioned user has.

    Will
     
    Guest, Sep 11, 2003
    #2
    1. Advertisements

  3. andespoint

    andespoint Guest

    Thanks a million for the help Will, it worked. . . .

    Hope to return the favor someday. . . .


    Thanks again.
     
    andespoint, Sep 11, 2003
    #3
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.