Koozali.org: home of the SME Server

Logon Script Win98

Simon Meelich

Logon Script Win98
« on: August 16, 2001, 11:22:20 PM »
Hello,
I hope nobody asked this before, but I couldn't find any help in the forums.
I would like to use the netlogon.bat for all my PCs to map a drive to my e-smith server. However, it should be individually for each person. So if user  Jim logs on, I want drive u: to be mapped to \server\jim; if user Mary logs on, I want drive u: to be mapped to \server\mary; it should be according to the windows logon. I know how to do it with NT --> there you can use %username% and it will do the right thing; however this did not work under Win98.

Could anybody help me?

Thanks a lot!!

Simon

Steve Brock

Re: Logon Script Win98
« Reply #1 on: August 16, 2001, 11:58:44 PM »
If you just want every user's homedir to be mapped to a particular drive, you can use the default 'homes' share from the samba server:

net use x: \e-smith-server\homes

I use this on mine. works like a charm.
OR.. if you wanted to, you could set up a new share the same way the [homes] share is setup in /etc/smb.conf  (you'll notice the %S in place of the username there)
just remember to copy your smb.conf template to the templates-custom dir ;)

-steve

Simon Meelich

Logon Script WinNT
« Reply #2 on: August 17, 2001, 01:28:56 AM »
Ok, thanks a lot - I'll give it a try.
Another question I have: if I used NT on my machine, would I just follow the same steps to get my logon script going? Just configure NT as a computer in my workgroup "e-smith" or do I need to configure it differently than my Win98?

Thanks again!!

Simon