Go Back   Tech Support Forum > Microsoft Support > Windows NT/2000/2003, 2008 and 2012 Server

user login batch file in server 2003

This is a discussion on user login batch file in server 2003 within the Windows NT/2000/2003, 2008 and 2012 Server forums, part of the Tech Support Forum category. I want to map some drivers for the user while they are login. In my computer S drive is not


Closed Thread
 
Thread Tools Search this Thread
Old 08-10-2009, 09:43 PM   #1
Registered Member
 
Join Date: Aug 2009
Posts: 1
OS: Server 2003 and XP sp2



I want to map some drivers for the user while they are login. In my computer S drive is not mapped please help me.
@echo off
echo "Welcome to xyz Company"
@echo off

net use S: \\xyz\homedrive /yes

__________________
muthuuma is offline  
Old 08-11-2009, 02:17 AM   #2
Microsoft MVP
 
TheOutcaste's Avatar

Microsoft Most Valuable Professional
 
Join Date: Mar 2009
Location: Portland, OR
Posts: 3,123
OS: MS-Dos 6.22 - Win7



Welcome to TSF!

Try net use S: \\xyz\homedrive /Persistent:yes

If the user already has a drive mapped to S:, this will fail.
You could do a Net Use S: /Delete first, just to be sure
__________________
Microsoft MVP - Windows Expert - Consumer
Of course I know all the answers; I just don't always match the answers to the right questions.
Rated R for Violence -- When your PC flies through a window, that's violent, right?
TheOutcaste is offline  
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is on
Smilies are on
[IMG] code is on
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Post a Question


» Site Navigation
 > FAQ
  > 10.0.0.2


All times are GMT -7. The time now is 11:02 PM.


Copyright 2001 - 2014, Tech Support Forum

Windows 7 - Windows XP - Windows Vista - Trojan Removal - Spyware Removal - Virus Removal - Networking - Security - Top Web Hosts