[Samba] Logon Script

Smith, Daniel A(Z07833) Daniel.Smith at pinnaclewest.com
Fri Aug 23 13:52:01 GMT 2002


I believe the command you want to use is 

I believe the command you want to use is 

net use h: \\SERVERNAME\%USERNAME%  
The variable %username% is replaced by the user anem of the user logged
in to the system.

HTH

Dan Smith
Sr. System Analyst
Pinnacle West Shared Services
623-393-5373
"If you can't get your work done in 24 hours a day,
work nights"



-----Original Message-----
From: Paul Soulek [mailto:soulek at frontiernet.net]
Sent: Friday, August 23, 2002 3:48 PM
To: samba at lists.samba.org
Subject: [Samba] Logon Script


I volunteer at a school, where we recently installed Linux on a server,
and we run SAMBA. I have a logon script, that makes use of the "net use"
command in Windows to map the network drives when a user logs on.

Here is what it looks like (from memory, I'm not at school now)

net use h: \\SERVERNAME\**USERNAME**
net use s: \\SERVERNAME\dropbox
net use r: \\SERVERNAME\public_folder

I can get the last two commands to work, but how can I get Windows to
give me the username as a variable? I tried %U (which is the Linux
variable), but what would I insert? Each user has their own home share
that I want to map. Thank you!

Paul in Minnesota
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba





More information about the samba mailing list