View Single Post
Old 15-Feb-2007, 04:41 AM   #1 (permalink)
Anilrgowda
Administrator
 
Anilrgowda's Avatar

Posts: 18,715
Join Date: Jan 2006
Rep Power: 10 Anilrgowda is on a distinguished road

IM:
Default Batch file to connect using a different user name and log off when done

I need help creating a batch file that will map a network share as a different user name (i.e. "net use s: \\servername\share /user:domain\john"). The first part of my problem is that I'd like the user to be prompted to enter his password at this point.

Secondly, I'd like the batch file to generate a pop-up window with a disclaimer once the "net use" share has been mapped.

Lastly, I'd like the batch file to generate another pop-up window that asks "would you like to log off your windows session?" and when the user clicks "OK", the computer logs off (i.e. shutdown.exe -l).

Can anyone help me write this beast!!??
Anilrgowda is offline   Reply With Quote