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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

2000 Server Login Script Help

Status
Not open for further replies.

swm2win

IS-IT--Management
May 20, 2005
34
US
I'm still learning my job here, and am pretty clueless on how to write a login script for Windows 2000 server. Does anyone know of a good resource I can find online to figure all this out?

Thanks!!
 
Okay, I've gotten a little bit started, but can anyone tell me how to script the following: Certain computers should automatically map to certain shared drives, and others to others. Is this possible with an "if" statment?

For example, how do I make ComputerA connect to "UserApps" while ComputerB connects to "AdminApps" all within the same login script?

Also, how can I tell the computer to disconnect any previous drive mappings?

Thanks again!
 
swm2win,
you may be able to do this from group policy. as far as drive mappings take a look at the 'net use' command - type 'net help use' at a command prompt.
hth
regards,
longhair
 
as longhair said....make 2 groups & 2 polices and then each should have a login script.
If ur worried about some users already having mapped drives then u can use something in line of:

--------------login.bat---------------
net use f: /del >>C:\login_error.log
net use f: \\Server\share /y >>C:\login_error.log
---------------------------------------

in other words it would delete users' mapped drive letter F to whatever they might have mapped out manually and then re-map it to your desired share...while making a log file on their C drive
...many here will arguee that .bat files are better repleaced by VBscript based ones IF u use Only win2xxx stations and servers....
All the best!

:--------------------------------------------------------------------------:
fugitive.gif

All around in my home town,
They tryin' to track me down...
 
faq329-5798

I hope you find this post helpful.

Regards,

Mark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top