RialbSelur
(Fresh Scripter)
2007-11-06 04:59 PM
This should be an easy one....

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!


Bryce
(KiX Supporter)
2007-11-07 01:55 AM
Re: This should be an easy one....

what client os?

NTDOCAdministrator
(KiX Master)
2007-11-07 03:22 AM
Re: This should be an easy one....

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


JochenAdministrator
(KiX Supporter)
2007-11-07 09:09 AM
Re: This should be an easy one....

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


Glenn BarnasAdministrator
(KiX Supporter)
2007-11-07 01:31 PM
Re: This should be an easy one....

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


JochenAdministrator
(KiX Supporter)
2007-11-07 02:05 PM
Re: This should be an easy one....

Ooops, my fault.

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


Glenn BarnasAdministrator
(KiX Supporter)
2007-11-07 03:22 PM
Re: This should be an easy one....

Win2K? NT4? Don't you guys get reruns of the "Time Tunnel" out there? You should jump in and head +5 years! ;\)

Glenn


Bryce
(KiX Supporter)
2007-11-07 06:53 PM
Re: This should be an easy one....

 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


NTDOCAdministrator
(KiX Master)
2007-11-08 01:34 AM
Re: This should be an easy one....

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.


Glenn BarnasAdministrator
(KiX Supporter)
2007-11-08 12:36 PM
Re: This should be an easy one....

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-


RialbSelur
(Fresh Scripter)
2007-11-13 04:16 PM
Re: This should be an easy one....

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