Simulate a windows login from the command line.

Jim Ray jim at neuse.net
Wed Nov 17 14:58:42 EST 2004


net use j: \\server\share domain_password /user:domain_name\domain_user
 
followed by the exit line
 
net use * /delete /y
 
might work

-----Original Message-----
From: ncsa-discussion-bounces at ncsysadmin.org
[mailto:ncsa-discussion-bounces at ncsysadmin.org] On Behalf Of Rock Roskam
Sent: Wednesday, November 17, 2004 2:49 PM
To: NC*SA Discussion List
Subject: Simulate a windows login from the command line.


I am trying to write a script for some windows 2003 servers.  I need a
command line that will login to an active directory account and create the
file structure that starts with the login process on the server.  I can then
run my other process to modify the files created.  We are not using roaming
profiles yet on these servers.  I tried doing a net use but that did not
create the folders in the users home directory.  I want to mimic a windows
logon and then logoff from the command line so I can add it to a bat file or
script.
Sincerely,

Rock Roskam


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.ncsysadmin.org/pipermail/ncsa-discussion/attachments/20041117/6eac2d71/attachment.htm


More information about the ncsa-discussion mailing list