Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Domain Connection Batch Files

Status
Not open for further replies.

joshstar15

IS-IT--Management
Aug 29, 2007
2
US
Hi,


I'm working on getting a domain ready to implement for the first time across our network. Everything is in place but I'm haveing trouble with a logon batch file... I know.. I feel a little mentally slow.

the idea is to map a users drive automatically through the batch

Net Use I: \\SERVER\profiles$\"%username%" /USER:domain\"%username%"

i used "%username%" due to the fact that we have login names with spaces (not my call) I want the back to automatically map the drive I to the user's folder on the server using the user name and password they just authenticated with (domain username)

Any hints tips or batch examples would be greatly appreciated..

Thanks !

Buried in batch files.
 
If they are logged into the domain, then I doubt you'd need
/USER:domain\"%username%"

Code:
net use i: \\SERVER\profiles$\"%username%"

However, Markdmac has an excellent login script tutorial for using vbs in the FAQ section of this site.

Pat Richard, MCSE MCSA:Messaging CNA
Microsoft Exchange MVP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top