Why can't I create a map drive to each individual home-directory with using the command "net use k: \\server\%H" in a logon script which is executed by many users (the connection of the other map drives in the script are ok)? Windows says that the share hasn't been found.
Hi Peter, I use 'net use k: \\server\homes' In my logon script. %H is not known in script files. homes is the same as the [homes] section in your smb.conf file. Ries
I'm new this sort of thing, so forgive me if my solution seems naive. Does the variable %H pull the profile home directory from the domain? If so, then %H should contain the entire UNC. Ergo, you could use "net use k: %H". Steve -----Original Message----- From: samba-admin@us5.samba.org [mailto:samba-admin@us5.samba.org]On Behalf Of Peter Donabauer Sent: Tuesday, November 14, 2000 4:09 PM To: samba@us5.samba.org Subject: mapping drive on HOME Why can't I create a map drive to each individual home-directory with using the command "net use k: \\server\%H" in a logon script which is executed by many users (the connection of the other map drives in the script are ok)? Windows says that the share hasn't been found.
> I'm new this sort of thing, so forgive me if my solution seems naive.No Problem, we all started ones.> Does the variable %H pull the profile home directory from the domain? > If so, then %H should contain the entire UNC. Ergo, you could use > "net use k: %H". > > SteveYou cannot use %H in a script file! %H is a samba isue, not a windows script isue. A startup script is actually a batch file with a number of commands. In you case 'net use k: %H' This simply will not wotk because %H will not be substituted. If you want to map drive K to a home directory of the user use: Where \\server is the server that hold's the users profile name (most of the times the PDC. Homes is the name of the directory of the user. \\server\<homes> and \\server\<username> is the same dir. 'net use k: \\server\homes' Hopefully this will clear thinks up. Ries