Simulate a windows login from the command line.

Rock Roskam Rock.Roskam at sas.com
Wed Nov 17 15:03:54 EST 2004


That was one of my tries and it did not create the profile folder structure.  When creating folders before logging in windows creates a new folder instead of using the existing folder.  It adds a .domain extension like user.domain.
 

Rock

 

________________________________

From: ncsa-discussion-bounces at ncsysadmin.org [mailto:ncsa-discussion-bounces at ncsysadmin.org] On Behalf Of Jim Ray
Sent: Wednesday, November 17, 2004 2:59 PM
To: 'NC*SA Discussion List'
Subject: RE: Simulate a windows login from the command line.


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/7d8d58f0/attachment.htm


More information about the ncsa-discussion mailing list