Re: get login in DOS Well depends on what you are trying to get get done. Whenever I wrote something that incorporated something to be run differently I had to use "runas" command. Check on the syntax but it's something like "runas /user:"nodename command.exe"
Basically this brings up another command prompt but is going to run it as the user you choose. If needed, it'll ask you for a password.
I used this so much for commands in windows that I got sick of typing out the whole thing so I just wrote a short perl script to do it ... Called it "su" LOL ...
But yea, using runas will allow you to run any local program either as a domain user, local user, or setup a script to do it on a foreign machine account ... You can do a lot with it
__________________ A+, Net+, Sec+, Server+, Linux+, MOUS(2000 & '03), MCSE, MCSA, MCT, CNA, CCNA, CCDA, CCNP, CCSP
Last edited by mikesgroovin; 12-17-2008 at 12:30 PM.
|