Page 1 of 1 1
Topic Options
#122575 - 2004-07-11 12:36 PM DFS homeshere
adecot Offline
Fresh Scripter

Registered: 2004-07-06
Posts: 11
the use problem is solved thanks but there's still a problem.
As the @homeshr doesn't give the right share but only the DFSRoot how can i know where the correct share of the user is as there are some directories under the DFSRoot ?

Top
#122576 - 2004-07-11 03:26 PM Re: DFS homeshere
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
If the KiXtart macro does not return wht you want, then try the ADSI code.

Code:
$oUsr = GetObject("WinNT://@LDomain/@UserID,user")
? $oUsr.HomeDirectory
?

_________________________
Home page: http://www.kixhelp.com/hb/

Top
#122577 - 2004-07-11 08:22 PM Re: DFS homeshere
adecot Offline
Fresh Scripter

Registered: 2004-07-06
Posts: 11
thank you Howard... that works great !

Just for information ..what else is there in th 'ousr' object ? where can i get some info

And thanks a lot


Top
#122578 - 2004-07-11 08:32 PM Re: DFS homeshere
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
In our FAQ forum there is a FAQ with many links to COM resources like ADSI.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

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 (Henriques) and 2516 anonymous users online.
Newest Members
fgarcia, Viginette, ManuvdWielNL, Sir_Barrington, batdk82
17889 Registered Users

Generated in 0.033 seconds in which 0.018 seconds were spent on a total of 12 queries. Zlib compression enabled.

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