Page 1 of 1 1
Topic Options
#182300 - 2007-11-06 04:59 PM This should be an easy one....
RialbSelur Offline
Fresh Scripter

Registered: 2007-11-05
Posts: 8
Loc: NC
When I use the line:
Use U: @HOMESHR + "\" + @HOMEDIR

The username, if longer than 8 characters, get truncated with a "~1". Is there a way to show the whole name?

Thanks!

Top
#182305 - 2007-11-07 01:55 AM Re: This should be an easy one.... [Re: RialbSelur]
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
what client os?
Top
#182306 - 2007-11-07 03:22 AM Re: This should be an easy one.... [Re: RialbSelur]
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11623
Loc: CA
Because you asked it to (you're mixing different macros that don't need to be)


@HomeDir Short name of the directory part of home directory
@HomeShr Server and share name part of home directory

Top
#182309 - 2007-11-07 09:09 AM Re: This should be an easy one.... [Re: RialbSelur]
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Well, the result of this string @homeshr + '\' + @homedir is something like:

 Code:

\\Servername\Sharename[long]}\\\Servername\Sharename[short]



which of course would fail to map anyway.
This should work better:

 Code:
Use U: @HOMESHR
_________________________



Top
#182316 - 2007-11-07 01:31 PM Re: This should be an easy one.... [Re: Jochen]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4396
Loc: New Jersey
I'm not sure what version of kix or OS platform you guys are running, but on MY system (Kix 4.60 / Vista)
@HOMEDIR=gbarnas
@HOMESHR=\\server\users

- so -

Use H: @HOMESHR + '\' + @HOMEDIR
would be appropriate. Since @HOMEDIR is referenced as the "short name", this could be implied as the 8.3 format. Try

Use H: @HOMESHR + '\' + @USERID
to get the un-shortened name - but - ONLY IF your user IDs and home folders are the same! (Usually they are, if you specify the home path as \\server\share\%USERNAME%).

My first question, however, is - why aren't you defining this in AD, and if you are, why isn't AD mapping the home folder automatically? Do you have the AD user profile defined correctly?

Glenn
_________________________
Actually I am a Rocket Scientist! \:D

Top
#182318 - 2007-11-07 02:05 PM Re: This should be an easy one.... [Re: Glenn Barnas]
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Ooops, my fault.

I was not too aware that I ran this on W2K in an NT4 domain \:o
_________________________



Top
#182320 - 2007-11-07 03:22 PM Re: This should be an easy one.... [Re: Jochen]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4396
Loc: New Jersey
Win2K? NT4? Don't you guys get reruns of the "Time Tunnel" out there? You should jump in and head +5 years! ;\)

Glenn
_________________________
Actually I am a Rocket Scientist! \:D

Top
#182328 - 2007-11-07 06:53 PM Re: This should be an easy one.... [Re: Glenn Barnas]
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
 Originally Posted By: Glenn Barnas
Win2K? NT4? Don't you guys get reruns of the "Time Tunnel" out there? You should jump in and head +5 years! ;\)

Glenn


he would still be behind... \:D

Top
#182333 - 2007-11-08 01:34 AM Re: This should be an easy one.... [Re: Glenn Barnas]
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11623
Loc: CA
Well it still is and can be a SHORT name regardless of OS

I do a direct map to the share so I don't currently actually have a different @HOMESHR

But you're using short names Glenn, if others are not then it will still be a SHORT name instead of the LONG name.

Top
#182346 - 2007-11-08 12:36 PM Re: This should be an easy one.... [Re: NTDOC]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4396
Loc: New Jersey
Not sure what you mean, Doc... I was referring to Jochen's reference that @HOMEDIR contained the server\share component, when that's not what the docs indicate, and isn't what's returned by Kix. I was also wondering why the OS isn't mapping the home folder automagically.

Also pointed out that if @HOMEDIR returned an 8.3 name for the user's home folder (deep mapped) that he could substitute @USERID - IF - the userid and home folder names were ALWAYS the same.

G-
_________________________
Actually I am a Rocket Scientist! \:D

Top
#182568 - 2007-11-13 04:16 PM Re: This should be an easy one.... [Re: Glenn Barnas]
RialbSelur Offline
Fresh Scripter

Registered: 2007-11-05
Posts: 8
Loc: NC
We're running mostly XPsp2 on the client side. Some W2K Prosp4. We're running the 4.6 version of Kix. Interestingly, without a related mapping statement in Kix, the H:\ will not map even though it is setup in AD as:

Connrct: h: To: \\server\share\%UserName%

So it seems I do need an H:\ mapping in Kix to get it to map

This worked perfectly:

Use H: @HOMESHR + '\' + @USERID

Top
Page 1 of 1 1


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

Who's Online
1 registered (Allen) and 466 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.06 seconds in which 0.023 seconds were spent on a total of 13 queries. Zlib compression enabled.

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