.bat files for login

T

Tx2

I've been given the opportunity to 'play' with a Windows 2000 server
that requires an extra disk for storage due to the current one having
bee almost filled up.

I know squat all about servers, but this one is rarely used, and then
only for video files, so I'm being given the opportunity to play as it
matters not how long it is offline et al.

Each user on the network (domain) utilises a batch file when logging in,
and as i see it, this batch files tells their system to 'see' some share
folders on the server as network drives.

(can anyone post a sample batch file of this type, or point me to
examples?)

When i add the new disk to this server, i am going to create a few
folders, but i have no idea how to re-write a .bat file to do this, as
in adding the new share folder paths so users see them as drives.

Can anyone help, or point me to a resource?
 
F

Freaky

Batch files are crap, especially if you have another one for each user. I
can only recommend kix to you (you could also do stuff with vbscripting or
something, but it's more complex).

www.kixtart.org

you can find enough examples there.
 
P

Pegasus \(MVP\)

Tx2 said:
I've been given the opportunity to 'play' with a Windows 2000 server
that requires an extra disk for storage due to the current one having
bee almost filled up.

I know squat all about servers, but this one is rarely used, and then
only for video files, so I'm being given the opportunity to play as it
matters not how long it is offline et al.

Each user on the network (domain) utilises a batch file when logging in,
and as i see it, this batch files tells their system to 'see' some share
folders on the server as network drives.

(can anyone post a sample batch file of this type, or point me to
examples?)

When i add the new disk to this server, i am going to create a few
folders, but i have no idea how to re-write a .bat file to do this, as
in adding the new share folder paths so users see them as drives.

Can anyone help, or point me to a resource?

This is usually done like so:

@echo off
net use P: \\SomeServer\%UserName%

The batch file assumes that you created a share for each
user, e.g.

\\SomeServer\JSmith
\\SomeServer\PBrown

Some respondents might tell you that batch files cannot
handle this type of basic task. They obviously can, and
some of the more demanding stuff too.
 
R

Richard G. Harper

If you open the SYSVOL share on your domain controller you can find all the
current logon script (or batch) files and examine them, or even create new
ones and assign them to users with the Active Directory Users and Computers
tool.

--
Richard G. Harper [MVP Shell/User] (e-mail address removed)
* PLEASE post all messages and replies in the newsgroups
* for the benefit of all. Private mail is usually not replied to.
* My website, such as it is ... http://rgharper.mvps.org/
* HELP us help YOU ... http://www.dts-l.org/goodpost.htm
 
T

Tx2

If you open the SYSVOL share on your domain controller you can find all the
current logon script (or batch) files and examine them, or even create new
ones and assign them to users with the Active Directory Users and Computers
tool.

Thanks, i'm really going to enjoy playing!
 
R

Ryan Hanisco

While Kixstart looks like it does some really cool things, I would be really
cautious with something like this. If you do decide to play with it, do not
do it on a production system and make sure you put it through your full
acceptance testing and change control process.
 
G

Guest

SYSVOL is only on the AD DC's so you may have to go thru the admins to get
anything into that and your account, or a test account, adjusted to use it.

For testing I would recommend configuring a startup script in the local
policy. That way you can control it w/out having to ask the admins.

I HIGHLY recommend Kix tho... Especially if you're just starting out. The
boards there are very friendly w/newbies and it's a great scripting language
to boot! VBscript can be a pain but it can be run by the WSH engine that
comes std on all W2K and above systems. It's a trade off, but if you're
doing it all yourself Kix is the smaller learning curve.

You might want to also check out the MS scripting repository at
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnanchor/html/scriptinga.asp

A good batch scripting reference is Rob van der Woude's at
http://www.robvanderwoude.com/index.html
 
R

Richard G. Harper

Be sure you make a safe backup copy of the existing files before you begin,
otherwise do enjoy!

--
Richard G. Harper [MVP Shell/User] (e-mail address removed)
* PLEASE post all messages and replies in the newsgroups
* for the benefit of all. Private mail is usually not replied to.
* My website, such as it is ... http://rgharper.mvps.org/
* HELP us help YOU ... http://www.dts-l.org/goodpost.htm
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top