Page 3 of 3 <123
Topic Options
#11689 - 2001-08-26 07:55 PM Re: PLEASE HELP WITH MAPPING HOME DIRECTORY
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
Also another disadvantage to using the %username% in usermanager
to automaticly create userfolders, is that usermanager sets the
security rights to the created folder so that only %username% can
access it and %username% is the folder owner.

These default security rights prevent even domain admins from
accessing these folders, preventing proper backups from being done
(of cource DA's can overwright these security settings).

As for map rooting, the basic rule of thumb that i have always
seen is this.

  • Win9xNET USE can only maproot to a share
  • Winnt
    NET USE Can only maproot to a share

    SUBST can map root to any subfolder of a share, but mappings do
    not show up under a NET USE command.

  • Win2k
    NET USE can map root to any subfolder of a share, and mappings do
    show up under a NET USE command.

Bryce

[ 26 August 2001: Message edited by: Bryce ]

Top
#11690 - 2001-08-26 08:10 PM Re: PLEASE HELP WITH MAPPING HOME DIRECTORY
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Bryce,
Correct me if I'm wrong, but I believe Backup Operators group has the necessary rights to backup stuff Admins lack access to.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#11691 - 2001-08-27 04:10 AM Re: PLEASE HELP WITH MAPPING HOME DIRECTORY
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
you may be right... i had forgotten about backup operators.....
Top
#11692 - 2001-10-25 10:46 PM Re: PLEASE HELP WITH MAPPING HOME DIRECTORY
Anonymous
Unregistered


A footnote:
We had the opposite problem in WinXP. By default the Home Directory in user manager is map rooted and we needed to revert to the NT mapping. i.e.

Home dir is N: = \\Server\Users\Group\UserID
Share is \\Server\Users (mapped to N
so Home directory is N:\Group\UserID

On WinXP this became:
Home dir same
Share is same
but Home directory is now N:\

There is a registry entry (also in Win2K) of ConnectHomeDirToRoot which the following sets back to the NT style.

code:
 	
WriteValue("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System","ConnectHomeDirToRoot","1",REG_DWORD)


This was necessary as we use %HomeDrive%%HomePath% which the WinXP system breaks.

Top
#11693 - 2002-01-26 01:56 AM Re: PLEASE HELP WITH MAPPING HOME DIRECTORY
gsat Offline
Fresh Scripter

Registered: 2002-01-06
Posts: 15
Loc: CA
I used the following from the link that NTDOC suggested http://kixtart.org/cgi-bin/ultimatebb.cgi?ubb=get_topic&f=1&t=002950

Used

USE H: ("\\testserver\@userid$")

This worked both on Windows 2000 Server as well as Professional.

Great! Isn't it?? Thanks for all your help!

Great appreciations to bleonard, Alex.H, sealeopard, NTDOC and all@kixtart. I really enjoyed this support! Thanks a million guys..gotto run to fix some more issues..


Top
#11694 - 2002-01-26 01:58 AM Re: PLEASE HELP WITH MAPPING HOME DIRECTORY
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11624
Loc: CA
Your welcome gsat,

But I think you meant from this post.
http://kixtart.org/cgi-bin/ultimatebb.cgi?ubb=get_topic&f=2&t=002845

Glad we could all help out.

Top
#190564 - 2008-11-13 03:56 PM Re: PLEASE HELP WITH MAPPING HOME DIRECTORY [Re: NTDOC]
johnewagner Offline
Fresh Scripter

Registered: 2005-12-21
Posts: 7
Yeah Yeah, I know it's an old thread. However this thread popped up when I was researching home directories with Google. Hopefully I can ease the pain for someone else.

We are moving from individual shares to a master share for all users. The script has to work for all users, no matter if they have been migrated or not. I don't trust that AD will map the user, so I force it. However if the script fails or does not run, AD should still present the home directory.

For some reason @HOMESHR and @LongHomeDir are identical if the home share is not a deep path. They are different if the share is a deep path.

I wanted to query the h:\ drive before deleting it, and compare it to the expected deep path, but I gave up. Anyone have any ideas? I left mapping on for testing purposes

Tested on XP, Win2k, and Vista.

John Wagner

Code follows:


;**************************************************************************
; Home Directories
;**************************************************************************
USE H: /delete /persistent
USE G: /delete /persistent

IF EXIST ("@HOMESHR")
? "Home Share mapped to @HOMESHR."
? "Home path is @LongHomeDir."
sleep 10
if @HOMESHR = @LongHomeDir
use H: @HOMESHR
$error = @ERROR
IF $error = 0
? "Home directory mapped to @HOMESHR."
ELSE
? "Home directory @HOMESHR does not exist or you do not have permission to access it."
SLEEP 5
ENDIF
else
$txtDeepMap = @HOMESHR + "\" + @LongHomeDir
USE H: $txtDeepMap
$error = @ERROR
IF $error = 0
? "Home directory mapped to $txtDeepMap."
ELSE
? "Home directory $txtDeepMap does not exist or you do not have permission to access it."
SLEEP 5
ENDIF
ENDIF
ELSE
? "Home directory does not exist."
ENDIF

Top
Page 3 of 3 <123


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 686 anonymous users online.
Newest Members
Timothy, Jojo67, MaikSimon, kvn317, kixtarts2025
17874 Registered Users

Generated in 0.064 seconds in which 0.029 seconds were spent on a total of 14 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org