login script .batch file

Microsoft Windows server 2003
March 2, 2010 at 05:39:46
Specs: Windows XP
Hi, i've been looking for a few days now how to create a log in script using batch commands, what im trying to do is create a welcome message map 3 network drives and map a printer which is connected to another computer on the network i have had no problems with mapping the drives however i havent been able to create a welcome message and for mapping a printer i am a little confused as to what i should place for the port section of the line (LPT1,etc) from what i have read vbscript would be easier however i dont have any experience with it.
thanks

See More: login script .batch file

Report •

#1
March 2, 2010 at 09:00:58
what im trying to do is create a welcome message

This can be done through policies. If in a domain, it would be setup on the domain policy. If a standalone PC (ie: workgroup as vs a domain) then it would be done in the Local Security policy. Look through the Local Security Policy (found in Administrative Tools in the Control Panel). Once you have the LSP open, look in:
Local Policies >> Security Options and look for "Interactive Logon" and you'll see where you can configure a logon message.

map 3 network drives

Simple enough, you would use the net use command. More info on that in the help files, on microsoft's website, through a google search, or open a command prompt window and type net use /?

map a printer which is connected to another computer on the network

You need to install that printer on each computer individually. Click on my name above in my response and read my "how-to" guide for adding a network printer.

The reason I say install it is, once the printer is installed on each client PC/laptop, it doesn't need to be reinstalled each time the computer boots up. Printers are a one time thing....install it and it's there every time you boot up.

From what I can see, you need only create a small batchfile that maps the 3 drives.



Report •

#2
March 2, 2010 at 15:24:11
I was actually hoping i could do all 3 tasks with a batch file however your reply Curt also solves my problems. Thank you very much for the fast response and solution.

Report •

#3
March 3, 2010 at 00:12:29
It's a simple script to do, and here is a very comprehensive and easy site that'll not only answer your questions but also teach you how to get started on your own:

http://www.computerperformance.co.uk/


Report •
Related Solutions


Ask Question